u-boot/arch/powerpc/include/asm
Christophe Leroy 907208c452 powerpc: Partialy restore core of mpc8xx
CS Systemes d'Information (CSSI) manufactures 8xx boards for
critical communication systems. Those boards have been
running U-Boot since 2010 and will have to be maintained
until at least 2027.

commit 5b8e76c35e
("powerpc, 8xx: remove support for 8xx") orphaned those boards
by removing support for the mpc8xx CPU.

This commit partially restores support for the 8xx, with the
following limitations:
- Restores support for MPC866 and MPC885 only
- Does not restore IDE, PCMCIA, I2C, USB
- Does not restore examples
- Does not restore POST
- Does not restore Ethernet on SCC
- Does not restore console on SCC
- Does not restore bedbug and kgdb support

As the 866 and 885 do not support the following features,
they are not restored either:
- VIDEO / LCD
- RTC clock

The CPM uCODE patch is not restored either, because:
- 866 and 885 already have support for I2C and SPI relocation
without a uCODE patch
- relocation of SMC, I2C or SPI is only needed for using SCCs
for Ethernet or QMC

The dynamic setup/calculation of clocks is removed, we
expect the target being use with the clock and PLPRCR register
defined in the configuration.
All the clock settings for 8xx prior to 866 is removed as
well as we now only support 866 and 885.

This code is mature and addresses mature boards. Therefore
all code enclosed in '#if 0/#endif' and '#if XX_DEBUG/#endif'
is unneeded.

The following files are not restored by this patch:

- arch/powerpc/cpu/mpc8xx/bedbug_860.c
- arch/powerpc/cpu/mpc8xx/fec.h
- arch/powerpc/cpu/mpc8xx/kgdb.S
- arch/powerpc/cpu/mpc8xx/plprcr_write.S
- arch/powerpc/cpu/mpc8xx/scc.c
- arch/powerpc/cpu/mpc8xx/upatch.c
- arch/powerpc/cpu/mpc8xx/video.c
- arch/powerpc/include/asm/status_led.h
- arch/powerpc/lib/ide.c
- arch/powerpc/lib/ide.h
- doc/README.MPC866
- drivers/pcmcia/mpc8xx_pcmcia.c
- drivers/rtc/mpc8xx.c
- drivers/usb/gadget/mpc8xx_udc.c
- drivers/video/mpc8xx_lcd.c
- examples/standalone/test_burst.c
- examples/standalone/test_burst.h
- examples/standalone/test_burst_lib.S
- examples/standalone/timer.c
- include/mpc823_lcd.h
- include/usb/mpc8xx_udc.h
- post/cpu/mpc8xx/Makefile
- post/cpu/mpc8xx/cache.c
- post/cpu/mpc8xx/cache_8xx.S
- post/cpu/mpc8xx/ether.c
- post/cpu/mpc8xx/spr.c
- post/cpu/mpc8xx/uart.c
- post/cpu/mpc8xx/usb.c
- post/cpu/mpc8xx/watchdog.c

Some of the restored files are not located in a proper location.
In order to keep traceability of the changes, they will be
moved to their correct location and moved to Kconfig in a
followup patch.

