u-boot-brain/board/freescale
Timur Tabi 2feb4af001 fsl: improve the PIXIS code and fix a few bugs
Refactor and document the Freescale PIXIS code, used on most 85xx and 86xx
boards.  This makes the code easier to read and more flexible.

Delete pixis.h, because none of the exported functions were actually being
used by any other file.  Make all of the functions in pixis.c 'static'.
Remove "#include pixis.h" from every file that has it.

Remove some unnecessary #includes.

Make 'pixis_base' into a macro, so that we don't need to define it in every
function.

Add "while(1);" loops at the end of functions that reset the board, so that
execution doesn't continue while the reset is in progress.

Replace in_8/out_8 calls with clrbits_8, setbits_8, or clrsetbits_8, where
appropriate.

Replace ulong/uint with their spelled-out equivalents.  Remove unnecessary
typecasts, changing the types of some variables if necessary.

Add CONFIG_SYS_PIXIS_VCFGEN0_ENABLE and CONFIG_SYS_PIXIS_VBOOT_ENABLE to make
it easier for specific boards to support variations in the PIXIS registers
sets.  No current boards appears to need this feature.

Fix the definition of CONFIG_SYS_PIXIS_VBOOT_MASK for the MPC8610 HPCD.
Apparently, "pixis_reset altbank" has never worked on this board.

Signed-off-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
2010-04-07 00:21:27 -05:00
..
common fsl: improve the PIXIS code and fix a few bugs 2010-04-07 00:21:27 -05:00
m547xevb Fix all linker script to handle all rodata sections 2009-03-20 22:39:12 +01:00
m548xevb Fix all linker script to handle all rodata sections 2009-03-20 22:39:12 +01:00
m5208evbe ColdFire: Add M5208EVB and MCF520x CPU support 2009-07-14 09:27:17 -05:00
m5235evb ColdFire: Remove platforms mii.c file 2008-11-03 09:45:58 -07:00
m5249evb Fix all linker script to handle all rodata sections 2009-03-20 22:39:12 +01:00
m5253demo Convert DM9000 driver for CONFIG_NET_MULTI 2009-06-15 00:13:55 -07:00
m5253evbe Fix all linker script to handle all rodata sections 2009-03-20 22:39:12 +01:00
m5271evb ColdFire: M5271EVB DRAM Bring up issue 2010-03-24 11:09:15 -05:00
m5272c3 Fix all linker script to handle all rodata sections 2009-03-20 22:39:12 +01:00
m5275evb Fix all linker script to handle all rodata sections 2009-03-20 22:39:12 +01:00
m5282evb Small fix to m5282evb 2009-04-04 22:47:01 +02:00
m5329evb Fix all linker script to handle all rodata sections 2009-03-20 22:39:12 +01:00
m5373evb Fix all linker script to handle all rodata sections 2009-03-20 22:39:12 +01:00
m52277evb ColdFire: Add SBF support for M52277EVB 2008-11-03 09:45:58 -07:00
m53017evb Fix all linker script to handle all rodata sections 2009-03-20 22:39:12 +01:00
m54451evb ColdFire: Update for M54451EVB 2009-07-14 09:27:14 -05:00
m54455evb ColdFire: Fix m54455EVB save environment bug 2010-03-24 11:09:42 -05:00
mpc832xemds mpc83xx: convert all remaining boards over to 83XX_GENERIC_PCI 2009-07-18 19:43:04 -05:00
mpc837xemds mpc83xx: convert all remaining boards over to 83XX_GENERIC_PCI 2009-07-18 19:43:04 -05:00
mpc837xerdb mpc83xx: convert all remaining boards over to 83XX_GENERIC_PCI 2009-07-18 19:43:04 -05:00
mpc5121ads 5xxx, fdt: move fdt_fixup_memory() to cpu.c file 2009-12-08 22:13:02 +01:00
mpc7448hpc2 ppc: Enable full relocation to RAM 2009-10-03 10:15:45 +02:00
mpc8260ads mpc8260: move FDT memory node fixup into common CPU code. 2009-11-22 23:16:28 +01:00
mpc8266ads rename CFG_ macros to CONFIG_SYS 2008-10-18 21:54:03 +02:00
mpc8313erdb Generic udelay() with watchdog support 2009-12-05 01:08:53 +01:00
mpc8315erdb mpc83xx: Add NAND boot support for MPC8315E-RDB boards 2010-01-07 18:33:52 -06:00
mpc8323erdb rename CFG_ macros to CONFIG_SYS 2008-10-18 21:54:03 +02:00
mpc8349emds mpc83xx: convert all remaining boards over to 83XX_GENERIC_PCI 2009-07-18 19:43:04 -05:00
mpc8349itx Update Freescale copyrights to remove "All Rights Reserved" 2009-07-29 09:59:22 +02:00
mpc8360emds 83xx, uec: split enet_interface in two variables 2010-01-31 22:37:12 -08:00
mpc8360erdk 83xx: Replace CONFIG_ECC_INIT_VIA_DDRC references 2009-07-02 11:15:49 -05:00
mpc8536ds fsl: improve the PIXIS code and fix a few bugs 2010-04-07 00:21:27 -05:00
mpc8540ads ppc/85xx: Clean up use of LAWAR defines 2009-09-24 12:04:58 -05:00
mpc8541cds 85xx: Move to a common linker script 2009-08-28 17:12:39 -05:00
mpc8544ds fsl: improve the PIXIS code and fix a few bugs 2010-04-07 00:21:27 -05:00
mpc8548cds PCIe, USB: Replace 'end point' references with 'endpoint' 2010-01-17 23:06:44 +01:00
mpc8555cds 85xx: Move to a common linker script 2009-08-28 17:12:39 -05:00
mpc8560ads ppc/85xx: Clean up use of LAWAR defines 2009-09-24 12:04:58 -05:00
mpc8568mds PCIe, USB: Replace 'end point' references with 'endpoint' 2010-01-17 23:06:44 +01:00
mpc8569mds Nand boot: Add nand boot support for MPC8569mds board 2010-01-27 14:22:40 -06:00
mpc8572ds fsl: improve the PIXIS code and fix a few bugs 2010-04-07 00:21:27 -05:00
mpc8610hpcd fsl: improve the PIXIS code and fix a few bugs 2010-04-07 00:21:27 -05:00
mpc8641hpcn fsl: improve the PIXIS code and fix a few bugs 2010-04-07 00:21:27 -05:00
mx31ads Convert CS8900 Ethernet driver to CONFIG_NET_MULTI API 2009-08-25 13:35:54 -07:00
mx31pdk Convert SMC911X Ethernet driver to CONFIG_NET_MULTI API 2009-07-22 22:53:44 -07:00
mx51evk Prepare v2010.03-rc1 2010-03-12 23:06:04 +01:00
p1_p2_rdb PCIe, USB: Replace 'end point' references with 'endpoint' 2010-01-17 23:06:44 +01:00
p2020ds fsl: improve the PIXIS code and fix a few bugs 2010-04-07 00:21:27 -05:00