This patch also declares CSSI as point of contact for the update
of the 8xx platform, as those boards are the only ones still
being maintained on the 8xx area. A later patch will add
those boards to the tree.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
2017-07-08 15:55:26 -04:00
..
arch-mpc83xx Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
arch-mpc85xx dm: gpio: MPC85XX GPIO platform data support 2016-07-11 14:06:44 -06:00
arch-ppc4xx powerpc: ppc4xx: Add a gpio.h header file 2015-02-12 10:35:31 -07:00
8xx_immap.h powerpc: Partialy restore core of mpc8xx 2017-07-08 15:55:26 -04:00
atomic.h Replace "extern inline" with "static inline" 2015-11-09 18:19:40 -05:00
bitops.h Replace "extern inline" with "static inline" 2015-11-09 18:19:40 -05:00
byteorder.h Replace "extern inline" with "static inline" 2015-11-09 18:19:40 -05:00
cache.h powerpc: Partialy restore core of mpc8xx 2017-07-08 15:55:26 -04:00
config.h powerpc: remove 4xx support 2017-07-03 17:35:28 -04:00
config_mpc85xx.h powerpc: mpc85xx: Move macro CONFIG_SYS_PPC64 to Kconfig 2017-01-04 19:40:56 -05:00
config_mpc86xx.h fsl_ddr: Move DDR config options to driver Kconfig 2017-01-04 19:40:41 -05:00
cpm_85xx.h powerpc: MPC8555: Remove macro CONFIG_MPC8555 2016-11-23 23:42:05 -08:00
e300.h Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
fsl_dma.h Add more SPDX-License-Identifier tags 2016-01-19 08:31:21 -05:00
fsl_fdt.h t1040d4rdb: assign muxed pins to qe-tdm when set hwconfig qe-tdm 2015-11-02 08:48:20 -08:00
fsl_i2c.h dm: fsl_i2c: Enable DM for FSL I2C 2016-05-17 08:28:55 +02:00
fsl_law.h powerpc: MPC8641: Remove macro CONFIG_MPC8641 2016-11-23 23:42:16 -08:00
fsl_lbc.h powerpc: MPC8560: Remove macro CONFIG_MPC8560 2016-11-23 23:42:05 -08:00
fsl_liodn.h net/fman: Support both new and legacy FMan Compatibles 2015-09-01 20:57:15 -05:00
fsl_mpc83xx_serdes.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
fsl_pamu.h powerpc/SECURE_BOOT: Add PAMU driver 2016-02-24 08:40:55 -08:00
fsl_pci.h mpc85xx: pcie: Implement workaround for Erratum A007815 2017-01-24 13:28:31 -08:00
fsl_portals.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
fsl_secure_boot.h Convert CONFIG_CMD_ESBC_VALIDATE to Kconfig 2017-05-22 09:33:55 -04:00
fsl_serdes.h fsl: serdes: ensure accessing the initialized maps of serdes protocol 2016-09-14 14:06:49 -07:00
fsl_srio.h powerpc: Remove __ilog2_u64 and ffs4 from bitops 2015-11-05 16:47:05 -05:00
global_data.h powerpc: Partialy restore core of mpc8xx 2017-07-08 15:55:26 -04:00
gpio.h mpc83xx: Add a GPIO driver for the MPC83XX family 2012-01-09 20:10:33 -06:00
immap_83xx.h Driver/DDR: combine ccsr_ddr for 83xx, 85xx and 86xx 2013-11-25 11:43:46 -08:00
immap_85xx.h powerpc: t1024: Fix SRDS_MAX_LANES value 2017-05-15 09:48:49 -07:00
immap_86xx.h powerpc: MPC8610: Remove macro CONFIG_MPC8610 2016-11-23 23:42:16 -08:00
interrupt.h powerpc: remove 4xx support 2017-07-03 17:35:28 -04:00
io.h Replace "extern inline" with "static inline" 2015-11-09 18:19:40 -05:00
iopin_8xx.h powerpc: Partialy restore core of mpc8xx 2017-07-08 15:55:26 -04:00
linkage.h powerpc: Add linkage.h file 2015-02-12 10:35:32 -07:00
mc146818rtc.h Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
mmu.h powerpc: remove 4xx support 2017-07-03 17:35:28 -04:00
mp.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
mpc8xxx_spi.h Add more SPDX-License-Identifier tags 2016-01-19 08:31:21 -05:00
mpc85xx_gpio.h powerpc/mpc85xx: Fix compiling error for common/cmd_gpio.c 2015-05-04 09:26:09 -07:00
mpc8349_pci.h Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
pci_io.h Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
posix_types.h Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
ppc.h powerpc: Partialy restore core of mpc8xx 2017-07-08 15:55:26 -04:00
processor.h powerpc: remove 4xx support 2017-07-03 17:35:28 -04:00
ptrace.h include: delete include/linux/config.h 2013-11-08 15:25:13 -05:00
sections.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
sigcontext.h Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
signal.h Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
spl.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
string.h Add strcasecmp() and strncasecmp() 2012-12-11 13:17:34 -07:00
types.h fsl_sec: Add hardware accelerated SHA256 and SHA1 2014-10-16 14:17:07 -07:00
u-boot.h common: powerpc: Move arch-specific headers 2017-06-05 11:02:40 -04:00
unaligned.h Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
xilinx_irq.h mailaddr: Update mail address 2016-01-27 15:32:05 +01:00