]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
Merge branch 'master' of git://git.denx.de/u-boot-arm
authorMinkyu Kang <mk7.kang@samsung.com>
Mon, 10 May 2010 06:20:50 +0000 (15:20 +0900)
committerMinkyu Kang <mk7.kang@samsung.com>
Mon, 10 May 2010 06:20:50 +0000 (15:20 +0900)
Conflicts:
arch/arm/include/asm/mach-types.h
common/serial.c

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
682 files changed:
MAINTAINERS
MAKEALL
Makefile
README
api/api_platform-powerpc.c [moved from api/api_platform-ppc.c with 100% similarity]
arch/arm/include/asm/mach-types.h
arch/microblaze/cpu/cache.c
arch/microblaze/cpu/interrupts.c
arch/microblaze/cpu/irq.S
arch/microblaze/cpu/timer.c
arch/microblaze/lib/Makefile
arch/microblaze/lib/board.c
arch/microblaze/lib/bootm.c
arch/nios2/config.mk
arch/nios2/cpu/start.S
arch/nios2/cpu/u-boot.lds [moved from board/altera/ep1s40/u-boot.lds with 98% similarity]
arch/nios2/include/asm/byteorder.h
arch/nios2/include/asm/dma-mapping.h [new file with mode: 0644]
arch/nios2/lib/board.c
arch/powerpc/config.mk [moved from arch/ppc/config.mk with 100% similarity]
arch/powerpc/cpu/74xx_7xx/Makefile [moved from arch/ppc/cpu/74xx_7xx/Makefile with 100% similarity]
arch/powerpc/cpu/74xx_7xx/cache.S [moved from arch/ppc/cpu/74xx_7xx/cache.S with 100% similarity]
arch/powerpc/cpu/74xx_7xx/config.mk [moved from arch/ppc/cpu/74xx_7xx/config.mk with 100% similarity]
arch/powerpc/cpu/74xx_7xx/cpu.c [moved from arch/ppc/cpu/74xx_7xx/cpu.c with 100% similarity]
arch/powerpc/cpu/74xx_7xx/cpu_init.c [moved from arch/ppc/cpu/74xx_7xx/cpu_init.c with 100% similarity]
arch/powerpc/cpu/74xx_7xx/interrupts.c [moved from arch/ppc/cpu/74xx_7xx/interrupts.c with 100% similarity]
arch/powerpc/cpu/74xx_7xx/io.S [moved from arch/ppc/cpu/74xx_7xx/io.S with 100% similarity]
arch/powerpc/cpu/74xx_7xx/kgdb.S [moved from arch/ppc/cpu/74xx_7xx/kgdb.S with 100% similarity]
arch/powerpc/cpu/74xx_7xx/speed.c [moved from arch/ppc/cpu/74xx_7xx/speed.c with 100% similarity]
arch/powerpc/cpu/74xx_7xx/start.S [moved from arch/ppc/cpu/74xx_7xx/start.S with 100% similarity]
arch/powerpc/cpu/74xx_7xx/traps.c [moved from arch/ppc/cpu/74xx_7xx/traps.c with 99% similarity]
arch/powerpc/cpu/mpc512x/Makefile [moved from arch/ppc/cpu/mpc512x/Makefile with 98% similarity]
arch/powerpc/cpu/mpc512x/asm-offsets.h [moved from arch/ppc/cpu/mpc512x/asm-offsets.h with 87% similarity]
arch/powerpc/cpu/mpc512x/common.c [new file with mode: 0644]
arch/powerpc/cpu/mpc512x/config.mk [moved from arch/ppc/cpu/mpc512x/config.mk with 94% similarity]
arch/powerpc/cpu/mpc512x/cpu.c [moved from arch/ppc/cpu/mpc512x/cpu.c with 100% similarity]
arch/powerpc/cpu/mpc512x/cpu_init.c [moved from arch/ppc/cpu/mpc512x/cpu_init.c with 100% similarity]
arch/powerpc/cpu/mpc512x/diu.c [moved from arch/ppc/cpu/mpc512x/diu.c with 94% similarity]
arch/powerpc/cpu/mpc512x/fixed_sdram.c [moved from arch/ppc/cpu/mpc512x/fixed_sdram.c with 94% similarity]
arch/powerpc/cpu/mpc512x/i2c.c [moved from arch/ppc/cpu/mpc512x/i2c.c with 100% similarity]
arch/powerpc/cpu/mpc512x/ide.c [moved from arch/ppc/cpu/mpc512x/ide.c with 100% similarity]
arch/powerpc/cpu/mpc512x/iim.c [moved from arch/ppc/cpu/mpc512x/iim.c with 100% similarity]
arch/powerpc/cpu/mpc512x/interrupts.c [moved from arch/ppc/cpu/mpc512x/interrupts.c with 100% similarity]
arch/powerpc/cpu/mpc512x/iopin.c [moved from arch/ppc/cpu/mpc512x/iopin.c with 100% similarity]
arch/powerpc/cpu/mpc512x/pci.c [moved from arch/ppc/cpu/mpc512x/pci.c with 100% similarity]
arch/powerpc/cpu/mpc512x/serial.c [new file with mode: 0644]
arch/powerpc/cpu/mpc512x/speed.c [moved from arch/ppc/cpu/mpc512x/speed.c with 100% similarity]
arch/powerpc/cpu/mpc512x/start.S [moved from arch/ppc/cpu/mpc512x/start.S with 100% similarity]
arch/powerpc/cpu/mpc512x/traps.c [moved from arch/ppc/cpu/mpc512x/traps.c with 100% similarity]
arch/powerpc/cpu/mpc512x/u-boot.lds [moved from arch/ppc/cpu/mpc512x/u-boot.lds with 98% similarity]
arch/powerpc/cpu/mpc5xx/Makefile [moved from arch/ppc/cpu/mpc5xx/Makefile with 93% similarity]
arch/powerpc/cpu/mpc5xx/config.mk [moved from arch/ppc/cpu/mpc5xx/config.mk with 95% similarity]
arch/powerpc/cpu/mpc5xx/cpu.c [moved from arch/ppc/cpu/mpc5xx/cpu.c with 100% similarity]
arch/powerpc/cpu/mpc5xx/cpu_init.c [moved from arch/ppc/cpu/mpc5xx/cpu_init.c with 100% similarity]
arch/powerpc/cpu/mpc5xx/interrupts.c [moved from arch/ppc/cpu/mpc5xx/interrupts.c with 100% similarity]
arch/powerpc/cpu/mpc5xx/serial.c [moved from arch/ppc/cpu/mpc5xx/serial.c with 100% similarity]
arch/powerpc/cpu/mpc5xx/speed.c [moved from arch/ppc/cpu/mpc5xx/speed.c with 100% similarity]
arch/powerpc/cpu/mpc5xx/spi.c [moved from arch/ppc/cpu/mpc5xx/spi.c with 100% similarity]
arch/powerpc/cpu/mpc5xx/start.S [moved from arch/ppc/cpu/mpc5xx/start.S with 100% similarity]
arch/powerpc/cpu/mpc5xx/traps.c [moved from arch/ppc/cpu/mpc5xx/traps.c with 99% similarity]
arch/powerpc/cpu/mpc5xx/u-boot.lds [moved from arch/ppc/cpu/mpc5xx/u-boot.lds with 98% similarity]
arch/powerpc/cpu/mpc5xxx/Makefile [moved from arch/ppc/cpu/mpc5xxx/Makefile with 100% similarity]
arch/powerpc/cpu/mpc5xxx/config.mk [moved from arch/ppc/cpu/mpc5xxx/config.mk with 94% similarity]
arch/powerpc/cpu/mpc5xxx/cpu.c [moved from arch/ppc/cpu/mpc5xxx/cpu.c with 100% similarity]
arch/powerpc/cpu/mpc5xxx/cpu_init.c [moved from arch/ppc/cpu/mpc5xxx/cpu_init.c with 100% similarity]
arch/powerpc/cpu/mpc5xxx/firmware_sc_task_bestcomm.impl.S [moved from arch/ppc/cpu/mpc5xxx/firmware_sc_task_bestcomm.impl.S with 100% similarity]
arch/powerpc/cpu/mpc5xxx/i2c.c [moved from arch/ppc/cpu/mpc5xxx/i2c.c with 100% similarity]
arch/powerpc/cpu/mpc5xxx/ide.c [moved from arch/ppc/cpu/mpc5xxx/ide.c with 100% similarity]
arch/powerpc/cpu/mpc5xxx/interrupts.c [moved from arch/ppc/cpu/mpc5xxx/interrupts.c with 99% similarity]
arch/powerpc/cpu/mpc5xxx/io.S [moved from arch/ppc/cpu/mpc5xxx/io.S with 100% similarity]
arch/powerpc/cpu/mpc5xxx/loadtask.c [moved from arch/ppc/cpu/mpc5xxx/loadtask.c with 100% similarity]
arch/powerpc/cpu/mpc5xxx/pci_mpc5200.c [moved from arch/ppc/cpu/mpc5xxx/pci_mpc5200.c with 100% similarity]
arch/powerpc/cpu/mpc5xxx/serial.c [moved from arch/ppc/cpu/mpc5xxx/serial.c with 98% similarity]
arch/powerpc/cpu/mpc5xxx/speed.c [moved from arch/ppc/cpu/mpc5xxx/speed.c with 100% similarity]
arch/powerpc/cpu/mpc5xxx/start.S [moved from arch/ppc/cpu/mpc5xxx/start.S with 99% similarity]
arch/powerpc/cpu/mpc5xxx/traps.c [moved from arch/ppc/cpu/mpc5xxx/traps.c with 99% similarity]
arch/powerpc/cpu/mpc5xxx/u-boot-customlayout.lds [moved from arch/ppc/cpu/mpc5xxx/u-boot-customlayout.lds with 94% similarity]
arch/powerpc/cpu/mpc5xxx/u-boot.lds [moved from arch/ppc/cpu/mpc5xxx/u-boot.lds with 98% similarity]
arch/powerpc/cpu/mpc5xxx/usb.c [moved from arch/ppc/cpu/mpc5xxx/usb.c with 100% similarity]
arch/powerpc/cpu/mpc5xxx/usb_ohci.c [moved from arch/ppc/cpu/mpc5xxx/usb_ohci.c with 100% similarity]
arch/powerpc/cpu/mpc5xxx/usb_ohci.h [moved from arch/ppc/cpu/mpc5xxx/usb_ohci.h with 100% similarity]
arch/powerpc/cpu/mpc8220/Makefile [moved from arch/ppc/cpu/mpc8220/Makefile with 100% similarity]
arch/powerpc/cpu/mpc8220/config.mk [moved from arch/ppc/cpu/mpc8220/config.mk with 94% similarity]
arch/powerpc/cpu/mpc8220/cpu.c [moved from arch/ppc/cpu/mpc8220/cpu.c with 100% similarity]
arch/powerpc/cpu/mpc8220/cpu_init.c [moved from arch/ppc/cpu/mpc8220/cpu_init.c with 100% similarity]
arch/powerpc/cpu/mpc8220/dma.h [moved from arch/ppc/cpu/mpc8220/dma.h with 100% similarity]
arch/powerpc/cpu/mpc8220/dramSetup.c [moved from arch/ppc/cpu/mpc8220/dramSetup.c with 100% similarity]
arch/powerpc/cpu/mpc8220/dramSetup.h [moved from arch/ppc/cpu/mpc8220/dramSetup.h with 100% similarity]
arch/powerpc/cpu/mpc8220/fec.c [moved from arch/ppc/cpu/mpc8220/fec.c with 100% similarity]
arch/powerpc/cpu/mpc8220/fec.h [moved from arch/ppc/cpu/mpc8220/fec.h with 100% similarity]
arch/powerpc/cpu/mpc8220/fec_dma_tasks.S [moved from arch/ppc/cpu/mpc8220/fec_dma_tasks.S with 100% similarity]
arch/powerpc/cpu/mpc8220/i2c.c [moved from arch/ppc/cpu/mpc8220/i2c.c with 100% similarity]
arch/powerpc/cpu/mpc8220/i2cCore.c [moved from arch/ppc/cpu/mpc8220/i2cCore.c with 100% similarity]
arch/powerpc/cpu/mpc8220/i2cCore.h [moved from arch/ppc/cpu/mpc8220/i2cCore.h with 100% similarity]
arch/powerpc/cpu/mpc8220/interrupts.c [moved from arch/ppc/cpu/mpc8220/interrupts.c with 100% similarity]
arch/powerpc/cpu/mpc8220/io.S [moved from arch/ppc/cpu/mpc8220/io.S with 100% similarity]
arch/powerpc/cpu/mpc8220/loadtask.c [moved from arch/ppc/cpu/mpc8220/loadtask.c with 100% similarity]
arch/powerpc/cpu/mpc8220/pci.c [moved from arch/ppc/cpu/mpc8220/pci.c with 100% similarity]
arch/powerpc/cpu/mpc8220/speed.c [moved from arch/ppc/cpu/mpc8220/speed.c with 100% similarity]
arch/powerpc/cpu/mpc8220/start.S [moved from arch/ppc/cpu/mpc8220/start.S with 99% similarity]
arch/powerpc/cpu/mpc8220/traps.c [moved from arch/ppc/cpu/mpc8220/traps.c with 99% similarity]
arch/powerpc/cpu/mpc8220/u-boot.lds [moved from arch/ppc/cpu/mpc8220/u-boot.lds with 98% similarity]
arch/powerpc/cpu/mpc8220/uart.c [moved from arch/ppc/cpu/mpc8220/uart.c with 100% similarity]
arch/powerpc/cpu/mpc824x/.gitignore [moved from arch/ppc/cpu/mpc824x/.gitignore with 100% similarity]
arch/powerpc/cpu/mpc824x/Makefile [moved from arch/ppc/cpu/mpc824x/Makefile with 100% similarity]
arch/powerpc/cpu/mpc824x/config.mk [moved from arch/ppc/cpu/mpc824x/config.mk with 94% similarity]
arch/powerpc/cpu/mpc824x/cpu.c [moved from arch/ppc/cpu/mpc824x/cpu.c with 100% similarity]
arch/powerpc/cpu/mpc824x/cpu_init.c [moved from arch/ppc/cpu/mpc824x/cpu_init.c with 100% similarity]
arch/powerpc/cpu/mpc824x/drivers/epic.h [moved from arch/ppc/cpu/mpc824x/drivers/epic.h with 100% similarity]
arch/powerpc/cpu/mpc824x/drivers/epic/README [moved from arch/ppc/cpu/mpc824x/drivers/epic/README with 100% similarity]
arch/powerpc/cpu/mpc824x/drivers/epic/epic.h [moved from arch/ppc/cpu/mpc824x/drivers/epic/epic.h with 100% similarity]
arch/powerpc/cpu/mpc824x/drivers/epic/epic1.c [moved from arch/ppc/cpu/mpc824x/drivers/epic/epic1.c with 100% similarity]
arch/powerpc/cpu/mpc824x/drivers/epic/epic2.S [moved from arch/ppc/cpu/mpc824x/drivers/epic/epic2.S with 100% similarity]
arch/powerpc/cpu/mpc824x/drivers/epic/epicutil.S [moved from arch/ppc/cpu/mpc824x/drivers/epic/epicutil.S with 100% similarity]
arch/powerpc/cpu/mpc824x/drivers/errors.h [moved from arch/ppc/cpu/mpc824x/drivers/errors.h with 100% similarity]
arch/powerpc/cpu/mpc824x/drivers/i2c/i2c.c [moved from arch/ppc/cpu/mpc824x/drivers/i2c/i2c.c with 100% similarity]
arch/powerpc/cpu/mpc824x/drivers/i2c_export.h [moved from arch/ppc/cpu/mpc824x/drivers/i2c_export.h with 100% similarity]
arch/powerpc/cpu/mpc824x/interrupts.c [moved from arch/ppc/cpu/mpc824x/interrupts.c with 100% similarity]
arch/powerpc/cpu/mpc824x/pci.c [moved from arch/ppc/cpu/mpc824x/pci.c with 97% similarity]
arch/powerpc/cpu/mpc824x/speed.c [moved from arch/ppc/cpu/mpc824x/speed.c with 100% similarity]
arch/powerpc/cpu/mpc824x/start.S [moved from arch/ppc/cpu/mpc824x/start.S with 100% similarity]
arch/powerpc/cpu/mpc824x/traps.c [moved from arch/ppc/cpu/mpc824x/traps.c with 99% similarity]
arch/powerpc/cpu/mpc824x/u-boot.lds [moved from arch/ppc/cpu/mpc824x/u-boot.lds with 98% similarity]
arch/powerpc/cpu/mpc8260/Makefile [moved from arch/ppc/cpu/mpc8260/Makefile with 100% similarity]
arch/powerpc/cpu/mpc8260/bedbug_603e.c [moved from arch/ppc/cpu/mpc8260/bedbug_603e.c with 100% similarity]
arch/powerpc/cpu/mpc8260/commproc.c [moved from arch/ppc/cpu/mpc8260/commproc.c with 98% similarity]
arch/powerpc/cpu/mpc8260/config.mk [moved from arch/ppc/cpu/mpc8260/config.mk with 94% similarity]
arch/powerpc/cpu/mpc8260/cpu.c [moved from arch/ppc/cpu/mpc8260/cpu.c with 100% similarity]
arch/powerpc/cpu/mpc8260/cpu_init.c [moved from arch/ppc/cpu/mpc8260/cpu_init.c with 100% similarity]
arch/powerpc/cpu/mpc8260/ether_fcc.c [moved from arch/ppc/cpu/mpc8260/ether_fcc.c with 100% similarity]
arch/powerpc/cpu/mpc8260/ether_scc.c [moved from arch/ppc/cpu/mpc8260/ether_scc.c with 100% similarity]
arch/powerpc/cpu/mpc8260/i2c.c [moved from arch/ppc/cpu/mpc8260/i2c.c with 100% similarity]
arch/powerpc/cpu/mpc8260/interrupts.c [moved from arch/ppc/cpu/mpc8260/interrupts.c with 97% similarity]
arch/powerpc/cpu/mpc8260/kgdb.S [moved from arch/ppc/cpu/mpc8260/kgdb.S with 100% similarity]
arch/powerpc/cpu/mpc8260/pci.c [moved from arch/ppc/cpu/mpc8260/pci.c with 100% similarity]
arch/powerpc/cpu/mpc8260/serial_scc.c [moved from arch/ppc/cpu/mpc8260/serial_scc.c with 100% similarity]
arch/powerpc/cpu/mpc8260/serial_smc.c [moved from arch/ppc/cpu/mpc8260/serial_smc.c with 99% similarity]
arch/powerpc/cpu/mpc8260/speed.c [moved from arch/ppc/cpu/mpc8260/speed.c with 100% similarity]
arch/powerpc/cpu/mpc8260/speed.h [moved from arch/ppc/cpu/mpc8260/speed.h with 100% similarity]
arch/powerpc/cpu/mpc8260/spi.c [moved from arch/ppc/cpu/mpc8260/spi.c with 100% similarity]
arch/powerpc/cpu/mpc8260/start.S [moved from arch/ppc/cpu/mpc8260/start.S with 99% similarity]
arch/powerpc/cpu/mpc8260/traps.c [moved from arch/ppc/cpu/mpc8260/traps.c with 99% similarity]
arch/powerpc/cpu/mpc8260/u-boot.lds [moved from arch/ppc/cpu/mpc8260/u-boot.lds with 98% similarity]
arch/powerpc/cpu/mpc83xx/Makefile [moved from arch/ppc/cpu/mpc83xx/Makefile with 100% similarity]
arch/powerpc/cpu/mpc83xx/config.mk [moved from arch/ppc/cpu/mpc83xx/config.mk with 94% similarity]
arch/powerpc/cpu/mpc83xx/cpu.c [moved from arch/ppc/cpu/mpc83xx/cpu.c with 98% similarity]
arch/powerpc/cpu/mpc83xx/cpu_init.c [moved from arch/ppc/cpu/mpc83xx/cpu_init.c with 100% similarity]
arch/powerpc/cpu/mpc83xx/ecc.c [moved from arch/ppc/cpu/mpc83xx/ecc.c with 100% similarity]
arch/powerpc/cpu/mpc83xx/fdt.c [moved from arch/ppc/cpu/mpc83xx/fdt.c with 100% similarity]
arch/powerpc/cpu/mpc83xx/interrupts.c [moved from arch/ppc/cpu/mpc83xx/interrupts.c with 100% similarity]
arch/powerpc/cpu/mpc83xx/nand_init.c [moved from arch/ppc/cpu/mpc83xx/nand_init.c with 100% similarity]
arch/powerpc/cpu/mpc83xx/pci.c [moved from arch/ppc/cpu/mpc83xx/pci.c with 100% similarity]
arch/powerpc/cpu/mpc83xx/pcie.c [moved from arch/ppc/cpu/mpc83xx/pcie.c with 100% similarity]
arch/powerpc/cpu/mpc83xx/qe_io.c [moved from arch/ppc/cpu/mpc83xx/qe_io.c with 100% similarity]
arch/powerpc/cpu/mpc83xx/serdes.c [moved from arch/ppc/cpu/mpc83xx/serdes.c with 99% similarity]
arch/powerpc/cpu/mpc83xx/spd_sdram.c [moved from arch/ppc/cpu/mpc83xx/spd_sdram.c with 100% similarity]
arch/powerpc/cpu/mpc83xx/speed.c [moved from arch/ppc/cpu/mpc83xx/speed.c with 98% similarity]
arch/powerpc/cpu/mpc83xx/start.S [moved from arch/ppc/cpu/mpc83xx/start.S with 99% similarity]
arch/powerpc/cpu/mpc83xx/traps.c [moved from arch/ppc/cpu/mpc83xx/traps.c with 100% similarity]
arch/powerpc/cpu/mpc83xx/u-boot.lds [moved from arch/ppc/cpu/mpc83xx/u-boot.lds with 98% similarity]
arch/powerpc/cpu/mpc85xx/Makefile [moved from arch/ppc/cpu/mpc85xx/Makefile with 100% similarity]
arch/powerpc/cpu/mpc85xx/commproc.c [moved from arch/ppc/cpu/mpc85xx/commproc.c with 98% similarity]
arch/powerpc/cpu/mpc85xx/config.mk [moved from arch/ppc/cpu/mpc85xx/config.mk with 95% similarity]
arch/powerpc/cpu/mpc85xx/cpu.c [moved from arch/ppc/cpu/mpc85xx/cpu.c with 97% similarity]
arch/powerpc/cpu/mpc85xx/cpu_init.c [moved from arch/ppc/cpu/mpc85xx/cpu_init.c with 88% similarity]
arch/powerpc/cpu/mpc85xx/cpu_init_early.c [moved from arch/ppc/cpu/mpc85xx/cpu_init_early.c with 100% similarity]
arch/powerpc/cpu/mpc85xx/cpu_init_nand.c [moved from arch/ppc/cpu/mpc85xx/cpu_init_nand.c with 100% similarity]
arch/powerpc/cpu/mpc85xx/ddr-gen1.c [moved from arch/ppc/cpu/mpc85xx/ddr-gen1.c with 100% similarity]
arch/powerpc/cpu/mpc85xx/ddr-gen2.c [moved from arch/ppc/cpu/mpc85xx/ddr-gen2.c with 100% similarity]
arch/powerpc/cpu/mpc85xx/ddr-gen3.c [moved from arch/ppc/cpu/mpc85xx/ddr-gen3.c with 100% similarity]
arch/powerpc/cpu/mpc85xx/ether_fcc.c [moved from arch/ppc/cpu/mpc85xx/ether_fcc.c with 100% similarity]
arch/powerpc/cpu/mpc85xx/fdt.c [moved from arch/ppc/cpu/mpc85xx/fdt.c with 100% similarity]
arch/powerpc/cpu/mpc85xx/fixed_ivor.S [moved from arch/ppc/cpu/mpc85xx/fixed_ivor.S with 100% similarity]
arch/powerpc/cpu/mpc85xx/interrupts.c [moved from arch/ppc/cpu/mpc85xx/interrupts.c with 100% similarity]
arch/powerpc/cpu/mpc85xx/mp.c [moved from arch/ppc/cpu/mpc85xx/mp.c with 100% similarity]
arch/powerpc/cpu/mpc85xx/mp.h [moved from arch/ppc/cpu/mpc85xx/mp.h with 100% similarity]
arch/powerpc/cpu/mpc85xx/mpc8536_serdes.c [moved from arch/ppc/cpu/mpc85xx/mpc8536_serdes.c with 100% similarity]
arch/powerpc/cpu/mpc85xx/pci.c [moved from arch/ppc/cpu/mpc85xx/pci.c with 100% similarity]
arch/powerpc/cpu/mpc85xx/qe_io.c [moved from arch/ppc/cpu/mpc85xx/qe_io.c with 100% similarity]
arch/powerpc/cpu/mpc85xx/release.S [moved from arch/ppc/cpu/mpc85xx/release.S with 100% similarity]
arch/powerpc/cpu/mpc85xx/resetvec.S [moved from arch/ppc/cpu/mpc85xx/resetvec.S with 100% similarity]
arch/powerpc/cpu/mpc85xx/serial_scc.c [moved from arch/ppc/cpu/mpc85xx/serial_scc.c with 100% similarity]
arch/powerpc/cpu/mpc85xx/speed.c [moved from arch/ppc/cpu/mpc85xx/speed.c with 92% similarity]
arch/powerpc/cpu/mpc85xx/start.S [moved from arch/ppc/cpu/mpc85xx/start.S with 100% similarity]
arch/powerpc/cpu/mpc85xx/tlb.c [moved from arch/ppc/cpu/mpc85xx/tlb.c with 100% similarity]
arch/powerpc/cpu/mpc85xx/traps.c [moved from arch/ppc/cpu/mpc85xx/traps.c with 99% similarity]
arch/powerpc/cpu/mpc85xx/u-boot-nand.lds [moved from arch/ppc/cpu/mpc85xx/u-boot-nand.lds with 98% similarity]
arch/powerpc/cpu/mpc85xx/u-boot-nand_spl.lds [moved from arch/ppc/cpu/mpc85xx/u-boot-nand_spl.lds with 99% similarity]
arch/powerpc/cpu/mpc85xx/u-boot.lds [moved from arch/ppc/cpu/mpc85xx/u-boot.lds with 98% similarity]
arch/powerpc/cpu/mpc86xx/Makefile [moved from arch/ppc/cpu/mpc86xx/Makefile with 100% similarity]
arch/powerpc/cpu/mpc86xx/cache.S [moved from arch/ppc/cpu/mpc86xx/cache.S with 100% similarity]
arch/powerpc/cpu/mpc86xx/config.mk [moved from arch/ppc/cpu/mpc86xx/config.mk with 100% similarity]
arch/powerpc/cpu/mpc86xx/cpu.c [moved from arch/ppc/cpu/mpc86xx/cpu.c with 100% similarity]
arch/powerpc/cpu/mpc86xx/cpu_init.c [moved from arch/ppc/cpu/mpc86xx/cpu_init.c with 100% similarity]
arch/powerpc/cpu/mpc86xx/ddr-8641.c [moved from arch/ppc/cpu/mpc86xx/ddr-8641.c with 100% similarity]
arch/powerpc/cpu/mpc86xx/fdt.c [moved from arch/ppc/cpu/mpc86xx/fdt.c with 100% similarity]
arch/powerpc/cpu/mpc86xx/interrupts.c [moved from arch/ppc/cpu/mpc86xx/interrupts.c with 100% similarity]
arch/powerpc/cpu/mpc86xx/mp.c [moved from arch/ppc/cpu/mpc86xx/mp.c with 100% similarity]
arch/powerpc/cpu/mpc86xx/release.S [moved from arch/ppc/cpu/mpc86xx/release.S with 100% similarity]
arch/powerpc/cpu/mpc86xx/speed.c [moved from arch/ppc/cpu/mpc86xx/speed.c with 100% similarity]
arch/powerpc/cpu/mpc86xx/start.S [moved from arch/ppc/cpu/mpc86xx/start.S with 100% similarity]
arch/powerpc/cpu/mpc86xx/traps.c [moved from arch/ppc/cpu/mpc86xx/traps.c with 100% similarity]
arch/powerpc/cpu/mpc8xx/Makefile [moved from arch/ppc/cpu/mpc8xx/Makefile with 100% similarity]
arch/powerpc/cpu/mpc8xx/bedbug_860.c [moved from arch/ppc/cpu/mpc8xx/bedbug_860.c with 100% similarity]
arch/powerpc/cpu/mpc8xx/commproc.c [moved from arch/ppc/cpu/mpc8xx/commproc.c with 100% similarity]
arch/powerpc/cpu/mpc8xx/config.mk [moved from arch/ppc/cpu/mpc8xx/config.mk with 100% similarity]
arch/powerpc/cpu/mpc8xx/cpu.c [moved from arch/ppc/cpu/mpc8xx/cpu.c with 100% similarity]
arch/powerpc/cpu/mpc8xx/cpu_init.c [moved from arch/ppc/cpu/mpc8xx/cpu_init.c with 100% similarity]
arch/powerpc/cpu/mpc8xx/fdt.c [moved from arch/ppc/cpu/mpc8xx/fdt.c with 100% similarity]
arch/powerpc/cpu/mpc8xx/fec.c [moved from arch/ppc/cpu/mpc8xx/fec.c with 100% similarity]
arch/powerpc/cpu/mpc8xx/fec.h [moved from arch/ppc/cpu/mpc8xx/fec.h with 100% similarity]
arch/powerpc/cpu/mpc8xx/i2c.c [moved from arch/ppc/cpu/mpc8xx/i2c.c with 100% similarity]
arch/powerpc/cpu/mpc8xx/interrupts.c [moved from arch/ppc/cpu/mpc8xx/interrupts.c with 100% similarity]
arch/powerpc/cpu/mpc8xx/kgdb.S [moved from arch/ppc/cpu/mpc8xx/kgdb.S with 100% similarity]
arch/powerpc/cpu/mpc8xx/lcd.c [moved from arch/ppc/cpu/mpc8xx/lcd.c with 100% similarity]
arch/powerpc/cpu/mpc8xx/plprcr_write.S [moved from arch/ppc/cpu/mpc8xx/plprcr_write.S with 100% similarity]
arch/powerpc/cpu/mpc8xx/scc.c [moved from arch/ppc/cpu/mpc8xx/scc.c with 100% similarity]
arch/powerpc/cpu/mpc8xx/serial.c [moved from arch/ppc/cpu/mpc8xx/serial.c with 99% similarity]
arch/powerpc/cpu/mpc8xx/speed.c [moved from arch/ppc/cpu/mpc8xx/speed.c with 100% similarity]
arch/powerpc/cpu/mpc8xx/spi.c [moved from arch/ppc/cpu/mpc8xx/spi.c with 100% similarity]
arch/powerpc/cpu/mpc8xx/start.S [moved from arch/ppc/cpu/mpc8xx/start.S with 100% similarity]
arch/powerpc/cpu/mpc8xx/traps.c [moved from arch/ppc/cpu/mpc8xx/traps.c with 99% similarity]
arch/powerpc/cpu/mpc8xx/upatch.c [moved from arch/ppc/cpu/mpc8xx/upatch.c with 100% similarity]
arch/powerpc/cpu/mpc8xx/video.c [moved from arch/ppc/cpu/mpc8xx/video.c with 100% similarity]
arch/powerpc/cpu/mpc8xx/wlkbd.c [moved from arch/ppc/cpu/mpc8xx/wlkbd.c with 100% similarity]
arch/powerpc/cpu/mpc8xxx/Makefile [moved from arch/ppc/cpu/mpc8xxx/Makefile with 100% similarity]
arch/powerpc/cpu/mpc8xxx/cpu.c [moved from arch/ppc/cpu/mpc8xxx/cpu.c with 96% similarity]
arch/powerpc/cpu/mpc8xxx/ddr/Makefile [moved from arch/ppc/cpu/mpc8xxx/ddr/Makefile with 100% similarity]
arch/powerpc/cpu/mpc8xxx/ddr/common_timing_params.h [moved from arch/ppc/cpu/mpc8xxx/ddr/common_timing_params.h with 100% similarity]
arch/powerpc/cpu/mpc8xxx/ddr/ctrl_regs.c [moved from arch/ppc/cpu/mpc8xxx/ddr/ctrl_regs.c with 99% similarity]
arch/powerpc/cpu/mpc8xxx/ddr/ddr.h [moved from arch/ppc/cpu/mpc8xxx/ddr/ddr.h with 100% similarity]
arch/powerpc/cpu/mpc8xxx/ddr/ddr1_dimm_params.c [moved from arch/ppc/cpu/mpc8xxx/ddr/ddr1_dimm_params.c with 100% similarity]
arch/powerpc/cpu/mpc8xxx/ddr/ddr2_dimm_params.c [moved from arch/ppc/cpu/mpc8xxx/ddr/ddr2_dimm_params.c with 100% similarity]
arch/powerpc/cpu/mpc8xxx/ddr/ddr3_dimm_params.c [moved from arch/ppc/cpu/mpc8xxx/ddr/ddr3_dimm_params.c with 100% similarity]
arch/powerpc/cpu/mpc8xxx/ddr/lc_common_dimm_params.c [moved from arch/ppc/cpu/mpc8xxx/ddr/lc_common_dimm_params.c with 100% similarity]
arch/powerpc/cpu/mpc8xxx/ddr/main.c [moved from arch/ppc/cpu/mpc8xxx/ddr/main.c with 100% similarity]
arch/powerpc/cpu/mpc8xxx/ddr/options.c [moved from arch/ppc/cpu/mpc8xxx/ddr/options.c with 100% similarity]
arch/powerpc/cpu/mpc8xxx/ddr/util.c [moved from arch/ppc/cpu/mpc8xxx/ddr/util.c with 100% similarity]
arch/powerpc/cpu/mpc8xxx/fdt.c [moved from arch/ppc/cpu/mpc8xxx/fdt.c with 93% similarity]
arch/powerpc/cpu/mpc8xxx/pci_cfg.c [moved from arch/ppc/cpu/mpc8xxx/pci_cfg.c with 93% similarity]
arch/powerpc/cpu/ppc4xx/40x_spd_sdram.c [moved from arch/ppc/cpu/ppc4xx/40x_spd_sdram.c with 99% similarity]
arch/powerpc/cpu/ppc4xx/44x_spd_ddr.c [moved from arch/ppc/cpu/ppc4xx/44x_spd_ddr.c with 99% similarity]
arch/powerpc/cpu/ppc4xx/44x_spd_ddr2.c [moved from arch/ppc/cpu/ppc4xx/44x_spd_ddr2.c with 99% similarity]
arch/powerpc/cpu/ppc4xx/4xx_ibm_ddr2_autocalib.c [moved from arch/ppc/cpu/ppc4xx/4xx_ibm_ddr2_autocalib.c with 99% similarity]
arch/powerpc/cpu/ppc4xx/4xx_pci.c [moved from arch/ppc/cpu/ppc4xx/4xx_pci.c with 100% similarity]
arch/powerpc/cpu/ppc4xx/4xx_pcie.c [moved from arch/ppc/cpu/ppc4xx/4xx_pcie.c with 100% similarity]
arch/powerpc/cpu/ppc4xx/4xx_uart.c [moved from arch/ppc/cpu/ppc4xx/4xx_uart.c with 99% similarity]
arch/powerpc/cpu/ppc4xx/Makefile [moved from arch/ppc/cpu/ppc4xx/Makefile with 100% similarity]
arch/powerpc/cpu/ppc4xx/bedbug_405.c [moved from arch/ppc/cpu/ppc4xx/bedbug_405.c with 100% similarity]
arch/powerpc/cpu/ppc4xx/cache.S [moved from arch/ppc/cpu/ppc4xx/cache.S with 100% similarity]
arch/powerpc/cpu/ppc4xx/cmd_chip_config.c [moved from arch/ppc/cpu/ppc4xx/cmd_chip_config.c with 100% similarity]
arch/powerpc/cpu/ppc4xx/commproc.c [moved from arch/ppc/cpu/ppc4xx/commproc.c with 100% similarity]
arch/powerpc/cpu/ppc4xx/config.mk [moved from arch/ppc/cpu/ppc4xx/config.mk with 95% similarity]
arch/powerpc/cpu/ppc4xx/cpu.c [moved from arch/ppc/cpu/ppc4xx/cpu.c with 100% similarity]
arch/powerpc/cpu/ppc4xx/cpu_init.c [moved from arch/ppc/cpu/ppc4xx/cpu_init.c with 100% similarity]
arch/powerpc/cpu/ppc4xx/dcr.S [moved from arch/ppc/cpu/ppc4xx/dcr.S with 100% similarity]
arch/powerpc/cpu/ppc4xx/denali_data_eye.c [moved from arch/ppc/cpu/ppc4xx/denali_data_eye.c with 99% similarity]
arch/powerpc/cpu/ppc4xx/denali_spd_ddr2.c [moved from arch/ppc/cpu/ppc4xx/denali_spd_ddr2.c with 99% similarity]
arch/powerpc/cpu/ppc4xx/ecc.c [moved from arch/ppc/cpu/ppc4xx/ecc.c with 100% similarity]
arch/powerpc/cpu/ppc4xx/ecc.h [moved from arch/ppc/cpu/ppc4xx/ecc.h with 100% similarity]
arch/powerpc/cpu/ppc4xx/fdt.c [moved from arch/ppc/cpu/ppc4xx/fdt.c with 100% similarity]
arch/powerpc/cpu/ppc4xx/gpio.c [moved from arch/ppc/cpu/ppc4xx/gpio.c with 100% similarity]
arch/powerpc/cpu/ppc4xx/interrupts.c [moved from arch/ppc/cpu/ppc4xx/interrupts.c with 100% similarity]
arch/powerpc/cpu/ppc4xx/iop480_uart.c [moved from arch/ppc/cpu/ppc4xx/iop480_uart.c with 100% similarity]
arch/powerpc/cpu/ppc4xx/kgdb.S [moved from arch/ppc/cpu/ppc4xx/kgdb.S with 100% similarity]
arch/powerpc/cpu/ppc4xx/miiphy.c [moved from arch/ppc/cpu/ppc4xx/miiphy.c with 100% similarity]
arch/powerpc/cpu/ppc4xx/reginfo.c [moved from arch/ppc/cpu/ppc4xx/reginfo.c with 100% similarity]
arch/powerpc/cpu/ppc4xx/resetvec.S [moved from arch/ppc/cpu/ppc4xx/resetvec.S with 100% similarity]
arch/powerpc/cpu/ppc4xx/sdram.c [moved from arch/ppc/cpu/ppc4xx/sdram.c with 100% similarity]
arch/powerpc/cpu/ppc4xx/sdram.h [moved from arch/ppc/cpu/ppc4xx/sdram.h with 100% similarity]
arch/powerpc/cpu/ppc4xx/speed.c [moved from arch/ppc/cpu/ppc4xx/speed.c with 100% similarity]
arch/powerpc/cpu/ppc4xx/start.S [moved from arch/ppc/cpu/ppc4xx/start.S with 100% similarity]
arch/powerpc/cpu/ppc4xx/tlb.c [moved from arch/ppc/cpu/ppc4xx/tlb.c with 100% similarity]
arch/powerpc/cpu/ppc4xx/traps.c [moved from arch/ppc/cpu/ppc4xx/traps.c with 99% similarity]
arch/powerpc/cpu/ppc4xx/u-boot.lds [moved from arch/ppc/cpu/ppc4xx/u-boot.lds with 98% similarity]
arch/powerpc/cpu/ppc4xx/uic.c [moved from arch/ppc/cpu/ppc4xx/uic.c with 100% similarity]
arch/powerpc/cpu/ppc4xx/usb.c [moved from arch/ppc/cpu/ppc4xx/usb.c with 100% similarity]
arch/powerpc/cpu/ppc4xx/usb_ohci.c [moved from arch/ppc/cpu/ppc4xx/usb_ohci.c with 100% similarity]
arch/powerpc/cpu/ppc4xx/usb_ohci.h [moved from arch/ppc/cpu/ppc4xx/usb_ohci.h with 100% similarity]
arch/powerpc/cpu/ppc4xx/usbdev.c [moved from arch/ppc/cpu/ppc4xx/usbdev.c with 100% similarity]
arch/powerpc/cpu/ppc4xx/usbdev.h [moved from arch/ppc/cpu/ppc4xx/usbdev.h with 100% similarity]
arch/powerpc/cpu/ppc4xx/xilinx_irq.c [moved from arch/ppc/cpu/ppc4xx/xilinx_irq.c with 100% similarity]
arch/powerpc/include/asm/4xx_pci.h [moved from arch/ppc/include/asm/4xx_pci.h with 100% similarity]
arch/powerpc/include/asm/4xx_pcie.h [moved from arch/ppc/include/asm/4xx_pcie.h with 100% similarity]
arch/powerpc/include/asm/5xx_immap.h [moved from arch/ppc/include/asm/5xx_immap.h with 100% similarity]
arch/powerpc/include/asm/8xx_immap.h [moved from arch/ppc/include/asm/8xx_immap.h with 100% similarity]
arch/powerpc/include/asm/atomic.h [moved from arch/ppc/include/asm/atomic.h with 100% similarity]
arch/powerpc/include/asm/bitops.h [moved from arch/ppc/include/asm/bitops.h with 100% similarity]
arch/powerpc/include/asm/byteorder.h [moved from arch/ppc/include/asm/byteorder.h with 100% similarity]
arch/powerpc/include/asm/cache.h [moved from arch/ppc/include/asm/cache.h with 100% similarity]
arch/powerpc/include/asm/config.h [moved from arch/ppc/include/asm/config.h with 100% similarity]
arch/powerpc/include/asm/cpm_8260.h [moved from arch/ppc/include/asm/cpm_8260.h with 100% similarity]
arch/powerpc/include/asm/cpm_85xx.h [moved from arch/ppc/include/asm/cpm_85xx.h with 100% similarity]
arch/powerpc/include/asm/e300.h [moved from arch/ppc/include/asm/e300.h with 100% similarity]
arch/powerpc/include/asm/errno.h [moved from arch/ppc/include/asm/errno.h with 100% similarity]
arch/powerpc/include/asm/fsl_ddr_dimm_params.h [moved from arch/ppc/include/asm/fsl_ddr_dimm_params.h with 100% similarity]
arch/powerpc/include/asm/fsl_ddr_sdram.h [moved from arch/ppc/include/asm/fsl_ddr_sdram.h with 95% similarity]
arch/powerpc/include/asm/fsl_dma.h [moved from arch/ppc/include/asm/fsl_dma.h with 100% similarity]
arch/powerpc/include/asm/fsl_i2c.h [moved from arch/ppc/include/asm/fsl_i2c.h with 100% similarity]
arch/powerpc/include/asm/fsl_law.h [moved from arch/ppc/include/asm/fsl_law.h with 100% similarity]
arch/powerpc/include/asm/fsl_lbc.h [moved from arch/ppc/include/asm/fsl_lbc.h with 98% similarity]
arch/powerpc/include/asm/fsl_mpc83xx_serdes.h [moved from arch/microblaze/lib/cache.c with 58% similarity]
arch/powerpc/include/asm/fsl_pci.h [moved from arch/ppc/include/asm/fsl_pci.h with 100% similarity]
arch/powerpc/include/asm/fsl_serdes.h [moved from arch/ppc/include/asm/fsl_serdes.h with 100% similarity]
arch/powerpc/include/asm/global_data.h [moved from arch/ppc/include/asm/global_data.h with 100% similarity]
arch/powerpc/include/asm/gpio.h [moved from arch/ppc/include/asm/gpio.h with 100% similarity]
arch/powerpc/include/asm/immap_512x.h [moved from arch/ppc/include/asm/immap_512x.h with 95% similarity]
arch/powerpc/include/asm/immap_8220.h [moved from arch/ppc/include/asm/immap_8220.h with 100% similarity]
arch/powerpc/include/asm/immap_8260.h [moved from arch/ppc/include/asm/immap_8260.h with 100% similarity]
arch/powerpc/include/asm/immap_83xx.h [moved from arch/ppc/include/asm/immap_83xx.h with 100% similarity]
arch/powerpc/include/asm/immap_85xx.h [moved from arch/ppc/include/asm/immap_85xx.h with 97% similarity]
arch/powerpc/include/asm/immap_86xx.h [moved from arch/ppc/include/asm/immap_86xx.h with 100% similarity]
arch/powerpc/include/asm/immap_qe.h [moved from arch/ppc/include/asm/immap_qe.h with 100% similarity]
arch/powerpc/include/asm/interrupt.h [moved from arch/ppc/include/asm/interrupt.h with 100% similarity]
arch/powerpc/include/asm/io.h [moved from arch/ppc/include/asm/io.h with 100% similarity]
arch/powerpc/include/asm/iopin_8260.h [moved from arch/ppc/include/asm/iopin_8260.h with 100% similarity]
arch/powerpc/include/asm/iopin_85xx.h [moved from arch/ppc/include/asm/iopin_85xx.h with 100% similarity]
arch/powerpc/include/asm/iopin_8xx.h [moved from arch/ppc/include/asm/iopin_8xx.h with 100% similarity]
arch/powerpc/include/asm/m8260_pci.h [moved from arch/ppc/include/asm/m8260_pci.h with 100% similarity]
arch/powerpc/include/asm/mc146818rtc.h [moved from arch/ppc/include/asm/mc146818rtc.h with 100% similarity]
arch/powerpc/include/asm/mmu.h [moved from arch/ppc/include/asm/mmu.h with 99% similarity]
arch/powerpc/include/asm/mp.h [moved from arch/ppc/include/asm/mp.h with 100% similarity]
arch/powerpc/include/asm/mpc512x.h [moved from arch/ppc/include/asm/mpc512x.h with 100% similarity]
arch/powerpc/include/asm/mpc8349_pci.h [moved from arch/ppc/include/asm/mpc8349_pci.h with 100% similarity]
arch/powerpc/include/asm/mpc8xxx_spi.h [moved from arch/ppc/include/asm/mpc8xxx_spi.h with 100% similarity]
arch/powerpc/include/asm/pci_io.h [moved from arch/ppc/include/asm/pci_io.h with 100% similarity]
arch/powerpc/include/asm/pnp.h [moved from arch/ppc/include/asm/pnp.h with 100% similarity]
arch/powerpc/include/asm/posix_types.h [moved from arch/ppc/include/asm/posix_types.h with 100% similarity]
arch/powerpc/include/asm/ppc4xx-ebc.h [moved from arch/ppc/include/asm/ppc4xx-ebc.h with 100% similarity]
arch/powerpc/include/asm/ppc4xx-isram.h [moved from arch/ppc/include/asm/ppc4xx-isram.h with 100% similarity]
arch/powerpc/include/asm/ppc4xx-sdram.h [moved from arch/ppc/include/asm/ppc4xx-sdram.h with 100% similarity]
arch/powerpc/include/asm/ppc4xx-uic.h [moved from arch/ppc/include/asm/ppc4xx-uic.h with 100% similarity]
arch/powerpc/include/asm/ppc4xx_config.h [moved from arch/ppc/include/asm/ppc4xx_config.h with 100% similarity]
arch/powerpc/include/asm/processor.h [moved from arch/ppc/include/asm/processor.h with 100% similarity]
arch/powerpc/include/asm/ptrace.h [moved from arch/ppc/include/asm/ptrace.h with 97% similarity]
arch/powerpc/include/asm/residual.h [moved from arch/ppc/include/asm/residual.h with 100% similarity]
arch/powerpc/include/asm/sigcontext.h [moved from arch/ppc/include/asm/sigcontext.h with 100% similarity]
arch/powerpc/include/asm/signal.h [moved from arch/ppc/include/asm/signal.h with 100% similarity]
arch/powerpc/include/asm/status_led.h [moved from arch/ppc/include/asm/status_led.h with 100% similarity]
arch/powerpc/include/asm/string.h [moved from arch/ppc/include/asm/string.h with 100% similarity]
arch/powerpc/include/asm/types.h [moved from arch/ppc/include/asm/types.h with 100% similarity]
arch/powerpc/include/asm/u-boot.h [moved from arch/ppc/include/asm/u-boot.h with 100% similarity]
arch/powerpc/include/asm/unaligned.h [moved from arch/ppc/include/asm/unaligned.h with 100% similarity]
arch/powerpc/include/asm/xilinx_irq.h [moved from arch/ppc/include/asm/xilinx_irq.h with 100% similarity]
arch/powerpc/lib/Makefile [moved from arch/ppc/lib/Makefile with 100% similarity]
arch/powerpc/lib/bat_rw.c [moved from arch/ppc/lib/bat_rw.c with 100% similarity]
arch/powerpc/lib/board.c [moved from arch/ppc/lib/board.c with 99% similarity]
arch/powerpc/lib/bootm.c [moved from arch/ppc/lib/bootm.c with 100% similarity]
arch/powerpc/lib/cache.c [moved from arch/ppc/lib/cache.c with 100% similarity]
arch/powerpc/lib/extable.c [moved from arch/ppc/lib/extable.c with 100% similarity]
arch/powerpc/lib/interrupts.c [moved from arch/ppc/lib/interrupts.c with 100% similarity]
arch/powerpc/lib/kgdb.c [moved from arch/ppc/lib/kgdb.c with 100% similarity]
arch/powerpc/lib/ppccache.S [moved from arch/ppc/lib/ppccache.S with 100% similarity]
arch/powerpc/lib/ppcstring.S [moved from arch/ppc/lib/ppcstring.S with 100% similarity]
arch/powerpc/lib/reloc.S [moved from arch/ppc/lib/reloc.S with 100% similarity]
arch/powerpc/lib/ticks.S [moved from arch/ppc/lib/ticks.S with 100% similarity]
arch/powerpc/lib/time.c [moved from arch/ppc/lib/time.c with 100% similarity]
arch/ppc/cpu/mpc512x/serial.c [deleted file]
board/LEOX/elpt860/u-boot.lds
board/LEOX/elpt860/u-boot.lds.debug
board/MAI/AmigaOneG3SE/u-boot.lds
board/Marvell/common/ns16550.c
board/Marvell/common/ns16550.h
board/Marvell/db64360/mv_eth.c
board/Marvell/db64360/u-boot.lds
board/Marvell/db64460/mv_eth.c
board/Marvell/db64460/u-boot.lds
board/RPXClassic/u-boot.lds
board/RPXClassic/u-boot.lds.debug
board/RPXlite/u-boot.lds
board/RPXlite/u-boot.lds.debug
board/RPXlite_dw/u-boot.lds
board/RPXlite_dw/u-boot.lds.debug
board/RRvision/u-boot.lds
board/adder/u-boot.lds
board/altera/common/cfide.c [new file with mode: 0644]
board/altera/ep1c20/u-boot.lds [deleted file]
board/altera/nios2-generic/Makefile [new file with mode: 0644]
board/altera/nios2-generic/config.mk [new file with mode: 0644]
board/altera/nios2-generic/custom_fpga.h [new file with mode: 0644]
board/altera/nios2-generic/nios2-generic.c [new file with mode: 0644]
board/altera/nios2-generic/text_base.S [new file with mode: 0644]
board/altera/nios2-generic/u-boot.lds [moved from board/altera/ep1s10/u-boot.lds with 98% similarity]
board/amcc/acadia/u-boot-nand.lds
board/amcc/bamboo/init.S
board/amcc/bamboo/u-boot-nand.lds
board/amcc/canyonlands/canyonlands.c
board/amcc/canyonlands/init.S
board/amcc/canyonlands/u-boot-nand.lds
board/amcc/ebony/init.S
board/amcc/katmai/init.S
board/amcc/katmai/katmai.c
board/amcc/kilauea/u-boot-nand.lds
board/amcc/luan/init.S
board/amcc/luan/luan.c
board/amcc/ocotea/init.S
board/amcc/redwood/init.S
board/amcc/sequoia/init.S
board/amcc/sequoia/sdram.c
board/amcc/sequoia/u-boot-nand.lds
board/amcc/sequoia/u-boot-ram.lds
board/amcc/taishan/init.S
board/amcc/yosemite/init.S
board/amcc/yucca/init.S
board/amcc/yucca/yucca.c
board/amirix/ap1000/u-boot.lds
board/bmw/ns16550.c
board/bmw/ns16550.h
board/c2mon/u-boot.lds
board/c2mon/u-boot.lds.debug
board/cm5200/u-boot.lds
board/cogent/u-boot.lds.debug
board/cray/L1/u-boot.lds.debug
board/csb272/csb272.c
board/csb472/csb472.c
board/eltec/bab7xx/u-boot.lds
board/eltec/elppc/u-boot.lds
board/eltec/mhpc/u-boot.lds
board/eltec/mhpc/u-boot.lds.debug
board/emk/top860/u-boot.lds
board/emk/top860/u-boot.lds.debug
board/ep88x/u-boot.lds
board/eric/eric.c
board/esd/cpci750/mv_eth.c
board/esd/cpci750/u-boot.lds
board/esd/dasa_sim/u-boot.lds
board/esd/du440/init.S
board/esd/pmc440/init.S
board/esd/pmc440/u-boot-nand.lds
board/esteem192e/u-boot.lds
board/etx094/u-boot.lds
board/etx094/u-boot.lds.debug
board/evb64260/u-boot.lds
board/fads/u-boot.lds
board/fads/u-boot.lds.debug
board/flagadm/u-boot.lds
board/flagadm/u-boot.lds.debug
board/freescale/common/fsl_diu_fb.c
board/freescale/mpc7448hpc2/tsi108_init.c
board/freescale/mpc7448hpc2/u-boot.lds
board/freescale/mpc837xemds/mpc837xemds.c
board/freescale/mpc837xemds/pci.c
board/freescale/mpc837xerdb/mpc837xerdb.c
board/freescale/mpc8610hpcd/u-boot.lds
board/freescale/mpc8641hpcn/u-boot.lds
board/freescale/p1_p2_rdb/p1_p2_rdb.c
board/gdsys/gdppc440etx/init.S
board/gdsys/intip/init.S
board/gen860t/ioport.c
board/gen860t/u-boot-flashenv.lds
board/gen860t/u-boot.lds
board/genietv/u-boot.lds
board/genietv/u-boot.lds.debug
board/gth/u-boot.lds
board/hermes/u-boot.lds
board/hermes/u-boot.lds.debug
board/hmi1001/config.mk
board/hymod/u-boot.lds
board/hymod/u-boot.lds.debug
board/icu862/u-boot.lds
board/icu862/u-boot.lds.debug
board/inka4x0/config.mk
board/ip860/u-boot.lds
board/ip860/u-boot.lds.debug
board/ivm/u-boot.lds
board/ivm/u-boot.lds.debug
board/jse/jse.c
board/jse/sdram.c
board/keymile/common/keymile_hdlc_enet.c
board/keymile/km8xx/km8xx_hdlc_enet.c
board/keymile/km8xx/u-boot.lds
board/keymile/mgcoge/mgcoge_hdlc_enet.c
board/korat/init.S
board/korat/u-boot-F7FC.lds
board/kup/kup4k/u-boot.lds
board/kup/kup4k/u-boot.lds.debug
board/kup/kup4x/u-boot.lds
board/kup/kup4x/u-boot.lds.debug
board/lantec/u-boot.lds
board/lantec/u-boot.lds.debug
board/logicpd/zoom2/zoom2_serial.c
board/logicpd/zoom2/zoom2_serial.h
board/lwmon/u-boot.lds
board/lwmon/u-boot.lds.debug
board/lwmon5/init.S
board/matrix_vision/mvsmr/u-boot.lds
board/mbx8xx/u-boot.lds
board/mbx8xx/u-boot.lds.debug
board/mbx8xx/vpd.c
board/ml2/u-boot.lds
board/ml2/u-boot.lds.debug
board/mousse/u-boot.lds
board/mousse/u-boot.lds.ram
board/mousse/u-boot.lds.rom
board/mpl/pip405/u-boot.lds.debug
board/mucmc52/config.mk
board/munices/u-boot.lds
board/nc650/u-boot.lds
board/nc650/u-boot.lds.debug
board/netphone/u-boot.lds
board/netphone/u-boot.lds.debug
board/netstal/hcu4/hcu4.c
board/netstal/hcu5/README.txt
board/netstal/hcu5/hcu5.c
board/netstal/hcu5/init.S
board/netstal/mcu25/mcu25.c
board/netta/u-boot.lds
board/netta/u-boot.lds.debug
board/netta2/u-boot.lds
board/netta2/u-boot.lds.debug
board/netvia/u-boot.lds
board/netvia/u-boot.lds.debug
board/nx823/u-boot.lds
board/nx823/u-boot.lds.debug
board/pcippc2/u-boot.lds
board/pcs440ep/init.S
board/pcs440ep/pcs440ep.c
board/pdm360ng/Makefile [new file with mode: 0644]
board/pdm360ng/config.mk [new file with mode: 0644]
board/pdm360ng/pdm360ng.c [new file with mode: 0644]
board/ppmc7xx/u-boot.lds
board/prodrive/alpr/init.S
board/prodrive/p3mx/mv_eth.c
board/prodrive/p3mx/u-boot.lds
board/prodrive/p3p440/init.S
board/psyent/pci5441/u-boot.lds [deleted file]
board/psyent/pk1c20/u-boot.lds [deleted file]
board/quantum/u-boot.lds
board/quantum/u-boot.lds.debug
board/r360mpi/u-boot.lds
board/rbc823/u-boot.lds
board/rmu/u-boot.lds
board/rmu/u-boot.lds.debug
board/rsdproto/u-boot.lds
board/sandburst/common/ppc440gx_i2c.c
board/sandburst/karef/init.S
board/sandburst/karef/u-boot.lds.debug
board/sandburst/metrobox/init.S
board/sandburst/metrobox/u-boot.lds.debug
board/sbc8641d/u-boot.lds
board/sc3/u-boot.lds
board/siemens/CCM/u-boot.lds
board/siemens/CCM/u-boot.lds.debug
board/siemens/IAD210/u-boot.lds
board/siemens/pcu_e/u-boot.lds
board/siemens/pcu_e/u-boot.lds.debug
board/sixnet/u-boot.lds
board/snmc/qs850/u-boot.lds
board/snmc/qs860t/u-boot.lds
board/spc1920/u-boot.lds
board/spd8xx/u-boot.lds
board/spd8xx/u-boot.lds.debug
board/stx/stxssa/stxssa.c
board/stx/stxxtc/u-boot.lds
board/stx/stxxtc/u-boot.lds.debug
board/svm_sc8xx/u-boot.lds
board/svm_sc8xx/u-boot.lds.debug
board/tqc/tqm8xx/u-boot.lds
board/tqc/tqm8xx/u-boot.lds.debug
board/uc100/u-boot.lds
board/uc100/u-boot.lds.debug
board/uc101/config.mk
board/v37/u-boot.lds
board/w7o/u-boot.lds.debug
board/w7o/w7o.c
board/westel/amx860/u-boot.lds
board/westel/amx860/u-boot.lds.debug
board/xes/xpedite1000/init.S
board/xes/xpedite1000/u-boot.lds.debug
board/xes/xpedite5170/u-boot.lds
board/xilinx/microblaze-generic/microblaze-generic.c
board/xilinx/ppc405-generic/u-boot-rom.lds
board/xilinx/ppc440-generic/u-boot-rom.lds
common/kgdb.c
common/serial.c
doc/README.IPHASE4539
doc/README.PIP405
doc/README.POST
doc/README.RPXlite
doc/README.TQM8260
doc/README.alaska8220
doc/README.bedbug
doc/README.mpc5xx
doc/README.mpc85xxads
drivers/block/fsl_sata.c
drivers/block/fsl_sata.h
drivers/i2c/fsl_i2c.c
drivers/mmc/fsl_esdhc.c
drivers/pci/pci_auto.c
drivers/qe/uec_phy.c
drivers/serial/altera_jtag_uart.c
drivers/serial/ns16550.c
drivers/serial/serial.c
drivers/serial/serial_pxa.c
drivers/serial/serial_s3c24x0.c
drivers/serial/serial_s5p.c
drivers/spi/mpc8xxx_spi.c
drivers/video/mx3fb.c
examples/api/Makefile
examples/standalone/mem_to_mem_idma2intr.c
include/configs/MPC8313ERDB.h
include/configs/MPC8315ERDB.h
include/configs/MPC8323ERDB.h
include/configs/MPC832XEMDS.h
include/configs/MPC8349EMDS.h
include/configs/MPC8349ITX.h
include/configs/MPC8360EMDS.h
include/configs/MPC8360ERDK.h
include/configs/MPC837XEMDS.h
include/configs/MPC837XERDB.h
include/configs/MVBLM7.h
include/configs/SIMPC8313.h
include/configs/TQM834x.h
include/configs/aria.h
include/configs/galaxy5200.h
include/configs/kilauea.h
include/configs/kmeter1.h
include/configs/linkstation.h
include/configs/mecp5123.h
include/configs/mpc5121-common.h [new file with mode: 0644]
include/configs/mpc5121ads.h
include/configs/nios2-generic.h [new file with mode: 0644]
include/configs/pdm360ng.h [new file with mode: 0644]
include/configs/qong.h
include/configs/quad100hd.h
include/configs/sbc8349.h
include/configs/sc3.h
include/configs/socrates.h
include/configs/vme8349.h
include/fsl_esdhc.h
include/i2c.h
include/ns16550.h
include/post.h
include/serial.h
lib/div64.c
nand_spl/board/amcc/acadia/Makefile
nand_spl/board/amcc/bamboo/Makefile
nand_spl/board/amcc/canyonlands/Makefile
nand_spl/board/amcc/kilauea/Makefile
nand_spl/board/amcc/sequoia/Makefile
nand_spl/board/freescale/mpc8313erdb/Makefile
nand_spl/board/freescale/mpc8315erdb/Makefile
nand_spl/board/freescale/mpc8536ds/Makefile
nand_spl/board/freescale/mpc8569mds/Makefile
nand_spl/board/freescale/p1_p2_rdb/Makefile
nand_spl/board/sheldon/simpc8313/Makefile
post/board/pdm360ng/Makefile [new file with mode: 0644]
post/board/pdm360ng/coproc_com.c [new file with mode: 0644]
post/cpu/ppc4xx/spr.c
post/lib_powerpc/Makefile [moved from post/lib_ppc/Makefile with 98% similarity]
post/lib_powerpc/andi.c [moved from post/lib_ppc/andi.c with 100% similarity]
post/lib_powerpc/asm.S [moved from post/lib_ppc/asm.S with 100% similarity]
post/lib_powerpc/b.c [moved from post/lib_ppc/b.c with 100% similarity]
post/lib_powerpc/cmp.c [moved from post/lib_ppc/cmp.c with 100% similarity]
post/lib_powerpc/cmpi.c [moved from post/lib_ppc/cmpi.c with 100% similarity]
post/lib_powerpc/complex.c [moved from post/lib_ppc/complex.c with 100% similarity]
post/lib_powerpc/cpu.c [moved from post/lib_ppc/cpu.c with 100% similarity]
post/lib_powerpc/cpu_asm.h [moved from post/lib_ppc/cpu_asm.h with 100% similarity]
post/lib_powerpc/cr.c [moved from post/lib_ppc/cr.c with 100% similarity]
post/lib_powerpc/fpu/20001122-1.c [moved from post/lib_ppc/fpu/20001122-1.c with 100% similarity]
post/lib_powerpc/fpu/20010114-2.c [moved from post/lib_ppc/fpu/20010114-2.c with 100% similarity]
post/lib_powerpc/fpu/20010226-1.c [moved from post/lib_ppc/fpu/20010226-1.c with 100% similarity]
post/lib_powerpc/fpu/980619-1.c [moved from post/lib_ppc/fpu/980619-1.c with 100% similarity]
post/lib_powerpc/fpu/Makefile [moved from post/lib_ppc/fpu/Makefile with 97% similarity]
post/lib_powerpc/fpu/acc1.c [moved from post/lib_ppc/fpu/acc1.c with 100% similarity]
post/lib_powerpc/fpu/compare-fp-1.c [moved from post/lib_ppc/fpu/compare-fp-1.c with 100% similarity]
post/lib_powerpc/fpu/fpu.c [moved from post/lib_ppc/fpu/fpu.c with 100% similarity]
post/lib_powerpc/fpu/mul-subnormal-single-1.c [moved from post/lib_ppc/fpu/mul-subnormal-single-1.c with 100% similarity]
post/lib_powerpc/load.c [moved from post/lib_ppc/load.c with 100% similarity]
post/lib_powerpc/multi.c [moved from post/lib_ppc/multi.c with 100% similarity]
post/lib_powerpc/rlwimi.c [moved from post/lib_ppc/rlwimi.c with 100% similarity]
post/lib_powerpc/rlwinm.c [moved from post/lib_ppc/rlwinm.c with 100% similarity]
post/lib_powerpc/rlwnm.c [moved from post/lib_ppc/rlwnm.c with 100% similarity]
post/lib_powerpc/srawi.c [moved from post/lib_ppc/srawi.c with 100% similarity]
post/lib_powerpc/store.c [moved from post/lib_ppc/store.c with 100% similarity]
post/lib_powerpc/string.c [moved from post/lib_ppc/string.c with 100% similarity]
post/lib_powerpc/three.c [moved from post/lib_ppc/three.c with 100% similarity]
post/lib_powerpc/threei.c [moved from post/lib_ppc/threei.c with 100% similarity]
post/lib_powerpc/threex.c [moved from post/lib_ppc/threex.c with 100% similarity]
post/lib_powerpc/two.c [moved from post/lib_ppc/two.c with 100% similarity]
post/lib_powerpc/twox.c [moved from post/lib_ppc/twox.c with 100% similarity]
post/tests.c

index f3f59f45a570d0d828bc0cb842dadc1c14595770..7f688c36e0ff209040253ba2db5f22e2cf3c38fb 100644 (file)
@@ -471,6 +471,10 @@ Josef Wagner <Wagner@Microsys.de>
        CPC45           MPC8245
        PM520           MPC5200
 
+Michael Weiss <michael.weiss@ifm.com>
+
+       PDM360NG        MPC5121e
+
 Stephen Williams <steve@icarus.com>
 
        JSE             PPC405GPr
@@ -866,6 +870,7 @@ Scott McNutt <smcnutt@psyent.com>
        EP1C20          Nios-II
        EP1S10          Nios-II
        EP1S40          Nios-II
+       nios2-generic   Nios-II
 
 #########################################################################
 # MicroBlaze Systems:                                                  #
diff --git a/MAKEALL b/MAKEALL
index 593203f70e065a723437570c64420a78e7335938..326bde048617bf529783d9088bcc3c3aa1ebd162 100755 (executable)
--- a/MAKEALL
+++ b/MAKEALL
@@ -92,6 +92,7 @@ LIST_512x="           \
        aria            \
        mecp5123        \
        mpc5121ads      \
+       pdm360ng        \
 "
 
 #########################################################################
@@ -489,7 +490,7 @@ LIST_TSEC="         \
        ${LIST_86xx}    \
 "
 
-LIST_ppc="             \
+LIST_powerpc="         \
        ${LIST_5xx}     \
        ${LIST_512x}    \
        ${LIST_5xxx}    \
@@ -505,6 +506,12 @@ LIST_ppc="         \
        ${LIST_7xx}     \
 "
 
+# Alias "ppc" -> "powerpc" to not break compatibility with older scripts
+# still using "ppc" instead of "powerpc"
+LIST_ppc="             \
+       ${LIST_powerpc} \
+"
+
 #########################################################################
 ## StrongARM Systems
 #########################################################################
@@ -826,6 +833,7 @@ LIST_nios2="                \
        EP1S40          \
        PCI5441         \
        PK1C20          \
+       nios2-generic   \
 "
 
 #########################################################################
@@ -951,8 +959,8 @@ LIST_sparc="gr_xc3s_1500    gr_cpci_ax2000  gr_ep2s60       grsim   grsim_leon2"
 
 #-----------------------------------------------------------------------
 
-#----- for now, just run PPC by default -----
-[ $# = 0 ] && set $LIST_ppc
+#----- for now, just run PowerPC by default -----
+[ $# = 0 ] && set $LIST_powerpc
 
 #-----------------------------------------------------------------------
 
@@ -1008,7 +1016,7 @@ do
        |microblaze \
        |mips|mips_el \
        |nios|nios2 \
-       |ppc|5xx|5xxx|512x|8xx|8220|824x|8260|83xx|85xx|86xx|4xx|7xx|74xx|TSEC \
+       |ppc|powerpc|5xx|5xxx|512x|8xx|8220|824x|8260|83xx|85xx|86xx|4xx|7xx|74xx|TSEC \
        |sh|sh2|sh3|sh4 \
        |sparc \
        |x86|I486 \
index 0467147b9dc8083a4546f453c1cec634ab34fd4b..e49def36fa002484da509fedd010732afb307dfc 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -133,10 +133,6 @@ unexport CDPATH
 
 #########################################################################
 
-ifeq ($(ARCH),powerpc)
-ARCH = ppc
-endif
-
 # The "tools" are needed early, so put this first
 # Don't include stuff already done in $(LIBS)
 SUBDIRS        = tools \
@@ -227,12 +223,12 @@ LIBS += drivers/qe/qe.a
 endif
 ifeq ($(CPU),mpc85xx)
 LIBS += drivers/qe/qe.a
-LIBS += arch/ppc/cpu/mpc8xxx/ddr/libddr.a
-LIBS += arch/ppc/cpu/mpc8xxx/lib8xxx.a
+LIBS += arch/powerpc/cpu/mpc8xxx/ddr/libddr.a
+LIBS += arch/powerpc/cpu/mpc8xxx/lib8xxx.a
 endif
 ifeq ($(CPU),mpc86xx)
-LIBS += arch/ppc/cpu/mpc8xxx/ddr/libddr.a
-LIBS += arch/ppc/cpu/mpc8xxx/lib8xxx.a
+LIBS += arch/powerpc/cpu/mpc8xxx/ddr/libddr.a
+LIBS += arch/powerpc/cpu/mpc8xxx/lib8xxx.a
 endif
 LIBS += drivers/rtc/librtc.a
 LIBS += drivers/serial/libserial.a
@@ -491,29 +487,29 @@ unconfig:
 #########################################################################
 
 canmb_config:  unconfig
-       @$(MKCONFIG) -a canmb ppc mpc5xxx canmb
+       @$(MKCONFIG) -a canmb powerpc mpc5xxx canmb
 
 cmi_mpc5xx_config:     unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc5xx cmi
+       @$(MKCONFIG) $(@:_config=) powerpc mpc5xx cmi
 
 PATI_config:           unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc5xx pati mpl
+       @$(MKCONFIG) $(@:_config=) powerpc mpc5xx pati mpl
 
 #########################################################################
 ## MPC5xxx Systems
 #########################################################################
 
 aev_config: unconfig
-       @$(MKCONFIG) -a aev ppc mpc5xxx tqm5200 tqc
+       @$(MKCONFIG) -a aev powerpc mpc5xxx tqm5200 tqc
 
 BC3450_config: unconfig
-       @$(MKCONFIG) -a BC3450 ppc mpc5xxx bc3450
+       @$(MKCONFIG) -a BC3450 powerpc mpc5xxx bc3450
 
 cm5200_config: unconfig
-       @$(MKCONFIG) -a cm5200 ppc mpc5xxx cm5200
+       @$(MKCONFIG) -a cm5200 powerpc mpc5xxx cm5200
 
 cpci5200_config:  unconfig
-       @$(MKCONFIG) -a cpci5200  ppc mpc5xxx cpci5200 esd
+       @$(MKCONFIG) -a cpci5200  powerpc mpc5xxx cpci5200 esd
 
 digsy_mtc_config \
 digsy_mtc_LOWBOOT_config       \
@@ -529,16 +525,16 @@ digsy_mtc_RAMBOOT_config: unconfig
                { echo "TEXT_BASE = 0x00100000" >$(obj)board/digsy_mtc/config.tmp ; \
                  echo "... with RAMBOOT configuration" ; \
                }
-       @$(MKCONFIG) -a digsy_mtc  ppc mpc5xxx digsy_mtc
+       @$(MKCONFIG) -a digsy_mtc  powerpc mpc5xxx digsy_mtc
 
 galaxy5200_LOWBOOT_config \
 galaxy5200_config:     unconfig
        @mkdir -p $(obj)include
        @echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
-       @$(MKCONFIG) -a galaxy5200 ppc mpc5xxx galaxy5200
+       @$(MKCONFIG) -a galaxy5200 powerpc mpc5xxx galaxy5200
 
 hmi1001_config:        unconfig
-       @$(MKCONFIG) hmi1001 ppc mpc5xxx hmi1001
+       @$(MKCONFIG) hmi1001 powerpc mpc5xxx hmi1001
 
 Lite5200_config                                \
 Lite5200_LOWBOOT_config                        \
@@ -567,16 +563,16 @@ icecube_5200_DDR_LOWBOOT08_config:        unconfig
                { echo "#define CONFIG_MPC5200_DDR"     >>$(obj)include/config.h ; \
                  $(XECHO) "... DDR memory revision" ; \
                }
-       @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
+       @$(MKCONFIG) -a IceCube powerpc mpc5xxx icecube
 
 jupiter_config:        unconfig
-       @$(MKCONFIG) jupiter ppc mpc5xxx jupiter
+       @$(MKCONFIG) jupiter powerpc mpc5xxx jupiter
 
 inka4x0_config:        unconfig
-       @$(MKCONFIG) inka4x0 ppc mpc5xxx inka4x0
+       @$(MKCONFIG) inka4x0 powerpc mpc5xxx inka4x0
 
 ipek01_config: unconfig
-       @$(MKCONFIG) -a ipek01 ppc mpc5xxx ipek01
+       @$(MKCONFIG) -a ipek01 powerpc mpc5xxx ipek01
 
 lite5200b_config       \
 lite5200b_PM_config    \
@@ -594,7 +590,7 @@ lite5200b_LOWBOOT_config:   unconfig
                { echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
                  $(XECHO) "... with LOWBOOT configuration" ; \
                }
-       @$(MKCONFIG) -a IceCube  ppc mpc5xxx icecube
+       @$(MKCONFIG) -a IceCube  powerpc mpc5xxx icecube
 
 mcc200_config  \
 mcc200_SDRAM_config    \
@@ -642,19 +638,19 @@ prs200_highboot_DDR_config:       unconfig
        @[ -z "$(findstring prs200,$@)" ] || \
                { echo "#define CONFIG_PRS200"  >>$(obj)include/config.h ;\
                }
-       @$(MKCONFIG) -n $@ -a mcc200 ppc mpc5xxx mcc200
+       @$(MKCONFIG) -n $@ -a mcc200 powerpc mpc5xxx mcc200
 
 mecp5200_config:  unconfig
-       @$(MKCONFIG) mecp5200  ppc mpc5xxx mecp5200 esd
+       @$(MKCONFIG) mecp5200  powerpc mpc5xxx mecp5200 esd
 
 motionpro_config:      unconfig
-       @$(MKCONFIG) motionpro ppc mpc5xxx motionpro
+       @$(MKCONFIG) motionpro powerpc mpc5xxx motionpro
 
 mucmc52_config:                unconfig
-       @$(MKCONFIG) mucmc52 ppc mpc5xxx mucmc52
+       @$(MKCONFIG) mucmc52 powerpc mpc5xxx mucmc52
 
 munices_config:        unconfig
-       @$(MKCONFIG) munices ppc mpc5xxx munices
+       @$(MKCONFIG) munices powerpc mpc5xxx munices
 
 MVBC_P_config: unconfig
        @mkdir -p $(obj)include
@@ -662,15 +658,15 @@ MVBC_P_config: unconfig
        @ >$(obj)include/config.h
        @[ -z "$(findstring MVBC_P,$@)" ] || \
        {       echo "#define CONFIG_MVBC_P"    >>$(obj)include/config.h; }
-       @$(MKCONFIG) -n $@ -a MVBC_P ppc mpc5xxx mvbc_p matrix_vision
+       @$(MKCONFIG) -n $@ -a MVBC_P powerpc mpc5xxx mvbc_p matrix_vision
 
 MVSMR_config: unconfig
        @mkdir -p $(obj)include
        @mkdir -p $(obj)board/matrix_vision/mvsmr
-       @$(MKCONFIG) $(@:_config=) ppc mpc5xxx mvsmr matrix_vision
+       @$(MKCONFIG) $(@:_config=) powerpc mpc5xxx mvsmr matrix_vision
 
 o2dnt_config:  unconfig
-       @$(MKCONFIG) o2dnt ppc mpc5xxx o2dnt
+       @$(MKCONFIG) o2dnt powerpc mpc5xxx o2dnt
 
 pcm030_config \
 pcm030_LOWBOOT_config: unconfig
@@ -680,10 +676,10 @@ pcm030_LOWBOOT_config:    unconfig
                { echo "TEXT_BASE = 0xFF000000" >$(obj)board/phytec/pcm030/config.tmp ; \
                  echo "... with LOWBOOT configuration" ; \
                }
-       @$(MKCONFIG) -a pcm030 ppc mpc5xxx pcm030 phytec
+       @$(MKCONFIG) -a pcm030 powerpc mpc5xxx pcm030 phytec
 
 pf5200_config: unconfig
-       @$(MKCONFIG) pf5200  ppc mpc5xxx pf5200 esd
+       @$(MKCONFIG) pf5200  powerpc mpc5xxx pf5200 esd
 
 PM520_config \
 PM520_DDR_config \
@@ -698,13 +694,13 @@ PM520_ROMBOOT_DDR_config: unconfig
                { echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
                  $(XECHO) "... booting from 8-bit flash" ; \
                }
-       @$(MKCONFIG) -a PM520 ppc mpc5xxx pm520
+       @$(MKCONFIG) -a PM520 powerpc mpc5xxx pm520
 
 smmaco4_config: unconfig
-       @$(MKCONFIG) -a smmaco4 ppc mpc5xxx tqm5200 tqc
+       @$(MKCONFIG) -a smmaco4 powerpc mpc5xxx tqm5200 tqc
 
 spieval_config:        unconfig
-       @$(MKCONFIG) -a spieval ppc mpc5xxx tqm5200 tqc
+       @$(MKCONFIG) -a spieval powerpc mpc5xxx tqm5200 tqc
 
 TB5200_B_config \
 TB5200_config: unconfig
@@ -713,14 +709,14 @@ TB5200_config:    unconfig
                { echo "#define CONFIG_TQM5200_B"       >>$(obj)include/config.h ; \
                  $(XECHO) "... with MPC5200B processor" ; \
                }
-       @$(MKCONFIG) -n $@ -a TB5200 ppc mpc5xxx tqm5200 tqc
+       @$(MKCONFIG) -n $@ -a TB5200 powerpc mpc5xxx tqm5200 tqc
 
 MINI5200_config        \
 EVAL5200_config        \
 TOP5200_config:        unconfig
        @mkdir -p $(obj)include
        @ echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
-       @$(MKCONFIG) -n $@ -a TOP5200 ppc mpc5xxx top5200 emk
+       @$(MKCONFIG) -n $@ -a TOP5200 powerpc mpc5xxx top5200 emk
 
 Total5200_config               \
 Total5200_lowboot_config       \
@@ -740,7 +736,7 @@ Total5200_Rev2_lowboot_config:      unconfig
                { echo "TEXT_BASE = 0xFE000000" >$(obj)board/total5200/config.tmp ; \
                  $(XECHO) "... with lowboot configuration" ; \
                }
-       @$(MKCONFIG) -a Total5200 ppc mpc5xxx total5200
+       @$(MKCONFIG) -a Total5200 powerpc mpc5xxx total5200
 
 cam5200_config \
 cam5200_niosflash_config \
@@ -786,23 +782,23 @@ TQM5200_STK100_config:    unconfig
        @[ -z "$(findstring HIGHBOOT,$@)" ] || \
                { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/tqm5200/config.tmp ; \
                }
-       @$(MKCONFIG) -n $@ -a TQM5200 ppc mpc5xxx tqm5200 tqc
+       @$(MKCONFIG) -n $@ -a TQM5200 powerpc mpc5xxx tqm5200 tqc
 
 uc101_config:          unconfig
-       @$(MKCONFIG) uc101 ppc mpc5xxx uc101
+       @$(MKCONFIG) uc101 powerpc mpc5xxx uc101
 
 v38b_config: unconfig
-       @$(MKCONFIG) -a v38b ppc mpc5xxx v38b
+       @$(MKCONFIG) -a v38b powerpc mpc5xxx v38b
 
 #########################################################################
 ## MPC512x Systems
 #########################################################################
 
 aria_config:   unconfig
-       @$(MKCONFIG) -a aria ppc mpc512x aria davedenx
+       @$(MKCONFIG) -a aria powerpc mpc512x aria davedenx
 
 mecp5123_config:       unconfig
-       @$(MKCONFIG) -a mecp5123 ppc mpc512x mecp5123 esd
+       @$(MKCONFIG) -a mecp5123 powerpc mpc512x mecp5123 esd
 
 mpc5121ads_config \
 mpc5121ads_rev2_config \
@@ -811,7 +807,10 @@ mpc5121ads_rev2_config     \
        @if [ "$(findstring rev2,$@)" ] ; then \
                echo "#define CONFIG_ADS5121_REV2 1" > $(obj)include/config.h; \
        fi
-       @$(MKCONFIG) -a mpc5121ads ppc mpc512x mpc5121ads freescale
+       @$(MKCONFIG) -a mpc5121ads powerpc mpc512x mpc5121ads freescale
+
+pdm360ng_config:       unconfig
+       @$(MKCONFIG) -a pdm360ng powerpc mpc512x pdm360ng
 
 #########################################################################
 ## MPC8xx Systems
@@ -824,10 +823,10 @@ AdderII_config    \
        @mkdir -p $(obj)include
        $(if $(findstring AdderII,$@), \
        @echo "#define CONFIG_MPC852T" > $(obj)include/config.h)
-       @$(MKCONFIG) -a Adder ppc mpc8xx adder
+       @$(MKCONFIG) -a Adder powerpc mpc8xx adder
 
 AdderUSB_config:       unconfig
-       @$(MKCONFIG) -a AdderUSB ppc mpc8xx adder
+       @$(MKCONFIG) -a AdderUSB powerpc mpc8xx adder
 
 ADS860_config    \
 FADS823_config   \
@@ -835,34 +834,34 @@ FADS850SAR_config \
 MPC86xADS_config  \
 MPC885ADS_config  \
 FADS860T_config:       unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc8xx fads
+       @$(MKCONFIG) $(@:_config=) powerpc mpc8xx fads
 
 AMX860_config  :       unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc8xx amx860 westel
+       @$(MKCONFIG) $(@:_config=) powerpc mpc8xx amx860 westel
 
 c2mon_config:          unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc8xx c2mon
+       @$(MKCONFIG) $(@:_config=) powerpc mpc8xx c2mon
 
 CCM_config:            unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc8xx CCM siemens
+       @$(MKCONFIG) $(@:_config=) powerpc mpc8xx CCM siemens
 
 cogent_mpc8xx_config:  unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc8xx cogent
+       @$(MKCONFIG) $(@:_config=) powerpc mpc8xx cogent
 
 ELPT860_config:                unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc8xx elpt860 LEOX
+       @$(MKCONFIG) $(@:_config=) powerpc mpc8xx elpt860 LEOX
 
 EP88x_config:          unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc8xx ep88x
+       @$(MKCONFIG) $(@:_config=) powerpc mpc8xx ep88x
 
 ESTEEM192E_config:     unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc8xx esteem192e
+       @$(MKCONFIG) $(@:_config=) powerpc mpc8xx esteem192e
 
 ETX094_config  :       unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc8xx etx094
+       @$(MKCONFIG) $(@:_config=) powerpc mpc8xx etx094
 
 FLAGADM_config:        unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc8xx flagadm
+       @$(MKCONFIG) $(@:_config=) powerpc mpc8xx flagadm
 
 xtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
 
@@ -873,22 +872,22 @@ GEN860T_config: unconfig
                { echo "#define CONFIG_SC" >>$(obj)include/config.h ; \
                  $(XECHO) "With reduced H/W feature set (SC)..." ; \
                }
-       @$(MKCONFIG) -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
+       @$(MKCONFIG) -a $(call xtract_GEN860T,$@) powerpc mpc8xx gen860t
 
 GENIETV_config:        unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc8xx genietv
+       @$(MKCONFIG) $(@:_config=) powerpc mpc8xx genietv
 
 GTH_config:    unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc8xx gth
+       @$(MKCONFIG) $(@:_config=) powerpc mpc8xx gth
 
 hermes_config  :       unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc8xx hermes
+       @$(MKCONFIG) $(@:_config=) powerpc mpc8xx hermes
 
 HMI10_config   :       unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx tqc
+       @$(MKCONFIG) $(@:_config=) powerpc mpc8xx tqm8xx tqc
 
 IAD210_config: unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc8xx IAD210 siemens
+       @$(MKCONFIG) $(@:_config=) powerpc mpc8xx IAD210 siemens
 
 xtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
 
@@ -899,10 +898,10 @@ ICU862_config: unconfig
                { echo "#define CONFIG_100MHz"  >>$(obj)include/config.h ; \
                  $(XECHO) "... with 100MHz system clock" ; \
                }
-       @$(MKCONFIG) -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
+       @$(MKCONFIG) -a $(call xtract_ICU862,$@) powerpc mpc8xx icu862
 
 IP860_config   :       unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc8xx ip860
+       @$(MKCONFIG) $(@:_config=) powerpc mpc8xx ip860
 
 IVML24_256_config \
 IVML24_128_config \
@@ -917,7 +916,7 @@ IVML24_config:      unconfig
        @[ -z "$(findstring IVML24_256_config,$@)" ] || \
                 { echo "#define CONFIG_IVML24_64M"     >>$(obj)include/config.h ; \
                 }
-       @$(MKCONFIG) -a IVML24 ppc mpc8xx ivm
+       @$(MKCONFIG) -a IVML24 powerpc mpc8xx ivm
 
 IVMS8_256_config \
 IVMS8_128_config \
@@ -932,32 +931,32 @@ IVMS8_config:     unconfig
        @[ -z "$(findstring IVMS8_256_config,$@)" ] || \
                 { echo "#define CONFIG_IVMS8_64M"      >>$(obj)include/config.h ; \
                 }
-       @$(MKCONFIG) -a IVMS8 ppc mpc8xx ivm
+       @$(MKCONFIG) -a IVMS8 powerpc mpc8xx ivm
 
 kmsupx4_config:                unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc8xx km8xx keymile
+       @$(MKCONFIG) $(@:_config=) powerpc mpc8xx km8xx keymile
 
 KUP4K_config   :       unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4k kup
+       @$(MKCONFIG) $(@:_config=) powerpc mpc8xx kup4k kup
 
 KUP4X_config   :       unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4x kup
+       @$(MKCONFIG) $(@:_config=) powerpc mpc8xx kup4x kup
 
 LANTEC_config  :       unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc8xx lantec
+       @$(MKCONFIG) $(@:_config=) powerpc mpc8xx lantec
 
 lwmon_config:          unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc8xx lwmon
+       @$(MKCONFIG) $(@:_config=) powerpc mpc8xx lwmon
 
 MBX_config     \
 MBX860T_config:        unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc8xx mbx8xx
+       @$(MKCONFIG) $(@:_config=) powerpc mpc8xx mbx8xx
 
 mgsuvd_config:         unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc8xx km8xx keymile
+       @$(MKCONFIG) $(@:_config=) powerpc mpc8xx km8xx keymile
 
 MHPC_config:           unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc8xx mhpc eltec
+       @$(MKCONFIG) $(@:_config=) powerpc mpc8xx mhpc eltec
 
 xtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
 
@@ -972,7 +971,7 @@ NETVIA_config:              unconfig
                 { echo "#define CONFIG_NETVIA_VERSION 2" >>$(obj)include/config.h ; \
                  $(XECHO) "... Version 2" ; \
                 }
-       @$(MKCONFIG) -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
+       @$(MKCONFIG) -a $(call xtract_NETVIA,$@) powerpc mpc8xx netvia
 
 xtract_NETPHONE = $(subst _V2,,$(subst _config,,$1))
 
@@ -985,7 +984,7 @@ NETPHONE_config:    unconfig
        @[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \
                 { echo "#define CONFIG_NETPHONE_VERSION 2" >>$(obj)include/config.h ; \
                 }
-       @$(MKCONFIG) -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone
+       @$(MKCONFIG) -a $(call xtract_NETPHONE,$@) powerpc mpc8xx netphone
 
 xtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1))))
 
@@ -1016,7 +1015,7 @@ NETTA_config:             unconfig
        @[ -n "$(findstring SWAPHOOK_,$@)" ] || \
                 { echo "#undef CONFIG_NETTA_SWAPHOOK" >>$(obj)include/config.h ; \
                 }
-       @$(MKCONFIG) -a $(call xtract_NETTA,$@) ppc mpc8xx netta
+       @$(MKCONFIG) -a $(call xtract_NETTA,$@) powerpc mpc8xx netta
 
 xtract_NETTA2 = $(subst _V2,,$(subst _config,,$1))
 
@@ -1029,7 +1028,7 @@ NETTA2_config:            unconfig
        @[ -z "$(findstring NETTA2_V2_config,$@)" ] || \
                 { echo "#define CONFIG_NETTA2_VERSION 2" >>$(obj)include/config.h ; \
                 }
-       @$(MKCONFIG) -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2
+       @$(MKCONFIG) -a $(call xtract_NETTA2,$@) powerpc mpc8xx netta2
 
 NC650_Rev1_config \
 NC650_Rev2_config \
@@ -1045,37 +1044,37 @@ CP850_config:   unconfig
        @[ -z "$(findstring Rev2,$@)" ] || \
                 { echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
                 }
-       @$(MKCONFIG) -a NC650 ppc mpc8xx nc650
+       @$(MKCONFIG) -a NC650 powerpc mpc8xx nc650
 
 NX823_config:          unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc8xx nx823
+       @$(MKCONFIG) $(@:_config=) powerpc mpc8xx nx823
 
 pcu_e_config:          unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc8xx pcu_e siemens
+       @$(MKCONFIG) $(@:_config=) powerpc mpc8xx pcu_e siemens
 
 QS850_config:  unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
+       @$(MKCONFIG) $(@:_config=) powerpc mpc8xx qs850 snmc
 
 QS823_config:  unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
+       @$(MKCONFIG) $(@:_config=) powerpc mpc8xx qs850 snmc
 
 QS860T_config: unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs860t snmc
+       @$(MKCONFIG) $(@:_config=) powerpc mpc8xx qs860t snmc
 
 quantum_config:        unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc8xx quantum
+       @$(MKCONFIG) $(@:_config=) powerpc mpc8xx quantum
 
 R360MPI_config:        unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc8xx r360mpi
+       @$(MKCONFIG) $(@:_config=) powerpc mpc8xx r360mpi
 
 RBC823_config: unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc8xx rbc823
+       @$(MKCONFIG) $(@:_config=) powerpc mpc8xx rbc823
 
 RPXClassic_config:     unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXClassic
+       @$(MKCONFIG) $(@:_config=) powerpc mpc8xx RPXClassic
 
 RPXlite_config:                unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXlite
+       @$(MKCONFIG) $(@:_config=) powerpc mpc8xx RPXlite
 
 RPXlite_DW_64_config           \
 RPXlite_DW_LCD_config          \
@@ -1099,41 +1098,41 @@ RPXlite_DW_config:      unconfig
                { echo "#define  CONFIG_ENV_IS_IN_NVRAM"        >>$(obj)include/config.h ; \
                  $(XECHO) "... with ENV in NVRAM ..."; \
                }
-       @$(MKCONFIG) -a RPXlite_DW ppc mpc8xx RPXlite_dw
+       @$(MKCONFIG) -a RPXlite_DW powerpc mpc8xx RPXlite_dw
 
 rmu_config:    unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc8xx rmu
+       @$(MKCONFIG) $(@:_config=) powerpc mpc8xx rmu
 
 RRvision_config:       unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc8xx RRvision
+       @$(MKCONFIG) $(@:_config=) powerpc mpc8xx RRvision
 
 RRvision_LCD_config:   unconfig
        @mkdir -p $(obj)include
        @echo "#define CONFIG_LCD" >$(obj)include/config.h
        @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
-       @$(MKCONFIG) -a RRvision ppc mpc8xx RRvision
+       @$(MKCONFIG) -a RRvision powerpc mpc8xx RRvision
 
 SM850_config   :       unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx tqc
+       @$(MKCONFIG) $(@:_config=) powerpc mpc8xx tqm8xx tqc
 
 spc1920_config:                unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc8xx spc1920
+       @$(MKCONFIG) $(@:_config=) powerpc mpc8xx spc1920
 
 SPD823TS_config:       unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc8xx spd8xx
+       @$(MKCONFIG) $(@:_config=) powerpc mpc8xx spd8xx
 
 stxxtc_config: unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc8xx stxxtc stx
+       @$(MKCONFIG) $(@:_config=) powerpc mpc8xx stxxtc stx
 
 svm_sc8xx_config:      unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc8xx svm_sc8xx
+       @$(MKCONFIG) $(@:_config=) powerpc mpc8xx svm_sc8xx
 
 SXNI855T_config:       unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc8xx sixnet
+       @$(MKCONFIG) $(@:_config=) powerpc mpc8xx sixnet
 
 # EMK MPC8xx based modules
 TOP860_config:         unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc8xx top860 emk
+       @$(MKCONFIG) $(@:_config=) powerpc mpc8xx top860 emk
 
 # Play some tricks for configuration selection
 # Only 855 and 860 boards may come with FEC
@@ -1164,28 +1163,28 @@ virtlab2_config:        unconfig
                  echo "#define CONFIG_NEC_NL6448BC20"  >>$(obj)include/config.h ; \
                  $(XECHO) "... with LCD display" ; \
                }
-       @$(MKCONFIG) -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx tqc
+       @$(MKCONFIG) -a $(call xtract_8xx,$@) powerpc mpc8xx tqm8xx tqc
 
 TTTech_config: unconfig
        @mkdir -p $(obj)include
        @echo "#define CONFIG_LCD" >$(obj)include/config.h
        @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
-       @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx tqc
+       @$(MKCONFIG) -a TQM823L powerpc mpc8xx tqm8xx tqc
 
 uc100_config   :       unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc8xx uc100
+       @$(MKCONFIG) $(@:_config=) powerpc mpc8xx uc100
 
 v37_config:    unconfig
        @mkdir -p $(obj)include
        @echo "#define CONFIG_LCD" >$(obj)include/config.h
        @echo "#define CONFIG_SHARP_LQ084V1DG21" >>$(obj)include/config.h
-       @$(MKCONFIG) $(@:_config=) ppc mpc8xx v37
+       @$(MKCONFIG) $(@:_config=) powerpc mpc8xx v37
 
 wtk_config:    unconfig
        @mkdir -p $(obj)include
        @echo "#define CONFIG_LCD" >$(obj)include/config.h
        @echo "#define CONFIG_SHARP_LQ065T9DR51U" >>$(obj)include/config.h
-       @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx tqc
+       @$(MKCONFIG) -a TQM823L powerpc mpc8xx tqm8xx tqc
 
 #########################################################################
 ## PPC4xx Systems
@@ -1193,50 +1192,50 @@ wtk_config:     unconfig
 xtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1))))))
 
 acadia_config: unconfig
-       @$(MKCONFIG) $(@:_config=) ppc ppc4xx acadia amcc
+       @$(MKCONFIG) $(@:_config=) powerpc ppc4xx acadia amcc
 
 acadia_nand_config:    unconfig
        @mkdir -p $(obj)include $(obj)board/amcc/acadia
        @mkdir -p $(obj)nand_spl/board/amcc/acadia
        @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
-       @$(MKCONFIG) -n $@ -a acadia ppc ppc4xx acadia amcc
+       @$(MKCONFIG) -n $@ -a acadia powerpc ppc4xx acadia amcc
        @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/acadia/config.tmp
        @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
 
 ADCIOP_config: unconfig
-       @$(MKCONFIG) $(@:_config=) ppc ppc4xx adciop esd
+       @$(MKCONFIG) $(@:_config=) powerpc ppc4xx adciop esd
 
 alpr_config:   unconfig
-       @$(MKCONFIG) $(@:_config=) ppc ppc4xx alpr prodrive
+       @$(MKCONFIG) $(@:_config=) powerpc ppc4xx alpr prodrive
 
 AP1000_config:unconfig
-       @$(MKCONFIG) $(@:_config=) ppc ppc4xx ap1000 amirix
+       @$(MKCONFIG) $(@:_config=) powerpc ppc4xx ap1000 amirix
 
 APC405_config: unconfig
-       @$(MKCONFIG) $(@:_config=) ppc ppc4xx apc405 esd
+       @$(MKCONFIG) $(@:_config=) powerpc ppc4xx apc405 esd
 
 AR405_config:  unconfig
-       @$(MKCONFIG) $(@:_config=) ppc ppc4xx ar405 esd
+       @$(MKCONFIG) $(@:_config=) powerpc ppc4xx ar405 esd
 
 ASH405_config: unconfig
-       @$(MKCONFIG) $(@:_config=) ppc ppc4xx ash405 esd
+       @$(MKCONFIG) $(@:_config=) powerpc ppc4xx ash405 esd
 
 bamboo_config: unconfig
-       @$(MKCONFIG) $(@:_config=) ppc ppc4xx bamboo amcc
+       @$(MKCONFIG) $(@:_config=) powerpc ppc4xx bamboo amcc
 
 bamboo_nand_config:    unconfig
        @mkdir -p $(obj)include $(obj)board/amcc/bamboo
        @mkdir -p $(obj)nand_spl/board/amcc/bamboo
        @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
-       @$(MKCONFIG) -n $@ -a bamboo ppc ppc4xx bamboo amcc
+       @$(MKCONFIG) -n $@ -a bamboo powerpc ppc4xx bamboo amcc
        @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/bamboo/config.tmp
        @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
 
 bubinga_config:        unconfig
-       @$(MKCONFIG) $(@:_config=) ppc ppc4xx bubinga amcc
+       @$(MKCONFIG) $(@:_config=) powerpc ppc4xx bubinga amcc
 
 CANBT_config:  unconfig
-       @$(MKCONFIG) $(@:_config=) ppc ppc4xx canbt esd
+       @$(MKCONFIG) $(@:_config=) powerpc ppc4xx canbt esd
 
 # Arches, Canyonlands & Glacier use different U-Boot images
 arches_config \
@@ -1245,7 +1244,7 @@ glacier_config:   unconfig
        @mkdir -p $(obj)include
        @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
                tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
-       @$(MKCONFIG) -n $@ -a canyonlands ppc ppc4xx canyonlands amcc
+       @$(MKCONFIG) -n $@ -a canyonlands powerpc ppc4xx canyonlands amcc
 
 canyonlands_nand_config \
 glacier_nand_config:   unconfig
@@ -1254,7 +1253,7 @@ glacier_nand_config:      unconfig
        @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
        @echo "#define CONFIG_$$(echo $(subst ,,$(@:_nand_config=)) | \
                tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
-       @$(MKCONFIG) -n $@ -a canyonlands ppc ppc4xx canyonlands amcc
+       @$(MKCONFIG) -n $@ -a canyonlands powerpc ppc4xx canyonlands amcc
        @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/canyonlands/config.tmp
        @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
 
@@ -1272,53 +1271,53 @@ CATcenter_33_config:    unconfig
                { echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h ; \
                  $(XECHO) "SysClk = 33MHz" ; \
                }
-       @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
+       @$(MKCONFIG) -a $(call xtract_4xx,$@) powerpc ppc4xx PPChameleonEVB dave
 
 CMS700_config: unconfig
-       @$(MKCONFIG) $(@:_config=) ppc ppc4xx cms700 esd
+       @$(MKCONFIG) $(@:_config=) powerpc ppc4xx cms700 esd
 
 CPCI2DP_config:        unconfig
-       @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci2dp esd
+       @$(MKCONFIG) $(@:_config=) powerpc ppc4xx cpci2dp esd
 
 CPCI405_config         \
 CPCI4052_config                \
 CPCI405DT_config       \
 CPCI405AB_config:      unconfig
        @mkdir -p $(obj)board/esd/cpci405
-       @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci405 esd
+       @$(MKCONFIG) $(@:_config=) powerpc ppc4xx cpci405 esd
 
 CPCIISER4_config:      unconfig
-       @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpciiser4 esd
+       @$(MKCONFIG) $(@:_config=) powerpc ppc4xx cpciiser4 esd
 
 CRAYL1_config: unconfig
-       @$(MKCONFIG) $(@:_config=) ppc ppc4xx L1 cray
+       @$(MKCONFIG) $(@:_config=) powerpc ppc4xx L1 cray
 
 csb272_config: unconfig
-       @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb272
+       @$(MKCONFIG) $(@:_config=) powerpc ppc4xx csb272
 
 csb472_config: unconfig
-       @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb472
+       @$(MKCONFIG) $(@:_config=) powerpc ppc4xx csb472
 
 DASA_SIM_config: unconfig
-       @$(MKCONFIG) $(@:_config=) ppc ppc4xx dasa_sim esd
+       @$(MKCONFIG) $(@:_config=) powerpc ppc4xx dasa_sim esd
 
 dlvision_config: unconfig
-       @$(MKCONFIG) $(@:_config=) ppc ppc4xx dlvision gdsys
+       @$(MKCONFIG) $(@:_config=) powerpc ppc4xx dlvision gdsys
 
 DP405_config:  unconfig
-       @$(MKCONFIG) $(@:_config=) ppc ppc4xx dp405 esd
+       @$(MKCONFIG) $(@:_config=) powerpc ppc4xx dp405 esd
 
 DU405_config:  unconfig
-       @$(MKCONFIG) $(@:_config=) ppc ppc4xx du405 esd
+       @$(MKCONFIG) $(@:_config=) powerpc ppc4xx du405 esd
 
 DU440_config:  unconfig
-       @$(MKCONFIG) $(@:_config=) ppc ppc4xx du440 esd
+       @$(MKCONFIG) $(@:_config=) powerpc ppc4xx du440 esd
 
 ebony_config:  unconfig
-       @$(MKCONFIG) $(@:_config=) ppc ppc4xx ebony amcc
+       @$(MKCONFIG) $(@:_config=) powerpc ppc4xx ebony amcc
 
 ERIC_config:   unconfig
-       @$(MKCONFIG) $(@:_config=) ppc ppc4xx eric
+       @$(MKCONFIG) $(@:_config=) powerpc ppc4xx eric
 
 fx12mm_flash_config: unconfig
        @mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic
@@ -1327,7 +1326,7 @@ fx12mm_flash_config: unconfig
                > $(obj)board/avnet/fx12mm/config.tmp
        @echo "TEXT_BASE := 0xFFCB0000" \
                >> $(obj)board/avnet/fx12mm/config.tmp
-       @$(MKCONFIG) fx12mm ppc ppc4xx fx12mm avnet
+       @$(MKCONFIG) fx12mm powerpc ppc4xx fx12mm avnet
 
 fx12mm_config: unconfig
        @mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic
@@ -1336,27 +1335,27 @@ fx12mm_config: unconfig
                > $(obj)board/avnet/fx12mm/config.tmp
        @echo "TEXT_BASE := 0x03000000" \
                >> $(obj)board/avnet/fx12mm/config.tmp
-       @$(MKCONFIG) fx12mm ppc ppc4xx fx12mm avnet
+       @$(MKCONFIG) fx12mm powerpc ppc4xx fx12mm avnet
 
 G2000_config:  unconfig
-       @$(MKCONFIG) $(@:_config=) ppc ppc4xx g2000
+       @$(MKCONFIG) $(@:_config=) powerpc ppc4xx g2000
 
 gdppc440etx_config:    unconfig
-       @$(MKCONFIG) $(@:_config=) ppc ppc4xx gdppc440etx gdsys
+       @$(MKCONFIG) $(@:_config=) powerpc ppc4xx gdppc440etx gdsys
 
 hcu4_config:   unconfig
        @mkdir -p $(obj)board/netstal/common
-       @$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu4 netstal
+       @$(MKCONFIG) $(@:_config=) powerpc ppc4xx hcu4 netstal
 
 hcu5_config:   unconfig
        @mkdir -p $(obj)board/netstal/common
-       @$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu5 netstal
+       @$(MKCONFIG) $(@:_config=) powerpc ppc4xx hcu5 netstal
 
 HH405_config:  unconfig
-       @$(MKCONFIG) $(@:_config=) ppc ppc4xx hh405 esd
+       @$(MKCONFIG) $(@:_config=) powerpc ppc4xx hh405 esd
 
 HUB405_config: unconfig
-       @$(MKCONFIG) $(@:_config=) ppc ppc4xx hub405 esd
+       @$(MKCONFIG) $(@:_config=) powerpc ppc4xx hub405 esd
 
 # Compact-Center(codename intip) & DevCon-Center use different U-Boot images
 intip_config \
@@ -1364,61 +1363,61 @@ devconcenter_config:    unconfig
        @mkdir -p $(obj)include
        @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
                tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
-       @$(MKCONFIG) -n $@ -a intip ppc ppc4xx intip gdsys
+       @$(MKCONFIG) -n $@ -a intip powerpc ppc4xx intip gdsys
 
 JSE_config:    unconfig
-       @$(MKCONFIG) $(@:_config=) ppc ppc4xx jse
+       @$(MKCONFIG) $(@:_config=) powerpc ppc4xx jse
 
 KAREF_config: unconfig
-       @$(MKCONFIG) $(@:_config=) ppc ppc4xx karef sandburst
+       @$(MKCONFIG) $(@:_config=) powerpc ppc4xx karef sandburst
 
 katmai_config: unconfig
-       @$(MKCONFIG) $(@:_config=) ppc ppc4xx katmai amcc
+       @$(MKCONFIG) $(@:_config=) powerpc ppc4xx katmai amcc
 
 # Kilauea & Haleakala images are identical (recognized via PVR)
 kilauea_config \
 haleakala_config: unconfig
-       @$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
+       @$(MKCONFIG) -n $@ -a kilauea powerpc ppc4xx kilauea amcc
 
 kilauea_nand_config \
 haleakala_nand_config: unconfig
        @mkdir -p $(obj)include $(obj)board/amcc/kilauea
        @mkdir -p $(obj)nand_spl/board/amcc/kilauea
        @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
-       @$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
+       @$(MKCONFIG) -n $@ -a kilauea powerpc ppc4xx kilauea amcc
        @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/kilauea/config.tmp
        @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
 
 korat_config:  unconfig
-       @$(MKCONFIG) $(@:_config=) ppc ppc4xx korat
+       @$(MKCONFIG) $(@:_config=) powerpc ppc4xx korat
 
 luan_config:   unconfig
-       @$(MKCONFIG) $(@:_config=) ppc ppc4xx luan amcc
+       @$(MKCONFIG) $(@:_config=) powerpc ppc4xx luan amcc
 
 lwmon5_config: unconfig
-       @$(MKCONFIG) $(@:_config=) ppc ppc4xx lwmon5
+       @$(MKCONFIG) $(@:_config=) powerpc ppc4xx lwmon5
 
 makalu_config: unconfig
-       @$(MKCONFIG) $(@:_config=) ppc ppc4xx makalu amcc
+       @$(MKCONFIG) $(@:_config=) powerpc ppc4xx makalu amcc
 
 mcu25_config:  unconfig
        @mkdir -p $(obj)board/netstal/common
-       @$(MKCONFIG) $(@:_config=) ppc ppc4xx mcu25 netstal
+       @$(MKCONFIG) $(@:_config=) powerpc ppc4xx mcu25 netstal
 
 METROBOX_config: unconfig
-       @$(MKCONFIG) $(@:_config=) ppc ppc4xx metrobox sandburst
+       @$(MKCONFIG) $(@:_config=) powerpc ppc4xx metrobox sandburst
 
 MIP405_config: unconfig
-       @$(MKCONFIG) $(@:_config=) ppc ppc4xx mip405 mpl
+       @$(MKCONFIG) $(@:_config=) powerpc ppc4xx mip405 mpl
 
 MIP405T_config:        unconfig
        @mkdir -p $(obj)include
        @echo "#define CONFIG_MIP405T" >$(obj)include/config.h
        @$(XECHO) "Enable subset config for MIP405T"
-       @$(MKCONFIG) -a MIP405 ppc ppc4xx mip405 mpl
+       @$(MKCONFIG) -a MIP405 powerpc ppc4xx mip405 mpl
 
 ML2_config:    unconfig
-       @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml2
+       @$(MKCONFIG) $(@:_config=) powerpc ppc4xx ml2
 
 ml507_flash_config: unconfig
        @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
@@ -1427,7 +1426,7 @@ ml507_flash_config: unconfig
                > $(obj)board/xilinx/ml507/config.tmp
        @echo "TEXT_BASE := 0xFE360000" \
                >> $(obj)board/xilinx/ml507/config.tmp
-       @$(MKCONFIG) ml507 ppc ppc4xx ml507 xilinx
+       @$(MKCONFIG) ml507 powerpc ppc4xx ml507 xilinx
 
 ml507_config: unconfig
        @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
@@ -1436,41 +1435,41 @@ ml507_config: unconfig
                > $(obj)board/xilinx/ml507/config.tmp
        @echo "TEXT_BASE := 0x04000000"  \
                >> $(obj)board/xilinx/ml507/config.tmp
-       @$(MKCONFIG) ml507 ppc ppc4xx ml507 xilinx
+       @$(MKCONFIG) ml507 powerpc ppc4xx ml507 xilinx
 
 neo_config:    unconfig
-       @$(MKCONFIG) $(@:_config=) ppc ppc4xx neo gdsys
+       @$(MKCONFIG) $(@:_config=) powerpc ppc4xx neo gdsys
 
 ocotea_config: unconfig
-       @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocotea amcc
+       @$(MKCONFIG) $(@:_config=) powerpc ppc4xx ocotea amcc
 
 OCRTC_config           \
 ORSG_config:   unconfig
-       @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocrtc esd
+       @$(MKCONFIG) $(@:_config=) powerpc ppc4xx ocrtc esd
 
 p3p440_config: unconfig
-       @$(MKCONFIG) $(@:_config=) ppc ppc4xx p3p440 prodrive
+       @$(MKCONFIG) $(@:_config=) powerpc ppc4xx p3p440 prodrive
 
 PCI405_config: unconfig
-       @$(MKCONFIG) $(@:_config=) ppc ppc4xx pci405 esd
+       @$(MKCONFIG) $(@:_config=) powerpc ppc4xx pci405 esd
 
 pcs440ep_config:       unconfig
-       @$(MKCONFIG) $(@:_config=) ppc ppc4xx pcs440ep
+       @$(MKCONFIG) $(@:_config=) powerpc ppc4xx pcs440ep
 
 PIP405_config: unconfig
-       @$(MKCONFIG) $(@:_config=) ppc ppc4xx pip405 mpl
+       @$(MKCONFIG) $(@:_config=) powerpc ppc4xx pip405 mpl
 
 PLU405_config: unconfig
-       @$(MKCONFIG) $(@:_config=) ppc ppc4xx plu405 esd
+       @$(MKCONFIG) $(@:_config=) powerpc ppc4xx plu405 esd
 
 PMC405_config: unconfig
-       @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc405 esd
+       @$(MKCONFIG) $(@:_config=) powerpc ppc4xx pmc405 esd
 
 PMC405DE_config:       unconfig
-       @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc405de esd
+       @$(MKCONFIG) $(@:_config=) powerpc ppc4xx pmc405de esd
 
 PMC440_config: unconfig
-       @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc440 esd
+       @$(MKCONFIG) $(@:_config=) powerpc ppc4xx pmc440 esd
 
 PPChameleonEVB_config          \
 PPChameleonEVB_BA_25_config    \
@@ -1500,26 +1499,26 @@ PPChameleonEVB_HI_33_config:    unconfig
                { echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h ; \
                  $(XECHO) "SysClk = 33MHz" ; \
                }
-       @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
+       @$(MKCONFIG) -a $(call xtract_4xx,$@) powerpc ppc4xx PPChameleonEVB dave
 
 quad100hd_config:      unconfig
-       @$(MKCONFIG) $(@:_config=) ppc ppc4xx quad100hd
+       @$(MKCONFIG) $(@:_config=) powerpc ppc4xx quad100hd
 
 redwood_config: unconfig
-       @$(MKCONFIG) $(@:_config=) ppc ppc4xx redwood amcc
+       @$(MKCONFIG) $(@:_config=) powerpc ppc4xx redwood amcc
 
 sbc405_config: unconfig
-       @$(MKCONFIG) $(@:_config=) ppc ppc4xx sbc405
+       @$(MKCONFIG) $(@:_config=) powerpc ppc4xx sbc405
 
 sc3_config:unconfig
-       @$(MKCONFIG) $(@:_config=) ppc ppc4xx sc3
+       @$(MKCONFIG) $(@:_config=) powerpc ppc4xx sc3
 
 sequoia_config \
 rainier_config: unconfig
        @mkdir -p $(obj)include
        @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
                tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
-       @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
+       @$(MKCONFIG) -n $@ -a sequoia powerpc ppc4xx sequoia amcc
 
 sequoia_nand_config \
 rainier_nand_config: unconfig
@@ -1528,7 +1527,7 @@ rainier_nand_config: unconfig
        @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
        @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
                tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
-       @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
+       @$(MKCONFIG) -n $@ -a sequoia powerpc ppc4xx sequoia amcc
        @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
        @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
 
@@ -1538,16 +1537,16 @@ rainier_ramboot_config: unconfig
        @echo "#define CONFIG_SYS_RAMBOOT" > $(obj)include/config.h
        @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
                tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
-       @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
+       @$(MKCONFIG) -n $@ -a sequoia powerpc ppc4xx sequoia amcc
        @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
        @echo "LDSCRIPT = board/amcc/sequoia/u-boot-ram.lds" >> \
                $(obj)board/amcc/sequoia/config.tmp
 
 taihu_config:  unconfig
-       @$(MKCONFIG) $(@:_config=) ppc ppc4xx taihu amcc
+       @$(MKCONFIG) $(@:_config=) powerpc ppc4xx taihu amcc
 
 taishan_config:        unconfig
-       @$(MKCONFIG) $(@:_config=) ppc ppc4xx taishan amcc
+       @$(MKCONFIG) $(@:_config=) powerpc ppc4xx taishan amcc
 
 v5fx30teval_config: unconfig
        @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
@@ -1556,7 +1555,7 @@ v5fx30teval_config: unconfig
                > $(obj)board/avnet/v5fx30teval/config.tmp
        @echo "TEXT_BASE := 0x03000000" \
                >> $(obj)board/avnet/v5fx30teval/config.tmp
-       @$(MKCONFIG) v5fx30teval ppc ppc4xx v5fx30teval avnet
+       @$(MKCONFIG) v5fx30teval powerpc ppc4xx v5fx30teval avnet
 
 v5fx30teval_flash_config: unconfig
        @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
@@ -1565,25 +1564,25 @@ v5fx30teval_flash_config: unconfig
                > $(obj)board/avnet/v5fx30teval/config.tmp
        @echo "TEXT_BASE := 0xFF1C0000" \
                >> $(obj)board/avnet/v5fx30teval/config.tmp
-       @$(MKCONFIG) v5fx30teval ppc ppc4xx v5fx30teval avnet
+       @$(MKCONFIG) v5fx30teval powerpc ppc4xx v5fx30teval avnet
 
 VOH405_config: unconfig
-       @$(MKCONFIG) $(@:_config=) ppc ppc4xx voh405 esd
+       @$(MKCONFIG) $(@:_config=) powerpc ppc4xx voh405 esd
 
 VOM405_config: unconfig
-       @$(MKCONFIG) $(@:_config=) ppc ppc4xx vom405 esd
+       @$(MKCONFIG) $(@:_config=) powerpc ppc4xx vom405 esd
 
 W7OLMC_config  \
 W7OLMG_config: unconfig
-       @$(MKCONFIG) $(@:_config=) ppc ppc4xx w7o
+       @$(MKCONFIG) $(@:_config=) powerpc ppc4xx w7o
 
 # Walnut & Sycamore images are identical (recognized via PVR)
 walnut_config \
 sycamore_config: unconfig
-       @$(MKCONFIG) -n $@ -a walnut ppc ppc4xx walnut amcc
+       @$(MKCONFIG) -n $@ -a walnut powerpc ppc4xx walnut amcc
 
 WUH405_config: unconfig
-       @$(MKCONFIG) $(@:_config=) ppc ppc4xx wuh405 esd
+       @$(MKCONFIG) $(@:_config=) powerpc ppc4xx wuh405 esd
 
 xilinx-ppc405-generic_flash_config: unconfig
        @mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic
@@ -1591,7 +1590,7 @@ xilinx-ppc405-generic_flash_config: unconfig
                > $(obj)board/xilinx/ppc405-generic/config.tmp
        @echo "TEXT_BASE := 0xFE360000" \
                >> $(obj)board/xilinx/ppc405-generic/config.tmp
-       @$(MKCONFIG) xilinx-ppc405-generic ppc ppc4xx ppc405-generic xilinx
+       @$(MKCONFIG) xilinx-ppc405-generic powerpc ppc4xx ppc405-generic xilinx
 
 xilinx-ppc405-generic_config: unconfig
        @mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic
@@ -1599,7 +1598,7 @@ xilinx-ppc405-generic_config: unconfig
                > $(obj)board/xilinx/ppc405-generic/config.tmp
        @echo "TEXT_BASE := 0x04000000" \
                >> $(obj)board/xilinx/ppc405-generic/config.tmp
-       @$(MKCONFIG) xilinx-ppc405-generic ppc ppc4xx ppc405-generic xilinx
+       @$(MKCONFIG) xilinx-ppc405-generic powerpc ppc4xx ppc405-generic xilinx
 
 xilinx-ppc440-generic_flash_config: unconfig
        @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
@@ -1607,7 +1606,7 @@ xilinx-ppc440-generic_flash_config: unconfig
                > $(obj)board/xilinx/ppc440-generic/config.tmp
        @echo "TEXT_BASE := 0xFE360000" \
                >> $(obj)board/xilinx/ppc440-generic/config.tmp
-       @$(MKCONFIG) xilinx-ppc440-generic ppc ppc4xx ppc440-generic xilinx
+       @$(MKCONFIG) xilinx-ppc440-generic powerpc ppc4xx ppc440-generic xilinx
 
 xilinx-ppc440-generic_config: unconfig
        @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
@@ -1615,23 +1614,23 @@ xilinx-ppc440-generic_config: unconfig
                > $(obj)board/xilinx/ppc440-generic/config.tmp
        @echo "TEXT_BASE := 0x04000000" \
                >> $(obj)board/xilinx/ppc440-generic/config.tmp
-       @$(MKCONFIG) xilinx-ppc440-generic ppc ppc4xx ppc440-generic xilinx
+       @$(MKCONFIG) xilinx-ppc440-generic powerpc ppc4xx ppc440-generic xilinx
 
 XPEDITE1000_config:    unconfig
-       @$(MKCONFIG) $(@:_config=) ppc ppc4xx xpedite1000 xes
+       @$(MKCONFIG) $(@:_config=) powerpc ppc4xx xpedite1000 xes
 
 yosemite_config \
 yellowstone_config: unconfig
        @mkdir -p $(obj)include
        @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
                tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
-       @$(MKCONFIG) -n $@ -a yosemite ppc ppc4xx yosemite amcc
+       @$(MKCONFIG) -n $@ -a yosemite powerpc ppc4xx yosemite amcc
 
 yucca_config:  unconfig
-       @$(MKCONFIG) $(@:_config=) ppc ppc4xx yucca amcc
+       @$(MKCONFIG) $(@:_config=) powerpc ppc4xx yucca amcc
 
 zeus_config:   unconfig
-       @$(MKCONFIG) $(@:_config=) ppc ppc4xx zeus
+       @$(MKCONFIG) $(@:_config=) powerpc ppc4xx zeus
 
 #########################################################################
 ## MPC8220 Systems
@@ -1639,10 +1638,10 @@ zeus_config:    unconfig
 
 Alaska8220_config      \
 Yukon8220_config:      unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc8220 alaska
+       @$(MKCONFIG) $(@:_config=) powerpc mpc8220 alaska
 
 sorcery_config:                unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc8220 sorcery
+       @$(MKCONFIG) $(@:_config=) powerpc mpc8220 sorcery
 
 #########################################################################
 ## MPC824x Systems
@@ -1650,17 +1649,17 @@ sorcery_config:         unconfig
 xtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))))
 
 A3000_config: unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc824x a3000
+       @$(MKCONFIG) $(@:_config=) powerpc mpc824x a3000
 
 barco_config: unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc824x barco
+       @$(MKCONFIG) $(@:_config=) powerpc mpc824x barco
 
 BMW_config: unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc824x bmw
+       @$(MKCONFIG) $(@:_config=) powerpc mpc824x bmw
 
 CPC45_config   \
 CPC45_ROMBOOT_config:  unconfig
-       @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc824x cpc45
+       @$(MKCONFIG) $(call xtract_82xx,$@) powerpc mpc824x cpc45
        @cd $(obj)include ;                             \
        if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
                echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
@@ -1672,19 +1671,19 @@ CPC45_ROMBOOT_config:   unconfig
        echo "export CONFIG_BOOT_ROM" >> config.mk;
 
 CU824_config: unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc824x cu824
+       @$(MKCONFIG) $(@:_config=) powerpc mpc824x cu824
 
 debris_config: unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc824x debris etin
+       @$(MKCONFIG) $(@:_config=) powerpc mpc824x debris etin
 
 eXalion_config: unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc824x eXalion
+       @$(MKCONFIG) $(@:_config=) powerpc mpc824x eXalion
 
 HIDDEN_DRAGON_config: unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc824x hidden_dragon
+       @$(MKCONFIG) $(@:_config=) powerpc mpc824x hidden_dragon
 
 kvme080_config: unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc824x kvme080 etin
+       @$(MKCONFIG) $(@:_config=) powerpc mpc824x kvme080 etin
 
 # HDLAN is broken ATM. Should be fixed as soon as hardware is available and as
 # time permits.
@@ -1696,48 +1695,48 @@ linkstation_HGLAN_config: unconfig
                *HGLAN*) echo "#define CONFIG_HGLAN 1" >$(obj)include/config.h; ;; \
                *HDLAN*) echo "#define CONFIG_HLAN 1" >$(obj)include/config.h; ;; \
        esac
-       @$(MKCONFIG) -n $@ -a linkstation ppc mpc824x linkstation
+       @$(MKCONFIG) -n $@ -a linkstation powerpc mpc824x linkstation
 
 MOUSSE_config: unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc824x mousse
+       @$(MKCONFIG) $(@:_config=) powerpc mpc824x mousse
 
 MUSENKI_config: unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc824x musenki
+       @$(MKCONFIG) $(@:_config=) powerpc mpc824x musenki
 
 MVBLUE_config: unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc824x mvblue
+       @$(MKCONFIG) $(@:_config=) powerpc mpc824x mvblue
 
 OXC_config: unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc824x oxc
+       @$(MKCONFIG) $(@:_config=) powerpc mpc824x oxc
 
 PN62_config: unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc824x pn62
+       @$(MKCONFIG) $(@:_config=) powerpc mpc824x pn62
 
 Sandpoint8240_config: unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
+       @$(MKCONFIG) $(@:_config=) powerpc mpc824x sandpoint
 
 Sandpoint8245_config: unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
+       @$(MKCONFIG) $(@:_config=) powerpc mpc824x sandpoint
 
 sbc8240_config: unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc824x sbc8240
+       @$(MKCONFIG) $(@:_config=) powerpc mpc824x sbc8240
 
 utx8245_config: unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc824x utx8245
+       @$(MKCONFIG) $(@:_config=) powerpc mpc824x utx8245
 
 #########################################################################
 ## MPC8260 Systems
 #########################################################################
 
 atc_config:    unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc8260 atc
+       @$(MKCONFIG) $(@:_config=) powerpc mpc8260 atc
 
 cogent_mpc8260_config: unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc8260 cogent
+       @$(MKCONFIG) $(@:_config=) powerpc mpc8260 cogent
 
 CPU86_config   \
 CPU86_ROMBOOT_config: unconfig
-       @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu86
+       @$(MKCONFIG) $(call xtract_82xx,$@) powerpc mpc8260 cpu86
        @cd $(obj)include ;                             \
        if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
                echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
@@ -1750,7 +1749,7 @@ CPU86_ROMBOOT_config: unconfig
 
 CPU87_config   \
 CPU87_ROMBOOT_config: unconfig
-       @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu87
+       @$(MKCONFIG) $(call xtract_82xx,$@) powerpc mpc8260 cpu87
        @cd $(obj)include ;                             \
        if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
                echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
@@ -1763,25 +1762,25 @@ CPU87_ROMBOOT_config: unconfig
 
 ep8248_config  \
 ep8248E_config :       unconfig
-       @$(MKCONFIG) ep8248 ppc mpc8260 ep8248
+       @$(MKCONFIG) ep8248 powerpc mpc8260 ep8248
 
 ep8260_config: unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep8260
+       @$(MKCONFIG) $(@:_config=) powerpc mpc8260 ep8260
 
 ep82xxm_config:        unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep82xxm
+       @$(MKCONFIG) $(@:_config=) powerpc mpc8260 ep82xxm
 
 gw8260_config: unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc8260 gw8260
+       @$(MKCONFIG) $(@:_config=) powerpc mpc8260 gw8260
 
 hymod_config:  unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc8260 hymod
+       @$(MKCONFIG) $(@:_config=) powerpc mpc8260 hymod
 
 IDS8247_config:        unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc8260 ids8247
+       @$(MKCONFIG) $(@:_config=) powerpc mpc8260 ids8247
 
 IPHASE4539_config:     unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc8260 iphase4539
+       @$(MKCONFIG) $(@:_config=) powerpc mpc8260 iphase4539
 
 ISPAN_config           \
 ISPAN_REVB_config:     unconfig
@@ -1789,10 +1788,10 @@ ISPAN_REVB_config:      unconfig
        @if [ "$(findstring _REVB_,$@)" ] ; then \
                echo "#define CONFIG_SYS_REV_B" > $(obj)include/config.h ; \
        fi
-       @$(MKCONFIG) -a ISPAN ppc mpc8260 ispan
+       @$(MKCONFIG) -a ISPAN powerpc mpc8260 ispan
 
 mgcoge_config  :       unconfig
-       @$(MKCONFIG) mgcoge ppc mpc8260 mgcoge keymile
+       @$(MKCONFIG) mgcoge powerpc mpc8260 mgcoge keymile
 
 MPC8260ADS_config      \
 MPC8260ADS_lowboot_config      \
@@ -1824,10 +1823,10 @@ PQ2FADS-ZU_66MHz_lowboot_config \
                { echo "TEXT_BASE = 0xFF800000" >$(obj)board/freescale/mpc8260ads/config.tmp ; \
                  $(XECHO) "... with lowboot configuration" ; \
                }
-       @$(MKCONFIG) -a MPC8260ADS ppc mpc8260 mpc8260ads freescale
+       @$(MKCONFIG) -a MPC8260ADS powerpc mpc8260 mpc8260ads freescale
 
 MPC8266ADS_config:     unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc8260 mpc8266ads freescale
+       @$(MKCONFIG) $(@:_config=) powerpc mpc8260 mpc8266ads freescale
 
 muas3001_dev_config \
 muas3001_config        :       unconfig
@@ -1836,7 +1835,7 @@ muas3001_config   :       unconfig
        @if [ "$(findstring dev,$@)" ] ; then \
                echo "#define CONFIG_MUAS_DEV_BOARD" > $(obj)include/config.h ; \
        fi
-       @$(MKCONFIG) -a muas3001 ppc mpc8260 muas3001
+       @$(MKCONFIG) -a muas3001 powerpc mpc8260 muas3001
 
 # PM825/PM826 default configuration:  small (= 8 MB) Flash / boot from 64-bit flash
 PM825_config   \
@@ -1872,7 +1871,7 @@ PM826_ROMBOOT_BIGFLASH_config:    unconfig
                        echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \
                fi; \
        fi
-       @$(MKCONFIG) -a PM826 ppc mpc8260 pm826
+       @$(MKCONFIG) -a PM826 powerpc mpc8260 pm826
 
 PM828_config   \
 PM828_PCI_config       \
@@ -1889,32 +1888,32 @@ PM828_ROMBOOT_PCI_config:       unconfig
                echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
                echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
        fi
-       @$(MKCONFIG) -a PM828 ppc mpc8260 pm828
+       @$(MKCONFIG) -a PM828 powerpc mpc8260 pm828
 
 ppmc8260_config:       unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc8260 ppmc8260
+       @$(MKCONFIG) $(@:_config=) powerpc mpc8260 ppmc8260
 
 Rattler8248_config     \
 Rattler_config:                unconfig
        @mkdir -p $(obj)include
        $(if $(findstring 8248,$@), \
        @echo "#define CONFIG_MPC8248" > $(obj)include/config.h)
-       @$(MKCONFIG) -a Rattler ppc mpc8260 rattler
+       @$(MKCONFIG) -a Rattler powerpc mpc8260 rattler
 
 RPXsuper_config:       unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc8260 rpxsuper
+       @$(MKCONFIG) $(@:_config=) powerpc mpc8260 rpxsuper
 
 rsdproto_config:       unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc8260 rsdproto
+       @$(MKCONFIG) $(@:_config=) powerpc mpc8260 rsdproto
 
 sacsng_config: unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc8260 sacsng
+       @$(MKCONFIG) $(@:_config=) powerpc mpc8260 sacsng
 
 sbc8260_config:        unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc8260 sbc8260
+       @$(MKCONFIG) $(@:_config=) powerpc mpc8260 sbc8260
 
 SCM_config:            unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc8260 SCM siemens
+       @$(MKCONFIG) $(@:_config=) powerpc mpc8260 SCM siemens
 
 TQM8255_AA_config \
 TQM8260_AA_config \
@@ -1960,19 +1959,19 @@ TQM8265_AA_config:  unconfig
                echo "#undef CONFIG_BUSMODE_60x"  >>$(obj)include/config.h ; \
                $(XECHO) "... without 60x Bus Mode" ; \
        fi
-       @$(MKCONFIG) -a TQM8260 ppc mpc8260 tqm8260 tqc
+       @$(MKCONFIG) -a TQM8260 powerpc mpc8260 tqm8260 tqc
 
 TQM8272_config: unconfig
-       @$(MKCONFIG) TQM8272 ppc mpc8260 tqm8272 tqc
+       @$(MKCONFIG) TQM8272 powerpc mpc8260 tqm8272 tqc
 
 VoVPN-GW_66MHz_config  \
 VoVPN-GW_100MHz_config:                unconfig
        @mkdir -p $(obj)include
        @echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h
-       @$(MKCONFIG) -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk
+       @$(MKCONFIG) -a VoVPN-GW powerpc mpc8260 vovpn-gw funkwerk
 
 ZPC1900_config: unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc8260 zpc1900
+       @$(MKCONFIG) $(@:_config=) powerpc mpc8260 zpc1900
 
 #########################################################################
 ## Coldfire
@@ -2229,7 +2228,7 @@ TASREG_config :           unconfig
 #########################################################################
 
 kmeter1_config: unconfig
-       @$(MKCONFIG) kmeter1 ppc mpc83xx kmeter1 keymile
+       @$(MKCONFIG) kmeter1 powerpc mpc83xx kmeter1 keymile
 
 MPC8313ERDB_33_config \
 MPC8313ERDB_66_config \
@@ -2250,17 +2249,17 @@ MPC8313ERDB_NAND_66_config: unconfig
                echo "TEXT_BASE = 0x00100000" > $(obj)board/freescale/mpc8313erdb/config.tmp ; \
                echo "#define CONFIG_NAND_U_BOOT" >>$(obj)include/config.h ; \
        fi ;
-       @$(MKCONFIG) -a MPC8313ERDB ppc mpc83xx mpc8313erdb freescale
+       @$(MKCONFIG) -a MPC8313ERDB powerpc mpc83xx mpc8313erdb freescale
        @if [ "$(findstring _NAND_,$@)" ] ; then \
                echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk ; \
        fi ;
 
 MPC8315ERDB_NAND_config \
 MPC8315ERDB_config: unconfig
-       @$(MKCONFIG) -t $(@:_config=) MPC8315ERDB ppc mpc83xx mpc8315erdb freescale
+       @$(MKCONFIG) -t $(@:_config=) MPC8315ERDB powerpc mpc83xx mpc8315erdb freescale
 
 MPC8323ERDB_config:    unconfig
-       @$(MKCONFIG) -a MPC8323ERDB ppc mpc83xx mpc8323erdb freescale
+       @$(MKCONFIG) -a MPC8323ERDB powerpc mpc83xx mpc8323erdb freescale
 
 MPC832XEMDS_config \
 MPC832XEMDS_HOST_33_config \
@@ -2292,10 +2291,10 @@ MPC832XEMDS_ATM_config: unconfig
                echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
                echo "#define CONFIG_PQ_MDS_PIB_ATM     1" >>$(obj)include/config.h ; \
        fi ;
-       @$(MKCONFIG) -a MPC832XEMDS ppc mpc83xx mpc832xemds freescale
+       @$(MKCONFIG) -a MPC832XEMDS powerpc mpc83xx mpc832xemds freescale
 
 MPC8349EMDS_config:    unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc83xx mpc8349emds freescale
+       @$(MKCONFIG) $(@:_config=) powerpc mpc83xx mpc8349emds freescale
 
 MPC8349ITX_config \
 MPC8349ITX_LOWBOOT_config \
@@ -2309,7 +2308,7 @@ MPC8349ITXGP_config:      unconfig
        @if [ "$(findstring LOWBOOT,$@)" ] ; then \
                echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
        fi
-       @$(MKCONFIG) -a -n $(@:_config=) MPC8349ITX ppc mpc83xx mpc8349itx freescale
+       @$(MKCONFIG) -a -n $(@:_config=) MPC8349ITX powerpc mpc83xx mpc8349itx freescale
 
 MPC8360EMDS_config \
 MPC8360EMDS_HOST_33_config \
@@ -2341,7 +2340,7 @@ MPC8360EMDS_ATM_config: unconfig
                echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
                echo "#define CONFIG_PQ_MDS_PIB_ATM     1" >>$(obj)include/config.h ; \
        fi ;
-       @$(MKCONFIG) -a MPC8360EMDS ppc mpc83xx mpc8360emds freescale
+       @$(MKCONFIG) -a MPC8360EMDS powerpc mpc83xx mpc8360emds freescale
 
 MPC8360ERDK_33_config \
 MPC8360ERDK_66_config \
@@ -2351,7 +2350,7 @@ MPC8360ERDK_config:       unconfig
                $(XECHO) -n "... CLKIN 33MHz " ; \
                echo "#define CONFIG_CLKIN_33MHZ" >>$(obj)include/config.h ;\
        fi ;
-       @$(MKCONFIG) -a MPC8360ERDK ppc mpc83xx mpc8360erdk freescale
+       @$(MKCONFIG) -a MPC8360ERDK powerpc mpc83xx mpc8360erdk freescale
 
 MPC837XEMDS_config \
 MPC837XEMDS_HOST_config:       unconfig
@@ -2360,18 +2359,18 @@ MPC837XEMDS_HOST_config:        unconfig
                $(XECHO) -n "... PCI HOST " ; \
                echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
        fi ;
-       @$(MKCONFIG) -a MPC837XEMDS ppc mpc83xx mpc837xemds freescale
+       @$(MKCONFIG) -a MPC837XEMDS powerpc mpc83xx mpc837xemds freescale
 
 MPC837XERDB_config:    unconfig
-       @$(MKCONFIG) -a MPC837XERDB ppc mpc83xx mpc837xerdb freescale
+       @$(MKCONFIG) -a MPC837XERDB powerpc mpc83xx mpc837xerdb freescale
 
 MVBLM7_config: unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc83xx mvblm7 matrix_vision
+       @$(MKCONFIG) $(@:_config=) powerpc mpc83xx mvblm7 matrix_vision
 
 sbc8349_config \
 sbc8349_PCI_33_config \
 sbc8349_PCI_66_config: unconfig
-       @$(MKCONFIG) -t $(@:_config=) sbc8349 ppc mpc83xx sbc8349
+       @$(MKCONFIG) -t $(@:_config=) sbc8349 powerpc mpc83xx sbc8349
 
 SIMPC8313_LP_config \
 SIMPC8313_SP_config: unconfig
@@ -2385,15 +2384,15 @@ SIMPC8313_SP_config: unconfig
                $(XECHO) -n "...Small Page NAND..." ; \
                echo "#define CONFIG_NAND_SP" >> $(obj)include/config.h ; \
        fi ;
-       @$(MKCONFIG) -a SIMPC8313 ppc mpc83xx simpc8313 sheldon
+       @$(MKCONFIG) -a SIMPC8313 powerpc mpc83xx simpc8313 sheldon
        @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
 
 TQM834x_config:        unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc83xx tqm834x tqc
+       @$(MKCONFIG) $(@:_config=) powerpc mpc83xx tqm834x tqc
 
 caddy2_config \
 vme8349_config:                unconfig
-       @$(MKCONFIG) -t $(@:_config=) vme8349 ppc mpc83xx vme8349 esd
+       @$(MKCONFIG) -t $(@:_config=) vme8349 powerpc mpc83xx vme8349 esd
 
 edb9301_config \
 edb9302_config \
@@ -2410,17 +2409,17 @@ edb9315a_config: unconfig
 #########################################################################
 
 ATUM8548_config:       unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc85xx atum8548
+       @$(MKCONFIG) $(@:_config=) powerpc mpc85xx atum8548
 
 MPC8536DS_NAND_config \
 MPC8536DS_SDCARD_config \
 MPC8536DS_SPIFLASH_config \
 MPC8536DS_36BIT_config \
 MPC8536DS_config:       unconfig
-       @$(MKCONFIG) -t $(@:_config=) MPC8536DS ppc mpc85xx mpc8536ds freescale
+       @$(MKCONFIG) -t $(@:_config=) MPC8536DS powerpc mpc85xx mpc8536ds freescale
 
 MPC8540ADS_config:     unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8540ads freescale
+       @$(MKCONFIG) $(@:_config=) powerpc mpc85xx mpc8540ads freescale
 
 MPC8540EVAL_config \
 MPC8540EVAL_33_config \
@@ -2440,10 +2439,10 @@ MPC8540EVAL_66_slave_config:      unconfig
        else \
                $(XECHO) " host" ; \
        fi
-       @$(MKCONFIG) -a MPC8540EVAL ppc mpc85xx mpc8540eval
+       @$(MKCONFIG) -a MPC8540EVAL powerpc mpc85xx mpc8540eval
 
 MPC8560ADS_config:     unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8560ads freescale
+       @$(MKCONFIG) $(@:_config=) powerpc mpc85xx mpc8560ads freescale
 
 MPC8541CDS_legacy_config \
 MPC8541CDS_config:     unconfig
@@ -2452,10 +2451,10 @@ MPC8541CDS_config:      unconfig
                echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
                $(XECHO) "... legacy" ; \
        fi
-       @$(MKCONFIG) -a MPC8541CDS ppc mpc85xx mpc8541cds freescale
+       @$(MKCONFIG) -a MPC8541CDS powerpc mpc85xx mpc8541cds freescale
 
 MPC8544DS_config:      unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8544ds freescale
+       @$(MKCONFIG) $(@:_config=) powerpc mpc85xx mpc8544ds freescale
 
 MPC8548CDS_legacy_config \
 MPC8548CDS_config:     unconfig
@@ -2464,7 +2463,7 @@ MPC8548CDS_config:        unconfig
                echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
                $(XECHO) "... legacy" ; \
        fi
-       @$(MKCONFIG) -a MPC8548CDS ppc mpc85xx mpc8548cds freescale
+       @$(MKCONFIG) -a MPC8548CDS powerpc mpc85xx mpc8548cds freescale
 
 MPC8555CDS_legacy_config \
 MPC8555CDS_config:     unconfig
@@ -2473,23 +2472,23 @@ MPC8555CDS_config:      unconfig
                echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
                $(XECHO) "... legacy" ; \
        fi
-       @$(MKCONFIG) -a MPC8555CDS ppc mpc85xx mpc8555cds freescale
+       @$(MKCONFIG) -a MPC8555CDS powerpc mpc85xx mpc8555cds freescale
 
 MPC8568MDS_config:     unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8568mds freescale
+       @$(MKCONFIG) $(@:_config=) powerpc mpc85xx mpc8568mds freescale
 
 MPC8569MDS_ATM_config \
 MPC8569MDS_NAND_config \
 MPC8569MDS_config:     unconfig
-       @$(MKCONFIG) -t $(@:_config=) MPC8569MDS ppc mpc85xx mpc8569mds freescale
+       @$(MKCONFIG) -t $(@:_config=) MPC8569MDS powerpc mpc85xx mpc8569mds freescale
 
 MPC8572DS_36BIT_config \
 MPC8572DS_config:       unconfig
-       @$(MKCONFIG) -t $(@:_config=) MPC8572DS ppc mpc85xx mpc8572ds freescale
+       @$(MKCONFIG) -t $(@:_config=) MPC8572DS powerpc mpc85xx mpc8572ds freescale
 
 P2020DS_36BIT_config \
 P2020DS_config:                unconfig
-       @$(MKCONFIG) -t $(@:_config=) P2020DS ppc mpc85xx p2020ds freescale
+       @$(MKCONFIG) -t $(@:_config=) P2020DS powerpc mpc85xx p2020ds freescale
 
 P1011RDB_config        \
 P1011RDB_NAND_config \
@@ -2507,36 +2506,36 @@ P2020RDB_config \
 P2020RDB_NAND_config \
 P2020RDB_SDCARD_config \
 P2020RDB_SPIFLASH_config:      unconfig
-       @$(MKCONFIG) -t $(@:_config=) P1_P2_RDB ppc mpc85xx p1_p2_rdb freescale
+       @$(MKCONFIG) -t $(@:_config=) P1_P2_RDB powerpc mpc85xx p1_p2_rdb freescale
 
 PM854_config:  unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm854
+       @$(MKCONFIG) $(@:_config=) powerpc mpc85xx pm854
 
 PM856_config:  unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm856
+       @$(MKCONFIG) $(@:_config=) powerpc mpc85xx pm856
 
 sbc8540_config \
 sbc8540_33_config \
 sbc8540_66_config:     unconfig
-       @$(MKCONFIG) -t $(@:_config=) SBC8540 ppc mpc85xx sbc8560
+       @$(MKCONFIG) -t $(@:_config=) SBC8540 powerpc mpc85xx sbc8560
 
 sbc8548_config \
 sbc8548_PCI_33_config \
 sbc8548_PCI_66_config \
 sbc8548_PCI_33_PCIE_config \
 sbc8548_PCI_66_PCIE_config: unconfig
-       @$(MKCONFIG) -t $(@:_config=) sbc8548 ppc mpc85xx sbc8548
+       @$(MKCONFIG) -t $(@:_config=) sbc8548 powerpc mpc85xx sbc8548
 
 sbc8560_config \
 sbc8560_33_config \
 sbc8560_66_config:     unconfig
-       @$(MKCONFIG) -t $(@:_config=) sbc8560 ppc mpc85xx sbc8560
+       @$(MKCONFIG) -t $(@:_config=) sbc8560 powerpc mpc85xx sbc8560
 
 socrates_config:       unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc85xx socrates
+       @$(MKCONFIG) $(@:_config=) powerpc mpc85xx socrates
 
 stxgp3_config:         unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc85xx stxgp3 stx
+       @$(MKCONFIG) $(@:_config=) powerpc mpc85xx stxgp3 stx
 
 stxssa_config          \
 stxssa_4M_config:      unconfig
@@ -2545,7 +2544,7 @@ stxssa_4M_config: unconfig
                echo "#define CONFIG_STXSSA_4M" >>$(obj)include/config.h ; \
                $(XECHO) "... with 4 MiB flash memory" ; \
        fi
-       @$(MKCONFIG) -a stxssa ppc mpc85xx stxssa stx
+       @$(MKCONFIG) -a stxssa powerpc mpc85xx stxssa stx
 
 TQM8540_config         \
 TQM8541_config         \
@@ -2562,21 +2561,21 @@ TQM8560_config:         unconfig
        echo "#define CONFIG_$${BTYPE}">>$(obj)include/config.h; \
        echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \
        echo "#define CONFIG_BOARDNAME \"$${BTYPE}\"">>$(obj)include/config.h;
-       @$(MKCONFIG) -a TQM85xx ppc mpc85xx tqm85xx tqc
+       @$(MKCONFIG) -a TQM85xx powerpc mpc85xx tqm85xx tqc
        @echo "CONFIG_$(@:_config=) = y">>$(obj)include/config.mk;
 
 XPEDITE5200_config:    unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc85xx xpedite5200 xes
+       @$(MKCONFIG) $(@:_config=) powerpc mpc85xx xpedite5200 xes
 
 XPEDITE5370_config:    unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc85xx xpedite5370 xes
+       @$(MKCONFIG) $(@:_config=) powerpc mpc85xx xpedite5370 xes
 
 #########################################################################
 ## MPC86xx Systems
 #########################################################################
 
 MPC8610HPCD_config:    unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8610hpcd freescale
+       @$(MKCONFIG) $(@:_config=) powerpc mpc86xx mpc8610hpcd freescale
 
 MPC8641HPCN_36BIT_config \
 MPC8641HPCN_config:    unconfig
@@ -2585,45 +2584,45 @@ MPC8641HPCN_config:    unconfig
                echo "#define CONFIG_PHYS_64BIT" >>$(obj)include/config.h ; \
                $(XECHO) "... enabling 36-bit physical addressing." ; \
        fi
-       @$(MKCONFIG) -a MPC8641HPCN ppc mpc86xx mpc8641hpcn freescale
+       @$(MKCONFIG) -a MPC8641HPCN powerpc mpc86xx mpc8641hpcn freescale
 
 sbc8641d_config:       unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc86xx sbc8641d
+       @$(MKCONFIG) $(@:_config=) powerpc mpc86xx sbc8641d
 
 XPEDITE5170_config:    unconfig
-       @$(MKCONFIG) $(@:_config=) ppc mpc86xx xpedite5170 xes
+       @$(MKCONFIG) $(@:_config=) powerpc mpc86xx xpedite5170 xes
 
 #########################################################################
 ## 74xx/7xx Systems
 #########################################################################
 
 AmigaOneG3SE_config:   unconfig
-       @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
+       @$(MKCONFIG) $(@:_config=) powerpc 74xx_7xx AmigaOneG3SE MAI
 
 BAB7xx_config: unconfig
-       @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx bab7xx eltec
+       @$(MKCONFIG) $(@:_config=) powerpc 74xx_7xx bab7xx eltec
 
 CPCI750_config:        unconfig
-       @$(MKCONFIG) CPCI750 ppc 74xx_7xx cpci750 esd
+       @$(MKCONFIG) CPCI750 powerpc 74xx_7xx cpci750 esd
 
 DB64360_config:        unconfig
-       @$(MKCONFIG) DB64360 ppc 74xx_7xx db64360 Marvell
+       @$(MKCONFIG) DB64360 powerpc 74xx_7xx db64360 Marvell
 
 DB64460_config:        unconfig
-       @$(MKCONFIG) DB64460 ppc 74xx_7xx db64460 Marvell
+       @$(MKCONFIG) DB64460 powerpc 74xx_7xx db64460 Marvell
 
 ELPPC_config: unconfig
-       @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx elppc eltec
+       @$(MKCONFIG) $(@:_config=) powerpc 74xx_7xx elppc eltec
 
 EVB64260_config        \
 EVB64260_750CX_config: unconfig
-       @$(MKCONFIG) EVB64260 ppc 74xx_7xx evb64260
+       @$(MKCONFIG) EVB64260 powerpc 74xx_7xx evb64260
 
 mpc7448hpc2_config:  unconfig
-       @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx mpc7448hpc2 freescale
+       @$(MKCONFIG) $(@:_config=) powerpc 74xx_7xx mpc7448hpc2 freescale
 
 P3G4_config: unconfig
-       @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
+       @$(MKCONFIG) $(@:_config=) powerpc 74xx_7xx evb64260
 
 p3m750_config  \
 p3m7448_config:                unconfig
@@ -2633,17 +2632,17 @@ p3m7448_config:         unconfig
        else \
                echo "#define CONFIG_P3M7448" >>$(obj)include/config.h ; \
        fi
-       @$(MKCONFIG) -a p3mx ppc 74xx_7xx p3mx prodrive
+       @$(MKCONFIG) -a p3mx powerpc 74xx_7xx p3mx prodrive
 
 PCIPPC2_config \
 PCIPPC6_config: unconfig
-       @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx pcippc2
+       @$(MKCONFIG) $(@:_config=) powerpc 74xx_7xx pcippc2
 
 ppmc7xx_config: unconfig
-       @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx ppmc7xx
+       @$(MKCONFIG) $(@:_config=) powerpc 74xx_7xx ppmc7xx
 
 ZUMA_config:   unconfig
-       @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
+       @$(MKCONFIG) $(@:_config=) powerpc 74xx_7xx evb64260
 
 #========================================================================
 # ARM
@@ -3542,6 +3541,12 @@ PK1C20_config : unconfig
 PCI5441_config : unconfig
        @$(MKCONFIG)  PCI5441 nios2 nios2 pci5441 psyent
 
+# nios2 generic boards
+NIOS2_GENERIC = nios2-generic
+
+$(NIOS2_GENERIC:%=%_config) : unconfig
+       @$(MKCONFIG) $(@:_config=) nios2 nios2 nios2-generic altera
+
 #========================================================================
 ## Microblaze
 #========================================================================
@@ -3772,7 +3777,7 @@ clobber:  clean
        @rm -f $(obj)u-boot.kwb
        @rm -f $(obj)u-boot.imx
        @rm -f $(obj)tools/{env/crc32.c,inca-swap-bytes}
-       @rm -f $(obj)arch/ppc/cpu/mpc824x/bedbug_603e.c
+       @rm -f $(obj)arch/powerpc/cpu/mpc824x/bedbug_603e.c
        @rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm
        @[ ! -d $(obj)nand_spl ] || find $(obj)nand_spl -name "*" -type l -print | xargs rm -f
        @[ ! -d $(obj)onenand_ipl ] || find $(obj)onenand_ipl -name "*" -type l -print | xargs rm -f
diff --git a/README b/README
index 99320abadd8e94f131077d7efd2b34e55a4e67b6..cdd81d4efe3efafd8e8e3653303eec1af2e599f5 100644 (file)
--- a/README
+++ b/README
@@ -183,7 +183,7 @@ Directory Hierarchy:
   /nios2               Files generic to Altera NIOS2 architecture
     /cpu               CPU specific files
     /lib               Architecture specific library files
-  /ppc                 Files generic to PowerPC architecture
+  /powerpc             Files generic to PowerPC architecture
     /cpu               CPU specific files
       /74xx_7xx                Files specific to Freescale MPC74xx and 7xx CPUs
       /mpc5xx          Files specific to Freescale MPC5xx CPUs
@@ -1417,7 +1417,7 @@ The following options need to be configured:
                the CPU's i2c node address).
 
                Now, the u-boot i2c code for the mpc8xx
-               (arch/ppc/cpu/mpc8xx/i2c.c) sets the CPU up as a master node
+               (arch/powerpc/cpu/mpc8xx/i2c.c) sets the CPU up as a master node
                and so its address should therefore be cleared to 0 (See,
                eg, MPC823e User's Manual p.16-473). So, set
                CONFIG_SYS_I2C_SLAVE to 0.
@@ -1509,6 +1509,17 @@ The following options need to be configured:
                custom i2c_init_board() routine in boards/xxx/board.c
                is run early in the boot sequence.
 
+               CONFIG_SYS_I2C_BOARD_LATE_INIT
+
+               An alternative to CONFIG_SYS_I2C_INIT_BOARD. If this option is
+               defined a custom i2c_board_late_init() routine in
+               boards/xxx/board.c is run AFTER the operations in i2c_init()
+               is completed. This callpoint can be used to unreset i2c bus
+               using CPU i2c controller register accesses for CPUs whose i2c
+               controller provide such a method. It is called at the end of
+               i2c_init() to allow i2c_init operations to setup the i2c bus
+               controller on the CPU (e.g. setting bus speed & slave address).
+
                CONFIG_I2CFAST (PPC405GP|PPC405EP only)
 
                This option enables configuration of bi_iic_fast[] flags
@@ -1966,7 +1977,7 @@ Legacy uImage format:
 
    15  arch/<arch>/lib/bootm.c All preparation done, transferring control to OS
 
-  -30  arch/ppc/lib/board.c    Fatal error, hang the system
+  -30  arch/powerpc/lib/board.c        Fatal error, hang the system
   -31  post/post.c             POST test failed, detected by post_output_backlog()
   -32  post/post.c             POST test failed, detected by post_run_single()
 
@@ -2727,7 +2738,7 @@ Low Level (hardware related) configuration options:
   CONFIG_SYS_PCI_MSTR_MEMIO_SIZE, CONFIG_SYS_POCMR1_MASK_ATTRIB, CONFIG_SYS_PCI_MSTR_IO_LOCAL,
   CONFIG_SYS_PCI_MSTR_IO_BUS, CONFIG_SYS_CPU_PCI_IO_START, CONFIG_SYS_PCI_MSTR_IO_SIZE,
   CONFIG_SYS_POCMR2_MASK_ATTRIB: (MPC826x only)
-               Overrides the default PCI memory map in arch/ppc/cpu/mpc8260/pci.c if set.
+               Overrides the default PCI memory map in arch/powerpc/cpu/mpc8260/pci.c if set.
 
 - CONFIG_PCI_DISABLE_PCIE:
                Disable PCI-Express on systems where it is supported but not
@@ -3373,7 +3384,7 @@ configure the Linux device drivers for use with your target hardware
 (no, we don't intend to provide a full virtual machine interface to
 Linux :-).
 
-But now you can ignore ALL boot loader code (in arch/ppc/mbxboot).
+But now you can ignore ALL boot loader code (in arch/powerpc/mbxboot).
 
 Just make sure your machine specific header file (for instance
 include/asm-ppc/tqm8xx.h) includes the same definition of the Board
@@ -3471,7 +3482,7 @@ So a typical call to build a U-Boot image would read:
 
        -> tools/mkimage -n '2.4.4 kernel for TQM850L' \
        > -A ppc -O linux -T kernel -C gzip -a 0 -e 0 \
-       > -d /opt/elsk/ppc_8xx/usr/src/linux-2.4.4/arch/ppc/coffboot/vmlinux.gz \
+       > -d /opt/elsk/ppc_8xx/usr/src/linux-2.4.4/arch/powerpc/coffboot/vmlinux.gz \
        > examples/uImage.TQM850L
        Image Name:   2.4.4 kernel for TQM850L
        Created:      Wed Jul 19 02:34:59 2000
@@ -3495,10 +3506,10 @@ speed for memory and install an UNCOMPRESSED image instead: this
 needs more space in Flash, but boots much faster since it does not
 need to be uncompressed:
 
-       -> gunzip /opt/elsk/ppc_8xx/usr/src/linux-2.4.4/arch/ppc/coffboot/vmlinux.gz
+       -> gunzip /opt/elsk/ppc_8xx/usr/src/linux-2.4.4/arch/powerpc/coffboot/vmlinux.gz
        -> tools/mkimage -n '2.4.4 kernel for TQM850L' \
        > -A ppc -O linux -T kernel -C none -a 0 -e 0 \
-       > -d /opt/elsk/ppc_8xx/usr/src/linux-2.4.4/arch/ppc/coffboot/vmlinux \
+       > -d /opt/elsk/ppc_8xx/usr/src/linux-2.4.4/arch/powerpc/coffboot/vmlinux \
        > examples/uImage.TQM850L-uncompressed
        Image Name:   2.4.4 kernel for TQM850L
        Created:      Wed Jul 19 02:34:59 2000
index b33e97b5faf29eeb5f0164b009d226c409274dca..513c6356e763bc9086f7f55b75e99cb0243e12d5 100644 (file)
@@ -2773,6 +2773,57 @@ extern unsigned int __machine_arch_type;
 #define MACH_TYPE_SKAT91_S3E           2790
 #define MACH_TYPE_OMAP4_PANDA          2791
 #define MACH_TYPE_DF7220               2792
+#define MACH_TYPE_NEMINI               2793
+#define MACH_TYPE_T8200                2794
+#define MACH_TYPE_APF51                2795
+#define MACH_TYPE_DR_RC_UNIT           2796
+#define MACH_TYPE_BORDEAUX             2797
+#define MACH_TYPE_CATANIA_B            2798
+#define MACH_TYPE_MX51_OCEAN           2799
+#define MACH_TYPE_TI8168EVM            2800
+#define MACH_TYPE_NEOCOREOMAP          2801
+#define MACH_TYPE_WITHINGS_WBP         2802
+#define MACH_TYPE_DBPS                 2803
+#define MACH_TYPE_SBC9261              2804
+#define MACH_TYPE_PCBFP0001            2805
+#define MACH_TYPE_SPEEDY               2806
+#define MACH_TYPE_CHRYSAOR             2807
+#define MACH_TYPE_TANGO                2808
+#define MACH_TYPE_SYNOLOGY_DSX11       2809
+#define MACH_TYPE_HANLIN_V3EXT         2810
+#define MACH_TYPE_HANLIN_V5            2811
+#define MACH_TYPE_HANLIN_V3PLUS        2812
+#define MACH_TYPE_IRIVER_STORY         2813
+#define MACH_TYPE_IREX_ILIAD           2814
+#define MACH_TYPE_IREX_DR1000          2815
+#define MACH_TYPE_TETON_BGA            2816
+#define MACH_TYPE_SNAPPER9G45          2817
+#define MACH_TYPE_TAM3517              2818
+#define MACH_TYPE_PDC100               2819
+#define MACH_TYPE_EUKREA_CPUIMX25      2820
+#define MACH_TYPE_EUKREA_CPUIMX35      2821
+#define MACH_TYPE_EUKREA_CPUIMX51SD    2822
+#define MACH_TYPE_EUKREA_CPUIMX51      2823
+#define MACH_TYPE_P565                 2824
+#define MACH_TYPE_ACER_A4              2825
+#define MACH_TYPE_DAVINCI_DM368_BIP    2826
+#define MACH_TYPE_ESHARE               2827
+#define MACH_TYPE_HW_OMAPL138_EUROPA   2828
+#define MACH_TYPE_WLBARGN              2829
+#define MACH_TYPE_BM170                2830
+#define MACH_TYPE_NETSPACE_MINI_V2     2831
+#define MACH_TYPE_NETSPACE_PLUG_V2     2832
+#define MACH_TYPE_SIEMENS_L1           2833
+#define MACH_TYPE_ELV_LCU1             2834
+#define MACH_TYPE_MCU1                 2835
+#define MACH_TYPE_OMAP3_TAO3530        2836
+#define MACH_TYPE_OMAP3_PCUTOUCH       2837
+#define MACH_TYPE_SMDKC210             2838
+#define MACH_TYPE_OMAP3_BRAILLO        2839
+#define MACH_TYPE_SPYPLUG              2840
+#define MACH_TYPE_GINGER               2841
+#define MACH_TYPE_TNY_T3530            2842
+#define MACH_TYPE_PCA102               2843
 
 #ifdef CONFIG_ARCH_EBSA110
 # ifdef machine_arch_type
@@ -33573,9 +33624,9 @@ extern unsigned int __machine_arch_type;
 # else
 #  define machine_arch_type    MACH_TYPE_DAVINCI_CIO
 # endif
-# define machine_is_davinci_cio()      (machine_arch_type == MACH_TYPE_DAVINCI_CIO)
+# define machine_is_davinci_dm6467_cio()       (machine_arch_type == MACH_TYPE_DAVINCI_CIO)
 #else
-# define machine_is_davinci_cio()      (0)
+# define machine_is_davinci_dm6467_cio()       (0)
 #endif
 
 #ifdef CONFIG_MACH_SMARTMETER_DL
@@ -35906,6 +35957,618 @@ extern unsigned int __machine_arch_type;
 # define machine_is_df7220()   (0)
 #endif
 
+#ifdef CONFIG_MACH_NEMINI
+# ifdef machine_arch_type
+#  undef machine_arch_type
+#  define machine_arch_type    __machine_arch_type
+# else
+#  define machine_arch_type    MACH_TYPE_NEMINI
+# endif
+# define machine_is_nemini()   (machine_arch_type == MACH_TYPE_NEMINI)
+#else
+# define machine_is_nemini()   (0)
+#endif
+
+#ifdef CONFIG_MACH_T8200
+# ifdef machine_arch_type
+#  undef machine_arch_type
+#  define machine_arch_type    __machine_arch_type
+# else
+#  define machine_arch_type    MACH_TYPE_T8200
+# endif
+# define machine_is_t8200()    (machine_arch_type == MACH_TYPE_T8200)
+#else
+# define machine_is_t8200()    (0)
+#endif
+
+#ifdef CONFIG_MACH_APF51
+# ifdef machine_arch_type
+#  undef machine_arch_type
+#  define machine_arch_type    __machine_arch_type
+# else
+#  define machine_arch_type    MACH_TYPE_APF51
+# endif
+# define machine_is_apf51()    (machine_arch_type == MACH_TYPE_APF51)
+#else
+# define machine_is_apf51()    (0)
+#endif
+
+#ifdef CONFIG_MACH_DR_RC_UNIT
+# ifdef machine_arch_type
+#  undef machine_arch_type
+#  define machine_arch_type    __machine_arch_type
+# else
+#  define machine_arch_type    MACH_TYPE_DR_RC_UNIT
+# endif
+# define machine_is_dr_rc_unit()       (machine_arch_type == MACH_TYPE_DR_RC_UNIT)
+#else
+# define machine_is_dr_rc_unit()       (0)
+#endif
+
+#ifdef CONFIG_MACH_BORDEAUX
+# ifdef machine_arch_type
+#  undef machine_arch_type
+#  define machine_arch_type    __machine_arch_type
+# else
+#  define machine_arch_type    MACH_TYPE_BORDEAUX
+# endif
+# define machine_is_bordeaux() (machine_arch_type == MACH_TYPE_BORDEAUX)
+#else
+# define machine_is_bordeaux() (0)
+#endif
+
+#ifdef CONFIG_MACH_CATANIA_B
+# ifdef machine_arch_type
+#  undef machine_arch_type
+#  define machine_arch_type    __machine_arch_type
+# else
+#  define machine_arch_type    MACH_TYPE_CATANIA_B
+# endif
+# define machine_is_catania_b()        (machine_arch_type == MACH_TYPE_CATANIA_B)
+#else
+# define machine_is_catania_b()        (0)
+#endif
+
+#ifdef CONFIG_MACH_MX51_OCEAN
+# ifdef machine_arch_type
+#  undef machine_arch_type
+#  define machine_arch_type    __machine_arch_type
+# else
+#  define machine_arch_type    MACH_TYPE_MX51_OCEAN
+# endif
+# define machine_is_mx51_ocean()       (machine_arch_type == MACH_TYPE_MX51_OCEAN)
+#else
+# define machine_is_mx51_ocean()       (0)
+#endif
+
+#ifdef CONFIG_MACH_TI8168EVM
+# ifdef machine_arch_type
+#  undef machine_arch_type
+#  define machine_arch_type    __machine_arch_type
+# else
+#  define machine_arch_type    MACH_TYPE_TI8168EVM
+# endif
+# define machine_is_ti8168evm()        (machine_arch_type == MACH_TYPE_TI8168EVM)
+#else
+# define machine_is_ti8168evm()        (0)
+#endif
+
+#ifdef CONFIG_MACH_NEOCOREOMAP
+# ifdef machine_arch_type
+#  undef machine_arch_type
+#  define machine_arch_type    __machine_arch_type
+# else
+#  define machine_arch_type    MACH_TYPE_NEOCOREOMAP
+# endif
+# define machine_is_neocoreomap()      (machine_arch_type == MACH_TYPE_NEOCOREOMAP)
+#else
+# define machine_is_neocoreomap()      (0)
+#endif
+
+#ifdef CONFIG_MACH_WITHINGS_WBP
+# ifdef machine_arch_type
+#  undef machine_arch_type
+#  define machine_arch_type    __machine_arch_type
+# else
+#  define machine_arch_type    MACH_TYPE_WITHINGS_WBP
+# endif
+# define machine_is_withings_wbp()     (machine_arch_type == MACH_TYPE_WITHINGS_WBP)
+#else
+# define machine_is_withings_wbp()     (0)
+#endif
+
+#ifdef CONFIG_MACH_DBPS
+# ifdef machine_arch_type
+#  undef machine_arch_type
+#  define machine_arch_type    __machine_arch_type
+# else
+#  define machine_arch_type    MACH_TYPE_DBPS
+# endif
+# define machine_is_dbps()     (machine_arch_type == MACH_TYPE_DBPS)
+#else
+# define machine_is_dbps()     (0)
+#endif
+
+#ifdef CONFIG_MACH_SBC9261
+# ifdef machine_arch_type
+#  undef machine_arch_type
+#  define machine_arch_type    __machine_arch_type
+# else
+#  define machine_arch_type    MACH_TYPE_SBC9261
+# endif
+# define machine_is_at91sam9261()      (machine_arch_type == MACH_TYPE_SBC9261)
+#else
+# define machine_is_at91sam9261()      (0)
+#endif
+
+#ifdef CONFIG_MACH_PCBFP0001
+# ifdef machine_arch_type
+#  undef machine_arch_type
+#  define machine_arch_type    __machine_arch_type
+# else
+#  define machine_arch_type    MACH_TYPE_PCBFP0001
+# endif
+# define machine_is_pcbfp0001()        (machine_arch_type == MACH_TYPE_PCBFP0001)
+#else
+# define machine_is_pcbfp0001()        (0)
+#endif
+
+#ifdef CONFIG_MACH_SPEEDY
+# ifdef machine_arch_type
+#  undef machine_arch_type
+#  define machine_arch_type    __machine_arch_type
+# else
+#  define machine_arch_type    MACH_TYPE_SPEEDY
+# endif
+# define machine_is_speedy()   (machine_arch_type == MACH_TYPE_SPEEDY)
+#else
+# define machine_is_speedy()   (0)
+#endif
+
+#ifdef CONFIG_MACH_CHRYSAOR
+# ifdef machine_arch_type
+#  undef machine_arch_type
+#  define machine_arch_type    __machine_arch_type
+# else
+#  define machine_arch_type    MACH_TYPE_CHRYSAOR
+# endif
+# define machine_is_chrysaor() (machine_arch_type == MACH_TYPE_CHRYSAOR)
+#else
+# define machine_is_chrysaor() (0)
+#endif
+
+#ifdef CONFIG_MACH_TANGO
+# ifdef machine_arch_type
+#  undef machine_arch_type
+#  define machine_arch_type    __machine_arch_type
+# else
+#  define machine_arch_type    MACH_TYPE_TANGO
+# endif
+# define machine_is_tango()    (machine_arch_type == MACH_TYPE_TANGO)
+#else
+# define machine_is_tango()    (0)
+#endif
+
+#ifdef CONFIG_MACH_SYNOLOGY_DSX11
+# ifdef machine_arch_type
+#  undef machine_arch_type
+#  define machine_arch_type    __machine_arch_type
+# else
+#  define machine_arch_type    MACH_TYPE_SYNOLOGY_DSX11
+# endif
+# define machine_is_synology_dsx11()   (machine_arch_type == MACH_TYPE_SYNOLOGY_DSX11)
+#else
+# define machine_is_synology_dsx11()   (0)
+#endif
+
+#ifdef CONFIG_MACH_HANLIN_V3EXT
+# ifdef machine_arch_type
+#  undef machine_arch_type
+#  define machine_arch_type    __machine_arch_type
+# else
+#  define machine_arch_type    MACH_TYPE_HANLIN_V3EXT
+# endif
+# define machine_is_hanlin_v3ext()     (machine_arch_type == MACH_TYPE_HANLIN_V3EXT)
+#else
+# define machine_is_hanlin_v3ext()     (0)
+#endif
+
+#ifdef CONFIG_MACH_HANLIN_V5
+# ifdef machine_arch_type
+#  undef machine_arch_type
+#  define machine_arch_type    __machine_arch_type
+# else
+#  define machine_arch_type    MACH_TYPE_HANLIN_V5
+# endif
+# define machine_is_hanlin_v5()        (machine_arch_type == MACH_TYPE_HANLIN_V5)
+#else
+# define machine_is_hanlin_v5()        (0)
+#endif
+
+#ifdef CONFIG_MACH_HANLIN_V3PLUS
+# ifdef machine_arch_type
+#  undef machine_arch_type
+#  define machine_arch_type    __machine_arch_type
+# else
+#  define machine_arch_type    MACH_TYPE_HANLIN_V3PLUS
+# endif
+# define machine_is_hanlin_v3plus()    (machine_arch_type == MACH_TYPE_HANLIN_V3PLUS)
+#else
+# define machine_is_hanlin_v3plus()    (0)
+#endif
+
+#ifdef CONFIG_MACH_IRIVER_STORY
+# ifdef machine_arch_type
+#  undef machine_arch_type
+#  define machine_arch_type    __machine_arch_type
+# else
+#  define machine_arch_type    MACH_TYPE_IRIVER_STORY
+# endif
+# define machine_is_iriver_story()     (machine_arch_type == MACH_TYPE_IRIVER_STORY)
+#else
+# define machine_is_iriver_story()     (0)
+#endif
+
+#ifdef CONFIG_MACH_IREX_ILIAD
+# ifdef machine_arch_type
+#  undef machine_arch_type
+#  define machine_arch_type    __machine_arch_type
+# else
+#  define machine_arch_type    MACH_TYPE_IREX_ILIAD
+# endif
+# define machine_is_irex_iliad()       (machine_arch_type == MACH_TYPE_IREX_ILIAD)
+#else
+# define machine_is_irex_iliad()       (0)
+#endif
+
+#ifdef CONFIG_MACH_IREX_DR1000
+# ifdef machine_arch_type
+#  undef machine_arch_type
+#  define machine_arch_type    __machine_arch_type
+# else
+#  define machine_arch_type    MACH_TYPE_IREX_DR1000
+# endif
+# define machine_is_irex_dr1000()      (machine_arch_type == MACH_TYPE_IREX_DR1000)
+#else
+# define machine_is_irex_dr1000()      (0)
+#endif
+
+#ifdef CONFIG_MACH_TETON_BGA
+# ifdef machine_arch_type
+#  undef machine_arch_type
+#  define machine_arch_type    __machine_arch_type
+# else
+#  define machine_arch_type    MACH_TYPE_TETON_BGA
+# endif
+# define machine_is_teton_bga()        (machine_arch_type == MACH_TYPE_TETON_BGA)
+#else
+# define machine_is_teton_bga()        (0)
+#endif
+
+#ifdef CONFIG_MACH_SNAPPER9G45
+# ifdef machine_arch_type
+#  undef machine_arch_type
+#  define machine_arch_type    __machine_arch_type
+# else
+#  define machine_arch_type    MACH_TYPE_SNAPPER9G45
+# endif
+# define machine_is_snapper9g45()      (machine_arch_type == MACH_TYPE_SNAPPER9G45)
+#else
+# define machine_is_snapper9g45()      (0)
+#endif
+
+#ifdef CONFIG_MACH_TAM3517
+# ifdef machine_arch_type
+#  undef machine_arch_type
+#  define machine_arch_type    __machine_arch_type
+# else
+#  define machine_arch_type    MACH_TYPE_TAM3517
+# endif
+# define machine_is_tam3517()  (machine_arch_type == MACH_TYPE_TAM3517)
+#else
+# define machine_is_tam3517()  (0)
+#endif
+
+#ifdef CONFIG_MACH_PDC100
+# ifdef machine_arch_type
+#  undef machine_arch_type
+#  define machine_arch_type    __machine_arch_type
+# else
+#  define machine_arch_type    MACH_TYPE_PDC100
+# endif
+# define machine_is_pdc100()   (machine_arch_type == MACH_TYPE_PDC100)
+#else
+# define machine_is_pdc100()   (0)
+#endif
+
+#ifdef CONFIG_MACH_EUKREA_CPUIMX25
+# ifdef machine_arch_type
+#  undef machine_arch_type
+#  define machine_arch_type    __machine_arch_type
+# else
+#  define machine_arch_type    MACH_TYPE_EUKREA_CPUIMX25
+# endif
+# define machine_is_eukrea_cpuimx25sd()        (machine_arch_type == MACH_TYPE_EUKREA_CPUIMX25)
+#else
+# define machine_is_eukrea_cpuimx25sd()        (0)
+#endif
+
+#ifdef CONFIG_MACH_EUKREA_CPUIMX35
+# ifdef machine_arch_type
+#  undef machine_arch_type
+#  define machine_arch_type    __machine_arch_type
+# else
+#  define machine_arch_type    MACH_TYPE_EUKREA_CPUIMX35
+# endif
+# define machine_is_eukrea_cpuimx35sd()        (machine_arch_type == MACH_TYPE_EUKREA_CPUIMX35)
+#else
+# define machine_is_eukrea_cpuimx35sd()        (0)
+#endif
+
+#ifdef CONFIG_MACH_EUKREA_CPUIMX51SD
+# ifdef machine_arch_type
+#  undef machine_arch_type
+#  define machine_arch_type    __machine_arch_type
+# else
+#  define machine_arch_type    MACH_TYPE_EUKREA_CPUIMX51SD
+# endif
+# define machine_is_eukrea_cpuimx51sd()        (machine_arch_type == MACH_TYPE_EUKREA_CPUIMX51SD)
+#else
+# define machine_is_eukrea_cpuimx51sd()        (0)
+#endif
+
+#ifdef CONFIG_MACH_EUKREA_CPUIMX51
+# ifdef machine_arch_type
+#  undef machine_arch_type
+#  define machine_arch_type    __machine_arch_type
+# else
+#  define machine_arch_type    MACH_TYPE_EUKREA_CPUIMX51
+# endif
+# define machine_is_eukrea_cpuimx51()  (machine_arch_type == MACH_TYPE_EUKREA_CPUIMX51)
+#else
+# define machine_is_eukrea_cpuimx51()  (0)
+#endif
+
+#ifdef CONFIG_MACH_P565
+# ifdef machine_arch_type
+#  undef machine_arch_type
+#  define machine_arch_type    __machine_arch_type
+# else
+#  define machine_arch_type    MACH_TYPE_P565
+# endif
+# define machine_is_p565()     (machine_arch_type == MACH_TYPE_P565)
+#else
+# define machine_is_p565()     (0)
+#endif
+
+#ifdef CONFIG_MACH_ACER_A4
+# ifdef machine_arch_type
+#  undef machine_arch_type
+#  define machine_arch_type    __machine_arch_type
+# else
+#  define machine_arch_type    MACH_TYPE_ACER_A4
+# endif
+# define machine_is_acer_a4()  (machine_arch_type == MACH_TYPE_ACER_A4)
+#else
+# define machine_is_acer_a4()  (0)
+#endif
+
+#ifdef CONFIG_MACH_DAVINCI_DM368_BIP
+# ifdef machine_arch_type
+#  undef machine_arch_type
+#  define machine_arch_type    __machine_arch_type
+# else
+#  define machine_arch_type    MACH_TYPE_DAVINCI_DM368_BIP
+# endif
+# define machine_is_davinci_dm368_bip()        (machine_arch_type == MACH_TYPE_DAVINCI_DM368_BIP)
+#else
+# define machine_is_davinci_dm368_bip()        (0)
+#endif
+
+#ifdef CONFIG_MACH_ESHARE
+# ifdef machine_arch_type
+#  undef machine_arch_type
+#  define machine_arch_type    __machine_arch_type
+# else
+#  define machine_arch_type    MACH_TYPE_ESHARE
+# endif
+# define machine_is_eshare()   (machine_arch_type == MACH_TYPE_ESHARE)
+#else
+# define machine_is_eshare()   (0)
+#endif
+
+#ifdef CONFIG_MACH_HW_OMAPL138_EUROPA
+# ifdef machine_arch_type
+#  undef machine_arch_type
+#  define machine_arch_type    __machine_arch_type
+# else
+#  define machine_arch_type    MACH_TYPE_HW_OMAPL138_EUROPA
+# endif
+# define machine_is_hw_omapl138_europa()       (machine_arch_type == MACH_TYPE_HW_OMAPL138_EUROPA)
+#else
+# define machine_is_hw_omapl138_europa()       (0)
+#endif
+
+#ifdef CONFIG_MACH_WLBARGN
+# ifdef machine_arch_type
+#  undef machine_arch_type
+#  define machine_arch_type    __machine_arch_type
+# else
+#  define machine_arch_type    MACH_TYPE_WLBARGN
+# endif
+# define machine_is_wlbargn()  (machine_arch_type == MACH_TYPE_WLBARGN)
+#else
+# define machine_is_wlbargn()  (0)
+#endif
+
+#ifdef CONFIG_MACH_BM170
+# ifdef machine_arch_type
+#  undef machine_arch_type
+#  define machine_arch_type    __machine_arch_type
+# else
+#  define machine_arch_type    MACH_TYPE_BM170
+# endif
+# define machine_is_bm170()    (machine_arch_type == MACH_TYPE_BM170)
+#else
+# define machine_is_bm170()    (0)
+#endif
+
+#ifdef CONFIG_MACH_NETSPACE_MINI_V2
+# ifdef machine_arch_type
+#  undef machine_arch_type
+#  define machine_arch_type    __machine_arch_type
+# else
+#  define machine_arch_type    MACH_TYPE_NETSPACE_MINI_V2
+# endif
+# define machine_is_netspace_mini_v2() (machine_arch_type == MACH_TYPE_NETSPACE_MINI_V2)
+#else
+# define machine_is_netspace_mini_v2() (0)
+#endif
+
+#ifdef CONFIG_MACH_NETSPACE_PLUG_V2
+# ifdef machine_arch_type
+#  undef machine_arch_type
+#  define machine_arch_type    __machine_arch_type
+# else
+#  define machine_arch_type    MACH_TYPE_NETSPACE_PLUG_V2
+# endif
+# define machine_is_netspace_plug_v2() (machine_arch_type == MACH_TYPE_NETSPACE_PLUG_V2)
+#else
+# define machine_is_netspace_plug_v2() (0)
+#endif
+
+#ifdef CONFIG_MACH_SIEMENS_L1
+# ifdef machine_arch_type
+#  undef machine_arch_type
+#  define machine_arch_type    __machine_arch_type
+# else
+#  define machine_arch_type    MACH_TYPE_SIEMENS_L1
+# endif
+# define machine_is_siemens_l1()       (machine_arch_type == MACH_TYPE_SIEMENS_L1)
+#else
+# define machine_is_siemens_l1()       (0)
+#endif
+
+#ifdef CONFIG_MACH_ELV_LCU1
+# ifdef machine_arch_type
+#  undef machine_arch_type
+#  define machine_arch_type    __machine_arch_type
+# else
+#  define machine_arch_type    MACH_TYPE_ELV_LCU1
+# endif
+# define machine_is_elv_lcu1() (machine_arch_type == MACH_TYPE_ELV_LCU1)
+#else
+# define machine_is_elv_lcu1() (0)
+#endif
+
+#ifdef CONFIG_MACH_MCU1
+# ifdef machine_arch_type
+#  undef machine_arch_type
+#  define machine_arch_type    __machine_arch_type
+# else
+#  define machine_arch_type    MACH_TYPE_MCU1
+# endif
+# define machine_is_mcu1()     (machine_arch_type == MACH_TYPE_MCU1)
+#else
+# define machine_is_mcu1()     (0)
+#endif
+
+#ifdef CONFIG_MACH_OMAP3_TAO3530
+# ifdef machine_arch_type
+#  undef machine_arch_type
+#  define machine_arch_type    __machine_arch_type
+# else
+#  define machine_arch_type    MACH_TYPE_OMAP3_TAO3530
+# endif
+# define machine_is_omap3_tao3530()    (machine_arch_type == MACH_TYPE_OMAP3_TAO3530)
+#else
+# define machine_is_omap3_tao3530()    (0)
+#endif
+
+#ifdef CONFIG_MACH_OMAP3_PCUTOUCH
+# ifdef machine_arch_type
+#  undef machine_arch_type
+#  define machine_arch_type    __machine_arch_type
+# else
+#  define machine_arch_type    MACH_TYPE_OMAP3_PCUTOUCH
+# endif
+# define machine_is_omap3_pcutouch()   (machine_arch_type == MACH_TYPE_OMAP3_PCUTOUCH)
+#else
+# define machine_is_omap3_pcutouch()   (0)
+#endif
+
+#ifdef CONFIG_MACH_SMDKC210
+# ifdef machine_arch_type
+#  undef machine_arch_type
+#  define machine_arch_type    __machine_arch_type
+# else
+#  define machine_arch_type    MACH_TYPE_SMDKC210
+# endif
+# define machine_is_smdkc210() (machine_arch_type == MACH_TYPE_SMDKC210)
+#else
+# define machine_is_smdkc210() (0)
+#endif
+
+#ifdef CONFIG_MACH_OMAP3_BRAILLO
+# ifdef machine_arch_type
+#  undef machine_arch_type
+#  define machine_arch_type    __machine_arch_type
+# else
+#  define machine_arch_type    MACH_TYPE_OMAP3_BRAILLO
+# endif
+# define machine_is_omap3_braillo()    (machine_arch_type == MACH_TYPE_OMAP3_BRAILLO)
+#else
+# define machine_is_omap3_braillo()    (0)
+#endif
+
+#ifdef CONFIG_MACH_SPYPLUG
+# ifdef machine_arch_type
+#  undef machine_arch_type
+#  define machine_arch_type    __machine_arch_type
+# else
+#  define machine_arch_type    MACH_TYPE_SPYPLUG
+# endif
+# define machine_is_spyplug()  (machine_arch_type == MACH_TYPE_SPYPLUG)
+#else
+# define machine_is_spyplug()  (0)
+#endif
+
+#ifdef CONFIG_MACH_GINGER
+# ifdef machine_arch_type
+#  undef machine_arch_type
+#  define machine_arch_type    __machine_arch_type
+# else
+#  define machine_arch_type    MACH_TYPE_GINGER
+# endif
+# define machine_is_ginger()   (machine_arch_type == MACH_TYPE_GINGER)
+#else
+# define machine_is_ginger()   (0)
+#endif
+
+#ifdef CONFIG_MACH_TNY_T3530
+# ifdef machine_arch_type
+#  undef machine_arch_type
+#  define machine_arch_type    __machine_arch_type
+# else
+#  define machine_arch_type    MACH_TYPE_TNY_T3530
+# endif
+# define machine_is_tny_t3530()        (machine_arch_type == MACH_TYPE_TNY_T3530)
+#else
+# define machine_is_tny_t3530()        (0)
+#endif
+
+#ifdef CONFIG_MACH_PCA102
+# ifdef machine_arch_type
+#  undef machine_arch_type
+#  define machine_arch_type    __machine_arch_type
+# else
+#  define machine_arch_type    MACH_TYPE_PCA102
+# endif
+# define machine_is_pca102()   (machine_arch_type == MACH_TYPE_PCA102)
+#else
+# define machine_is_pca102()   (0)
+#endif
+
 /*
  * These have not yet been registered
  */
index 3b7c4d4f7f9a61b79a0dc1cde5b778e5aab12b3d..d258a6938228e499c508845d3a985e0ed6e2f99e 100644 (file)
@@ -50,6 +50,8 @@ void  icache_enable (void) {
 }
 
 void   icache_disable(void) {
+       /* we are not generate ICACHE size -> flush whole cache */
+       flush_cache(0, 32768);
        MSRCLR(0x20);
 }
 
@@ -58,5 +60,31 @@ void dcache_enable (void) {
 }
 
 void   dcache_disable(void) {
+#ifdef XILINX_USE_DCACHE
+#ifdef XILINX_DCACHE_BYTE_SIZE
+       flush_cache(0, XILINX_DCACHE_BYTE_SIZE);
+#else
+#warning please rebuild BSPs and update configuration
+       flush_cache(0, 32768);
+#endif
+#endif
        MSRCLR(0x80);
 }
+
+void flush_cache (ulong addr, ulong size)
+{
+       int i;
+       for (i = 0; i < size; i += 4)
+               asm volatile (
+#ifdef CONFIG_ICACHE
+                               "wic    %0, r0;"
+#endif
+                               "nop;"
+#ifdef CONFIG_DCACHE
+                               "wdc.flush      %0, r0;"
+#endif
+                               "nop;"
+                               :
+                               : "r" (addr + i)
+                               : "memory");
+}
index a6021c99c3b2ab6a563fdfb1acc14b2ce6ed3d30..7a9d022eeeffff2b45bd4af664bf3b9f61f69d68 100644 (file)
@@ -46,13 +46,6 @@ int disable_interrupts (void)
 }
 
 #ifdef CONFIG_SYS_INTC_0
-#ifdef CONFIG_SYS_TIMER_0
-extern void timer_init (void);
-#endif
-#ifdef CONFIG_SYS_FSL_2
-extern void fsl_init2 (void);
-#endif
-
 
 static struct irq_action vecs[CONFIG_SYS_INTC_0_NUM];
 
@@ -142,20 +135,14 @@ int interrupts_init (void)
        }
        /* initialize intc controller */
        intc_init ();
-#ifdef CONFIG_SYS_TIMER_0
-       timer_init ();
-#endif
-#ifdef CONFIG_SYS_FSL_2
-       fsl_init2 ();
-#endif
        enable_interrupts ();
        return 0;
 }
 
 void interrupt_handler (void)
 {
-       int irqs = (intc->isr & intc->ier);     /* find active interrupt */
-       int i = 1;
+       int irqs = intc->ivr;   /* find active interrupt */
+       int mask = 1;
 #ifdef DEBUG_INT
        int value;
        printf ("INTC isr %x, ier %x, iar %x, mer %x\n", intc->isr, intc->ier,
@@ -163,23 +150,17 @@ void interrupt_handler (void)
        R14(value);
        printf ("Interrupt handler on %x line, r14 %x\n", irqs, value);
 #endif
-       struct irq_action *act = vecs;
-       while (irqs) {
-               if (irqs & 1) {
+       struct irq_action *act = vecs + irqs;
+
+       intc->iar = mask << irqs;
+
 #ifdef DEBUG_INT
-                       printf
-                           ("Jumping to interrupt handler rutine addr %x,count %x,arg %x\n",
-                            act->handler, act->count, act->arg);
+       printf
+           ("Jumping to interrupt handler rutine addr %x,count %x,arg %x\n",
+            act->handler, act->count, act->arg);
 #endif
-                       act->handler (act->arg);
-                       act->count++;
-                       intc->iar = i;
-                       return;
-               }
-               irqs >>= 1;
-               act++;
-               i <<= 1;
-       }
+       act->handler (act->arg);
+       act->count++;
 
 #ifdef DEBUG_INT
        printf ("Dump INTC reg, isr %x, ier %x, iar %x, mer %x\n", intc->isr,
index e1fc19046c721ee98e0c332c76506f7431ccef35..47bba36f21f61095a8ff6a9d0d7eef91f4e25b84 100644 (file)
        .text
        .global _interrupt_handler
 _interrupt_handler:
-       addi    r1, r1, -4
-       swi     r2, r1, 0
-       addi    r1, r1, -4
-       swi     r3, r1, 0
-       addi    r1, r1, -4
-       swi     r4, r1, 0
-       addi    r1, r1, -4
-       swi     r5, r1, 0
-       addi    r1, r1, -4
-       swi     r6, r1, 0
-       addi    r1, r1, -4
-       swi     r7, r1, 0
-       addi    r1, r1, -4
-       swi     r8, r1, 0
-       addi    r1, r1, -4
-       swi     r9, r1, 0
-       addi    r1, r1, -4
-       swi     r10, r1, 0
-       addi    r1, r1, -4
-       swi     r11, r1, 0
-       addi    r1, r1, -4
-       swi     r12, r1, 0
-       addi    r1, r1, -4
-       swi     r13, r1, 0
-       addi    r1, r1, -4
-       swi     r14, r1, 0
-       addi    r1, r1, -4
-       swi     r15, r1, 0
-       addi    r1, r1, -4
-       swi     r16, r1, 0
-       addi    r1, r1, -4
-       swi     r17, r1, 0
-       addi    r1, r1, -4
-       swi     r18, r1, 0
-       addi    r1, r1, -4
-       swi     r19, r1, 0
-       addi    r1, r1, -4
-       swi     r20, r1, 0
-       addi    r1, r1, -4
-       swi     r21, r1, 0
-       addi    r1, r1, -4
-       swi     r22, r1, 0
-       addi    r1, r1, -4
-       swi     r23, r1, 0
-       addi    r1, r1, -4
-       swi     r24, r1, 0
-       addi    r1, r1, -4
-       swi     r25, r1, 0
-       addi    r1, r1, -4
-       swi     r26, r1, 0
-       addi    r1, r1, -4
-       swi     r27, r1, 0
-       addi    r1, r1, -4
-       swi     r28, r1, 0
-       addi    r1, r1, -4
-       swi     r29, r1, 0
-       addi    r1, r1, -4
-       swi     r30, r1, 0
-       addi    r1, r1, -4
-       swi     r31, r1, 0
+       swi     r2, r1, -4
+       swi     r3, r1, -8
+       swi     r4, r1, -12
+       swi     r5, r1, -16
+       swi     r6, r1, -20
+       swi     r7, r1, -24
+       swi     r8, r1, -28
+       swi     r9, r1, -32
+       swi     r10, r1, -36
+       swi     r11, r1, -40
+       swi     r12, r1, -44
+       swi     r13, r1, -48
+       swi     r14, r1, -52
+       swi     r15, r1, -56
+       swi     r16, r1, -60
+       swi     r17, r1, -64
+       swi     r18, r1, -68
+       swi     r19, r1, -72
+       swi     r20, r1, -76
+       swi     r21, r1, -80
+       swi     r22, r1, -84
+       swi     r23, r1, -88
+       swi     r24, r1, -92
+       swi     r25, r1, -96
+       swi     r26, r1, -100
+       swi     r27, r1, -104
+       swi     r28, r1, -108
+       swi     r29, r1, -112
+       swi     r30, r1, -116
+       swi     r31, r1, -120
+       addik   r1, r1, -124
        brlid   r15, interrupt_handler
        nop
        nop
-       lwi     r31, r1, 0
-       addi    r1, r1, 4
-       lwi     r30, r1, 0
-       addi    r1, r1, 4
-       lwi     r29, r1, 0
-       addi    r1, r1, 4
-       lwi     r28, r1, 0
-       addi    r1, r1, 4
-       lwi     r27, r1, 0
-       addi    r1, r1, 4
-       lwi     r26, r1, 0
-       addi    r1, r1, 4
-       lwi     r25, r1, 0
-       addi    r1, r1, 4
-       lwi     r24, r1, 0
-       addi    r1, r1, 4
-       lwi     r23, r1, 0
-       addi    r1, r1, 4
-       lwi     r22, r1, 0
-       addi    r1, r1, 4
-       lwi     r21, r1, 0
-       addi    r1, r1, 4
-       lwi     r20, r1, 0
-       addi    r1, r1, 4
-       lwi     r19, r1, 0
-       addi    r1, r1, 4
-       lwi     r18, r1, 0
-       addi    r1, r1, 4
-       lwi     r17, r1, 0
-       addi    r1, r1, 4
-       lwi     r16, r1, 0
-       addi    r1, r1, 4
-       lwi     r15, r1, 0
-       addi    r1, r1, 4
-       lwi     r14, r1, 0
-       addi    r1, r1, 4
-       lwi     r13, r1, 0
-       addi    r1, r1, 4
-       lwi     r12, r1, 0
-       addi    r1, r1, 4
-       lwi     r11, r1, 0
-       addi    r1, r1, 4
-       lwi     r10, r1, 0
-       addi    r1, r1, 4
-       lwi     r9, r1, 0
-       addi    r1, r1, 4
-       lwi     r8, r1, 0
-       addi    r1, r1, 4
-       lwi     r7, r1, 0
-       addi    r1, r1, 4
-       lwi     r6, r1, 0
-       addi    r1, r1, 4
-       lwi     r5, r1, 0
-       addi    r1, r1, 4
-       lwi     r4, r1, 0
-       addi    r1, r1, 4
-       lwi     r3, r1, 0
-       addi    r1, r1, 4
-       lwi     r2, r1, 0
-       addi    r1, r1, 4
+       addik   r1, r1, 124
+       lwi     r31, r1, -120
+       lwi     r30, r1, -116
+       lwi     r29, r1, -112
+       lwi     r28, r1, -108
+       lwi     r27, r1, -104
+       lwi     r26, r1, -100
+       lwi     r25, r1, -96
+       lwi     r24, r1, -92
+       lwi     r23, r1, -88
+       lwi     r22, r1, -84
+       lwi     r21, r1, -80
+       lwi     r20, r1, -76
+       lwi     r19, r1, -72
+       lwi     r18, r1, -68
+       lwi     r17, r1, -64
+       lwi     r16, r1, -60
+       lwi     r15, r1, -56
+       lwi     r14, r1, -52
+       lwi     r13, r1, -48
+       lwi     r12, r1, -44
+       lwi     r11, r1, -40
+       lwi     r10, r1, -36
+       lwi     r9, r1, -32
+       lwi     r8, r1, -28
+       lwi     r7, r1, -24
+       lwi     r6, r1, -20
+       lwi     r5, r1, -16
+       lwi     r4, r1, -12
+       lwi     r3, r1, -8
+       lwi     r2, r1, -4
 
        /* enable_interrupt */
 #ifdef XILINX_USE_MSR_INSTR
index a91eabc64280a84f5219f14b11fae9f6b0bcdf53..4936c628abe06a8e00759020b797a80cf8100dd6 100644 (file)
@@ -60,7 +60,7 @@ void timer_isr (void *arg)
        tmr->control = tmr->control | TIMER_INTERRUPT;
 }
 
-void timer_init (void)
+int timer_init (void)
 {
        tmr->loadreg = CONFIG_SYS_TIMER_0_PRELOAD;
        tmr->control = TIMER_INTERRUPT | TIMER_RESET;
@@ -68,6 +68,7 @@ void timer_init (void)
            TIMER_ENABLE | TIMER_ENABLE_INTR | TIMER_RELOAD | TIMER_DOWN_COUNT;
        reset_timer ();
        install_interrupt_handler (CONFIG_SYS_TIMER_0_IRQ, timer_isr, (void *)tmr);
+       return 0;
 }
 #endif
 #endif
index 9b0f296e3fda0f2adf2b5d99a924298aa5e9e023..817643795e49af55e117dd2a33b9a5dbb0784715 100644 (file)
@@ -29,7 +29,6 @@ SOBJS-y       +=
 
 COBJS-y        += board.o
 COBJS-y        += bootm.o
-COBJS-y        += cache.o
 COBJS-y        += time.o
 
 SRCS   := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
index d4baea930af8a058538369a529696b62320096e4..3ff5c17d244c6e04f2db06a11e50a3a3c8d4dc41 100644 (file)
@@ -30,6 +30,7 @@
 #include <timestamp.h>
 #include <version.h>
 #include <watchdog.h>
+#include <stdio_dev.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
@@ -44,6 +45,12 @@ extern int interrupts_init (void);
 #if defined(CONFIG_CMD_NET)
 extern int eth_init (bd_t * bis);
 #endif
+#ifdef CONFIG_SYS_TIMER_0
+extern int timer_init (void);
+#endif
+#ifdef CONFIG_SYS_FSL_2
+extern void fsl_init2 (void);
+#endif
 
 /*
  * All attempts to come up with a "common" initialization sequence
@@ -67,6 +74,12 @@ init_fnc_t *init_sequence[] = {
 #endif
 #ifdef CONFIG_SYS_INTC_0
        interrupts_init,
+#endif
+#ifdef CONFIG_SYS_TIMER_0
+       timer_init,
+#endif
+#ifdef CONFIG_SYS_FSL_2
+       fsl_init2,
 #endif
        NULL,
 };
@@ -76,6 +89,7 @@ void board_init (void)
        bd_t *bd;
        init_fnc_t **init_fnc_ptr;
        gd = (gd_t *) CONFIG_SYS_GBL_DATA_OFFSET;
+       char *s;
 #if defined(CONFIG_CMD_FLASH)
        ulong flash_size = 0;
 #endif
@@ -104,8 +118,8 @@ void board_init (void)
        }
 
        puts ("SDRAM :\n");
-       printf ("\t\tIcache:%s\n", icache_status() ? "OK" : "FAIL");
-       printf ("\t\tDcache:%s\n", dcache_status() ? "OK" : "FAIL");
+       printf ("\t\tIcache:%s\n", icache_status() ? "ON" : "OFF");
+       printf ("\t\tDcache:%s\n", dcache_status() ? "ON" : "OFF");
        printf ("\tU-Boot Start:0x%08x\n", TEXT_BASE);
 
 #if defined(CONFIG_CMD_FLASH)
@@ -139,15 +153,22 @@ void board_init (void)
        }
 #endif
 
+       /* relocate environment function pointers etc. */
+       env_relocate ();
+
+       /* Initialize stdio devices */
+       stdio_init ();
+
+       if ((s = getenv ("loadaddr")) != NULL) {
+               load_addr = simple_strtoul (s, NULL, 16);
+       }
+
 #if defined(CONFIG_CMD_NET)
        /* IP Address */
        bd->bi_ip_addr = getenv_IPaddr ("ipaddr");
        eth_init (bd);
 #endif
 
-       /* relocate environment function pointers etc. */
-       env_relocate ();
-
        /* main_loop */
        for (;;) {
                WATCHDOG_RESET ();
index bce4774fe37502aa9e47d413072efc820055d3d8..2227a81bb0c3baaf109651659eb0446f5c2f4f9f 100644 (file)
@@ -35,22 +35,59 @@ DECLARE_GLOBAL_DATA_PTR;
 int do_bootm_linux(int flag, int argc, char *argv[], bootm_headers_t *images)
 {
        /* First parameter is mapped to $r5 for kernel boot args */
-       void    (*theKernel) (char *);
+       void    (*theKernel) (char *, ulong, ulong);
        char    *commandline = getenv ("bootargs");
+       ulong   rd_data_start, rd_data_end;
 
        if ((flag != 0) && (flag != BOOTM_STATE_OS_GO))
                return 1;
 
-       theKernel = (void (*)(char *))images->ep;
+       int     ret;
+
+       char    *of_flat_tree = NULL;
+#if defined(CONFIG_OF_LIBFDT)
+       ulong   of_size = 0;
+
+       /* find flattened device tree */
+       ret = boot_get_fdt (flag, argc, argv, images, &of_flat_tree, &of_size);
+       if (ret)
+               return 1;
+#endif
+
+       theKernel = (void (*)(char *, ulong, ulong))images->ep;
+
+       /* find ramdisk */
+       ret = boot_get_ramdisk (argc, argv, images, IH_ARCH_MICROBLAZE,
+                       &rd_data_start, &rd_data_end);
+       if (ret)
+               return 1;
 
        show_boot_progress (15);
 
+       if (!(ulong) of_flat_tree)
+               of_flat_tree = (char *)simple_strtoul (argv[3], NULL, 16);
+
 #ifdef DEBUG
-       printf ("## Transferring control to Linux (at address %08lx) ...\n",
-               (ulong) theKernel);
+       printf ("## Transferring control to Linux (at address 0x%08lx) " \
+                               "ramdisk 0x%08lx, FDT 0x%08lx...\n",
+               (ulong) theKernel, rd_data_start, (ulong) of_flat_tree);
 #endif
 
-       theKernel (commandline);
+#ifdef XILINX_USE_DCACHE
+#ifdef XILINX_DCACHE_BYTE_SIZE
+       flush_cache(0, XILINX_DCACHE_BYTE_SIZE);
+#else
+#warning please rebuild BSPs and update configuration
+       flush_cache(0, 32768);
+#endif
+#endif
+       /*
+        * Linux Kernel Parameters (passing device tree):
+        * r5: pointer to command line
+        * r6: pointer to ramdisk
+        * r7: pointer to the fdt, followed by the board info data
+        */
+       theKernel (commandline, rd_data_start, (ulong) of_flat_tree);
        /* does not return */
 
        return 1;
index be40639280379fd3aba8ee820314d0689314171b..8e5d6ef03c141abed1cdb941b3f7a078068ded13 100644 (file)
@@ -28,3 +28,5 @@ STANDALONE_LOAD_ADDR = 0x02000000 -L $(gcclibdir)
 
 PLATFORM_CPPFLAGS += -DCONFIG_NIOS2 -D__NIOS2__
 PLATFORM_CPPFLAGS += -ffixed-r15 -G0
+
+LDSCRIPT ?= $(SRCTREE)/$(CPUDIR)/u-boot.lds
index 31cd5b004a0502d4ef38e6faa0ab3c4f86162aa0..d1016ea718370edf951299759895614b8af43854 100644 (file)
@@ -34,6 +34,7 @@
        .global _start
 
 _start:
+       wrctl   status, r0              /* Disable interrupts */
        /* ICACHE INIT -- only the icache line at the reset address
         * is invalidated at reset. So the init must stay within
         * the cache line size (8 words). If GERMS is used, we'll
@@ -43,10 +44,9 @@ _start:
        ori     r4, r0, %lo(CONFIG_SYS_ICACHELINE_SIZE)
        movhi   r5, %hi(CONFIG_SYS_ICACHE_SIZE)
        ori     r5, r5, %lo(CONFIG_SYS_ICACHE_SIZE)
-       mov     r6, r0
-0:     initi   r6
-       add     r6, r6, r4
-       bltu    r6, r5, 0b
+0:     initi   r5
+       sub     r5, r5, r4
+       bgt     r5, r0, 0b
        br      _except_end     /* Skip the tramp */
 
        /* EXCEPTION TRAMPOLINE -- the following gets copied
@@ -62,7 +62,6 @@ _except_end:
        /* INTERRUPTS -- for now, all interrupts masked and globally
         * disabled.
         */
-       wrctl   status, r0              /* Disable interrupts */
        wrctl   ienable, r0             /* All disabled */
 
        /* DCACHE INIT -- if dcache not implemented, initd behaves as
similarity index 98%
rename from board/altera/ep1s40/u-boot.lds
rename to arch/nios2/cpu/u-boot.lds
index b909e94f8fcfa48a532ae1cf69aed7d33c16e1f8..fe4a2ebcc7d63252bfeb43c112bd570033462f76 100644 (file)
@@ -30,7 +30,7 @@ SECTIONS
 {
        .text :
        {
-         arch/nios/cpu2/start.o (.text)
+         arch/nios2/cpu/start.o (.text)
          *(.text)
          *(.text.*)
          *(.gnu.linkonce.t*)
index 495c823af29dd9cc2e848a23adc954ba86e8ce82..d5c152e73e8815dbb6b2f05c050c59622d2f28af 100644 (file)
 #define __ASM_NIOS2_BYTEORDER_H_
 
 #include <asm/types.h>
+
+#if !defined(__STRICT_ANSI__) || defined(__KERNEL__)
+#  define __BYTEORDER_HAS_U64__
+#  define __SWAB_64_THRU_32__
+#endif
+
 #include <linux/byteorder/little_endian.h>
 
 #endif /* __ASM_NIOS2_BYTEORDER_H_ */
diff --git a/arch/nios2/include/asm/dma-mapping.h b/arch/nios2/include/asm/dma-mapping.h
new file mode 100644 (file)
index 0000000..1350e3b
--- /dev/null
@@ -0,0 +1,23 @@
+#ifndef __ASM_NIOS2_DMA_MAPPING_H
+#define __ASM_NIOS2_DMA_MAPPING_H
+
+/* dma_alloc_coherent() return cache-line aligned allocation which is mapped
+ * to uncached io region.
+ *
+ * IO_REGION_BASE should be defined in board config header file
+ *   0x80000000 for nommu, 0xe0000000 for mmu
+ */
+
+static inline void *dma_alloc_coherent(size_t len, unsigned long *handle)
+{
+       void *addr = malloc(len + CONFIG_SYS_DCACHELINE_SIZE);
+       if (!addr)
+               return 0;
+       flush_dcache((unsigned long)addr, len + CONFIG_SYS_DCACHELINE_SIZE);
+       *handle = ((unsigned long)addr +
+                  (CONFIG_SYS_DCACHELINE_SIZE - 1)) &
+               ~(CONFIG_SYS_DCACHELINE_SIZE - 1) & ~(IO_REGION_BASE);
+       return (void *)(*handle | IO_REGION_BASE);
+}
+
+#endif /* __ASM_NIOS2_DMA_MAPPING_H */
index 8ec66a354045935cbb1e70566c0557e74fc9fc33..f83e691a3498219c49e79576b06cbc7f5e7cf391 100644 (file)
@@ -28,6 +28,7 @@
 #include <stdio_dev.h>
 #include <watchdog.h>
 #include <malloc.h>
+#include <mmc.h>
 #include <net.h>
 #ifdef CONFIG_STATUS_LED
 #include <status_led.h>
@@ -35,6 +36,9 @@
 #if defined(CONFIG_SYS_NIOS_EPCSBASE)
 #include <nios2-epcs.h>
 #endif
+#ifdef CONFIG_CMD_NAND
+#include <nand.h>      /* cannot even include nand.h if it isnt configured */
+#endif
 
 DECLARE_GLOBAL_DATA_PTR;
 
@@ -100,7 +104,9 @@ void board_init (void)
        bd = gd->bd;
        bd->bi_memstart = CONFIG_SYS_SDRAM_BASE;
        bd->bi_memsize = CONFIG_SYS_SDRAM_SIZE;
+#ifndef CONFIG_SYS_NO_FLASH
        bd->bi_flashstart = CONFIG_SYS_FLASH_BASE;
+#endif
 #if    defined(CONFIG_SYS_SRAM_BASE) && defined(CONFIG_SYS_SRAM_SIZE)
        bd->bi_sramstart= CONFIG_SYS_SRAM_BASE;
        bd->bi_sramsize = CONFIG_SYS_SRAM_SIZE;
@@ -119,8 +125,20 @@ void board_init (void)
        /* The Malloc area is immediately below the monitor copy in RAM */
        mem_malloc_init(CONFIG_SYS_MALLOC_BASE, CONFIG_SYS_MALLOC_LEN);
 
+#ifndef CONFIG_SYS_NO_FLASH
        WATCHDOG_RESET ();
        bd->bi_flashsize = flash_init();
+#endif
+
+#ifdef CONFIG_CMD_NAND
+       puts("NAND:  ");
+       nand_init();
+#endif
+
+#ifdef CONFIG_GENERIC_MMC
+       puts("MMC:   ");
+       mmc_initialize(bd);
+#endif
 
        WATCHDOG_RESET ();
        env_relocate();
similarity index 100%
rename from arch/ppc/config.mk
rename to arch/powerpc/config.mk
similarity index 99%
rename from arch/ppc/cpu/74xx_7xx/traps.c
rename to arch/powerpc/cpu/74xx_7xx/traps.c
index 1d5dd017efc599e04bfe398da7a0ec8dc69b03b2..5073b0516d8cb2bb21cf73cb547a7bd02cc23880 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * linux/arch/ppc/kernel/traps.c
+ * linux/arch/powerpc/kernel/traps.c
  *
  * Copyright (C) 1995-1996  Gary Thomas (gdt@linuxppc.org)
  *
similarity index 98%
rename from arch/ppc/cpu/mpc512x/Makefile
rename to arch/powerpc/cpu/mpc512x/Makefile
index 1719c66e8d6ee527ed3e271fb8ccded2bc2928d9..9cfdb0f35dea437d511b99371c2d95b374793b0f 100644 (file)
@@ -29,6 +29,7 @@ LIB   = $(obj)lib$(CPU).a
 START  = start.o
 COBJS-y        := cpu.o
 COBJS-y        += traps.o
+COBJS-y += common.o
 COBJS-y += cpu_init.o
 COBJS-y += fixed_sdram.o
 COBJS-y += i2c.o
similarity index 87%
rename from arch/ppc/cpu/mpc512x/asm-offsets.h
rename to arch/powerpc/cpu/mpc512x/asm-offsets.h
index 5873fe05ec5307a0e436a25755280199023d5262..957d4be2d208af7d05f3f143676e76e7563ea880 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * needed for arch/ppc/cpu/mpc512x/start.S
+ * needed for arch/powerpc/cpu/mpc512x/start.S
  *
  * These should be auto-generated
  */
diff --git a/arch/powerpc/cpu/mpc512x/common.c b/arch/powerpc/cpu/mpc512x/common.c
new file mode 100644 (file)
index 0000000..180d323
--- /dev/null
@@ -0,0 +1,25 @@
+#include <common.h>
+#include <asm/io.h>
+
+#if defined(CONFIG_POST) || defined(CONFIG_LOGBUFFER)
+
+#if defined(CONFIG_SYS_POST_WORD_ADDR)
+# define _POST_ADDR    (CONFIG_SYS_POST_WORD_ADDR)
+#else
+#error echo "No POST word address defined"
+#endif
+
+void post_word_store(ulong a)
+{
+       volatile void *save_addr = (volatile void *)(_POST_ADDR);
+
+       out_be32(save_addr, a);
+}
+
+ulong post_word_load(void)
+{
+       volatile void *save_addr = (volatile void *)(_POST_ADDR);
+
+       return in_be32(save_addr);
+}
+#endif  /* CONFIG_POST || CONFIG_LOGBUFFER */
similarity index 94%
rename from arch/ppc/cpu/mpc512x/config.mk
rename to arch/powerpc/cpu/mpc512x/config.mk
index b6727dcd216cc60e4e721a6f7a7bbefed0c3d6b6..b29edb1b387bf18bda222f20b06c84dceb2f12a6 100644 (file)
@@ -26,4 +26,4 @@ PLATFORM_CPPFLAGS += -DCONFIG_MPC512X -DCONFIG_E300 \
 
 # Use default linker script.
 # A board port can override this setting in board/*/config.mk
-LDSCRIPT := $(SRCTREE)/arch/ppc/cpu/mpc512x/u-boot.lds
+LDSCRIPT := $(SRCTREE)/arch/powerpc/cpu/mpc512x/u-boot.lds
similarity index 94%
rename from arch/ppc/cpu/mpc512x/diu.c
rename to arch/powerpc/cpu/mpc512x/diu.c
index 93611615f1b1a3528b94724a0dd1019f4b9122b2..f8d19a0a1f802769dac9e60289417a8161d217cb 100644 (file)
@@ -34,6 +34,8 @@
 #include <video_fb.h>
 #endif
 
+DECLARE_GLOBAL_DATA_PTR;
+
 #ifdef CONFIG_FSL_DIU_LOGO_BMP
 extern unsigned int FSL_Logo_BMP[];
 #else
@@ -65,10 +67,11 @@ void diu_set_pixel_clock(unsigned int pixclock)
 char *valid_bmp(char *addr)
 {
        unsigned long h_addr;
+       bd_t *bd = gd->bd;
 
        h_addr = simple_strtoul(addr, NULL, 16);
-       if (h_addr < CONFIG_SYS_FLASH_BASE ||
-                       h_addr >= (CONFIG_SYS_FLASH_BASE + CONFIG_SYS_FLASH_SIZE - 1)) {
+       if (h_addr < bd->bi_flashstart ||
+           h_addr >= (bd->bi_flashstart + bd->bi_flashsize - 1)) {
                printf("bmp addr %lx is not a valid flash address\n", h_addr);
                return 0;
        } else if ((*(char *)(h_addr) != 'B') || (*(char *)(h_addr+1) != 'M')) {
@@ -84,8 +87,13 @@ int mpc5121_diu_init(void)
        char *bmp = NULL;
        char *bmp_env;
 
+#if defined(CONFIG_VIDEO_XRES) & defined(CONFIG_VIDEO_YRES)
+       xres = CONFIG_VIDEO_XRES;
+       yres = CONFIG_VIDEO_YRES;
+#else
        xres = 1024;
        yres = 768;
+#endif
        pixel_format = 0x88883316;
 
        debug("mpc5121_diu_init\n");
similarity index 94%
rename from arch/ppc/cpu/mpc512x/fixed_sdram.c
rename to arch/powerpc/cpu/mpc512x/fixed_sdram.c
index 442b5fc918009ddd9e310dfe5ced34bbec31ec9b..550cbd0bd6fcf1484e1c88158ceed156d25c0fff 100644 (file)
@@ -78,7 +78,7 @@ long int fixed_sdram(ddr512x_config_t *mddrc_config,
                        u32 *dram_init_seq, int seq_sz)
 {
        volatile immap_t *im = (immap_t *)CONFIG_SYS_IMMR;
-       u32 msize = CONFIG_SYS_DDR_SIZE * 1024 * 1024;
+       u32 msize = CONFIG_SYS_MAX_RAM_SIZE;
        u32 msize_log2 = __ilog2(msize);
        u32 i;
 
@@ -91,7 +91,7 @@ long int fixed_sdram(ddr512x_config_t *mddrc_config,
        }
 
        /* Initialize IO Control */
-       out_be32(&im->io_ctrl.io_control_mem, IOCTRL_MUX_DDR);
+       out_be32(&im->io_ctrl.io_control_mem, CONFIG_SYS_IOCTRL_MUX_DDR);
 
        /* Initialize DDR Local Window */
        out_be32(&im->sysconf.ddrlaw.bar, CONFIG_SYS_DDR_BASE & 0xFFFFF000);
@@ -148,5 +148,10 @@ long int fixed_sdram(ddr512x_config_t *mddrc_config,
        out_be32(&im->mddrc.ddr_time_config0, mddrc_config->ddr_time_config0);
        out_be32(&im->mddrc.ddr_sys_config, mddrc_config->ddr_sys_config);
 
+       msize = get_ram_size(CONFIG_SYS_DDR_BASE, CONFIG_SYS_MAX_RAM_SIZE);
+       /* Fix DDR Local Window for new size */
+       out_be32(&im->sysconf.ddrlaw.ar, __ilog2(msize) - 1);
+       sync_law(&im->sysconf.ddrlaw.ar);
+
        return msize;
 }
diff --git a/arch/powerpc/cpu/mpc512x/serial.c b/arch/powerpc/cpu/mpc512x/serial.c
new file mode 100644 (file)
index 0000000..cb5bbf0
--- /dev/null
@@ -0,0 +1,490 @@
+/*
+ * (C) Copyright 2000 - 2010
+ * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
+ *
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of
+ * the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ * Based ont the MPC5200 PSC driver.
+ * Adapted for MPC512x by Jan Wrobel <wrr@semihalf.com>
+ */
+
+/*
+ * Minimal serial functions needed to use one of the PSC ports
+ * as serial console interface.
+ */
+
+#include <common.h>
+#include <asm/io.h>
+#include <asm/processor.h>
+#include <serial.h>
+
+DECLARE_GLOBAL_DATA_PTR;
+
+#if defined(CONFIG_PSC_CONSOLE) || defined(CONFIG_SERIAL_MULTI)
+
+static void fifo_init (volatile psc512x_t *psc)
+{
+       volatile immap_t *im = (immap_t *) CONFIG_SYS_IMMR;
+       u32 tfsize, rfsize;
+
+       /* reset Rx & Tx fifo slice */
+       out_be32(&psc->rfcmd, PSC_FIFO_RESET_SLICE);
+       out_be32(&psc->tfcmd, PSC_FIFO_RESET_SLICE);
+
+       /* disable Tx & Rx FIFO interrupts */
+       out_be32(&psc->rfintmask, 0);
+       out_be32(&psc->tfintmask, 0);
+
+#if defined(CONFIG_SERIAL_MULTI)
+       switch (((u32)psc & 0xf00) >> 8) {
+       case 0:
+               tfsize = FIFOC_PSC0_TX_SIZE | (FIFOC_PSC0_TX_ADDR << 16);
+               rfsize = FIFOC_PSC0_RX_SIZE | (FIFOC_PSC0_RX_ADDR << 16);
+               break;
+       case 1:
+               tfsize = FIFOC_PSC1_TX_SIZE | (FIFOC_PSC1_TX_ADDR << 16);
+               rfsize = FIFOC_PSC1_RX_SIZE | (FIFOC_PSC1_RX_ADDR << 16);
+               break;
+       case 2:
+               tfsize = FIFOC_PSC2_TX_SIZE | (FIFOC_PSC2_TX_ADDR << 16);
+               rfsize = FIFOC_PSC2_RX_SIZE | (FIFOC_PSC2_RX_ADDR << 16);
+               break;
+       case 3:
+               tfsize = FIFOC_PSC3_TX_SIZE | (FIFOC_PSC3_TX_ADDR << 16);
+               rfsize = FIFOC_PSC3_RX_SIZE | (FIFOC_PSC3_RX_ADDR << 16);
+               break;
+       case 4:
+               tfsize = FIFOC_PSC4_TX_SIZE | (FIFOC_PSC4_TX_ADDR << 16);
+               rfsize = FIFOC_PSC4_RX_SIZE | (FIFOC_PSC4_RX_ADDR << 16);
+               break;
+       case 5:
+               tfsize = FIFOC_PSC5_TX_SIZE | (FIFOC_PSC5_TX_ADDR << 16);
+               rfsize = FIFOC_PSC5_RX_SIZE | (FIFOC_PSC5_RX_ADDR << 16);
+               break;
+       case 6:
+               tfsize = FIFOC_PSC6_TX_SIZE | (FIFOC_PSC6_TX_ADDR << 16);
+               rfsize = FIFOC_PSC6_RX_SIZE | (FIFOC_PSC6_RX_ADDR << 16);
+               break;
+       case 7:
+               tfsize = FIFOC_PSC7_TX_SIZE | (FIFOC_PSC7_TX_ADDR << 16);
+               rfsize = FIFOC_PSC7_RX_SIZE | (FIFOC_PSC7_RX_ADDR << 16);
+               break;
+       case 8:
+               tfsize = FIFOC_PSC8_TX_SIZE | (FIFOC_PSC8_TX_ADDR << 16);
+               rfsize = FIFOC_PSC8_RX_SIZE | (FIFOC_PSC8_RX_ADDR << 16);
+               break;
+       case 9:
+               tfsize = FIFOC_PSC9_TX_SIZE | (FIFOC_PSC9_TX_ADDR << 16);
+               rfsize = FIFOC_PSC9_RX_SIZE | (FIFOC_PSC9_RX_ADDR << 16);
+               break;
+       case 10:
+               tfsize = FIFOC_PSC10_TX_SIZE | (FIFOC_PSC10_TX_ADDR << 16);
+               rfsize = FIFOC_PSC10_RX_SIZE | (FIFOC_PSC10_RX_ADDR << 16);
+               break;
+       case 11:
+               tfsize = FIFOC_PSC11_TX_SIZE | (FIFOC_PSC11_TX_ADDR << 16);
+               rfsize = FIFOC_PSC11_RX_SIZE | (FIFOC_PSC11_RX_ADDR << 16);
+               break;
+       default:
+               return;
+       }
+#else
+       tfsize = CONSOLE_FIFO_TX_SIZE | (CONSOLE_FIFO_TX_ADDR << 16);
+       rfsize = CONSOLE_FIFO_RX_SIZE | (CONSOLE_FIFO_RX_ADDR << 16);
+#endif
+       out_be32(&psc->tfsize, tfsize);
+       out_be32(&psc->rfsize, rfsize);
+
+       /* enable Tx & Rx FIFO slice */
+       out_be32(&psc->rfcmd, PSC_FIFO_ENABLE_SLICE);
+       out_be32(&psc->tfcmd, PSC_FIFO_ENABLE_SLICE);
+
+       out_be32(&im->fifoc.fifoc_cmd, FIFOC_DISABLE_CLOCK_GATE);
+       __asm__ volatile ("sync");
+}
+
+void serial_setbrg_dev(unsigned int idx)
+{
+       volatile immap_t *im = (immap_t *) CONFIG_SYS_IMMR;
+       volatile psc512x_t *psc = (psc512x_t *) &im->psc[idx];
+       unsigned long baseclk, div;
+       unsigned long baudrate;
+       char buf[16];
+       char *br_env;
+
+       baudrate = gd->baudrate;
+       if (idx != CONFIG_PSC_CONSOLE) {
+               /* Allows setting baudrate for other serial devices
+                * on PSCx using environment. If not specified, use
+                * the same baudrate as for console.
+                */
+               sprintf(buf, "psc%d_baudrate", idx);
+               br_env = getenv(buf);
+               if (br_env)
+                       baudrate = simple_strtoul(br_env, NULL, 10);
+
+               debug("%s: idx %d, baudrate %d\n", __func__, idx, baudrate);
+       }
+
+       /* calculate divisor for setting PSC CTUR and CTLR registers */
+       baseclk = (gd->ips_clk + 8) / 16;
+       div = (baseclk + (baudrate / 2)) / baudrate;
+
+       out_8(&psc->ctur, (div >> 8) & 0xff);
+       out_8(&psc->ctlr,  div & 0xff); /* set baudrate */
+}
+
+int serial_init_dev(unsigned int idx)
+{
+       volatile immap_t *im = (immap_t *) CONFIG_SYS_IMMR;
+       volatile psc512x_t *psc = (psc512x_t *) &im->psc[idx];
+#if defined(CONFIG_SERIAL_MULTI)
+       u32 reg;
+
+       reg = in_be32(&im->clk.sccr[0]);
+       out_be32(&im->clk.sccr[0], reg | CLOCK_SCCR1_PSC_EN(idx));
+#endif
+
+       fifo_init (psc);
+
+       /* set MR register to point to MR1 */
+       out_8(&psc->command, PSC_SEL_MODE_REG_1);
+
+       /* disable Tx/Rx */
+       out_8(&psc->command, PSC_TX_DISABLE | PSC_RX_DISABLE);
+
+       /* choose the prescaler by 16 for the Tx/Rx clock generation */
+       out_be16(&psc->psc_clock_select, 0xdd00);
+
+       /* switch to UART mode */
+       out_be32(&psc->sicr, 0);
+
+       /* mode register points to mr1 */
+       /* configure parity, bit length and so on in mode register 1*/
+       out_8(&psc->mode, PSC_MODE_8_BITS | PSC_MODE_PARNONE);
+       /* now, mode register points to mr2 */
+       out_8(&psc->mode, PSC_MODE_1_STOPBIT);
+
+       /* set baudrate */
+       serial_setbrg_dev(idx);
+
+       /* disable all interrupts */
+       out_be16(&psc->psc_imr, 0);
+
+       /* reset and enable Rx/Tx */
+       out_8(&psc->command, PSC_RST_RX);
+       out_8(&psc->command, PSC_RST_TX);
+       out_8(&psc->command, PSC_RX_ENABLE | PSC_TX_ENABLE);
+
+       return 0;
+}
+
+int serial_uninit_dev(unsigned int idx)
+{
+       volatile immap_t *im = (immap_t *) CONFIG_SYS_IMMR;
+       volatile psc512x_t *psc = (psc512x_t *) &im->psc[idx];
+       u32 reg;
+
+       out_8(&psc->command, PSC_RX_DISABLE | PSC_TX_DISABLE);
+       reg = in_be32(&im->clk.sccr[0]);
+       reg &= ~CLOCK_SCCR1_PSC_EN(idx);
+       out_be32(&im->clk.sccr[0], reg);
+
+       return 0;
+}
+
+void serial_putc_dev(unsigned int idx, const char c)
+{
+       volatile immap_t *im = (immap_t *)CONFIG_SYS_IMMR;
+       volatile psc512x_t *psc = (psc512x_t *) &im->psc[idx];
+
+       if (c == '\n')
+               serial_putc_dev(idx, '\r');
+
+       /* Wait for last character to go. */
+       while (!(in_be16(&psc->psc_status) & PSC_SR_TXEMP))
+               ;
+
+       out_8(&psc->tfdata_8, c);
+}
+
+void serial_putc_raw_dev(unsigned int idx, const char c)
+{
+       volatile immap_t *im = (immap_t *) CONFIG_SYS_IMMR;
+       volatile psc512x_t *psc = (psc512x_t *) &im->psc[idx];
+
+       /* Wait for last character to go. */
+       while (!(in_be16(&psc->psc_status) & PSC_SR_TXEMP))
+               ;
+
+       out_8(&psc->tfdata_8, c);
+}
+
+void serial_puts_dev(unsigned int idx, const char *s)
+{
+       while (*s)
+               serial_putc_dev(idx, *s++);
+}
+
+int serial_getc_dev(unsigned int idx)
+{
+       volatile immap_t *im = (immap_t *) CONFIG_SYS_IMMR;
+       volatile psc512x_t *psc = (psc512x_t *) &im->psc[idx];
+
+       /* Wait for a character to arrive. */
+       while (in_be32(&psc->rfstat) & PSC_FIFO_EMPTY)
+               ;
+
+       return in_8(&psc->rfdata_8);
+}
+
+int serial_tstc_dev(unsigned int idx)
+{
+       volatile immap_t *im = (immap_t *) CONFIG_SYS_IMMR;
+       volatile psc512x_t *psc = (psc512x_t *) &im->psc[idx];
+
+       return !(in_be32(&psc->rfstat) & PSC_FIFO_EMPTY);
+}
+
+void serial_setrts_dev(unsigned int idx, int s)
+{
+       volatile immap_t *im = (immap_t *) CONFIG_SYS_IMMR;
+       volatile psc512x_t *psc = (psc512x_t *) &im->psc[idx];
+
+       if (s) {
+               /* Assert RTS (become LOW) */
+               out_8(&psc->op1, 0x1);
+       }
+       else {
+               /* Negate RTS (become HIGH) */
+               out_8(&psc->op0, 0x1);
+       }
+}
+
+int serial_getcts_dev(unsigned int idx)
+{
+       volatile immap_t *im = (immap_t *) CONFIG_SYS_IMMR;
+       volatile psc512x_t *psc = (psc512x_t *) &im->psc[idx];
+
+       return (in_8(&psc->ip) & 0x1) ? 0 : 1;
+}
+#endif /* CONFIG_PSC_CONSOLE || CONFIG_SERIAL_MULTI */
+
+#if defined(CONFIG_SERIAL_MULTI)
+
+#define DECLARE_PSC_SERIAL_FUNCTIONS(port) \
+       int serial##port##_init(void) \
+       { \
+               return serial_init_dev(port); \
+       } \
+       int serial##port##_uninit(void) \
+       { \
+               return serial_uninit_dev(port); \
+       } \
+       void serial##port##_setbrg(void) \
+       { \
+               serial_setbrg_dev(port); \
+       } \
+       int serial##port##_getc(void) \
+       { \
+               return serial_getc_dev(port); \
+       } \
+       int serial##port##_tstc(void) \
+       { \
+               return serial_tstc_dev(port); \
+       } \
+       void serial##port##_putc(const char c) \
+       { \
+               serial_putc_dev(port, c); \
+       } \
+       void serial##port##_puts(const char *s) \
+       { \
+               serial_puts_dev(port, s); \
+       }
+
+#define INIT_PSC_SERIAL_STRUCTURE(port, name, bus) { \
+       name, \
+       bus, \
+       serial##port##_init, \
+       serial##port##_uninit, \
+       serial##port##_setbrg, \
+       serial##port##_getc, \
+       serial##port##_tstc, \
+       serial##port##_putc, \
+       serial##port##_puts, \
+}
+
+#if defined(CONFIG_SYS_PSC1)
+DECLARE_PSC_SERIAL_FUNCTIONS(1);
+struct serial_device serial1_device =
+INIT_PSC_SERIAL_STRUCTURE(1, "psc1", "UART1");
+#endif
+
+#if defined(CONFIG_SYS_PSC3)
+DECLARE_PSC_SERIAL_FUNCTIONS(3);
+struct serial_device serial3_device =
+INIT_PSC_SERIAL_STRUCTURE(3, "psc3", "UART3");
+#endif
+
+#if defined(CONFIG_SYS_PSC4)
+DECLARE_PSC_SERIAL_FUNCTIONS(4);
+struct serial_device serial4_device =
+INIT_PSC_SERIAL_STRUCTURE(4, "psc4", "UART4");
+#endif
+
+#if defined(CONFIG_SYS_PSC6)
+DECLARE_PSC_SERIAL_FUNCTIONS(6);
+struct serial_device serial6_device =
+INIT_PSC_SERIAL_STRUCTURE(6, "psc6", "UART6");
+#endif
+
+#else
+
+void serial_setbrg(void)
+{
+       serial_setbrg_dev(CONFIG_PSC_CONSOLE);
+}
+
+int serial_init(void)
+{
+       return serial_init_dev(CONFIG_PSC_CONSOLE);
+}
+
+void serial_putc(const char c)
+{
+       serial_putc_dev(CONFIG_PSC_CONSOLE, c);
+}
+
+void serial_putc_raw(const char c)
+{
+       serial_putc_raw_dev(CONFIG_PSC_CONSOLE, c);
+}
+
+void serial_puts(const char *s)
+{
+       serial_puts_dev(CONFIG_PSC_CONSOLE, s);
+}
+
+int serial_getc(void)
+{
+       return serial_getc_dev(CONFIG_PSC_CONSOLE);
+}
+
+int serial_tstc(void)
+{
+       return serial_tstc_dev(CONFIG_PSC_CONSOLE);
+}
+
+void serial_setrts(int s)
+{
+       return serial_setrts_dev(CONFIG_PSC_CONSOLE, s);
+}
+
+int serial_getcts(void)
+{
+       return serial_getcts_dev(CONFIG_PSC_CONSOLE);
+}
+#endif /* CONFIG_PSC_CONSOLE */
+
+#if defined(CONFIG_SERIAL_MULTI)
+#include <stdio_dev.h>
+/*
+ * Routines for communication with serial devices over PSC
+ */
+/* Bitfield for initialized PSCs */
+static unsigned int initialized;
+
+struct stdio_dev *open_port(int num, int baudrate)
+{
+       struct stdio_dev *port;
+       char env_var[16];
+       char env_val[10];
+       char name[7];
+
+       if (num < 0 || num > 11)
+               return NULL;
+
+       sprintf(name, "psc%d", num);
+       port = stdio_get_by_name(name);
+       if (!port)
+               return NULL;
+
+       if (!test_bit(num, &initialized)) {
+               sprintf(env_var, "psc%d_baudrate", num);
+               sprintf(env_val, "%d", baudrate);
+               setenv(env_var, env_val);
+
+               if (port->start())
+                       return NULL;
+
+               set_bit(num, &initialized);
+       }
+
+       return port;
+}
+
+int close_port(int num)
+{
+       struct stdio_dev *port;
+       int ret;
+       char name[7];
+
+       if (num < 0 || num > 11)
+               return -1;
+
+       sprintf(name, "psc%d", num);
+       port = stdio_get_by_name(name);
+       if (!port)
+               return -1;
+
+       ret = port->stop();
+       clear_bit(num, &initialized);
+
+       return ret;
+}
+
+int write_port(struct stdio_dev *port, char *buf)
+{
+       if (!port || !buf)
+               return -1;
+
+       port->puts(buf);
+
+       return 0;
+}
+
+int read_port(struct stdio_dev *port, char *buf, int size)
+{
+       int cnt = 0;
+
+       if (!port || !buf)
+               return -1;
+
+       if (!size)
+               return 0;
+
+       while (port->tstc()) {
+               buf[cnt++] = port->getc();
+               if (cnt > size)
+                       break;
+       }
+
+       return cnt;
+}
+#endif /* CONFIG_SERIAL_MULTI */
similarity index 98%
rename from arch/ppc/cpu/mpc512x/u-boot.lds
rename to arch/powerpc/cpu/mpc512x/u-boot.lds
index fbc2026d530e22195951acbd5e37d4d27771a68b..c71679960c1260c30762c5624999ac499868f3cb 100644 (file)
@@ -49,7 +49,7 @@ SECTIONS
   .plt : { *(.plt) }
   .text      :
   {
-    arch/ppc/cpu/mpc512x/start.o       (.text)
+    arch/powerpc/cpu/mpc512x/start.o   (.text)
     *(.text)
     *(.got1)
     . = ALIGN(16);
similarity index 93%
rename from arch/ppc/cpu/mpc5xx/Makefile
rename to arch/powerpc/cpu/mpc5xx/Makefile
index f2ebb9a1234837db983b861ae95371477dbda8fc..80c53203e9615a44f8ea71b6ba45e40bb8b9db05 100644 (file)
 #
 
 #
-# File:                        arch/ppc/cpu/mpc5xx/Makefile
+# File:                        arch/powerpc/cpu/mpc5xx/Makefile
 #
 # Discription:         Makefile to build mpc5xx cpu configuration.
 #                      Will include top config.mk which itselfs
-#                      uses the definitions made in arch/ppc/cpu/mpc5xx/config.mk
+#                      uses the definitions made in arch/powerpc/cpu/mpc5xx/config.mk
 #
 
 
similarity index 95%
rename from arch/ppc/cpu/mpc5xx/config.mk
rename to arch/powerpc/cpu/mpc5xx/config.mk
index e0b0ce1fd5c9129e7b135f87b076084fe06a3407..5f9285df492c2b3a6a37dec3dbb7abee0ab9e0a7 100644 (file)
@@ -33,4 +33,4 @@ PLATFORM_RELFLAGS +=  -fPIC -meabi
 PLATFORM_CPPFLAGS +=   -DCONFIG_5xx -ffixed-r2 -mpowerpc -msoft-float
 
 # Use default linker script.  Board port can override in board/*/config.mk
-LDSCRIPT := $(SRCTREE)/arch/ppc/cpu/mpc5xx/u-boot.lds
+LDSCRIPT := $(SRCTREE)/arch/powerpc/cpu/mpc5xx/u-boot.lds
similarity index 99%
rename from arch/ppc/cpu/mpc5xx/traps.c
rename to arch/powerpc/cpu/mpc5xx/traps.c
index 6882c21a41766c9e90434d50e6f4ba89ef426969..e3ce11b2b3e34662967882ed5c09f76df3e98b4f 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * linux/arch/ppc/kernel/traps.c
+ * linux/arch/powerpc/kernel/traps.c
  *
  * Copyright (C) 1995-1996  Gary Thomas (gdt@linuxppc.org)
  *
similarity index 98%
rename from arch/ppc/cpu/mpc5xx/u-boot.lds
rename to arch/powerpc/cpu/mpc5xx/u-boot.lds
index 55190c72d9f118776be211e1106744a53bebc574..d5e5dc1787ab5c1756cfb854c002c6517a420ae2 100644 (file)
@@ -55,7 +55,7 @@ SECTIONS
     /* WARNING - the following is hand-optimized to fit within */
     /* the sector layout of our flash chips!   XXX FIXME XXX   */
 
-    arch/ppc/cpu/mpc5xx/start.o        (.text)
+    arch/powerpc/cpu/mpc5xx/start.o    (.text)
 
     *(.text)
     *(.got1)
similarity index 94%
rename from arch/ppc/cpu/mpc5xxx/config.mk
rename to arch/powerpc/cpu/mpc5xxx/config.mk
index 9a64cb623dd14f160e52a8c725470b88e7610737..7ef8a4708a90df8846bfff1d82d5c36d83ac786e 100644 (file)
@@ -27,4 +27,4 @@ PLATFORM_CPPFLAGS += -DCONFIG_MPC5xxx -ffixed-r2 \
                     -mstring -mcpu=603e -mmultiple
 
 # Use default linker script.  Board port can override in board/*/config.mk
-LDSCRIPT := $(SRCTREE)/arch/ppc/cpu/mpc5xxx/u-boot.lds
+LDSCRIPT := $(SRCTREE)/arch/powerpc/cpu/mpc5xxx/u-boot.lds
similarity index 99%
rename from arch/ppc/cpu/mpc5xxx/interrupts.c
rename to arch/powerpc/cpu/mpc5xxx/interrupts.c
index 6035771eeb02c07ab396ddcb7543d8647e2519bd..16eee3a480a18a4d9f66e3e43990ff3337c8c482 100644 (file)
@@ -27,7 +27,7 @@
  * MA 02111-1307 USA
  */
 
-/* this section was ripped out of arch/ppc/syslib/mpc52xx_pic.c in the
+/* this section was ripped out of arch/powerpc/syslib/mpc52xx_pic.c in the
  * Linux 2.6 source with the following copyright.
  *
  * Based on (well, mostly copied from) the code from the 2.4 kernel by
similarity index 98%
rename from arch/ppc/cpu/mpc5xxx/serial.c
rename to arch/powerpc/cpu/mpc5xxx/serial.c
index 66759887c66c7d1de2290278202ef85f81d048b7..01270655ae414b8e4c25bc9f2eab16ee9eb997c2 100644 (file)
@@ -21,7 +21,7 @@
  * MA 02111-1307 USA
  *
  * Hacked for MPC8260 by Murray.Jensen@cmst.csiro.au, 19-Oct-00, with
- * changes based on the file arch/ppc/mbxboot/m8260_tty.c from the
+ * changes based on the file arch/powerpc/mbxboot/m8260_tty.c from the
  * Linux/PPC sources (m8260_tty.c had no copyright info in it).
  *
  * Martin Krause, 8 Jun 2006
@@ -340,6 +340,7 @@ struct serial_device serial0_device =
        "serial0",
        "UART0",
        serial0_init,
+       NULL,
        serial0_setbrg,
        serial0_getc,
        serial0_tstc,
@@ -352,6 +353,7 @@ struct serial_device serial1_device =
        "serial1",
        "UART1",
        serial1_init,
+       NULL,
        serial1_setbrg,
        serial1_getc,
        serial1_tstc,
similarity index 99%
rename from arch/ppc/cpu/mpc5xxx/start.S
rename to arch/powerpc/cpu/mpc5xxx/start.S
index ba499442107168a4749f3b116f6031373df17b67..8b9f09b39d3ce6eabd3f529bae23803be0858391 100644 (file)
@@ -442,7 +442,7 @@ init_5xxx_core:
        /*                                                              */
        /* bits 15-19 correspond to addresses 0x00000000 to 0x0001F000  */
        /* incrementing by 0x1000 each time. The code below is sort of  */
-       /* based on code in "flush_tlbs" from arch/ppc/kernel/head.S    */
+       /* based on code in "flush_tlbs" from arch/powerpc/kernel/head.S        */
        /*                                                              */
        /*--------------------------------------------------------------*/
 
similarity index 99%
rename from arch/ppc/cpu/mpc5xxx/traps.c
rename to arch/powerpc/cpu/mpc5xxx/traps.c
index 934a2f2ab086f1ad249c0800022e7d69f9de0f55..5972f3457989c43eef501ce8f80dd1bc3e7ffadf 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * linux/arch/ppc/kernel/traps.c
+ * linux/arch/powerpc/kernel/traps.c
  *
  * Copyright (C) 1995-1996  Gary Thomas (gdt@linuxppc.org)
  *
similarity index 94%
rename from arch/ppc/cpu/mpc5xxx/u-boot-customlayout.lds
rename to arch/powerpc/cpu/mpc5xxx/u-boot-customlayout.lds
index 81ebde987f7ce20f6fb8a1f9731818b69ec15d85..ecffc1b32f9338aaf1e93b33e82084c6414497e9 100644 (file)
@@ -55,11 +55,11 @@ SECTIONS
     /* WARNING - the following is hand-optimized to fit within  */
     /* the sector layout of our flash chips!    XXX FIXME XXX   */
 
-    arch/ppc/cpu/mpc5xxx/start.o          (.text)
-    arch/ppc/cpu/mpc5xxx/traps.o          (.text)
+    arch/powerpc/cpu/mpc5xxx/start.o          (.text)
+    arch/powerpc/cpu/mpc5xxx/traps.o          (.text)
     lib/crc32.o         (.text)
-    arch/ppc/lib/cache.o             (.text)
-    arch/ppc/lib/time.o              (.text)
+    arch/powerpc/lib/cache.o             (.text)
+    arch/powerpc/lib/time.o              (.text)
 
     . = DEFINED(env_offset) ? env_offset : .;
     common/env_embedded.o        (.ppcenv)
similarity index 98%
rename from arch/ppc/cpu/mpc5xxx/u-boot.lds
rename to arch/powerpc/cpu/mpc5xxx/u-boot.lds
index 64ef481297cfbce374a57cbccff17efbcd29bdea..ea4060d482216fe755605cc4490f1d9cb93523f5 100644 (file)
@@ -52,7 +52,7 @@ SECTIONS
   .plt : { *(.plt) }
   .text      :
   {
-    arch/ppc/cpu/mpc5xxx/start.o       (.text)
+    arch/powerpc/cpu/mpc5xxx/start.o   (.text)
     *(.text)
     *(.got1)
     . = ALIGN(16);
similarity index 94%
rename from arch/ppc/cpu/mpc8220/config.mk
rename to arch/powerpc/cpu/mpc8220/config.mk
index e2ebf38bd5e941ee5bedbb67242ead111ea19a9d..e706883938d2e00a5a27ad742d1f05d9aa23e6bd 100644 (file)
@@ -27,4 +27,4 @@ PLATFORM_CPPFLAGS += -DCONFIG_MPC8220 -ffixed-r2 \
                     -mstring -mcpu=603e -mmultiple
 
 # Use default linker script.  Board port can override in board/*/config.mk
-LDSCRIPT := $(SRCTREE)/arch/ppc/cpu/mpc8220/u-boot.lds
+LDSCRIPT := $(SRCTREE)/arch/powerpc/cpu/mpc8220/u-boot.lds
similarity index 99%
rename from arch/ppc/cpu/mpc8220/start.S
rename to arch/powerpc/cpu/mpc8220/start.S
index e28999d3228649824200fdc68e06e11483355d49..3d79d8ec0d29b7240db4f87c4d9286ddc1a2e0eb 100644 (file)
@@ -419,7 +419,7 @@ init_8220_core:
        /*                                                              */
        /* bits 15-19 correspond to addresses 0x00000000 to 0x0001F000  */
        /* incrementing by 0x1000 each time. The code below is sort of  */
-       /* based on code in "flush_tlbs" from arch/ppc/kernel/head.S    */
+       /* based on code in "flush_tlbs" from arch/powerpc/kernel/head.S        */
        /*                                                              */
        /*--------------------------------------------------------------*/
 
similarity index 99%
rename from arch/ppc/cpu/mpc8220/traps.c
rename to arch/powerpc/cpu/mpc8220/traps.c
index 456578001bbcd50672c4724050610d000b3be162..13894c90502abf3fd41a092544311b9683f4dbc0 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * linux/arch/ppc/kernel/traps.c
+ * linux/arch/powerpc/kernel/traps.c
  *
  * Copyright (C) 1995-1996  Gary Thomas (gdt@linuxppc.org)
  *
similarity index 98%
rename from arch/ppc/cpu/mpc8220/u-boot.lds
rename to arch/powerpc/cpu/mpc8220/u-boot.lds
index 8c5d3071f985fa0e395b6e4eafb20a29a12a7c75..31a7a0e4ef035a813db29b72fd71e1afa8a2e19c 100644 (file)
@@ -52,7 +52,7 @@ SECTIONS
   .plt : { *(.plt) }
   .text      :
   {
-    arch/ppc/cpu/mpc8220/start.o       (.text)
+    arch/powerpc/cpu/mpc8220/start.o   (.text)
     *(.text)
     *(.got1)
     . = ALIGN(16);
similarity index 94%
rename from arch/ppc/cpu/mpc824x/config.mk
rename to arch/powerpc/cpu/mpc824x/config.mk
index 31ecd20d9f344e468389480b84145aec1affe316..27c287351bea431707df9a3bb2b829367abe29d8 100644 (file)
@@ -26,4 +26,4 @@ PLATFORM_RELFLAGS += -fPIC -meabi
 PLATFORM_CPPFLAGS += -DCONFIG_MPC824X -ffixed-r2 -mstring -mcpu=603e -msoft-float
 
 # Use default linker script.  Board port can override in board/*/config.mk
-LDSCRIPT := $(SRCTREE)/arch/ppc/cpu/mpc824x/u-boot.lds
+LDSCRIPT := $(SRCTREE)/arch/powerpc/cpu/mpc824x/u-boot.lds
similarity index 97%
rename from arch/ppc/cpu/mpc824x/pci.c
rename to arch/powerpc/cpu/mpc824x/pci.c
index cf9cf41ae5353b207b28951bd7460ef49778b733..72aaec7b515bf0f28b8c16146546912b873bfc95 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * arch/ppc/kernel/mpc10x_common.c
+ * arch/powerpc/kernel/mpc10x_common.c
  *
  * Common routines for the Motorola SPS MPC106, MPC107 and MPC8240 Host bridge,
  * Mem ctlr, EPIC, etc.
similarity index 99%
rename from arch/ppc/cpu/mpc824x/traps.c
rename to arch/powerpc/cpu/mpc824x/traps.c
index 0a7243020b6f648df49a04bdce46a3edd9c47de1..163b983340e44202859d58410818720a628ab48c 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * linux/arch/ppc/kernel/traps.c
+ * linux/arch/powerpc/kernel/traps.c
  *
  * Copyright (C) 1995-1996  Gary Thomas (gdt@linuxppc.org)
  *
similarity index 98%
rename from arch/ppc/cpu/mpc824x/u-boot.lds
rename to arch/powerpc/cpu/mpc824x/u-boot.lds
index 8a6d5084ecb57cff2d2133d56279a087d4f9fd85..d1fcd7c47dad409d15fa09e2f1b81dbb86c00ca0 100644 (file)
@@ -52,7 +52,7 @@ SECTIONS
   .plt : { *(.plt) }
   .text      :
   {
-    arch/ppc/cpu/mpc824x/start.o               (.text)
+    arch/powerpc/cpu/mpc824x/start.o           (.text)
     *(.text)
     *(.got1)
     . = ALIGN(16);
similarity index 98%
rename from arch/ppc/cpu/mpc8260/commproc.c
rename to arch/powerpc/cpu/mpc8260/commproc.c
index 94f6bc224fdab8403998163ddc8a4fdfd096d30b..111a67c98c5a1b669930b1ac13855d14193f3861 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * This file is based on "arch/ppc/8260_io/commproc.c" - here is it's
+ * This file is based on "arch/powerpc/8260_io/commproc.c" - here is it's
  * copyright notice:
  *
  * General Purpose functions for the global management of the
similarity index 94%
rename from arch/ppc/cpu/mpc8260/config.mk
rename to arch/powerpc/cpu/mpc8260/config.mk
index 51bb9faf25f5db06a6606dfaddc811bdd8016625..a9bb6887a078c79015611762bdd8dda1be2be3f0 100644 (file)
@@ -27,4 +27,4 @@ PLATFORM_CPPFLAGS += -DCONFIG_8260 -DCONFIG_CPM2 -ffixed-r2 \
                     -mstring -mcpu=603e -mmultiple
 
 # Use default linker script.  Board port can override in board/*/config.mk
-LDSCRIPT := $(SRCTREE)/arch/ppc/cpu/mpc8260/u-boot.lds
+LDSCRIPT := $(SRCTREE)/arch/powerpc/cpu/mpc8260/u-boot.lds
similarity index 97%
rename from arch/ppc/cpu/mpc8260/interrupts.c
rename to arch/powerpc/cpu/mpc8260/interrupts.c
index a7700c4b65da016d60d5226718c1312fb5f211f2..2606c60d45d685f31b97d7950f882c57a14fde3d 100644 (file)
@@ -44,7 +44,7 @@ static struct irq_action irq_handlers[NR_IRQS];
 static ulong ppc_cached_irq_mask[NR_MASK_WORDS];
 
 /****************************************************************************/
-/* this section was ripped out of arch/ppc/kernel/ppc8260_pic.c in the     */
+/* this section was ripped out of arch/powerpc/kernel/ppc8260_pic.c in the         */
 /* Linux/PPC 2.4.x source. There was no copyright notice in that file.     */
 
 /* The 8260 internal interrupt controller.  It is usually
@@ -137,7 +137,7 @@ static int m8260_get_irq (struct pt_regs *regs)
        return irq;
 }
 
-/* end of code ripped out of arch/ppc/kernel/ppc8260_pic.c                 */
+/* end of code ripped out of arch/powerpc/kernel/ppc8260_pic.c             */
 /****************************************************************************/
 
 int interrupt_init_cpu (unsigned *decrementer_count)
similarity index 99%
rename from arch/ppc/cpu/mpc8260/serial_smc.c
rename to arch/powerpc/cpu/mpc8260/serial_smc.c
index fbb3fb0420ff415f7fc42fc5cb4d509f182b6ac0..7b6eaba09ad81758a66da310303361b24c01c000 100644 (file)
@@ -21,7 +21,7 @@
  * MA 02111-1307 USA
  *
  * Hacked for MPC8260 by Murray.Jensen@cmst.csiro.au, 19-Oct-00, with
- * changes based on the file arch/ppc/mbxboot/m8260_tty.c from the
+ * changes based on the file arch/powerpc/mbxboot/m8260_tty.c from the
  * Linux/PPC sources (m8260_tty.c had no copyright info in it).
  */
 
similarity index 99%
rename from arch/ppc/cpu/mpc8260/start.S
rename to arch/powerpc/cpu/mpc8260/start.S
index 1fc70bc5e4639102c7688636eb24bc9d489f8eb1..a43504276b0c3086733ad4eaaed78de6fe6e6019 100644 (file)
@@ -576,7 +576,7 @@ init_8260_core:
        /*                                                              */
        /* bits 15-19 correspond to addresses 0x00000000 to 0x0001F000  */
        /* incrementing by 0x1000 each time. The code below is sort of  */
-       /* based on code in "flush_tlbs" from arch/ppc/kernel/head.S    */
+       /* based on code in "flush_tlbs" from arch/powerpc/kernel/head.S        */
        /*                                                              */
        /*--------------------------------------------------------------*/
 
similarity index 99%
rename from arch/ppc/cpu/mpc8260/traps.c
rename to arch/powerpc/cpu/mpc8260/traps.c
index d216f71f945ee4d680dc240d955a0cadb59a7bf9..c116cdf69d253dfed655ac9fe6845393da24ad82 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * linux/arch/ppc/kernel/traps.c
+ * linux/arch/powerpc/kernel/traps.c
  *
  * Copyright (C) 1995-1996  Gary Thomas (gdt@linuxppc.org)
  *
similarity index 98%
rename from arch/ppc/cpu/mpc8260/u-boot.lds
rename to arch/powerpc/cpu/mpc8260/u-boot.lds
index 988784416f1f4114ccebc23a05eed6be1c763158..b8681e706d4caaa9d42b8c1036485dfdd2380307 100644 (file)
@@ -52,7 +52,7 @@ SECTIONS
   .plt : { *(.plt) }
   .text      :
   {
-    arch/ppc/cpu/mpc8260/start.o               (.text)
+    arch/powerpc/cpu/mpc8260/start.o           (.text)
     *(.text)
     *(.got1)
     . = ALIGN(16);
similarity index 94%
rename from arch/ppc/cpu/mpc83xx/config.mk
rename to arch/powerpc/cpu/mpc83xx/config.mk
index 8596f6a5e78a0a876b2f5e109bf2c8d91bd77633..8a3a8c1b98e9ec0e686f4cfb63a98a68e12d7a12 100644 (file)
@@ -26,4 +26,4 @@ PLATFORM_CPPFLAGS += -DCONFIG_MPC83xx -DCONFIG_E300 \
                        -ffixed-r2 -msoft-float
 
 # Use default linker script.  Board port can override in board/*/config.mk
-LDSCRIPT := $(SRCTREE)/arch/ppc/cpu/mpc83xx/u-boot.lds
+LDSCRIPT := $(SRCTREE)/arch/powerpc/cpu/mpc83xx/u-boot.lds
similarity index 98%
rename from arch/ppc/cpu/mpc83xx/cpu.c
rename to arch/powerpc/cpu/mpc83xx/cpu.c
index 51180d6daa5f96865c49d9eb53aeaf26d00f3a7e..8b98a577588f158a282b48664f1e347194e2e859 100644 (file)
@@ -106,7 +106,9 @@ int checkcpu(void)
                        puts(cpu_type_list[i].name);
                        if (IS_E_PROCESSOR(spridr))
                                puts("E");
-                       if (REVID_MAJOR(spridr) >= 2)
+                       if ((SPR_FAMILY(spridr) == SPR_834X_FAMILY ||
+                            SPR_FAMILY(spridr) == SPR_836X_FAMILY) &&
+                           REVID_MAJOR(spridr) >= 2)
                                puts("A");
                        printf(", Rev: %d.%d", REVID_MAJOR(spridr),
                               REVID_MINOR(spridr));
similarity index 99%
rename from arch/ppc/cpu/mpc83xx/serdes.c
rename to arch/powerpc/cpu/mpc83xx/serdes.c
index 64033fe4c35dec86b046f6f745ba122d0bc7fc65..fecfc80f81d35867c0d78e70b1085c30a092362d 100644 (file)
@@ -15,7 +15,7 @@
 #include <config.h>
 #include <common.h>
 #include <asm/io.h>
-#include <asm/fsl_serdes.h>
+#include <asm/fsl_mpc83xx_serdes.h>
 
 /* SerDes registers */
 #define FSL_SRDSCR0_OFFS               0x0
similarity index 98%
rename from arch/ppc/cpu/mpc83xx/speed.c
rename to arch/powerpc/cpu/mpc83xx/speed.c
index bde7e920a278689dcb53823f70981e4937792ff2..500eef1e9ca7944209d8483bca83b9873eae3066 100644 (file)
@@ -116,7 +116,7 @@ int get_clocks(void)
 #if defined(CONFIG_MPC8315)
        u32 tdm_clk;
 #endif
-#if defined(CONFIG_MPC837x)
+#if defined(CONFIG_FSL_ESDHC)
        u32 sdhc_clk;
 #endif
        u32 enc_clk;
@@ -274,7 +274,7 @@ int get_clocks(void)
                return -7;
        }
 
-#if defined(CONFIG_MPC837x)
+#if defined(CONFIG_FSL_ESDHC)
        switch ((sccr & SCCR_SDHCCM) >> SCCR_SDHCCM_SHIFT) {
        case 0:
                sdhc_clk = 0;
@@ -321,7 +321,7 @@ int get_clocks(void)
        i2c1_clk = enc_clk;
 #elif defined(CONFIG_MPC831x)
        i2c1_clk = enc_clk;
-#elif defined(CONFIG_MPC837x)
+#elif defined(CONFIG_FSL_ESDHC)
        i2c1_clk = sdhc_clk;
 #endif
 #if !defined(CONFIG_MPC832x)
@@ -455,7 +455,7 @@ int get_clocks(void)
 #if defined(CONFIG_MPC8315)
        gd->tdm_clk = tdm_clk;
 #endif
-#if defined(CONFIG_MPC837x)
+#if defined(CONFIG_FSL_ESDHC)
        gd->sdhc_clk = sdhc_clk;
 #endif
        gd->core_clk = core_clk;
@@ -522,7 +522,7 @@ int do_clocks (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
 #if defined(CONFIG_MPC8315)
        printf("  TDM:                 %-4s MHz\n", strmhz(buf, gd->tdm_clk));
 #endif
-#if defined(CONFIG_MPC837x)
+#if defined(CONFIG_FSL_ESDHC)
        printf("  SDHC:                %-4s MHz\n", strmhz(buf, gd->sdhc_clk));
 #endif
 #if defined(CONFIG_MPC834x) || defined(CONFIG_MPC831x) || defined(CONFIG_MPC837x)
similarity index 99%
rename from arch/ppc/cpu/mpc83xx/start.S
rename to arch/powerpc/cpu/mpc83xx/start.S
index 68bb6209c3dde30b38e7f7c87e16fa2f9223155f..a7c80792ded4dc54f6e87a73421be44b11b88140 100644 (file)
@@ -720,7 +720,7 @@ setup_bats:
         *
         * bits 15-19 correspond to addresses 0x00000000 to 0x0001F000
         * incrementing by 0x1000 each time. The code below is sort of
-        * based on code in "flush_tlbs" from arch/ppc/kernel/head.S
+        * based on code in "flush_tlbs" from arch/powerpc/kernel/head.S
         *
         */
        lis     r3, 0
similarity index 98%
rename from arch/ppc/cpu/mpc83xx/u-boot.lds
rename to arch/powerpc/cpu/mpc83xx/u-boot.lds
index 157cef676e14d3cf0b6cc7eb781745735e1ab9c0..0b74a13fb1dc8c5110765f1bae893a41133c1871 100644 (file)
@@ -50,7 +50,7 @@ SECTIONS
   .plt : { *(.plt) }
   .text      :
   {
-    arch/ppc/cpu/mpc83xx/start.o       (.text)
+    arch/powerpc/cpu/mpc83xx/start.o   (.text)
     *(.text)
     *(.got1)
     . = ALIGN(16);
similarity index 98%
rename from arch/ppc/cpu/mpc85xx/commproc.c
rename to arch/powerpc/cpu/mpc85xx/commproc.c
index 594aace4b12553bf4e7253feef89f648ae505a58..f0fd1cbc38d2f4f1a65871ec4ed094b8a8c08ff5 100644 (file)
@@ -2,7 +2,7 @@
  * Adapted for Motorola MPC8560 chips
  * Xianghua Xiao <x.xiao@motorola.com>
  *
- * This file is based on "arch/ppc/8260_io/commproc.c" - here is it's
+ * This file is based on "arch/powerpc/8260_io/commproc.c" - here is it's
  * copyright notice:
  *
  * General Purpose functions for the global management of the
similarity index 95%
rename from arch/ppc/cpu/mpc85xx/config.mk
rename to arch/powerpc/cpu/mpc85xx/config.mk
index ffb813dc39fef72349b61198e8052f0a312a7008..f07d9209a7be46879f1620c432bb316595ef7e36 100644 (file)
@@ -32,4 +32,4 @@ PLATFORM_CPPFLAGS +=$(call cc-option,-mspe=yes)
 PLATFORM_CPPFLAGS +=$(call cc-option,-mno-spe)
 
 # Use default linker script.  Board port can override in board/*/config.mk
-LDSCRIPT := $(SRCTREE)/arch/ppc/cpu/mpc85xx/u-boot.lds
+LDSCRIPT := $(SRCTREE)/arch/powerpc/cpu/mpc85xx/u-boot.lds
similarity index 97%
rename from arch/ppc/cpu/mpc85xx/cpu.c
rename to arch/powerpc/cpu/mpc85xx/cpu.c
index 0cc6e0323f2e8331a4ff9ef5daa7b5023ad907f3..fddeb2fb09e01ae32871d49f5b7b60876201f3ec 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2004,2007-2009 Freescale Semiconductor, Inc.
+ * Copyright 2004,2007-2010 Freescale Semiconductor, Inc.
  * (C) Copyright 2002, 2003 Motorola Inc.
  * Xianghua Xiao (X.Xiao@motorola.com)
  *
@@ -44,21 +44,19 @@ int checkcpu (void)
        uint major, minor;
        struct cpu_type *cpu;
        char buf1[32], buf2[32];
-#ifdef CONFIG_DDR_CLK_FREQ
+#if defined(CONFIG_DDR_CLK_FREQ) || defined(CONFIG_FSL_CORENET)
        volatile ccsr_gur_t *gur = (void *)(CONFIG_SYS_MPC85xx_GUTS_ADDR);
-#ifdef CONFIG_FSL_CORENET
-       u32 ddr_sync = ((gur->rcwsr[5]) & FSL_CORENET_RCWSR5_DDR_SYNC)
-               >> FSL_CORENET_RCWSR5_DDR_SYNC_SHIFT;
-#else
+#endif /* CONFIG_FSL_CORENET */
+#ifdef CONFIG_DDR_CLK_FREQ
        u32 ddr_ratio = ((gur->porpllsr) & MPC85xx_PORPLLSR_DDR_RATIO)
                >> MPC85xx_PORPLLSR_DDR_RATIO_SHIFT;
-#endif
 #else
 #ifdef CONFIG_FSL_CORENET
-       u32 ddr_sync = 0;
+       u32 ddr_sync = ((gur->rcwsr[5]) & FSL_CORENET_RCWSR5_DDR_SYNC)
+               >> FSL_CORENET_RCWSR5_DDR_SYNC_SHIFT;
 #else
        u32 ddr_ratio = 0;
-#endif
+#endif /* CONFIG_FSL_CORENET */
 #endif /* CONFIG_DDR_CLK_FREQ */
        int i;
 
similarity index 88%
rename from arch/ppc/cpu/mpc85xx/cpu_init.c
rename to arch/powerpc/cpu/mpc85xx/cpu_init.c
index e0126d331af8f93ba1801401728a72fa7bcd2e87..e578b296dfad5c79aa00f55c1d981559fcc34b50 100644 (file)
@@ -180,54 +180,54 @@ void cpu_init_f (void)
         * has been determined
         */
 #if defined(CONFIG_SYS_OR0_REMAP)
-       memctl->or0 = CONFIG_SYS_OR0_REMAP;
+       out_be32(&memctl->or0, CONFIG_SYS_OR0_REMAP);
 #endif
 #if defined(CONFIG_SYS_OR1_REMAP)
-       memctl->or1 = CONFIG_SYS_OR1_REMAP;
+       out_be32(&memctl->or1, CONFIG_SYS_OR1_REMAP);
 #endif
 
        /* now restrict to preliminary range */
        /* if cs1 is already set via debugger, leave cs0/cs1 alone */
        if (! memctl->br1 & 1) {
 #if defined(CONFIG_SYS_BR0_PRELIM) && defined(CONFIG_SYS_OR0_PRELIM)
-               memctl->br0 = CONFIG_SYS_BR0_PRELIM;
-               memctl->or0 = CONFIG_SYS_OR0_PRELIM;
+               out_be32(&memctl->br0, CONFIG_SYS_BR0_PRELIM);
+               out_be32(&memctl->or0, CONFIG_SYS_OR0_PRELIM);
 #endif
 
 #if defined(CONFIG_SYS_BR1_PRELIM) && defined(CONFIG_SYS_OR1_PRELIM)
-               memctl->or1 = CONFIG_SYS_OR1_PRELIM;
-               memctl->br1 = CONFIG_SYS_BR1_PRELIM;
+               out_be32(&memctl->or1, CONFIG_SYS_OR1_PRELIM);
+               out_be32(&memctl->br1, CONFIG_SYS_BR1_PRELIM);
 #endif
        }
 
 #if defined(CONFIG_SYS_BR2_PRELIM) && defined(CONFIG_SYS_OR2_PRELIM)
-       memctl->or2 = CONFIG_SYS_OR2_PRELIM;
-       memctl->br2 = CONFIG_SYS_BR2_PRELIM;
+       out_be32(&memctl->or2, CONFIG_SYS_OR2_PRELIM);
+       out_be32(&memctl->br2, CONFIG_SYS_BR2_PRELIM);
 #endif
 
 #if defined(CONFIG_SYS_BR3_PRELIM) && defined(CONFIG_SYS_OR3_PRELIM)
-       memctl->or3 = CONFIG_SYS_OR3_PRELIM;
-       memctl->br3 = CONFIG_SYS_BR3_PRELIM;
+       out_be32(&memctl->or3, CONFIG_SYS_OR3_PRELIM);
+       out_be32(&memctl->br3, CONFIG_SYS_BR3_PRELIM);
 #endif
 
 #if defined(CONFIG_SYS_BR4_PRELIM) && defined(CONFIG_SYS_OR4_PRELIM)
-       memctl->or4 = CONFIG_SYS_OR4_PRELIM;
-       memctl->br4 = CONFIG_SYS_BR4_PRELIM;
+       out_be32(&memctl->or4, CONFIG_SYS_OR4_PRELIM);
+       out_be32(&memctl->br4, CONFIG_SYS_BR4_PRELIM);
 #endif
 
 #if defined(CONFIG_SYS_BR5_PRELIM) && defined(CONFIG_SYS_OR5_PRELIM)
-       memctl->or5 = CONFIG_SYS_OR5_PRELIM;
-       memctl->br5 = CONFIG_SYS_BR5_PRELIM;
+       out_be32(&memctl->or5, CONFIG_SYS_OR5_PRELIM);
+       out_be32(&memctl->br5, CONFIG_SYS_BR5_PRELIM);
 #endif
 
 #if defined(CONFIG_SYS_BR6_PRELIM) && defined(CONFIG_SYS_OR6_PRELIM)
-       memctl->or6 = CONFIG_SYS_OR6_PRELIM;
-       memctl->br6 = CONFIG_SYS_BR6_PRELIM;
+       out_be32(&memctl->or6, CONFIG_SYS_OR6_PRELIM);
+       out_be32(&memctl->br6, CONFIG_SYS_BR6_PRELIM);
 #endif
 
 #if defined(CONFIG_SYS_BR7_PRELIM) && defined(CONFIG_SYS_OR7_PRELIM)
-       memctl->or7 = CONFIG_SYS_OR7_PRELIM;
-       memctl->br7 = CONFIG_SYS_BR7_PRELIM;
+       out_be32(&memctl->or7, CONFIG_SYS_OR7_PRELIM);
+       out_be32(&memctl->br7, CONFIG_SYS_BR7_PRELIM);
 #endif
 
 #if defined(CONFIG_CPM2)
@@ -260,6 +260,10 @@ void cpu_init_f (void)
 
 int cpu_init_r(void)
 {
+#ifdef CONFIG_SYS_LBC_LCRR
+       volatile ccsr_lbc_t *lbc = (void *)(CONFIG_SYS_MPC85xx_LBC_ADDR);
+#endif
+
        puts ("L2:    ");
 
 #if defined(CONFIG_L2_CACHE)
@@ -383,6 +387,17 @@ int cpu_init_r(void)
 #if defined(CONFIG_MP)
        setup_mp();
 #endif
+
+#ifdef CONFIG_SYS_LBC_LCRR
+       /*
+        * Modify the CLKDIV field of LCRR register to improve the writing
+        * speed for NOR flash.
+        */
+       clrsetbits_be32(&lbc->lcrr, LCRR_CLKDIV, CONFIG_SYS_LBC_LCRR);
+       __raw_readl(&lbc->lcrr);
+       isync();
+#endif
+
        return 0;
 }
 
similarity index 92%
rename from arch/ppc/cpu/mpc85xx/speed.c
rename to arch/powerpc/cpu/mpc85xx/speed.c
index 268edbc5b7368fc6a4dda852ade6e2491f79efcb..8132115fca6e9f455629844c77528490ad6f7e7a 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2004, 2007-2009 Freescale Semiconductor, Inc.
+ * Copyright 2004, 2007-2010 Freescale Semiconductor, Inc.
  *
  * (C) Copyright 2003 Motorola Inc.
  * Xianghua Xiao, (X.Xiao@motorola.com)
@@ -71,22 +71,30 @@ void get_sys_info (sys_info_t * sysInfo)
                [14] = 4,       /* CC4 PPL / 4 */
        };
        uint lcrr_div, i, freqCC_PLL[4], rcw_tmp;
+       uint ratio[4];
        unsigned long sysclk = CONFIG_SYS_CLK_FREQ;
+       uint mem_pll_rat;
 
        sysInfo->freqSystemBus = sysclk;
        sysInfo->freqDDRBus = sysclk;
-       freqCC_PLL[0] = sysclk;
-       freqCC_PLL[1] = sysclk;
-       freqCC_PLL[2] = sysclk;
-       freqCC_PLL[3] = sysclk;
 
        sysInfo->freqSystemBus *= (in_be32(&gur->rcwsr[0]) >> 25) & 0x1f;
-       sysInfo->freqDDRBus *= ((in_be32(&gur->rcwsr[0]) >> 17) & 0x1f);
-       freqCC_PLL[0] *= (in_be32(&clk->pllc1gsr) >> 1) & 0x3f;
-       freqCC_PLL[1] *= (in_be32(&clk->pllc2gsr) >> 1) & 0x3f;
-       freqCC_PLL[2] *= (in_be32(&clk->pllc3gsr) >> 1) & 0x3f;
-       freqCC_PLL[3] *= (in_be32(&clk->pllc4gsr) >> 1) & 0x3f;
+       mem_pll_rat = (in_be32(&gur->rcwsr[0]) >> 17) & 0x1f;
+       if (mem_pll_rat > 2)
+               sysInfo->freqDDRBus *= mem_pll_rat;
+       else
+               sysInfo->freqDDRBus = sysInfo->freqSystemBus * mem_pll_rat;
 
+       ratio[0] = (in_be32(&clk->pllc1gsr) >> 1) & 0x3f;
+       ratio[1] = (in_be32(&clk->pllc2gsr) >> 1) & 0x3f;
+       ratio[2] = (in_be32(&clk->pllc3gsr) >> 1) & 0x3f;
+       ratio[3] = (in_be32(&clk->pllc4gsr) >> 1) & 0x3f;
+       for (i = 0; i < 4; i++) {
+               if (ratio[i] > 4)
+                       freqCC_PLL[i] = sysclk * ratio[i];
+               else
+                       freqCC_PLL[i] = sysInfo->freqSystemBus * ratio[i];
+       }
        rcw_tmp = in_be32(&gur->rcwsr[3]);
        for (i = 0; i < cpu_numcores(); i++) {
                u32 c_pll_sel = (in_be32(&clk->clkc0csr + i*8) >> 27) & 0xf;
similarity index 99%
rename from arch/ppc/cpu/mpc85xx/traps.c
rename to arch/powerpc/cpu/mpc85xx/traps.c
index 10108d86e3343e7d4d0f7a25c814383b7db50cfb..7e96664333b06d8e9d3519bceb3b72db6d35b0c6 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * linux/arch/ppc/kernel/traps.c
+ * linux/arch/powerpc/kernel/traps.c
  *
  * Copyright 2007 Freescale Semiconductor.
  * Copyright (C) 2003 Motorola
similarity index 98%
rename from arch/ppc/cpu/mpc85xx/u-boot-nand.lds
rename to arch/powerpc/cpu/mpc85xx/u-boot-nand.lds
index b9240f22a73f911055119ae2705c03874b62fb8c..5fd3e6c8ee013c5b62ba63c20d94462afa94c8d0 100644 (file)
@@ -117,7 +117,7 @@ SECTIONS
 
   .bootpg ADDR(.text) - 0x1000 :
   {
-    arch/ppc/cpu/mpc85xx/start.o       (.bootpg)
+    arch/powerpc/cpu/mpc85xx/start.o   (.bootpg)
   } :text = 0xffff
 
   . = ADDR(.text) + 0x80000;
similarity index 99%
rename from arch/ppc/cpu/mpc85xx/u-boot-nand_spl.lds
rename to arch/powerpc/cpu/mpc85xx/u-boot-nand_spl.lds
index fef3e42e09c1d4f04a88c054e8cb1f26a070f526..7d9cee98e51f75f10b352494d631b173bdb23d27 100644 (file)
@@ -29,7 +29,7 @@ SECTIONS
        . = 0xfff00000;
        .text : {
                *(.text)
-       }
+       }
        _etext = .;
 
        .reloc : {
similarity index 98%
rename from arch/ppc/cpu/mpc85xx/u-boot.lds
rename to arch/powerpc/cpu/mpc85xx/u-boot.lds
index 9698bf405aea6e775eec13d4e30d2fa9ef76d3ae..c88b1f35b9e41fdac88090c7c44f69057b9dcca6 100644 (file)
@@ -121,7 +121,7 @@ SECTIONS
 
   .bootpg RESET_VECTOR_ADDRESS - 0xffc :
   {
-    arch/ppc/cpu/mpc85xx/start.o       (.bootpg)
+    arch/powerpc/cpu/mpc85xx/start.o   (.bootpg)
   } :text = 0xffff
 
   .resetvec RESET_VECTOR_ADDRESS :
similarity index 99%
rename from arch/ppc/cpu/mpc8xx/serial.c
rename to arch/powerpc/cpu/mpc8xx/serial.c
index 664db65a567e208fa05afc3c230f6705c83bec66..9514c66fd573ab9606cc8c8be9383cca425e5f22 100644 (file)
@@ -392,6 +392,7 @@ struct serial_device serial_smc_device =
        "serial_smc",
        "SMC",
        smc_init,
+       NULL,
        smc_setbrg,
        smc_getc,
        smc_tstc,
@@ -662,6 +663,7 @@ struct serial_device serial_scc_device =
        "serial_scc",
        "SCC",
        scc_init,
+       NULL,
        scc_setbrg,
        scc_getc,
        scc_tstc,
similarity index 99%
rename from arch/ppc/cpu/mpc8xx/traps.c
rename to arch/powerpc/cpu/mpc8xx/traps.c
index 6efe8e0ea7bc49166734bceef60fb97902171256..343dced31f971555455929e902130969b6ed6491 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * linux/arch/ppc/kernel/traps.c
+ * linux/arch/powerpc/kernel/traps.c
  *
  * Copyright (C) 1995-1996  Gary Thomas (gdt@linuxppc.org)
  *
similarity index 96%
rename from arch/ppc/cpu/mpc8xxx/cpu.c
rename to arch/powerpc/cpu/mpc8xxx/cpu.c
index fef062b224dd5f1b48df5c99d2fc80ef79d11dd9..22f342372315c1173ca635c580e3a68a99f6ee8f 100644 (file)
@@ -1,8 +1,8 @@
 /*
  * Copyright 2009-2010 Freescale Semiconductor, Inc.
  *
- * This file is derived from arch/ppc/cpu/mpc85xx/cpu.c and
- * arch/ppc/cpu/mpc86xx/cpu.c. Basically this file contains
+ * This file is derived from arch/powerpc/cpu/mpc85xx/cpu.c and
+ * arch/powerpc/cpu/mpc86xx/cpu.c. Basically this file contains
  * cpu specific common code for 85xx/86xx processors.
  * See file CREDITS for list of people who contributed to this
  * project.
similarity index 99%
rename from arch/ppc/cpu/mpc8xxx/ddr/ctrl_regs.c
rename to arch/powerpc/cpu/mpc8xxx/ddr/ctrl_regs.c
index 03f9c4380d4435c7abba85ecc59a215a88cc774e..4a282bc52d8df9fe2d4bebb61782530dd12961df 100644 (file)
@@ -198,6 +198,8 @@ static void set_timing_cfg_0(fsl_ddr_cfg_regs_t *ddr)
        pre_pd_exit_mclk = act_pd_exit_mclk;
        taxpd_mclk = 8;
        tmrd_mclk = 4;
+       /* set the turnaround time */
+       trwt_mclk = 1;
 #else /* CONFIG_FSL_DDR2 */
        /*
         * (tXARD and tXARDS). Empirical?
similarity index 93%
rename from arch/ppc/cpu/mpc8xxx/fdt.c
rename to arch/powerpc/cpu/mpc8xxx/fdt.c
index e68d6f336bb073f3a8d767a1831e16bd54d0e03f..ccefaf57160b28536dc8eacdebb74557ee36877d 100644 (file)
@@ -1,8 +1,8 @@
 /*
  * Copyright 2009 Freescale Semiconductor, Inc.
  *
- * This file is derived from arch/ppc/cpu/mpc85xx/cpu.c and
- * arch/ppc/cpu/mpc86xx/cpu.c. Basically this file contains
+ * This file is derived from arch/powerpc/cpu/mpc85xx/cpu.c and
+ * arch/powerpc/cpu/mpc86xx/cpu.c. Basically this file contains
  * cpu specific common code for 85xx/86xx processors.
  * See file CREDITS for list of people who contributed to this
  * project.
similarity index 93%
rename from arch/ppc/cpu/mpc8xxx/pci_cfg.c
rename to arch/powerpc/cpu/mpc8xxx/pci_cfg.c
index 9b7181d5b6ff09443c6aafb137fb7ec715326fa0..85995cac95edc39a22c1cd5eecbcb9eb3feb29d0 100644 (file)
@@ -176,15 +176,14 @@ static struct pci_info pci_config_info[] =
                         (1 << 0x1d) | (1 << 0x1e) | (1 << 0x1f),
        },
        [LAW_TRGT_IF_PCIE_2] = {
-               .cfg =   (1 << 0) | (1 << 1) | (1 << 6) | (1 << 7) |
-                        (1 << 9) | (1 << 0xa) | (1 << 0xb) | (1 << 0xd) |
-                        (1 << 0x15) | (1 << 0x16) | (1 << 0x17) |
-                        (1 << 0x18) | (1 << 0x1c),
+               .cfg =   (1 << 1) | (1 << 6) | (1 << 7) | (1 << 9) |
+                        (1 << 0xd) | (1 << 0x15) | (1 << 0x16) | (1 << 0x17) |
+                        (1 << 0x18) | (1 << 0x19) | (1 << 0x1a) | (1 << 0x1b),
        },
        [LAW_TRGT_IF_PCIE_3] = {
-               .cfg =   (1 << 6) | (1 << 7) | (1 << 9) | (1 << 0xd) |
-                        (1 << 0x15) | (1 << 0x16) | (1 << 0x17) | (1 << 0x18) |
-                        (1 << 0x19) | (1 << 0x1a) | (1 << 0x1b),
+               .cfg =   (1 << 0) | (1 << 1) | (1 << 6) | (1 << 7) | (1 << 9) |
+                        (1 << 0xa) | (1 << 0xb) | (1 << 0xd) | (1 << 0x15) |
+                        (1 << 0x16) | (1 << 0x17) | (1 << 0x18) | (1 << 0x1c),
        },
 };
 #elif defined(CONFIG_P2010) || defined(CONFIG_P2020)
similarity index 99%
rename from arch/ppc/cpu/ppc4xx/40x_spd_sdram.c
rename to arch/powerpc/cpu/ppc4xx/40x_spd_sdram.c
index 595d5687d691d305241a1971f530bdcbf255a480..f65cd886a51572ce509dff6f7d1716af3e923829 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * arch/ppc/cpu/ppc4xx/40x_spd_sdram.c
+ * arch/powerpc/cpu/ppc4xx/40x_spd_sdram.c
  * This SPD SDRAM detection code supports IBM/AMCC PPC44x cpu with a
  * SDRAM controller. Those are all current 405 PPC's.
  *
similarity index 99%
rename from arch/ppc/cpu/ppc4xx/44x_spd_ddr.c
rename to arch/powerpc/cpu/ppc4xx/44x_spd_ddr.c
index 9d1994f99ec25fe89781edc450855979de0df494..005315be8caccb6156564744da79592c1d4515ad 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * arch/ppc/cpu/ppc4xx/44x_spd_ddr.c
+ * arch/powerpc/cpu/ppc4xx/44x_spd_ddr.c
  * This SPD DDR detection code supports IBM/AMCC PPC44x cpu with a
  * DDR controller. Those are 440GP/GX/EP/GR.
  *
similarity index 99%
rename from arch/ppc/cpu/ppc4xx/44x_spd_ddr2.c
rename to arch/powerpc/cpu/ppc4xx/44x_spd_ddr2.c
index ea6c2ac770ac4f4fad12ae6544482e48020441ae..faddee98b781df101c16d1614ec713d003e6d12b 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * arch/ppc/cpu/ppc4xx/44x_spd_ddr2.c
+ * arch/powerpc/cpu/ppc4xx/44x_spd_ddr2.c
  * This SPD SDRAM detection code supports AMCC PPC44x cpu's with a
  * DDR2 controller (non Denali Core). Those currently are:
  *
similarity index 99%
rename from arch/ppc/cpu/ppc4xx/4xx_ibm_ddr2_autocalib.c
rename to arch/powerpc/cpu/ppc4xx/4xx_ibm_ddr2_autocalib.c
index 72630716c962bd56bfa3c47c1462a51ed10c2b75..aed0ed7569adeb2d75dd18397c3330f43bf22928 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * arch/ppc/cpu/ppc4xx/4xx_ibm_ddr2_autocalib.c
+ * arch/powerpc/cpu/ppc4xx/4xx_ibm_ddr2_autocalib.c
  * This SPD SDRAM detection code supports AMCC PPC44x cpu's with a
  * DDR2 controller (non Denali Core). Those currently are:
  *
similarity index 99%
rename from arch/ppc/cpu/ppc4xx/4xx_uart.c
rename to arch/powerpc/cpu/ppc4xx/4xx_uart.c
index 8de65425c97c130311fb87b6bd59692e2a421f80..e6ab570c0204036cf35181133794c7b693b29715 100644 (file)
@@ -822,6 +822,7 @@ struct serial_device serial0_device =
        "serial0",
        "UART0",
        serial0_init,
+       NULL,
        serial0_setbrg,
        serial0_getc,
        serial0_tstc,
@@ -834,6 +835,7 @@ struct serial_device serial1_device =
        "serial1",
        "UART1",
        serial1_init,
+       NULL,
        serial1_setbrg,
        serial1_getc,
        serial1_tstc,
similarity index 95%
rename from arch/ppc/cpu/ppc4xx/config.mk
rename to arch/powerpc/cpu/ppc4xx/config.mk
index ea4d707842c835301452fb67530b1976c6ec4aaa..5bda710e26dcdda8bb4aa8fd8bdafa55478ee181 100644 (file)
@@ -34,4 +34,4 @@ PLATFORM_CPPFLAGS += -Wa,-m405 -mcpu=405
 endif
 
 # Use default linker script.  Board port can override in board/*/config.mk
-LDSCRIPT := $(SRCTREE)/arch/ppc/cpu/ppc4xx/u-boot.lds
+LDSCRIPT := $(SRCTREE)/arch/powerpc/cpu/ppc4xx/u-boot.lds
similarity index 99%
rename from arch/ppc/cpu/ppc4xx/denali_data_eye.c
rename to arch/powerpc/cpu/ppc4xx/denali_data_eye.c
index 15a9b4f3ecc9977883146adc46b489b2d409f5df..03b8d3c614e21a9d794b21420e4004568f4d6dd6 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * arch/ppc/cpu/ppc4xx/denali_data_eye.c
+ * arch/powerpc/cpu/ppc4xx/denali_data_eye.c
  * Extracted from board/amcc/sequoia/sdram.c by Larry Johnson <lrj@acm.org>.
  *
  * (C) Copyright 2006
similarity index 99%
rename from arch/ppc/cpu/ppc4xx/denali_spd_ddr2.c
rename to arch/powerpc/cpu/ppc4xx/denali_spd_ddr2.c
index 72f76cd2fa7abe75e4eb8c6788458606e12448dc..080ea0af4c477ab3d5ffb908b68d8782896a08e4 100644 (file)
@@ -1,12 +1,12 @@
 /*
- * arch/ppc/cpu/ppc4xx/denali_spd_ddr2.c
+ * arch/powerpc/cpu/ppc4xx/denali_spd_ddr2.c
  * This SPD SDRAM detection code supports AMCC PPC44x CPUs with a Denali-core
  * DDR2 controller, specifically the 440EPx/GRx.
  *
  * (C) Copyright 2007-2008
  * Larry Johnson, lrj@acm.org.
  *
- * Based primarily on arch/ppc/cpu/ppc4xx/4xx_spd_ddr2.c, which is...
+ * Based primarily on arch/powerpc/cpu/ppc4xx/4xx_spd_ddr2.c, which is...
  *
  * (C) Copyright 2007
  * Stefan Roese, DENX Software Engineering, sr@denx.de.
similarity index 99%
rename from arch/ppc/cpu/ppc4xx/traps.c
rename to arch/powerpc/cpu/ppc4xx/traps.c
index 42e422157c103dd78adb75fd69d52254137d043a..1616772f0f905e155abba36538faf78583cb6bc1 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * linux/arch/ppc/kernel/traps.c
+ * linux/arch/powerpc/kernel/traps.c
  *
  * Copyright (C) 1995-1996  Gary Thomas (gdt@linuxppc.org)
  *
similarity index 98%
rename from arch/ppc/cpu/ppc4xx/u-boot.lds
rename to arch/powerpc/cpu/ppc4xx/u-boot.lds
index 3704d8a695ad9238d78d7f50ac626bc63eca4910..eca1f9dd82720406b9f20a8111132d0e66593663 100644 (file)
@@ -124,7 +124,7 @@ SECTIONS
 #ifdef CONFIG_440
   .bootpg RESET_VECTOR_ADDRESS - 0xffc :
   {
-    arch/ppc/cpu/ppc4xx/start.o        (.bootpg)
+    arch/powerpc/cpu/ppc4xx/start.o    (.bootpg)
 
     /*
      * PPC440 board need a board specific object with the
similarity index 95%
rename from arch/ppc/include/asm/fsl_ddr_sdram.h
rename to arch/powerpc/include/asm/fsl_ddr_sdram.h
index 3216a506331eacb9169767f520b703a7b9f06ca9..02920dbfd7bc08e993d22ccf878f120eeb58e983 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2008-2009 Freescale Semiconductor, Inc.
+ * Copyright 2008-2010 Freescale Semiconductor, Inc.
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License
 #define DDR_OTF                6       /* on-the-fly BC4 and BL8 */
 #define DDR_BL8                8       /* burst length 8 */
 
+#define DDR3_RTT_60_OHM                1 /* RTT_Nom = RZQ/4 */
+#define DDR3_RTT_120_OHM       2 /* RTT_Nom = RZQ/2 */
+#define DDR3_RTT_40_OHM                3 /* RTT_Nom = RZQ/6 */
+#define DDR3_RTT_20_OHM                4 /* RTT_Nom = RZQ/12 */
+#define DDR3_RTT_30_OHM                5 /* RTT_Nom = RZQ/8 */
+
 #if defined(CONFIG_FSL_DDR1)
 #define FSL_DDR_MIN_TCKE_PULSE_WIDTH_DDR       (1)
 typedef ddr1_spd_eeprom_t generic_spd_eeprom_t;
similarity index 98%
rename from arch/ppc/include/asm/fsl_lbc.h
rename to arch/powerpc/include/asm/fsl_lbc.h
index 5723de643a483e4fc06292ff8ea5a8f337893ad1..dfe8f793a3073097aff202abf8f788ed41c11998 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2004-2008 Freescale Semiconductor, Inc.
+ * Copyright (C) 2004-2008,2010 Freescale Semiconductor, Inc.
  *
  * See file CREDITS for list of people who contributed to this
  * project.
 #define OR_GPCM_SETA_SHIFT             3
 #define OR_GPCM_TRLX                   0x00000004
 #define OR_GPCM_TRLX_SHIFT             2
+#define OR_GPCM_TRLX_CLEAR             0x00000000
+#define OR_GPCM_TRLX_SET               0x00000004
 #define OR_GPCM_EHTR                   0x00000002
 #define OR_GPCM_EHTR_SHIFT             1
+#define OR_GPCM_EHTR_CLEAR             0x00000000
+#define OR_GPCM_EHTR_SET               0x00000002
 #define OR_GPCM_EAD                    0x00000001
 #define OR_GPCM_EAD_SHIFT              0
 
similarity index 58%
rename from arch/microblaze/lib/cache.c
rename to arch/powerpc/include/asm/fsl_mpc83xx_serdes.h
index 4b2e8e3790e6ef3b4197ecc765a441ebcfdabc2c..2d813f41880c777c86dffd058428a596a8774931 100644 (file)
@@ -1,10 +1,5 @@
 /*
- * (C) Copyright 2004 Atmark Techno, Inc.
- *
- * Yasushi SHOJI <yashi@atmark-techno.com>
- *
- * See file CREDITS for list of people who contributed to this
- * project.
+ * Copyright 2010 Freescale Semiconductor, Inc.
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License as
  * MA 02111-1307 USA
  */
 
-#include <common.h>
+#ifndef __FSL_MPC83XX_SERDES_H
+#define __FSL_MPC83XX_SERDES_H
+
+#include <config.h>
+
+#define FSL_SERDES_CLK_100             (0 << 28)
+#define FSL_SERDES_CLK_125             (1 << 28)
+#define FSL_SERDES_CLK_150             (3 << 28)
+#define FSL_SERDES_PROTO_SATA          0
+#define FSL_SERDES_PROTO_PEX           1
+#define FSL_SERDES_PROTO_PEX_X2                2
+#define FSL_SERDES_PROTO_SGMII         3
+#define FSL_SERDES_VDD_1V              1
+
+extern void fsl_setup_serdes(u32 offset, char proto, u32 rfcks, char vdd);
 
-void flush_cache (ulong addr, ulong size)
-{
-       int i;
-       for (i = 0; i < size; i += 4)
-               asm volatile (
-#ifdef CONFIG_ICACHE
-                               "wic    %0, r0;"
-#endif
-                               "nop;"
-#ifdef CONFIG_DCACHE
-                               "wdc    %0, r0;"
-#endif
-                               "nop;"
-                               :
-                               : "r" (addr + i)
-                               : "memory");
-}
+#endif /* __FSL_MPC83XX_SERDES_H */
similarity index 95%
rename from arch/ppc/include/asm/immap_512x.h
rename to arch/powerpc/include/asm/immap_512x.h
index 95350fd9b84d672f08d56fd51afa90b90fc7ae48..7f9db8bae3aae0bc88b5f46a4b2dd44e7ea5a830 100644 (file)
@@ -356,6 +356,11 @@ typedef struct ddr512x_config {
        u32 ddr_time_config2;   /* Timing Configuration Register */
 } ddr512x_config_t;
 
+typedef struct sdram_conf_s {
+       unsigned long size;
+       ddr512x_config_t cfg;
+} sdram_conf_t;
+
 /*
  * DMA/Messaging Unit
  */
@@ -848,10 +853,6 @@ typedef struct ioctrl512x {
        u8      reserved[0x0cfc];               /* fill to 4096 bytes size */
 } ioctrl512x_t;
 
-/* Indexes in regs array */
-/* Set for DDR */
-#define IOCTRL_MUX_DDR         0x00000036
-
 /* IO pin fields */
 #define IO_PIN_FMUX(v) ((v) << 7)      /* pin function */
 #define IO_PIN_HOLD(v) ((v) << 5)      /* hold time, pci only */
@@ -1116,66 +1117,68 @@ typedef struct fifoc512x {
  *
  * Overall size of FIFOC memory is not documented in the MPC5121e RM, but
  * tests indicate that it is 1024 words total.
+ *
+ * *_TX_SIZE and *_RX_SIZE is the number of 4-byte words for FIFO slice.
  */
-#define FIFOC_PSC0_TX_SIZE     0x0     /* number of 4-byte words for FIFO slice */
+#define FIFOC_PSC0_TX_SIZE     0x04
 #define FIFOC_PSC0_TX_ADDR     0x0
-#define FIFOC_PSC0_RX_SIZE     0x0
-#define FIFOC_PSC0_RX_ADDR     0x0
+#define FIFOC_PSC0_RX_SIZE     0x04
+#define FIFOC_PSC0_RX_ADDR     0x10
 
-#define FIFOC_PSC1_TX_SIZE     0x0
-#define FIFOC_PSC1_TX_ADDR     0x0
-#define FIFOC_PSC1_RX_SIZE     0x0
-#define FIFOC_PSC1_RX_ADDR     0x0
+#define FIFOC_PSC1_TX_SIZE     0x04
+#define FIFOC_PSC1_TX_ADDR     0x20
+#define FIFOC_PSC1_RX_SIZE     0x04
+#define FIFOC_PSC1_RX_ADDR     0x30
 
-#define FIFOC_PSC2_TX_SIZE     0x0
-#define FIFOC_PSC2_TX_ADDR     0x0
-#define FIFOC_PSC2_RX_SIZE     0x0
-#define FIFOC_PSC2_RX_ADDR     0x0
+#define FIFOC_PSC2_TX_SIZE     0x04
+#define FIFOC_PSC2_TX_ADDR     0x40
+#define FIFOC_PSC2_RX_SIZE     0x04
+#define FIFOC_PSC2_RX_ADDR     0x50
 
 #define FIFOC_PSC3_TX_SIZE     0x04
-#define FIFOC_PSC3_TX_ADDR     0x0
+#define FIFOC_PSC3_TX_ADDR     0x60
 #define FIFOC_PSC3_RX_SIZE     0x04
-#define FIFOC_PSC3_RX_ADDR     0x10
-
-#define FIFOC_PSC4_TX_SIZE     0x0
-#define FIFOC_PSC4_TX_ADDR     0x0
-#define FIFOC_PSC4_RX_SIZE     0x0
-#define FIFOC_PSC4_RX_ADDR     0x0
-
-#define FIFOC_PSC5_TX_SIZE     0x0
-#define FIFOC_PSC5_TX_ADDR     0x0
-#define FIFOC_PSC5_RX_SIZE     0x0
-#define FIFOC_PSC5_RX_ADDR     0x0
-
-#define FIFOC_PSC6_TX_SIZE     0x0
-#define FIFOC_PSC6_TX_ADDR     0x0
-#define FIFOC_PSC6_RX_SIZE     0x0
-#define FIFOC_PSC6_RX_ADDR     0x0
-
-#define FIFOC_PSC7_TX_SIZE     0x0
-#define FIFOC_PSC7_TX_ADDR     0x0
-#define FIFOC_PSC7_RX_SIZE     0x0
-#define FIFOC_PSC7_RX_ADDR     0x0
-
-#define FIFOC_PSC8_TX_SIZE     0x0
-#define FIFOC_PSC8_TX_ADDR     0x0
-#define FIFOC_PSC8_RX_SIZE     0x0
-#define FIFOC_PSC8_RX_ADDR     0x0
-
-#define FIFOC_PSC9_TX_SIZE     0x0
-#define FIFOC_PSC9_TX_ADDR     0x0
-#define FIFOC_PSC9_RX_SIZE     0x0
-#define FIFOC_PSC9_RX_ADDR     0x0
-
-#define FIFOC_PSC10_TX_SIZE    0x0
-#define FIFOC_PSC10_TX_ADDR    0x0
-#define FIFOC_PSC10_RX_SIZE    0x0
-#define FIFOC_PSC10_RX_ADDR    0x0
-
-#define FIFOC_PSC11_TX_SIZE    0x0
-#define FIFOC_PSC11_TX_ADDR    0x0
-#define FIFOC_PSC11_RX_SIZE    0x0
-#define FIFOC_PSC11_RX_ADDR    0x0
+#define FIFOC_PSC3_RX_ADDR     0x70
+
+#define FIFOC_PSC4_TX_SIZE     0x04
+#define FIFOC_PSC4_TX_ADDR     0x80
+#define FIFOC_PSC4_RX_SIZE     0x04
+#define FIFOC_PSC4_RX_ADDR     0x90
+
+#define FIFOC_PSC5_TX_SIZE     0x04
+#define FIFOC_PSC5_TX_ADDR     0xa0
+#define FIFOC_PSC5_RX_SIZE     0x04
+#define FIFOC_PSC5_RX_ADDR     0xb0
+
+#define FIFOC_PSC6_TX_SIZE     0x04
+#define FIFOC_PSC6_TX_ADDR     0xc0
+#define FIFOC_PSC6_RX_SIZE     0x04
+#define FIFOC_PSC6_RX_ADDR     0xd0
+
+#define FIFOC_PSC7_TX_SIZE     0x04
+#define FIFOC_PSC7_TX_ADDR     0xe0
+#define FIFOC_PSC7_RX_SIZE     0x04
+#define FIFOC_PSC7_RX_ADDR     0xf0
+
+#define FIFOC_PSC8_TX_SIZE     0x04
+#define FIFOC_PSC8_TX_ADDR     0x100
+#define FIFOC_PSC8_RX_SIZE     0x04
+#define FIFOC_PSC8_RX_ADDR     0x110
+
+#define FIFOC_PSC9_TX_SIZE     0x04
+#define FIFOC_PSC9_TX_ADDR     0x120
+#define FIFOC_PSC9_RX_SIZE     0x04
+#define FIFOC_PSC9_RX_ADDR     0x130
+
+#define FIFOC_PSC10_TX_SIZE    0x04
+#define FIFOC_PSC10_TX_ADDR    0x140
+#define FIFOC_PSC10_RX_SIZE    0x04
+#define FIFOC_PSC10_RX_ADDR    0x150
+
+#define FIFOC_PSC11_TX_SIZE    0x04
+#define FIFOC_PSC11_TX_ADDR    0x160
+#define FIFOC_PSC11_RX_SIZE    0x04
+#define FIFOC_PSC11_RX_ADDR    0x170
 
 /*
  * SATA
similarity index 97%
rename from arch/ppc/include/asm/immap_85xx.h
rename to arch/powerpc/include/asm/immap_85xx.h
index 957ad76a7964d09728456260a3a5c60f1885f154..e7954e657ca343af26e89234e3fd13a2006e7ef4 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * MPC85xx Internal Memory Map
  *
- * Copyright 2007-2009 Freescale Semiconductor, Inc.
+ * Copyright 2007-2010 Freescale Semiconductor, Inc.
  *
  * Copyright(c) 2002,2003 Motorola Inc.
  * Xianghua Xiao (x.xiao@motorola.com)
@@ -1647,7 +1647,7 @@ typedef struct ccsr_gur {
        u8      res4[12];
        u32     gpindr;         /* General-purpose input data */
        u8      res5[12];
-       u32     pmuxcr;         /* Alt function signal multiplex control */
+       u32     alt_pmuxcr;     /* Alt function signal multiplex control */
        u8      res6[12];
        u32     devdisr;        /* Device disable control */
 #define FSL_CORENET_DEVDISR_PCIE1      0x80000000
@@ -1672,7 +1672,23 @@ typedef struct ccsr_gur {
 #define FSL_CORENET_DEVDISR_I2C2       0x00000010
 #define FSL_CORENET_DEVDISR_DUART1     0x00000002
 #define FSL_CORENET_DEVDISR_DUART2     0x00000001
-       u8      res7[12];
+       u32     devdisr2;       /* Device disable control 2 */
+#define FSL_CORENET_DEVDISR2_PME       0x80000000
+#define FSL_CORENET_DEVDISR2_SEC       0x40000000
+#define FSL_CORENET_DEVDISR2_QMBM      0x08000000
+#define FSL_CORENET_DEVDISR2_FM1       0x02000000
+#define FSL_CORENET_DEVDISR2_10GEC1    0x01000000
+#define FSL_CORENET_DEVDISR2_DTSEC1_1  0x00800000
+#define FSL_CORENET_DEVDISR2_DTSEC1_2  0x00400000
+#define FSL_CORENET_DEVDISR2_DTSEC1_3  0x00200000
+#define FSL_CORENET_DEVDISR2_DTSEC1_4  0x00100000
+#define FSL_CORENET_DEVDISR2_FM2       0x00020000
+#define FSL_CORENET_DEVDISR2_10GEC2    0x00010000
+#define FSL_CORENET_DEVDISR2_DTSEC2_1  0x00008000
+#define FSL_CORENET_DEVDISR2_DTSEC2_2  0x00004000
+#define FSL_CORENET_DEVDISR2_DTSEC2_3  0x00002000
+#define FSL_CORENET_DEVDISR2_DTSEC2_4  0x00001000
+       u8      res7[8];
        u32     powmgtcsr;      /* Power management status & control */
        u8      res8[12];
        u32     coredisru;      /* uppper portion for support of 64 cores */
@@ -1697,8 +1713,9 @@ typedef struct ccsr_gur {
        u8      res17[24];
        u32     rcwsr[16];      /* Reset control word status */
 #define FSL_CORENET_RCWSR4_SRDS_PRTCL          0xfc000000
-#define FSL_CORENET_RCWSR5_DDR_SYNC            0x00008000
-#define FSL_CORENET_RCWSR5_DDR_SYNC_SHIFT              15
+#define FSL_CORENET_RCWSR5_DDR_SYNC            0x00000080
+#define FSL_CORENET_RCWSR5_DDR_SYNC_SHIFT               7
+#define FSL_CORENET_RCWSR5_SRDS_EN             0x00002000
 #define FSL_CORENET_RCWSR7_MCK_TO_PLAT_RAT     0x00400000
 #define FSL_CORENET_RCWSR8_HOST_AGT_B1         0x00e00000
 #define FSL_CORENET_RCWSR8_HOST_AGT_B2         0x00100000
@@ -1750,7 +1767,17 @@ typedef struct ccsr_gur {
        u32     cgencrl;        /* Core general control */
        u8      res31[184];
        u32     sriopstecr;     /* SRIO prescaler timer enable control */
-       u8      res32[2300];
+       u8      res32[1788];
+       u32     pmuxcr;         /* Pin multiplexing control */
+       u8      res33[60];
+       u32     iovselsr;       /* I/O voltage selection status */
+       u8      res34[28];
+       u32     ddrclkdr;       /* DDR clock disable */
+       u8      res35;
+       u32     elbcclkdr;      /* eLBC clock disable */
+       u8      res36[20];
+       u32     sdhcpcr;        /* eSDHC polarity configuration */
+       u8      res37[380];
 } ccsr_gur_t;
 
 typedef struct ccsr_clk {
@@ -1846,8 +1873,13 @@ typedef struct ccsr_gur {
 #define MPC85xx_PORDEVSR_SGMII4_DIS    0x04000000
 #define MPC85xx_PORDEVSR_SRDS2_IO_SEL  0x38000000
 #define MPC85xx_PORDEVSR_PCI1          0x00800000
+#if defined(CONFIG_P1013) || defined(CONFIG_P1022)
+#define MPC85xx_PORDEVSR_IO_SEL                0x007c0000
+#define MPC85xx_PORDEVSR_IO_SEL_SHIFT  18
+#else
 #define MPC85xx_PORDEVSR_IO_SEL                0x00780000
 #define MPC85xx_PORDEVSR_IO_SEL_SHIFT  19
+#endif
 #define MPC85xx_PORDEVSR_PCI2_ARB      0x00040000
 #define MPC85xx_PORDEVSR_PCI1_ARB      0x00020000
 #define MPC85xx_PORDEVSR_PCI1_PCI32    0x00010000
@@ -1942,7 +1974,15 @@ typedef struct serdes_corenet {
 #define SRDS_RSTCTL_RST                0x80000000
 #define SRDS_RSTCTL_RSTDONE    0x40000000
 #define SRDS_RSTCTL_RSTERR     0x20000000
+#define SRDS_RSTCTL_SDPD       0x00000020
                u32     pllcr0; /* PLL Control Register 0 */
+#define SRDS_PLLCR0_RFCK_SEL_MASK      0x30000000
+#define SRDS_PLLCR0_RFCK_SEL_100       0x00000000
+#define SRDS_PLLCR0_RFCK_SEL_125       0x10000000
+#define SRDS_PLLCR0_RFCK_SEL_156_25    0x20000000
+#define SRDS_PLLCR0_FRATE_SEL_MASK     0x00030000
+#define SRDS_PLLCR0_FRATE_SEL_5                0x00000000
+#define SRDS_PLLCR0_FRATE_SEL_6_25     0x00010000
                u32     pllcr1; /* PLL Control Register 1 */
 #define SRDS_PLLCR1_PLL_BWSEL  0x08000000
                u32     res[5];
@@ -2018,6 +2058,7 @@ enum {
 #define CONFIG_SYS_MPC85xx_USB_OFFSET          0x210000
 #define CONFIG_SYS_FSL_CORENET_QMAN_OFFSET     0x318000
 #define CONFIG_SYS_FSL_CORENET_BMAN_OFFSET     0x31a000
+#define CONFIG_SYS_TSEC1_OFFSET                        0x4e0000 /* FM1@DTSEC0 */
 #else
 #define CONFIG_SYS_MPC85xx_ECM_OFFSET          0x0000
 #define CONFIG_SYS_MPC85xx_DDR_OFFSET          0x2000
similarity index 99%
rename from arch/ppc/include/asm/mmu.h
rename to arch/powerpc/include/asm/mmu.h
index ce7f0810051d67daea5b2a26eeba282c34b71f59..5166507f9230fa4ab33046aae4a893e0dc765951 100644 (file)
@@ -577,11 +577,16 @@ extern int num_tlb_entries;
 #define SA_M   0x00000200      /* Memory coherence */
 #define SA_G   0x00000100      /* Guarded */
 #define SA_E   0x00000080      /* Endian */
+/* Some additional macros for combinations often used */
+#define SA_IG  (SA_I | SA_G)
 
 /* Access control */
 #define AC_X   0x00000024      /* Execute */
 #define AC_W   0x00000012      /* Write */
 #define AC_R   0x00000009      /* Read */
+/* Some additional macros for combinations often used */
+#define AC_RW  (AC_R | AC_W)
+#define AC_RWX (AC_R | AC_W | AC_X)
 
 /* Some handy macros */
 
similarity index 97%
rename from arch/ppc/include/asm/ptrace.h
rename to arch/powerpc/include/asm/ptrace.h
index 196613b9f15e0732b98610104aafccf84eb30ec4..cf09edf1560917f936fb416633f1980ab2be341d 100644 (file)
@@ -14,7 +14,7 @@
  * that the overall structure is a multiple of 16 bytes in length.
  *
  * Note that the offsets of the fields in this struct correspond with
- * the PT_* values below.  This simplifies arch/ppc/kernel/ptrace.c.
+ * the PT_* values below.  This simplifies arch/powerpc/kernel/ptrace.c.
  */
 
 #include <linux/config.h>
similarity index 99%
rename from arch/ppc/lib/board.c
rename to arch/powerpc/lib/board.c
index a30acee4febf5ee5c675953cfd2feeacfa8da8e7..7b09fb51e25d18a8bd865c0ddf2cd4d5298a2b42 100644 (file)
@@ -686,7 +686,7 @@ void board_init_r (gd_t *id, ulong dest_addr)
 
        WATCHDOG_RESET();
 
-#if defined(CONFIG_SYS_DELAYED_ICACHE) || defined(CONFIG_MPC83xx)
+#if defined(CONFIG_SYS_DELAYED_ICACHE)
        icache_enable ();       /* it's time to enable the instruction cache */
 #endif
 
similarity index 100%
rename from arch/ppc/lib/kgdb.c
rename to arch/powerpc/lib/kgdb.c
similarity index 100%
rename from arch/ppc/lib/time.c
rename to arch/powerpc/lib/time.c
diff --git a/arch/ppc/cpu/mpc512x/serial.c b/arch/ppc/cpu/mpc512x/serial.c
deleted file mode 100644 (file)
index ec2f41b..0000000
+++ /dev/null
@@ -1,193 +0,0 @@
-/*
- * (C) Copyright 2000 - 2010
- * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
- *
- * See file CREDITS for list of people who contributed to this
- * project.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
- * MA 02111-1307 USA
- *
- * Based ont the MPC5200 PSC driver.
- * Adapted for MPC512x by Jan Wrobel <wrr@semihalf.com>
- */
-
-/*
- * Minimal serial functions needed to use one of the PSC ports
- * as serial console interface.
- */
-
-#include <common.h>
-#include <asm/io.h>
-#include <asm/processor.h>
-
-DECLARE_GLOBAL_DATA_PTR;
-
-#if defined(CONFIG_PSC_CONSOLE)
-
-static void fifo_init (volatile psc512x_t *psc)
-{
-       volatile immap_t *im = (immap_t *) CONFIG_SYS_IMMR;
-
-       /* reset Rx & Tx fifo slice */
-       out_be32(&psc->rfcmd, PSC_FIFO_RESET_SLICE);
-       out_be32(&psc->tfcmd, PSC_FIFO_RESET_SLICE);
-
-       /* disable Tx & Rx FIFO interrupts */
-       out_be32(&psc->rfintmask, 0);
-       out_be32(&psc->tfintmask, 0);
-
-       out_be32(&psc->tfsize, CONSOLE_FIFO_TX_SIZE | (CONSOLE_FIFO_TX_ADDR << 16));
-       out_be32(&psc->rfsize, CONSOLE_FIFO_RX_SIZE | (CONSOLE_FIFO_RX_ADDR << 16));
-
-       /* enable Tx & Rx FIFO slice */
-       out_be32(&psc->rfcmd, PSC_FIFO_ENABLE_SLICE);
-       out_be32(&psc->tfcmd, PSC_FIFO_ENABLE_SLICE);
-
-       out_be32(&im->fifoc.fifoc_cmd, FIFOC_DISABLE_CLOCK_GATE);
-       __asm__ volatile ("sync");
-}
-
-void serial_setbrg(void)
-{
-       volatile immap_t *im = (immap_t *) CONFIG_SYS_IMMR;
-       volatile psc512x_t *psc = (psc512x_t *) &im->psc[CONFIG_PSC_CONSOLE];
-       unsigned long baseclk, div;
-
-       /* calculate dividor for setting PSC CTUR and CTLR registers */
-       baseclk = (gd->ips_clk + 8) / 16;
-       div = (baseclk + (gd->baudrate / 2)) / gd->baudrate;
-
-       out_8(&psc->ctur, (div >> 8) & 0xff);
-       out_8(&psc->ctlr,  div & 0xff); /* set baudrate */
-}
-
-int serial_init(void)
-{
-       volatile immap_t *im = (immap_t *) CONFIG_SYS_IMMR;
-       volatile psc512x_t *psc = (psc512x_t *) &im->psc[CONFIG_PSC_CONSOLE];
-
-       fifo_init (psc);
-
-       /* set MR register to point to MR1 */
-       out_8(&psc->command, PSC_SEL_MODE_REG_1);
-
-       /* disable Tx/Rx */
-       out_8(&psc->command, PSC_TX_DISABLE | PSC_RX_DISABLE);
-
-       /* choose the prescaler by 16 for the Tx/Rx clock generation */
-       out_be16(&psc->psc_clock_select, 0xdd00);
-
-       /* switch to UART mode */
-       out_be32(&psc->sicr, 0);
-
-       /* mode register points to mr1 */
-       /* configure parity, bit length and so on in mode register 1*/
-       out_8(&psc->mode, PSC_MODE_8_BITS | PSC_MODE_PARNONE);
-       /* now, mode register points to mr2 */
-       out_8(&psc->mode, PSC_MODE_1_STOPBIT);
-
-       /* set baudrate */
-       serial_setbrg();
-
-       /* disable all interrupts */
-       out_be16(&psc->psc_imr, 0);
-
-       /* reset and enable Rx/Tx */
-       out_8(&psc->command, PSC_RST_RX);
-       out_8(&psc->command, PSC_RST_TX);
-       out_8(&psc->command, PSC_RX_ENABLE | PSC_TX_ENABLE);
-
-       return 0;
-}
-
-void serial_putc (const char c)
-{
-       volatile immap_t *im = (immap_t *)CONFIG_SYS_IMMR;
-       volatile psc512x_t *psc = (psc512x_t *) &im->psc[CONFIG_PSC_CONSOLE];
-
-       if (c == '\n')
-               serial_putc ('\r');
-
-       /* Wait for last character to go. */
-       while (!(in_be16(&psc->psc_status) & PSC_SR_TXEMP))
-               ;
-
-       out_8(&psc->tfdata_8, c);
-}
-
-void serial_putc_raw (const char c)
-{
-       volatile immap_t *im = (immap_t *) CONFIG_SYS_IMMR;
-       volatile psc512x_t *psc = (psc512x_t *) &im->psc[CONFIG_PSC_CONSOLE];
-
-       /* Wait for last character to go. */
-       while (!(in_be16(&psc->psc_status) & PSC_SR_TXEMP))
-               ;
-
-       out_8(&psc->tfdata_8, c);
-}
-
-
-void serial_puts (const char *s)
-{
-       while (*s) {
-               serial_putc (*s++);
-       }
-}
-
-int serial_getc (void)
-{
-       volatile immap_t *im = (immap_t *) CONFIG_SYS_IMMR;
-       volatile psc512x_t *psc = (psc512x_t *) &im->psc[CONFIG_PSC_CONSOLE];
-
-       /* Wait for a character to arrive. */
-       while (in_be32(&psc->rfstat) & PSC_FIFO_EMPTY)
-               ;
-
-       return in_8(&psc->rfdata_8);
-}
-
-int serial_tstc (void)
-{
-       volatile immap_t *im = (immap_t *) CONFIG_SYS_IMMR;
-       volatile psc512x_t *psc = (psc512x_t *) &im->psc[CONFIG_PSC_CONSOLE];
-
-       return !(in_be32(&psc->rfstat) & PSC_FIFO_EMPTY);
-}
-
-void serial_setrts(int s)
-{
-       volatile immap_t *im = (immap_t *) CONFIG_SYS_IMMR;
-       volatile psc512x_t *psc = (psc512x_t *) &im->psc[CONFIG_PSC_CONSOLE];
-
-       if (s) {
-               /* Assert RTS (become LOW) */
-               out_8(&psc->op1, 0x1);
-       }
-       else {
-               /* Negate RTS (become HIGH) */
-               out_8(&psc->op0, 0x1);
-       }
-}
-
-int serial_getcts(void)
-{
-       volatile immap_t *im = (immap_t *) CONFIG_SYS_IMMR;
-       volatile psc512x_t *psc = (psc512x_t *) &im->psc[CONFIG_PSC_CONSOLE];
-
-       return (in_8(&psc->ip) & 0x1) ? 0 : 1;
-}
-#endif /* CONFIG_PSC_CONSOLE */
index e26792cc2ff8b154c57bdc6dbc960cc79eacb80a..1efdf7dc32b62a3290fcee55484ea45d5274a96b 100644 (file)
@@ -64,17 +64,17 @@ SECTIONS
     /* WARNING - the following is hand-optimized to fit within */
     /* the sector layout of our flash chips!   XXX FIXME XXX   */
 
-    arch/ppc/cpu/mpc8xx/start.o                        (.text)
+    arch/powerpc/cpu/mpc8xx/start.o                    (.text)
     common/dlmalloc.o                  (.text)
-    arch/ppc/lib/ppcstring.o                   (.text)
+    arch/powerpc/lib/ppcstring.o                       (.text)
     lib/vsprintf.o             (.text)
     lib/crc32.o                        (.text)
     lib/zlib.o                 (.text)
     lib/string.o               (.text)
-    arch/ppc/lib/cache.o                       (.text)
-    arch/ppc/lib/extable.o                     (.text)
-    arch/ppc/lib/time.o                        (.text)
-    arch/ppc/lib/ticks.o                       (.text)
+    arch/powerpc/lib/cache.o                   (.text)
+    arch/powerpc/lib/extable.o                 (.text)
+    arch/powerpc/lib/time.o                    (.text)
+    arch/powerpc/lib/ticks.o                   (.text)
 
     . = env_offset;
     common/env_embedded.o              (.text)
index 707ff7a6b0196a5c0b6dc0cdad3006495515471b..287fc2015df5324e3fc5135c76105cf521d090ff 100644 (file)
@@ -64,7 +64,7 @@ SECTIONS
     /* WARNING - the following is hand-optimized to fit within */
     /* the sector layout of our flash chips!   XXX FIXME XXX   */
 
-    arch/ppc/cpu/mpc8xx/start.o                (.text)
+    arch/powerpc/cpu/mpc8xx/start.o            (.text)
     common/dlmalloc.o          (.text)
     lib/vsprintf.o     (.text)
     lib/crc32.o                (.text)
index 1f55c6571d14807e1fffe07d95e6e5152b054e21..e86ac56ad6c8b433f7e0f0dd1f1cb949d9af9927 100644 (file)
@@ -59,7 +59,7 @@ SECTIONS
   .plt : { *(.plt) }
   .text      :
   {
-    arch/ppc/cpu/74xx_7xx/start.o      (.text)
+    arch/powerpc/cpu/74xx_7xx/start.o  (.text)
 /* store the environment in a seperate sector in the boot flash */
 /*    . = env_offset; */
     common/env_embedded.o(.text)
index 7fbf28a60902556834eb5d9886ed9992b9aedfec..7839b68d42493b97e22b709703f8463510054568 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * COM1 NS16550 support
- * originally from linux source (arch/ppc/boot/ns16550.c)
+ * originally from linux source (arch/powerpc/boot/ns16550.c)
  * modified to use CONFIG_SYS_ISA_MEM and new defines
  *
  * further modified by Josh Huber <huber@mclx.com> to support
index b9691ab5afb8e096b07ee0ad3a6af28b744528a4..0a2951bce76beecbafc50b1dc3f978a67840e876 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * NS16550 Serial Port
- * originally from linux source (arch/ppc/boot/ns16550.h)
+ * originally from linux source (arch/powerpc/boot/ns16550.h)
  * modified slightly to
  * have addresses as offsets from CONFIG_SYS_ISA_BASE
  * added a few more definitions
index dfc0bf7d307eb037145001f35d7f2b1aa6804e47..d1ac0c5c588818a5136e1b506af8c606dad80302 100644 (file)
@@ -1061,7 +1061,7 @@ bool db64360_eth_start (struct eth_device *dev)
 *************************************************************************/
 /*
  * based on Linux code
- * arch/ppc/galileo/EVB64360/mv64360_eth.c - Driver for MV64360X ethernet ports
+ * arch/powerpc/galileo/EVB64360/mv64360_eth.c - Driver for MV64360X ethernet ports
  * Copyright (C) 2002 rabeeh@galileo.co.il
 
  * This program is free software; you can redistribute it and/or
index 6dff003dc1fb3f54de5ea94c268c07d669f5af3c..29dcc0910051a98f2e2d119f291317fddf1ea8d7 100644 (file)
@@ -56,7 +56,7 @@ SECTIONS
   .plt : { *(.plt) }
   .text      :
   {
-    arch/ppc/cpu/74xx_7xx/start.o      (.text)
+    arch/powerpc/cpu/74xx_7xx/start.o  (.text)
 
 /* store the environment in a seperate sector in the boot flash */
 /*    . = env_offset; */
index 0458164ef186c347b3c783eef28390f90ddfdba6..58b63a314b1504d1db38d09770982913438b2296 100644 (file)
@@ -1060,7 +1060,7 @@ bool db64460_eth_start (struct eth_device *dev)
 *************************************************************************/
 /*
  * based on Linux code
- * arch/ppc/galileo/EVB64460/mv64460_eth.c - Driver for MV64460X ethernet ports
+ * arch/powerpc/galileo/EVB64460/mv64460_eth.c - Driver for MV64460X ethernet ports
  * Copyright (C) 2002 rabeeh@galileo.co.il
 
  * This program is free software; you can redistribute it and/or
index 6dff003dc1fb3f54de5ea94c268c07d669f5af3c..29dcc0910051a98f2e2d119f291317fddf1ea8d7 100644 (file)
@@ -56,7 +56,7 @@ SECTIONS
   .plt : { *(.plt) }
   .text      :
   {
-    arch/ppc/cpu/74xx_7xx/start.o      (.text)
+    arch/powerpc/cpu/74xx_7xx/start.o  (.text)
 
 /* store the environment in a seperate sector in the boot flash */
 /*    . = env_offset; */
index f7de95dc8797b2c4bfc097f4becc2cac53fc8230..3f92a9dc438ea241e4920f2a31f0e15ddd044583 100644 (file)
@@ -55,9 +55,9 @@ SECTIONS
     /* WARNING - the following is hand-optimized to fit within */
     /* the sector layout of our flash chips!   XXX FIXME XXX   */
 
-    arch/ppc/cpu/mpc8xx/start.o        (.text)
+    arch/powerpc/cpu/mpc8xx/start.o    (.text)
     common/dlmalloc.o  (.text)
-    arch/ppc/lib/ppcstring.o   (.text)
+    arch/powerpc/lib/ppcstring.o       (.text)
     lib/vsprintf.o     (.text)
     lib/crc32.o                (.text)
     lib/zlib.o         (.text)
index 57cc3058686f84ade0bd96e32c1d6f5c0804c0b2..c21890542f63c57afb9d33d5ac6146e57dc897a7 100644 (file)
@@ -55,7 +55,7 @@ SECTIONS
     /* WARNING - the following is hand-optimized to fit within */
     /* the sector layout of our flash chips!   XXX FIXME XXX   */
 
-    arch/ppc/cpu/mpc8xx/start.o        (.text)
+    arch/powerpc/cpu/mpc8xx/start.o    (.text)
     common/dlmalloc.o  (.text)
     lib/vsprintf.o     (.text)
     lib/crc32.o                (.text)
index f7de95dc8797b2c4bfc097f4becc2cac53fc8230..3f92a9dc438ea241e4920f2a31f0e15ddd044583 100644 (file)
@@ -55,9 +55,9 @@ SECTIONS
     /* WARNING - the following is hand-optimized to fit within */
     /* the sector layout of our flash chips!   XXX FIXME XXX   */
 
-    arch/ppc/cpu/mpc8xx/start.o        (.text)
+    arch/powerpc/cpu/mpc8xx/start.o    (.text)
     common/dlmalloc.o  (.text)
-    arch/ppc/lib/ppcstring.o   (.text)
+    arch/powerpc/lib/ppcstring.o       (.text)
     lib/vsprintf.o     (.text)
     lib/crc32.o                (.text)
     lib/zlib.o         (.text)
index 57cc3058686f84ade0bd96e32c1d6f5c0804c0b2..c21890542f63c57afb9d33d5ac6146e57dc897a7 100644 (file)
@@ -55,7 +55,7 @@ SECTIONS
     /* WARNING - the following is hand-optimized to fit within */
     /* the sector layout of our flash chips!   XXX FIXME XXX   */
 
-    arch/ppc/cpu/mpc8xx/start.o        (.text)
+    arch/powerpc/cpu/mpc8xx/start.o    (.text)
     common/dlmalloc.o  (.text)
     lib/vsprintf.o     (.text)
     lib/crc32.o                (.text)
index a2db9a6288e615234eb48a147b0fb3348fbbddb9..6bff2a800b838233e11d8291b7a0574390de4e72 100644 (file)
@@ -55,9 +55,9 @@ SECTIONS
     /* WARNING - the following is hand-optimized to fit within */
     /* the sector layout of our flash chips!   XXX FIXME XXX   */
 
-    arch/ppc/cpu/mpc8xx/start.o        (.text)
+    arch/powerpc/cpu/mpc8xx/start.o    (.text)
     common/dlmalloc.o  (.text)
-    arch/ppc/lib/ppcstring.o   (.text)
+    arch/powerpc/lib/ppcstring.o       (.text)
     lib/vsprintf.o     (.text)
     lib/crc32.o                (.text)
     lib/zlib.o         (.text)
index 723f56291140ecae477aede1033130a90e043740..a78d0b76bee5d673bf59ec689ffd9c28e05cad33 100644 (file)
@@ -55,7 +55,7 @@ SECTIONS
     /* WARNING - the following is hand-optimized to fit within */
     /* the sector layout of our flash chips!   XXX FIXME XXX   */
 
-    arch/ppc/cpu/mpc8xx/start.o        (.text)
+    arch/powerpc/cpu/mpc8xx/start.o    (.text)
     common/dlmalloc.o  (.text)
     lib/vsprintf.o     (.text)
     lib/crc32.o                (.text)
index b323768fb0f2050f3a1cff97621e7ab91af3b4ba..e426247c9083946807d87fe421a13350c733d9ba 100644 (file)
@@ -55,15 +55,15 @@ SECTIONS
     /* WARNING - the following is hand-optimized to fit within */
     /* the sector layout of our flash chips!   XXX FIXME XXX   */
 
-    arch/ppc/cpu/mpc8xx/start.o                (.text)
-    arch/ppc/cpu/mpc8xx/traps.o                (.text)
+    arch/powerpc/cpu/mpc8xx/start.o            (.text)
+    arch/powerpc/cpu/mpc8xx/traps.o            (.text)
     common/dlmalloc.o          (.text)
-    arch/ppc/lib/ppcstring.o           (.text)
+    arch/powerpc/lib/ppcstring.o               (.text)
     lib/vsprintf.o     (.text)
     lib/crc32.o                (.text)
     lib/zlib.o         (.text)
-    arch/ppc/lib/cache.o               (.text)
-    arch/ppc/lib/time.o                (.text)
+    arch/powerpc/lib/cache.o           (.text)
+    arch/powerpc/lib/time.o            (.text)
 
     . = env_offset;
     common/env_embedded.o      (.ppcenv)
index 018bcf1a26f6ba21bb840abae94b25939ff502ec..dc6dd7ae66fa68fb323b859f00f83e0a1c50e40f 100644 (file)
@@ -52,7 +52,7 @@ SECTIONS
   .plt           : { *(.plt)           }
   .text          :
   {
-    arch/ppc/cpu/mpc8xx/start.o        (.text)
+    arch/powerpc/cpu/mpc8xx/start.o    (.text)
     *(.text)
     *(.got1)
     . = ALIGN(16);
diff --git a/board/altera/common/cfide.c b/board/altera/common/cfide.c
new file mode 100644 (file)
index 0000000..40d6a12
--- /dev/null
@@ -0,0 +1,33 @@
+/*
+ * Altera CF drvier
+ *
+ * (C) Copyright 2010, Thomas Chou <thomas@wytron.com.tw>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+#include <common.h>
+#include <asm/io.h>
+
+#if defined(CONFIG_IDE_RESET) && defined(CONFIG_SYS_CF_CTL_BASE)
+/* ide_set_reset for Altera CF interface */
+#define ALTERA_CF_CTL_STATUS                   0
+#define ALTERA_CF_IDE_CTL                      4
+#define ALTERA_CF_CTL_STATUS_PRESENT_MSK       (0x1)
+#define ALTERA_CF_CTL_STATUS_POWER_MSK         (0x2)
+#define ALTERA_CF_CTL_STATUS_RESET_MSK         (0x4)
+#define ALTERA_CF_CTL_STATUS_IRQ_EN_MSK        (0x8)
+#define ALTERA_CF_IDE_CTL_IRQ_EN_MSK           (0x1)
+
+void ide_set_reset(int idereset)
+{
+       int i;
+       writel(idereset ? ALTERA_CF_CTL_STATUS_RESET_MSK :
+              ALTERA_CF_CTL_STATUS_POWER_MSK,
+              CONFIG_SYS_CF_CTL_BASE + ALTERA_CF_CTL_STATUS);
+       /* wait 500 ms for power to stabilize */
+       for (i = 0; i < 500; i++)
+               udelay(1000);
+}
+#endif
diff --git a/board/altera/ep1c20/u-boot.lds b/board/altera/ep1c20/u-boot.lds
deleted file mode 100644 (file)
index b909e94..0000000
+++ /dev/null
@@ -1,135 +0,0 @@
-/*
- * (C) Copyright 2004, Psyent Corporation <www.psyent.com>
- * Scott McNutt <smcnutt@psyent.com>
- *
- * See file CREDITS for list of people who contributed to this
- * project.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.         See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
- * MA 02111-1307 USA
- */
-
-
-OUTPUT_FORMAT("elf32-littlenios2")
-OUTPUT_ARCH(nios2)
-ENTRY(_start)
-
-SECTIONS
-{
-       .text :
-       {
-         arch/nios/cpu2/start.o (.text)
-         *(.text)
-         *(.text.*)
-         *(.gnu.linkonce.t*)
-         *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
-         *(.gnu.linkonce.r*)
-       }
-       . = ALIGN (4);
-       _etext = .;
-       PROVIDE (etext = .);
-
-       /* CMD TABLE - sandwich this in between text and data so
-        * the initialization code relocates the command table as
-        * well -- admittedly, this is just pure laziness ;-)
-        */
-       __u_boot_cmd_start = .;
-       .u_boot_cmd :
-       {
-         *(.u_boot_cmd)
-       }
-       . = ALIGN(4);
-       __u_boot_cmd_end = .;
-
-       /* INIT DATA sections - "Small" data (see the gcc -G option)
-        * is always gp-relative. Here we make all init data sections
-        * adjacent to simplify the startup code -- and provide
-        * the global pointer for gp-relative access.
-        */
-       _data = .;
-       .data :
-       {
-         *(.data)
-         *(.data.*)
-         *(.gnu.linkonce.d*)
-       }
-
-       . = ALIGN(16);
-       _gp = .;                        /* Global pointer addr */
-       PROVIDE (gp = .);
-
-       .sdata :
-       {
-         *(.sdata)
-         *(.sdata.*)
-         *(.gnu.linkonce.s.*)
-       }
-       . = ALIGN(4);
-
-       _edata = .;
-       PROVIDE (edata = .);
-
-       /* UNINIT DATA - Small uninitialized data is first so it's
-        * adjacent to sdata and can be referenced via gp. The normal
-        * bss follows. We keep it adjacent to simplify init code.
-        */
-       __bss_start = .;
-       .sbss (NOLOAD) :
-       {
-         *(.sbss)
-         *(.sbss.*)
-         *(.gnu.linkonce.sb.*)
-         *(.scommon)
-       }
-       . = ALIGN(4);
-       .bss (NOLOAD) :
-       {
-         *(.bss)
-         *(.bss.*)
-         *(.dynbss)
-         *(COMMON)
-         *(.scommon)
-       }
-       . = ALIGN(4);
-       _end = .;
-       PROVIDE (end = .);
-
-       /* DEBUG -- symbol table, string table, etc. etc.
-        */
-       .stab 0 : { *(.stab) }
-       .stabstr 0 : { *(.stabstr) }
-       .stab.excl 0 : { *(.stab.excl) }
-       .stab.exclstr 0 : { *(.stab.exclstr) }
-       .stab.index 0 : { *(.stab.index) }
-       .stab.indexstr 0 : { *(.stab.indexstr) }
-       .comment 0 : { *(.comment) }
-       .debug          0 : { *(.debug) }
-       .line           0 : { *(.line) }
-       .debug_srcinfo  0 : { *(.debug_srcinfo) }
-       .debug_sfnames  0 : { *(.debug_sfnames) }
-       .debug_aranges  0 : { *(.debug_aranges) }
-       .debug_pubnames 0 : { *(.debug_pubnames) }
-       .debug_info     0 : { *(.debug_info) }
-       .debug_abbrev   0 : { *(.debug_abbrev) }
-       .debug_line     0 : { *(.debug_line) }
-       .debug_frame    0 : { *(.debug_frame) }
-       .debug_str      0 : { *(.debug_str) }
-       .debug_loc      0 : { *(.debug_loc) }
-       .debug_macinfo  0 : { *(.debug_macinfo) }
-       .debug_weaknames 0 : { *(.debug_weaknames) }
-       .debug_funcnames 0 : { *(.debug_funcnames) }
-       .debug_typenames 0 : { *(.debug_typenames) }
-       .debug_varnames  0 : { *(.debug_varnames) }
-}
diff --git a/board/altera/nios2-generic/Makefile b/board/altera/nios2-generic/Makefile
new file mode 100644 (file)
index 0000000..6780872
--- /dev/null
@@ -0,0 +1,59 @@
+#
+# (C) Copyright 2001-2006
+# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
+# (C) Copyright 2010, Thomas Chou <thomas@wytron.com.tw>
+#
+# See file CREDITS for list of people who contributed to this
+# project.
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of
+# the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+# MA 02111-1307 USA
+#
+
+include $(TOPDIR)/config.mk
+ifneq ($(OBJTREE),$(SRCTREE))
+$(shell mkdir -p $(obj)../common)
+endif
+
+LIB    = $(obj)lib$(BOARD).a
+
+COBJS-y        := $(BOARD).o
+COBJS-$(CONFIG_CMD_IDE) += ../common/cfide.o
+COBJS-$(CONFIG_EPLED) += ../common/epled.o
+COBJS-$(CONFIG_SEVENSEG) += ../common/sevenseg.o
+
+SOBJS-y        := text_base.o
+
+SRCS   := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
+OBJS   := $(addprefix $(obj),$(COBJS-y))
+SOBJS  := $(addprefix $(obj),$(SOBJS-y))
+
+$(LIB):        $(obj).depend $(OBJS) $(SOBJS)
+       $(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS)
+
+clean:
+       rm -f $(SOBJS) $(OBJS)
+
+distclean:     clean
+       rm -f $(LIB) core *.bak $(obj).depend
+
+#########################################################################
+
+# defines $(obj).depend target
+include $(SRCTREE)/rules.mk
+
+sinclude $(obj).depend
+
+#########################################################################
diff --git a/board/altera/nios2-generic/config.mk b/board/altera/nios2-generic/config.mk
new file mode 100644 (file)
index 0000000..d500133
--- /dev/null
@@ -0,0 +1,34 @@
+#
+# (C) Copyright 2005, Psyent Corporation <www.psyent.com>
+# Scott McNutt <smcnutt@psyent.com>
+#
+# See file CREDITS for list of people who contributed to this
+# project.
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of
+# the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+# MA 02111-1307 USA
+#
+
+# we get text_base from board config header, so do not use this
+#TEXT_BASE = do-not-use-me
+
+PLATFORM_CPPFLAGS += -mno-hw-div -mno-hw-mul
+PLATFORM_CPPFLAGS += -I$(TOPDIR)/board/$(VENDOR)/include
+
+ifeq ($(debug),1)
+PLATFORM_CPPFLAGS += -DDEBUG
+endif
+
+LDSCRIPT := $(SRCTREE)/board/$(VENDOR)/$(BOARD)/u-boot.lds
diff --git a/board/altera/nios2-generic/custom_fpga.h b/board/altera/nios2-generic/custom_fpga.h
new file mode 100644 (file)
index 0000000..761f605
--- /dev/null
@@ -0,0 +1,66 @@
+/*
+ * (C) Copyright 2010, Thomas Chou <thomas@wytron.com.tw>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ *
+ * This file is generated by sopc-create-config-files.
+ */
+#ifndef _CUSTOM_FPGA_H_
+#define _CUSTOM_FPGA_H_
+
+/* generated from std_1c20.sopc */
+
+/* cpu.data_master is a altera_nios2 */
+#define CONFIG_SYS_CLK_FREQ 50000000
+#define CONFIG_SYS_RESET_ADDR 0x00000000
+#define CONFIG_SYS_EXCEPTION_ADDR 0x01000020
+#define CONFIG_SYS_ICACHE_SIZE 4096
+#define CONFIG_SYS_ICACHELINE_SIZE 32
+#define CONFIG_SYS_DCACHE_SIZE 2048
+#define CONFIG_SYS_DCACHELINE_SIZE 4
+
+/* sdram.s1 is a altera_avalon_new_sdram_controller */
+#define CONFIG_SYS_SDRAM_BASE 0x01000000
+#define CONFIG_SYS_SDRAM_SIZE 0x01000000
+
+/* uart1.s1 is a altera_avalon_uart */
+#define CONFIG_SYS_UART_BASE 0x82120840
+#define CONFIG_SYS_UART_FREQ 50000000
+#define CONFIG_SYS_UART_BAUD 115200
+
+/* lan91c111.s1 is a altera_avalon_lan91c111 */
+#define CONFIG_SMC91111_BASE 0x82110300
+#define CONFIG_SMC91111
+#define CONFIG_SMC_USE_32_BIT
+
+/* jtag_uart.avalon_jtag_slave is a altera_avalon_jtag_uart */
+#define CONFIG_SYS_JTAG_UART_BASE 0x821208b0
+
+/* led_pio.s1 is a altera_avalon_pio */
+#define LED_PIO_BASE 0x82120870
+
+/* high_res_timer.s1 is a altera_avalon_timer */
+#define CONFIG_SYS_TIMER_BASE 0x82120820
+#define CONFIG_SYS_TIMER_IRQ 3
+#define CONFIG_SYS_TIMER_FREQ 50000000
+
+/* ext_flash.s1 is a altera_avalon_cfi_flash */
+#define CONFIG_SYS_FLASH_BASE 0x80000000
+#define CONFIG_FLASH_CFI_DRIVER
+#define CONFIG_SYS_CFI_FLASH_STATUS_POLL /* fix amd flash issue */
+#define CONFIG_SYS_FLASH_CFI
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE
+#define CONFIG_SYS_FLASH_PROTECTION
+#define CONFIG_SYS_MAX_FLASH_BANKS 1
+#define CONFIG_SYS_MAX_FLASH_SECT 1024
+
+/* ext_ram.s1 is a altera_nios_dev_kit_stratix_edition_sram2 */
+#define CONFIG_SYS_SRAM_BASE 0x02000000
+#define CONFIG_SYS_SRAM_SIZE 0x00100000
+
+/* sysid.control_slave is a altera_avalon_sysid */
+#define CONFIG_SYS_SYSID_BASE 0x821208b8
+
+#endif /* _CUSTOM_FPGA_H_ */
diff --git a/board/altera/nios2-generic/nios2-generic.c b/board/altera/nios2-generic/nios2-generic.c
new file mode 100644 (file)
index 0000000..89848cf
--- /dev/null
@@ -0,0 +1,68 @@
+/*
+ * (C) Copyright 2005, Psyent Corporation <www.psyent.com>
+ * Scott McNutt <smcnutt@psyent.com>
+ * (C) Copyright 2010, Thomas Chou <thomas@wytron.com.tw>
+ *
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of
+ * the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ */
+
+#include <common.h>
+#include <netdev.h>
+
+void text_base_hook(void); /* nop hook for text_base.S */
+
+int board_early_init_f(void)
+{
+       text_base_hook();
+       return 0;
+}
+
+int checkboard(void)
+{
+       printf("BOARD : %s\n", CONFIG_BOARD_NAME);
+       return 0;
+}
+
+phys_size_t initdram(int board_type)
+{
+       return 0;
+}
+
+#ifdef CONFIG_CMD_NET
+int board_eth_init(bd_t *bis)
+{
+       int rc = 0;
+#ifdef CONFIG_SMC91111
+       rc += smc91111_initialize(0, CONFIG_SMC91111_BASE);
+#endif
+#ifdef CONFIG_DRIVER_DM9000
+       rc += dm9000_initialize(bis);
+#endif
+#ifdef CONFIG_ALTERA_TSE
+       rc += altera_tse_initialize(0,
+                                   CONFIG_SYS_ALTERA_TSE_MAC_BASE,
+                                   CONFIG_SYS_ALTERA_TSE_SGDMA_RX_BASE,
+                                   CONFIG_SYS_ALTERA_TSE_SGDMA_TX_BASE);
+#endif
+#ifdef CONFIG_ETHOC
+       rc += ethoc_initialize(0, CONFIG_SYS_ETHOC_BASE);
+#endif
+       return rc;
+}
+#endif
diff --git a/board/altera/nios2-generic/text_base.S b/board/altera/nios2-generic/text_base.S
new file mode 100644 (file)
index 0000000..f236db1
--- /dev/null
@@ -0,0 +1,21 @@
+/*
+ * text_base
+ *
+ * (C) Copyright 2010, Thomas Chou <thomas@wytron.com.tw>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+#include <config.h>
+
+#ifdef CONFIG_SYS_MONITOR_BASE
+       .text
+       /* text base used in link script u-boot.lds */
+       .global text_base
+       .equ text_base,CONFIG_SYS_MONITOR_BASE
+       /* dummy func to let linker include this file */
+       .global text_base_hook
+text_base_hook:
+       ret
+#endif
similarity index 98%
rename from board/altera/ep1s10/u-boot.lds
rename to board/altera/nios2-generic/u-boot.lds
index b909e94f8fcfa48a532ae1cf69aed7d33c16e1f8..d4be077bbd22ec6c4dce1465194efad00c6014c7 100644 (file)
@@ -28,9 +28,10 @@ ENTRY(_start)
 
 SECTIONS
 {
+       . = text_base;
        .text :
        {
-         arch/nios/cpu2/start.o (.text)
+         arch/nios2/cpu/start.o (.text)
          *(.text)
          *(.text.*)
          *(.gnu.linkonce.t*)
index bfca582715e3e72fbaf81d9c99af0fb5abae5906..e256b198d6918e5033ecd908d147876855231aac 100644 (file)
@@ -53,7 +53,7 @@ SECTIONS
     /* WARNING - the following is hand-optimized to fit within */
     /* the sector layout of our flash chips!   XXX FIXME XXX   */
 
-    arch/ppc/cpu/ppc4xx/start.o        (.text)
+    arch/powerpc/cpu/ppc4xx/start.o    (.text)
 
     /* Align to next NAND block */
     . = ALIGN(0x4000);
index 7439c805c2cc1e10188d807df2d6b4e69e96b5da..6925921785ecbbeaecffc661ad4c9ca56b852f73 100644 (file)
@@ -48,29 +48,29 @@ tlbtab:
         * speed up boot process. It is patched after relocation to enable SA_I
         */
 #ifndef CONFIG_NAND_SPL
-       tlbentry(CONFIG_SYS_BOOT_BASE_ADDR, SZ_256M, CONFIG_SYS_BOOT_BASE_ADDR, 0, AC_R|AC_W|AC_X|SA_G)
+       tlbentry(CONFIG_SYS_BOOT_BASE_ADDR, SZ_256M, CONFIG_SYS_BOOT_BASE_ADDR, 0, AC_RWX | SA_G)
 #else
-       tlbentry(CONFIG_SYS_NAND_BOOT_SPL_SRC, SZ_4K, CONFIG_SYS_NAND_BOOT_SPL_SRC, 0, AC_R|AC_W|AC_X|SA_G)
-       tlbentry(CONFIG_SYS_SDRAM_BASE, SZ_256M, CONFIG_SYS_SDRAM_BASE, 0, AC_R|AC_W|AC_X|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_NAND_BOOT_SPL_SRC, SZ_4K, CONFIG_SYS_NAND_BOOT_SPL_SRC, 0, AC_RWX | SA_G)
+       tlbentry(CONFIG_SYS_SDRAM_BASE, SZ_256M, CONFIG_SYS_SDRAM_BASE, 0, AC_RWX | SA_IG)
 #endif
 
        /* TLB-entry for init-ram in dcache (SA_I must be turned off!) */
-       tlbentry(CONFIG_SYS_INIT_RAM_ADDR, SZ_4K, CONFIG_SYS_INIT_RAM_ADDR, 0, AC_R|AC_W|AC_X|SA_G)
+       tlbentry(CONFIG_SYS_INIT_RAM_ADDR, SZ_4K, CONFIG_SYS_INIT_RAM_ADDR, 0, AC_RWX | SA_G)
 
        /* PCI base & peripherals */
-       tlbentry(CONFIG_SYS_PCI_BASE, SZ_256M, CONFIG_SYS_PCI_BASE, 0, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PCI_BASE, SZ_256M, CONFIG_SYS_PCI_BASE, 0, AC_RW | SA_IG)
 
-       tlbentry(CONFIG_SYS_NVRAM_BASE_ADDR, SZ_256M, CONFIG_SYS_NVRAM_BASE_ADDR, 0, AC_R|AC_W|AC_X|SA_W|SA_I)
-       tlbentry(CONFIG_SYS_NAND_ADDR, SZ_4K, CONFIG_SYS_NAND_ADDR, 0, AC_R|AC_W|AC_X|SA_W|SA_I)
+       tlbentry(CONFIG_SYS_NVRAM_BASE_ADDR, SZ_256M, CONFIG_SYS_NVRAM_BASE_ADDR, 0, AC_RWX | SA_W|SA_I)
+       tlbentry(CONFIG_SYS_NAND_ADDR, SZ_4K, CONFIG_SYS_NAND_ADDR, 0, AC_RWX | SA_W|SA_I)
 
        /* PCI */
-       tlbentry(CONFIG_SYS_PCI_MEMBASE, SZ_256M, CONFIG_SYS_PCI_MEMBASE, 0, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CONFIG_SYS_PCI_MEMBASE1, SZ_256M, CONFIG_SYS_PCI_MEMBASE1, 0, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CONFIG_SYS_PCI_MEMBASE2, SZ_256M, CONFIG_SYS_PCI_MEMBASE2, 0, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CONFIG_SYS_PCI_MEMBASE3, SZ_256M, CONFIG_SYS_PCI_MEMBASE3, 0, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PCI_MEMBASE, SZ_256M, CONFIG_SYS_PCI_MEMBASE, 0, AC_RW | SA_IG)
+       tlbentry(CONFIG_SYS_PCI_MEMBASE1, SZ_256M, CONFIG_SYS_PCI_MEMBASE1, 0, AC_RW | SA_IG)
+       tlbentry(CONFIG_SYS_PCI_MEMBASE2, SZ_256M, CONFIG_SYS_PCI_MEMBASE2, 0, AC_RW | SA_IG)
+       tlbentry(CONFIG_SYS_PCI_MEMBASE3, SZ_256M, CONFIG_SYS_PCI_MEMBASE3, 0, AC_RW | SA_IG)
 
        /* USB 2.0 Device */
-       tlbentry(CONFIG_SYS_USB_DEVICE, SZ_1K, CONFIG_SYS_USB_DEVICE, 0, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_USB_DEVICE, SZ_1K, CONFIG_SYS_USB_DEVICE, 0, AC_RW | SA_IG)
 
        tlbtab_end
 
@@ -81,7 +81,7 @@ tlbtab:
         */
 #define TLB00  TLB0(CONFIG_SYS_BOOT_BASE_ADDR, SZ_256M)
 #define TLB01  TLB1(CONFIG_SYS_BOOT_BASE_ADDR, 0)
-#define TLB02  TLB2(AC_R|AC_W|AC_X|SA_G|SA_I)
+#define TLB02  TLB2(AC_RWX | SA_IG)
 
        .globl  reconfig_tlb0
 reconfig_tlb0:
index bfca582715e3e72fbaf81d9c99af0fb5abae5906..e256b198d6918e5033ecd908d147876855231aac 100644 (file)
@@ -53,7 +53,7 @@ SECTIONS
     /* WARNING - the following is hand-optimized to fit within */
     /* the sector layout of our flash chips!   XXX FIXME XXX   */
 
-    arch/ppc/cpu/ppc4xx/start.o        (.text)
+    arch/powerpc/cpu/ppc4xx/start.o    (.text)
 
     /* Align to next NAND block */
     . = ALIGN(0x4000);
index 71a57019166f949f98f5bafd01a6542419fd4731..23874d2667dc6510a71d1a7dd84c5ceda10d8d38 100644 (file)
@@ -42,7 +42,7 @@ DECLARE_GLOBAL_DATA_PTR;
 #define BOARD_ARCHES           4
 
 /*
- * Override the default functions in arch/ppc/cpu/ppc4xx/44x_spd_ddr2.c with
+ * Override the default functions in arch/powerpc/cpu/ppc4xx/44x_spd_ddr2.c with
  * board specific values.
  */
 #if defined(CONFIG_ARCHES)
index 993bec30ea6fa12cd0f522eec5f966ec985d20cc..64d5d422935cc8ea3b15a7041c9abc42d7d37d8d 100644 (file)
@@ -47,11 +47,11 @@ tlbtab:
         * enable SA_I
         */
 #ifndef CONFIG_NAND_SPL
-       tlbentry(CONFIG_SYS_BOOT_BASE_ADDR, SZ_16M, CONFIG_SYS_BOOT_BASE_ADDR, 4, AC_R|AC_W|AC_X|SA_G) /* TLB 0 */
+       tlbentry(CONFIG_SYS_BOOT_BASE_ADDR, SZ_16M, CONFIG_SYS_BOOT_BASE_ADDR, 4, AC_RWX | SA_G) /* TLB 0 */
 #else
-       tlbentry(CONFIG_SYS_NAND_BOOT_SPL_SRC, SZ_4K, CONFIG_SYS_NAND_BOOT_SPL_SRC, 4, AC_R|AC_W|AC_X|SA_G)
-       tlbentry(CONFIG_SYS_SDRAM_BASE, SZ_256M, CONFIG_SYS_SDRAM_BASE, 0, AC_R|AC_W|AC_X|SA_G|SA_I)
-       tlbentry(256 << 20, SZ_256M, 256 << 20, 0, AC_R|AC_W|AC_X|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_NAND_BOOT_SPL_SRC, SZ_4K, CONFIG_SYS_NAND_BOOT_SPL_SRC, 4, AC_RWX | SA_G)
+       tlbentry(CONFIG_SYS_SDRAM_BASE, SZ_256M, CONFIG_SYS_SDRAM_BASE, 0, AC_RWX | SA_IG)
+       tlbentry(256 << 20, SZ_256M, 256 << 20, 0, AC_RWX | SA_IG)
 #endif
 
        /*
@@ -62,51 +62,51 @@ tlbtab:
 
 #ifdef CONFIG_SYS_INIT_RAM_DCACHE
        /* TLB-entry for init-ram in dcache (SA_I must be turned off!) */
-       tlbentry(CONFIG_SYS_INIT_RAM_ADDR, SZ_4K, CONFIG_SYS_INIT_RAM_ADDR, 0, AC_R|AC_W|AC_X|SA_G)
+       tlbentry(CONFIG_SYS_INIT_RAM_ADDR, SZ_4K, CONFIG_SYS_INIT_RAM_ADDR, 0, AC_RWX | SA_G)
 #endif
 
-       tlbentry(CONFIG_SYS_PCI_BASE, SZ_256M, 0x00000000, 0xC, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CONFIG_SYS_PCI_MEMBASE, SZ_256M, 0x20000000, 0xC, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CONFIG_SYS_PCIE_MEMBASE, SZ_256M, 0xB0000000, 0xD, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PCI_BASE, SZ_256M, 0x00000000, 0xC, AC_RW | SA_IG)
+       tlbentry(CONFIG_SYS_PCI_MEMBASE, SZ_256M, 0x20000000, 0xC, AC_RW | SA_IG)
+       tlbentry(CONFIG_SYS_PCIE_MEMBASE, SZ_256M, 0xB0000000, 0xD, AC_RW | SA_IG)
 
-       tlbentry(CONFIG_SYS_PCIE0_CFGBASE, SZ_16M, 0x00000000, 0xD, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CONFIG_SYS_PCIE1_CFGBASE, SZ_16M, 0x20000000, 0xD, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CONFIG_SYS_PCIE0_XCFGBASE, SZ_1K, 0x10000000, 0xD, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CONFIG_SYS_PCIE1_XCFGBASE, SZ_1K, 0x30000000, 0xD, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PCIE0_CFGBASE, SZ_16M, 0x00000000, 0xD, AC_RW | SA_IG)
+       tlbentry(CONFIG_SYS_PCIE1_CFGBASE, SZ_16M, 0x20000000, 0xD, AC_RW | SA_IG)
+       tlbentry(CONFIG_SYS_PCIE0_XCFGBASE, SZ_1K, 0x10000000, 0xD, AC_RW | SA_IG)
+       tlbentry(CONFIG_SYS_PCIE1_XCFGBASE, SZ_1K, 0x30000000, 0xD, AC_RW | SA_IG)
 
        /* PCIe UTL register */
-       tlbentry(CONFIG_SYS_PCIE_BASE, SZ_16K, 0x08010000, 0xC, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PCIE_BASE, SZ_16K, 0x08010000, 0xC, AC_RW | SA_IG)
 
 #if !defined(CONFIG_ARCHES)
        /* TLB-entry for NAND */
-       tlbentry(CONFIG_SYS_NAND_ADDR, SZ_16M, CONFIG_SYS_NAND_ADDR, 4, AC_R|AC_W|AC_X|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_NAND_ADDR, SZ_16M, CONFIG_SYS_NAND_ADDR, 4, AC_RWX | SA_IG)
 
        /* TLB-entry for CPLD */
-       tlbentry(CONFIG_SYS_BCSR_BASE, SZ_1K, CONFIG_SYS_BCSR_BASE, 4, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_BCSR_BASE, SZ_1K, CONFIG_SYS_BCSR_BASE, 4, AC_RW | SA_IG)
 #else
        /* TLB-entry for FPGA */
-       tlbentry(CONFIG_SYS_FPGA_BASE, SZ_16M, CONFIG_SYS_FPGA_BASE, 4, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_FPGA_BASE, SZ_16M, CONFIG_SYS_FPGA_BASE, 4, AC_RW | SA_IG)
 #endif
 
        /* TLB-entry for OCM */
-       tlbentry(CONFIG_SYS_OCM_BASE, SZ_1M, 0x00000000, 4, AC_R|AC_W|AC_X|SA_I)
+       tlbentry(CONFIG_SYS_OCM_BASE, SZ_1M, 0x00000000, 4, AC_RWX | SA_I)
 
        /* TLB-entry for Local Configuration registers => peripherals */
-       tlbentry(CONFIG_SYS_LOCAL_CONF_REGS, SZ_16M, CONFIG_SYS_LOCAL_CONF_REGS, 4, AC_R|AC_W|AC_X|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_LOCAL_CONF_REGS, SZ_16M, CONFIG_SYS_LOCAL_CONF_REGS, 4, AC_RWX | SA_IG)
 
        /* AHB: Internal USB Peripherals (USB, SATA) */
-       tlbentry(CONFIG_SYS_AHB_BASE, SZ_1M, 0xbff00000, 4, AC_R|AC_W|AC_X|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_AHB_BASE, SZ_1M, 0xbff00000, 4, AC_RWX | SA_IG)
 
 #if defined(CONFIG_RAPIDIO)
        /* TLB-entries for RapidIO (SRIO) */
        tlbentry(CONFIG_SYS_SRGPL0_REG_BAR, SZ_16M, CONFIG_SYS_SRGPL0_REG_BAR,
-                                       0xD, AC_R|AC_W|SA_G|SA_I)
+                                       0xD, AC_RW | SA_IG)
        tlbentry(CONFIG_SYS_SRGPL0_CFG_BAR, SZ_16M, CONFIG_SYS_SRGPL0_CFG_BAR,
-                                       0xD, AC_R|AC_W|SA_G|SA_I)
+                                       0xD, AC_RW | SA_IG)
        tlbentry(CONFIG_SYS_SRGPL0_MNT_BAR, SZ_16M, CONFIG_SYS_SRGPL0_MNT_BAR,
-                                       0xD, AC_R|AC_W|SA_G|SA_I)
+                                       0xD, AC_RW | SA_IG)
        tlbentry(CONFIG_SYS_I2ODMA_BASE, SZ_1K,  0x00100000,
-                                       0x4, AC_R|AC_W|SA_G|SA_I)
+                                       0x4, AC_RW | SA_IG)
 #endif
 
        tlbtab_end
@@ -118,7 +118,7 @@ tlbtab:
         */
 #define TLB00  TLB0(CONFIG_SYS_BOOT_BASE_ADDR, SZ_256M)
 #define TLB01  TLB1(CONFIG_SYS_BOOT_BASE_ADDR, 1)
-#define TLB02  TLB2(AC_R|AC_W|AC_X|SA_G|SA_I)
+#define TLB02  TLB2(AC_RWX | SA_IG)
 
        .globl  reconfig_tlb0
 reconfig_tlb0:
index b04b05e38af13b617291a10484f23097f492095f..c71f0b7c0afa1bc4db3dbec2a69325bb14457eff 100644 (file)
@@ -53,7 +53,7 @@ SECTIONS
     /* WARNING - the following is hand-optimized to fit within */
     /* the sector layout of our flash chips!   XXX FIXME XXX   */
 
-    arch/ppc/cpu/ppc4xx/start.o        (.text)
+    arch/powerpc/cpu/ppc4xx/start.o    (.text)
 
     /* Align to next NAND block */
     . = ALIGN(0x20000);
index 153fa811c481951bf9f81ee940d50e14ec44c2e3..c91176367ec69c832d13467be28265525e14ef50 100644 (file)
@@ -41,7 +41,7 @@
 tlbtab:
        tlbtab_start
 
-       tlbentry(0xf0000000, SZ_256M, 0xf0000000, 1, AC_R|AC_W|AC_X|SA_G|SA_I)
+       tlbentry(0xf0000000, SZ_256M, 0xf0000000, 1, AC_RWX | SA_IG)
 
        /*
         * TLB entries for SDRAM are not needed on this platform.
@@ -49,9 +49,9 @@ tlbtab:
         * routine.
         */
 
-       tlbentry(CONFIG_SYS_PERIPHERAL_BASE, SZ_256M, 0x40000000, 1, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CONFIG_SYS_ISRAM_BASE, SZ_4K, 0x80000000, 0, AC_R|AC_W|AC_X)
-       tlbentry(CONFIG_SYS_ISRAM_BASE + 0x1000, SZ_4K, 0x80001000, 0, AC_R|AC_W|AC_X)
-       tlbentry(CONFIG_SYS_PCI_BASE, SZ_256M, 0x00000000, 2, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CONFIG_SYS_PCI_MEMBASE, SZ_256M, 0x00000000, 3, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PERIPHERAL_BASE, SZ_256M, 0x40000000, 1, AC_RW | SA_IG)
+       tlbentry(CONFIG_SYS_ISRAM_BASE, SZ_4K, 0x80000000, 0, AC_RWX)
+       tlbentry(CONFIG_SYS_ISRAM_BASE + 0x1000, SZ_4K, 0x80001000, 0, AC_RWX)
+       tlbentry(CONFIG_SYS_PCI_BASE, SZ_256M, 0x00000000, 2, AC_RW | SA_IG)
+       tlbentry(CONFIG_SYS_PCI_MEMBASE, SZ_256M, 0x00000000, 3, AC_RW | SA_IG)
        tlbtab_end
index 90598f63bc541c75fe2e698f73cfa5b27a5b0997..59ccf2b6aa694c4141f691c210566387c213cd57 100644 (file)
@@ -51,7 +51,7 @@ tlbtabA:
         * BOOT_CS (FLASH) must be first. Before relocation SA_I can be off to use the
         * speed up boot process. It is patched after relocation to enable SA_I
         */
-       tlbentry(0xff000000, SZ_16M, 0xff000000, 4, AC_R|AC_W|AC_X|SA_G)
+       tlbentry(0xff000000, SZ_16M, 0xff000000, 4, AC_RWX | SA_G)
 
        /*
         * TLB entries for SDRAM are not needed on this platform.
@@ -59,20 +59,20 @@ tlbtabA:
         * routine.
         */
 
-       tlbentry(CONFIG_SYS_ISRAM_BASE, SZ_256K, 0x00000000, 4, AC_R|AC_W|AC_X|SA_I)
-       tlbentry(CONFIG_SYS_PERIPHERAL_BASE, SZ_4K, 0xF0000000, 4, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_ISRAM_BASE, SZ_256K, 0x00000000, 4, AC_RWX | SA_I)
+       tlbentry(CONFIG_SYS_PERIPHERAL_BASE, SZ_4K, 0xF0000000, 4, AC_RW | SA_IG)
 
-       tlbentry(CONFIG_SYS_PCI_BASE, SZ_256M, 0x00000000, 0xC, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CONFIG_SYS_PCI_MEMBASE, SZ_256M, 0x10000000, 0xC, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CONFIG_SYS_PCIE_MEMBASE, SZ_256M, 0xB0000000, 0xD, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CONFIG_SYS_PCIE_BASE, SZ_16K, 0x20000000, 0xC, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PCI_BASE, SZ_256M, 0x00000000, 0xC, AC_RW | SA_IG)
+       tlbentry(CONFIG_SYS_PCI_MEMBASE, SZ_256M, 0x10000000, 0xC, AC_RW | SA_IG)
+       tlbentry(CONFIG_SYS_PCIE_MEMBASE, SZ_256M, 0xB0000000, 0xD, AC_RW | SA_IG)
+       tlbentry(CONFIG_SYS_PCIE_BASE, SZ_16K, 0x20000000, 0xC, AC_RW | SA_IG)
 
-       tlbentry(CONFIG_SYS_PCIE0_CFGBASE, SZ_16M, 0x40000000, 0xC, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CONFIG_SYS_PCIE1_CFGBASE, SZ_16M, 0x80000000, 0xC, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CONFIG_SYS_PCIE2_CFGBASE, SZ_16M, 0xC0000000, 0xC, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CONFIG_SYS_PCIE0_XCFGBASE, SZ_1K, 0x50000000, 0xC, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CONFIG_SYS_PCIE1_XCFGBASE, SZ_1K, 0x90000000, 0xC, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CONFIG_SYS_PCIE2_XCFGBASE, SZ_1K, 0xD0000000, 0xC, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PCIE0_CFGBASE, SZ_16M, 0x40000000, 0xC, AC_RW | SA_IG)
+       tlbentry(CONFIG_SYS_PCIE1_CFGBASE, SZ_16M, 0x80000000, 0xC, AC_RW | SA_IG)
+       tlbentry(CONFIG_SYS_PCIE2_CFGBASE, SZ_16M, 0xC0000000, 0xC, AC_RW | SA_IG)
+       tlbentry(CONFIG_SYS_PCIE0_XCFGBASE, SZ_1K, 0x50000000, 0xC, AC_RW | SA_IG)
+       tlbentry(CONFIG_SYS_PCIE1_XCFGBASE, SZ_1K, 0x90000000, 0xC, AC_RW | SA_IG)
+       tlbentry(CONFIG_SYS_PCIE2_XCFGBASE, SZ_1K, 0xD0000000, 0xC, AC_RW | SA_IG)
        tlbtab_end
 
 /**************************************************************************
@@ -91,7 +91,7 @@ tlbtabB:
         * BOOT_CS (FLASH) must be first. Before relocation SA_I can be off to use the
         * speed up boot process. It is patched after relocation to enable SA_I
         */
-       tlbentry(0xff000000, SZ_16M, 0xff000000, 4, AC_R|AC_W|AC_X|SA_G)
+       tlbentry(0xff000000, SZ_16M, 0xff000000, 4, AC_RWX | SA_G)
 
        /*
         * TLB entries for SDRAM are not needed on this platform.
@@ -99,20 +99,20 @@ tlbtabB:
         * routine.
         */
 
-       tlbentry(CONFIG_SYS_ISRAM_BASE, SZ_256K, 0x00000000, 4, AC_R|AC_W|AC_X|SA_I)
+       tlbentry(CONFIG_SYS_ISRAM_BASE, SZ_256K, 0x00000000, 4, AC_RWX | SA_I)
 
-       tlbentry(CONFIG_SYS_PERIPHERAL_BASE, SZ_4K, 0xF0000000, 4, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PERIPHERAL_BASE, SZ_4K, 0xF0000000, 4, AC_RW | SA_IG)
 
-       tlbentry(CONFIG_SYS_ACE_BASE, SZ_1K, CONFIG_SYS_ACE_BASE, 4,AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_ACE_BASE, SZ_1K, CONFIG_SYS_ACE_BASE, 4,AC_RW | SA_IG)
 
-       tlbentry(CONFIG_SYS_PCI_BASE, SZ_256M, 0x00000000, 0xC, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CONFIG_SYS_PCI_MEMBASE, SZ_256M, 0x10000000, 0xC, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CONFIG_SYS_PCIE_MEMBASE, SZ_256M, 0xB0000000, 0xD, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PCI_BASE, SZ_256M, 0x00000000, 0xC, AC_RW | SA_IG)
+       tlbentry(CONFIG_SYS_PCI_MEMBASE, SZ_256M, 0x10000000, 0xC, AC_RW | SA_IG)
+       tlbentry(CONFIG_SYS_PCIE_MEMBASE, SZ_256M, 0xB0000000, 0xD, AC_RW | SA_IG)
 
-       tlbentry(CONFIG_SYS_PCIE0_CFGBASE, SZ_16M, 0x00000000, 0xD, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CONFIG_SYS_PCIE1_CFGBASE, SZ_16M, 0x20000000, 0xD, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CONFIG_SYS_PCIE2_CFGBASE, SZ_16M, 0x40000000, 0xD, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CONFIG_SYS_PCIE0_XCFGBASE, SZ_1K, 0x10000000, 0xD, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CONFIG_SYS_PCIE1_XCFGBASE, SZ_1K, 0x30000000, 0xD, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CONFIG_SYS_PCIE2_XCFGBASE, SZ_1K, 0x50000000, 0xD, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PCIE0_CFGBASE, SZ_16M, 0x00000000, 0xD, AC_RW | SA_IG)
+       tlbentry(CONFIG_SYS_PCIE1_CFGBASE, SZ_16M, 0x20000000, 0xD, AC_RW | SA_IG)
+       tlbentry(CONFIG_SYS_PCIE2_CFGBASE, SZ_16M, 0x40000000, 0xD, AC_RW | SA_IG)
+       tlbentry(CONFIG_SYS_PCIE0_XCFGBASE, SZ_1K, 0x10000000, 0xD, AC_RW | SA_IG)
+       tlbentry(CONFIG_SYS_PCIE1_XCFGBASE, SZ_1K, 0x30000000, 0xD, AC_RW | SA_IG)
+       tlbentry(CONFIG_SYS_PCIE2_XCFGBASE, SZ_1K, 0x50000000, 0xD, AC_RW | SA_IG)
        tlbtab_end
index 15291f96b57a2811dae415657f47347545204c38..0bbc75e7cf26909f824abb6ac11a01d61788ea96 100644 (file)
@@ -249,7 +249,7 @@ int checkboard (void)
 }
 
 /*
- * Override the default functions in arch/ppc/cpu/ppc4xx/44x_spd_ddr2.c with
+ * Override the default functions in arch/powerpc/cpu/ppc4xx/44x_spd_ddr2.c with
  * board specific values.
  */
 u32 ddr_wrdtr(u32 default_val) {
index bfca582715e3e72fbaf81d9c99af0fb5abae5906..e256b198d6918e5033ecd908d147876855231aac 100644 (file)
@@ -53,7 +53,7 @@ SECTIONS
     /* WARNING - the following is hand-optimized to fit within */
     /* the sector layout of our flash chips!   XXX FIXME XXX   */
 
-    arch/ppc/cpu/ppc4xx/start.o        (.text)
+    arch/powerpc/cpu/ppc4xx/start.o    (.text)
 
     /* Align to next NAND block */
     . = ALIGN(0x4000);
index 513b0fc560235f308eba173b059fb5c7d2417c5d..06428d25ca46e3b0b3a509b2616980adf89e3397 100644 (file)
@@ -48,13 +48,13 @@ tlbtab:
         * BOOT_CS (FLASH) must be first. Before relocation SA_I can be off to use the
         * speed up boot process. It is patched after relocation to enable SA_I
         */
-       tlbentry(0xfff00000, SZ_1M, 0xfff00000, 1, AC_R|AC_W|AC_X|SA_G)
+       tlbentry(0xfff00000, SZ_1M, 0xfff00000, 1, AC_RWX | SA_G)
 
-       tlbentry(0xffc00000, SZ_1M, 0xffc00000, 1, AC_R|AC_W|AC_X|SA_G|SA_I)
-       tlbentry(0xffd00000, SZ_1M, 0xffd00000, 1, AC_R|AC_W|AC_X|SA_G|SA_I)
-       tlbentry(0xffe00000, SZ_1M, 0xffe00000, 1, AC_R|AC_W|AC_X|SA_G|SA_I)
-       tlbentry(0xff900000, SZ_1M, 0xff900000, 1, AC_R|AC_W|AC_X|SA_G|SA_I)
-       tlbentry(CONFIG_SYS_EPLD_BASE, SZ_256K, 0xff000000, 1, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(0xffc00000, SZ_1M, 0xffc00000, 1, AC_RWX | SA_IG)
+       tlbentry(0xffd00000, SZ_1M, 0xffd00000, 1, AC_RWX | SA_IG)
+       tlbentry(0xffe00000, SZ_1M, 0xffe00000, 1, AC_RWX | SA_IG)
+       tlbentry(0xff900000, SZ_1M, 0xff900000, 1, AC_RWX | SA_IG)
+       tlbentry(CONFIG_SYS_EPLD_BASE, SZ_256K, 0xff000000, 1, AC_RW | SA_IG)
 
        /*
         * TLB entries for SDRAM are not needed on this platform.
@@ -63,12 +63,12 @@ tlbtab:
         */
 
        /* internal ram (l2 cache) */
-       tlbentry(CONFIG_SYS_ISRAM_BASE, SZ_256K, 0x80000000, 0, AC_R|AC_W|AC_X|SA_I)
+       tlbentry(CONFIG_SYS_ISRAM_BASE, SZ_256K, 0x80000000, 0, AC_RWX | SA_I)
 
        /* peripherals at f0000000 */
-       tlbentry(CONFIG_SYS_PERIPHERAL_BASE, SZ_4K, CONFIG_SYS_PERIPHERAL_BASE, 1, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PERIPHERAL_BASE, SZ_4K, CONFIG_SYS_PERIPHERAL_BASE, 1, AC_RW | SA_IG)
 
        /* PCI */
-       tlbentry(CONFIG_SYS_PCI_BASE, SZ_256M, 0x00000000, 9, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CONFIG_SYS_PCI_MEMBASE, SZ_256M, 0x10000000, 9, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PCI_BASE, SZ_256M, 0x00000000, 9, AC_RW | SA_IG)
+       tlbentry(CONFIG_SYS_PCI_MEMBASE, SZ_256M, 0x10000000, 9, AC_RW | SA_IG)
        tlbtab_end
index 6542565f08a3a886648d5fe2d977d0d35d801848..4e12e9af12a0d98af88e142c76e176a43e7bad12 100644 (file)
@@ -119,7 +119,7 @@ int checkboard(void)
 }
 
 /*
- * Override the default functions in arch/ppc/cpu/ppc4xx/44x_spd_ddr2.c with
+ * Override the default functions in arch/powerpc/cpu/ppc4xx/44x_spd_ddr2.c with
  * board specific values.
  */
 u32 ddr_clktr(u32 default_val) {
index e7c75dfac542a1319ba21d53c76245bcadae5d27..2ef11ccb4b6dfe15e4c9809cb84c3792e0cd6c34 100644 (file)
@@ -41,7 +41,7 @@
 tlbtab:
        tlbtab_start
 
-       tlbentry(0xf0000000, SZ_256M, 0xf0000000, 1, AC_R|AC_W|AC_X|SA_G|SA_I)
+       tlbentry(0xf0000000, SZ_256M, 0xf0000000, 1, AC_RWX | SA_IG)
 
        /*
         * TLB entries for SDRAM are not needed on this platform.
@@ -49,9 +49,9 @@ tlbtab:
         * routine.
         */
 
-       tlbentry(CONFIG_SYS_PERIPHERAL_BASE, SZ_256M, 0x40000000, 1, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CONFIG_SYS_ISRAM_BASE, SZ_4K, 0x80000000, 0, AC_R|AC_W|AC_X)
-       tlbentry(CONFIG_SYS_ISRAM_BASE + 0x1000, SZ_4K, 0x80001000, 0, AC_R|AC_W|AC_X)
-       tlbentry(CONFIG_SYS_PCI_BASE, SZ_256M, 0x00000000, 2, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CONFIG_SYS_PCI_MEMBASE, SZ_256M, 0x00000000, 3, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PERIPHERAL_BASE, SZ_256M, 0x40000000, 1, AC_RW | SA_IG)
+       tlbentry(CONFIG_SYS_ISRAM_BASE, SZ_4K, 0x80000000, 0, AC_RWX)
+       tlbentry(CONFIG_SYS_ISRAM_BASE + 0x1000, SZ_4K, 0x80001000, 0, AC_RWX)
+       tlbentry(CONFIG_SYS_PCI_BASE, SZ_256M, 0x00000000, 2, AC_RW | SA_IG)
+       tlbentry(CONFIG_SYS_PCI_MEMBASE, SZ_256M, 0x00000000, 3, AC_RW | SA_IG)
        tlbtab_end
index 4da586918d1005a811f1f8a31adc9e59033f3364..fb10520b8231dddd5f8243b0a0c4fe5b20bc6059 100644 (file)
@@ -45,7 +45,7 @@ tlbtab:
         * BOOT_CS (FLASH) must be first. Before relocation SA_I can be off to use the
         * speed up boot process. It is patched after relocation to enable SA_I
         */
-       tlbentry(0xff000000, SZ_16M, 0xff000000, 4, AC_R|AC_W|AC_X|SA_G)
+       tlbentry(0xff000000, SZ_16M, 0xff000000, 4, AC_RWX | SA_G)
 
        /*
         * TLB entries for SDRAM are not needed on this platform.
@@ -54,24 +54,24 @@ tlbtab:
         */
 
        /* Although 512 KB, map 256k at a time */
-       tlbentry(CONFIG_SYS_ISRAM_BASE, SZ_256K, 0x00000000, 4, AC_R|AC_W|AC_X|SA_I)
-       tlbentry(CONFIG_SYS_ISRAM_BASE + 0x40000, SZ_256K, 0x00040000, 4, AC_R|AC_W|AC_X|SA_I)
+       tlbentry(CONFIG_SYS_ISRAM_BASE, SZ_256K, 0x00000000, 4, AC_RWX | SA_I)
+       tlbentry(CONFIG_SYS_ISRAM_BASE + 0x40000, SZ_256K, 0x00040000, 4, AC_RWX | SA_I)
 
-       tlbentry(CONFIG_SYS_OPER_FLASH, SZ_16M, 0xE7000000, 4,AC_R|AC_W|AC_X|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_OPER_FLASH, SZ_16M, 0xE7000000, 4,AC_RWX | SA_IG)
 
        /*
         * Peripheral base
         */
-       tlbentry(CONFIG_SYS_PERIPHERAL_BASE, SZ_16K, 0xEF600000, 4, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PERIPHERAL_BASE, SZ_16K, 0xEF600000, 4, AC_RW | SA_IG)
 
-       tlbentry(CONFIG_SYS_PCIE0_XCFGBASE,SZ_16M, 0x00000000, 0xC, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CONFIG_SYS_PCIE1_XCFGBASE,SZ_16M, 0x10000000, 0xC, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CONFIG_SYS_PCIE2_XCFGBASE,SZ_16M, 0x20000000, 0xC, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PCIE0_XCFGBASE,SZ_16M, 0x00000000, 0xC, AC_RW | SA_IG)
+       tlbentry(CONFIG_SYS_PCIE1_XCFGBASE,SZ_16M, 0x10000000, 0xC, AC_RW | SA_IG)
+       tlbentry(CONFIG_SYS_PCIE2_XCFGBASE,SZ_16M, 0x20000000, 0xC, AC_RW | SA_IG)
 
-       tlbentry(CONFIG_SYS_PCIE0_MEMBASE, SZ_256M, 0x00000000, 0xD, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CONFIG_SYS_PCIE1_MEMBASE, SZ_256M, 0x00000000, 0xE, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PCIE0_MEMBASE, SZ_256M, 0x00000000, 0xD, AC_RW | SA_IG)
+       tlbentry(CONFIG_SYS_PCIE1_MEMBASE, SZ_256M, 0x00000000, 0xE, AC_RW | SA_IG)
 
-       tlbentry(CONFIG_SYS_PCIE0_REGBASE, SZ_64K, 0x30000000, 0xC, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CONFIG_SYS_PCIE1_REGBASE, SZ_64K, 0x30010000, 0xC, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CONFIG_SYS_PCIE2_REGBASE, SZ_64K, 0x30020000, 0xC, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PCIE0_REGBASE, SZ_64K, 0x30000000, 0xC, AC_RW | SA_IG)
+       tlbentry(CONFIG_SYS_PCIE1_REGBASE, SZ_64K, 0x30010000, 0xC, AC_RW | SA_IG)
+       tlbentry(CONFIG_SYS_PCIE2_REGBASE, SZ_64K, 0x30020000, 0xC, AC_RW | SA_IG)
        tlbtab_end
index f090070b4dd5784d9abae5a81ffa437a279245e8..7139aaee4d0e710cba00e231e642ea171c6e9659 100644 (file)
@@ -41,7 +41,7 @@ tlbtab:
        tlbtab_start
 
        /* vxWorks needs this as first entry for the Machine Check interrupt */
-       tlbentry( 0x40000000, SZ_256M, 0, 0, AC_R|AC_W|AC_X|SA_G|SA_I )
+       tlbentry( 0x40000000, SZ_256M, 0, 0, AC_RWX | SA_IG )
 
        /*
         * The RAM-boot version skips the SDRAM TLB (identified by EPN=0). This
@@ -51,49 +51,49 @@ tlbtab:
 #ifndef CONFIG_SYS_RAMBOOT
        /* TLB-entry for DDR SDRAM (Up to 2GB) */
 #ifdef CONFIG_4xx_DCACHE
-       tlbentry( CONFIG_SYS_SDRAM_BASE, SZ_256M, CONFIG_SYS_SDRAM_BASE, 0, AC_R|AC_W|AC_X|SA_G)
+       tlbentry( CONFIG_SYS_SDRAM_BASE, SZ_256M, CONFIG_SYS_SDRAM_BASE, 0, AC_RWX | SA_G)
 #else
-       tlbentry( CONFIG_SYS_SDRAM_BASE, SZ_256M, CONFIG_SYS_SDRAM_BASE, 0, AC_R|AC_W|AC_X|SA_G|SA_I )
+       tlbentry( CONFIG_SYS_SDRAM_BASE, SZ_256M, CONFIG_SYS_SDRAM_BASE, 0, AC_RWX | SA_IG )
 #endif
 #endif /* CONFIG_SYS_RAMBOOT */
 
        /* TLB-entry for EBC */
-       tlbentry( CONFIG_SYS_BCSR_BASE, SZ_256M, CONFIG_SYS_BCSR_BASE, 1, AC_R|AC_W|AC_X|SA_G|SA_I )
+       tlbentry( CONFIG_SYS_BCSR_BASE, SZ_256M, CONFIG_SYS_BCSR_BASE, 1, AC_RWX | SA_IG )
 
        /* BOOT_CS (FLASH) must be forth. Before relocation SA_I can be off to use the
         * speed up boot process. It is patched after relocation to enable SA_I
         */
 #ifndef CONFIG_NAND_SPL
-       tlbentry( CONFIG_SYS_BOOT_BASE_ADDR, SZ_256M, CONFIG_SYS_BOOT_BASE_ADDR, 1, AC_R|AC_W|AC_X|SA_G )
+       tlbentry( CONFIG_SYS_BOOT_BASE_ADDR, SZ_256M, CONFIG_SYS_BOOT_BASE_ADDR, 1, AC_RWX | SA_G )
 #else
-       tlbentry( CONFIG_SYS_NAND_BOOT_SPL_SRC, SZ_4K, CONFIG_SYS_NAND_BOOT_SPL_SRC, 1, AC_R|AC_W|AC_X|SA_G )
+       tlbentry( CONFIG_SYS_NAND_BOOT_SPL_SRC, SZ_4K, CONFIG_SYS_NAND_BOOT_SPL_SRC, 1, AC_RWX | SA_G )
 #endif
 
 #ifdef CONFIG_SYS_INIT_RAM_DCACHE
        /* TLB-entry for init-ram in dcache (SA_I must be turned off!) */
-       tlbentry( CONFIG_SYS_INIT_RAM_ADDR, SZ_64K, CONFIG_SYS_INIT_RAM_ADDR, 0, AC_R|AC_W|AC_X|SA_G )
+       tlbentry( CONFIG_SYS_INIT_RAM_ADDR, SZ_64K, CONFIG_SYS_INIT_RAM_ADDR, 0, AC_RWX | SA_G )
 #endif
 
        /* TLB-entry for PCI Memory */
-       tlbentry( CONFIG_SYS_PCI_MEMBASE, SZ_256M, CONFIG_SYS_PCI_MEMBASE, 1, AC_R|AC_W|SA_G|SA_I )
-       tlbentry( CONFIG_SYS_PCI_MEMBASE1, SZ_256M, CONFIG_SYS_PCI_MEMBASE1, 1, AC_R|AC_W|SA_G|SA_I )
-       tlbentry( CONFIG_SYS_PCI_MEMBASE2, SZ_256M, CONFIG_SYS_PCI_MEMBASE2, 1, AC_R|AC_W|SA_G|SA_I )
-       tlbentry( CONFIG_SYS_PCI_MEMBASE3, SZ_256M, CONFIG_SYS_PCI_MEMBASE3, 1, AC_R|AC_W|SA_G|SA_I )
+       tlbentry( CONFIG_SYS_PCI_MEMBASE, SZ_256M, CONFIG_SYS_PCI_MEMBASE, 1, AC_RW | SA_IG )
+       tlbentry( CONFIG_SYS_PCI_MEMBASE1, SZ_256M, CONFIG_SYS_PCI_MEMBASE1, 1, AC_RW | SA_IG )
+       tlbentry( CONFIG_SYS_PCI_MEMBASE2, SZ_256M, CONFIG_SYS_PCI_MEMBASE2, 1, AC_RW | SA_IG )
+       tlbentry( CONFIG_SYS_PCI_MEMBASE3, SZ_256M, CONFIG_SYS_PCI_MEMBASE3, 1, AC_RW | SA_IG )
 
        /* TLB-entry for NAND */
-       tlbentry( CONFIG_SYS_NAND_ADDR, SZ_1K, CONFIG_SYS_NAND_ADDR, 1, AC_R|AC_W|AC_X|SA_G|SA_I )
+       tlbentry( CONFIG_SYS_NAND_ADDR, SZ_1K, CONFIG_SYS_NAND_ADDR, 1, AC_RWX | SA_IG )
 
        /* TLB-entry for Internal Registers & OCM */
-       tlbentry( 0xe0000000, SZ_16M, 0xe0000000, 0,  AC_R|AC_W|AC_X|SA_I )
+       tlbentry( 0xe0000000, SZ_16M, 0xe0000000, 0,  AC_RWX | SA_I )
 
        /*TLB-entry PCI registers*/
-       tlbentry( 0xEEC00000, SZ_1K, 0xEEC00000, 1,  AC_R|AC_W|AC_X|SA_G|SA_I )
+       tlbentry( 0xEEC00000, SZ_1K, 0xEEC00000, 1,  AC_RWX | SA_IG )
 
        /* TLB-entry for peripherals */
-       tlbentry( 0xEF000000, SZ_16M, 0xEF000000, 1, AC_R|AC_W|AC_X|SA_G|SA_I)
+       tlbentry( 0xEF000000, SZ_16M, 0xEF000000, 1, AC_RWX | SA_IG)
 
        /* TLB-entry PCI IO Space - from sr@denx.de */
-       tlbentry(0xE8000000, SZ_64K, 0xE8000000, 1, AC_R|AC_W|AC_X|SA_G|SA_I)
+       tlbentry(0xE8000000, SZ_64K, 0xE8000000, 1, AC_RWX | SA_IG)
 
        tlbtab_end
 
@@ -104,7 +104,7 @@ tlbtab:
         */
 #define TLB00  TLB0(CONFIG_SYS_BOOT_BASE_ADDR, SZ_256M)
 #define TLB01  TLB1(CONFIG_SYS_BOOT_BASE_ADDR, 1)
-#define TLB02  TLB2(AC_R|AC_W|AC_X|SA_G|SA_I)
+#define TLB02  TLB2(AC_RWX | SA_IG)
 
        .globl  reconfig_tlb0
 reconfig_tlb0:
index b5c7d6d50634069cda4c19513be22e3f565126a9..cabeceb97a84befffe5a7185d0cf13e141a4a6b3 100644 (file)
@@ -40,7 +40,7 @@ extern int denali_wait_for_dlllock(void);
 extern void denali_core_search_data_eye(void);
 
 #if defined(CONFIG_NAND_SPL)
-/* Using arch/ppc/cpu/ppc4xx/speed.c to calculate the bus frequency is too big
+/* Using arch/powerpc/cpu/ppc4xx/speed.c to calculate the bus frequency is too big
  * for the 4k NAND boot image so define bus_frequency to 133MHz here
  * which is save for the refresh counter setup.
  */
index 8a71bfa44ef5d77aca463e2444b660d85c763fa8..cf4229a22e05077a79322e1d9d4522fae78b3a2f 100644 (file)
@@ -53,7 +53,7 @@ SECTIONS
     /* WARNING - the following is hand-optimized to fit within */
     /* the sector layout of our flash chips!   XXX FIXME XXX   */
 
-    arch/ppc/cpu/ppc4xx/start.o        (.text)
+    arch/powerpc/cpu/ppc4xx/start.o    (.text)
 
     /* Align to next NAND block */
     . = ALIGN(0x4000);
index c6a321e400ece9df4ad36f2b72a3316842d80123..63e87c98863b6c1042b0c980c03015f9a18ca251 100644 (file)
@@ -50,7 +50,7 @@ SECTIONS
   .plt : { *(.plt) }
   .text      :
   {
-    arch/ppc/cpu/ppc4xx/start.o        (.text)
+    arch/powerpc/cpu/ppc4xx/start.o    (.text)
 
     *(.text)
     *(.got1)
index 748ec0ab5224bd58b95e7d152cde2a7480fdc669..ac4e95df0576e8450af2179226b247253cb24d6d 100644 (file)
  */
 
 #include <ppc_asm.tmpl>
+#include <asm/mmu.h>
 #include <config.h>
 
-/* General */
-#define TLB_VALID   0x00000200
-#define _256M       0x10000000
-
-/* Supported page sizes */
-
-#define SZ_1K      0x00000000
-#define SZ_4K      0x00000010
-#define SZ_16K     0x00000020
-#define SZ_64K     0x00000030
-#define SZ_256K            0x00000040
-#define SZ_1M      0x00000050
-#define SZ_8M       0x00000060
-#define SZ_16M     0x00000070
-#define SZ_256M            0x00000090
-
-/* Storage attributes */
-#define SA_W       0x00000800      /* Write-through */
-#define SA_I       0x00000400      /* Caching inhibited */
-#define SA_M       0x00000200      /* Memory coherence */
-#define SA_G       0x00000100      /* Guarded */
-#define SA_E       0x00000080      /* Endian */
-
-/* Access control */
-#define AC_X       0x00000024      /* Execute */
-#define AC_W       0x00000012      /* Write */
-#define AC_R       0x00000009      /* Read */
-
-/* Some handy macros */
-
-#define EPN(e)         ((e) & 0xfffffc00)
-#define TLB0(epn,sz)   ( (EPN((epn)) | (sz) | TLB_VALID ) )
-#define TLB1(rpn,erpn) ( ((rpn)&0xfffffc00) | (erpn) )
-#define TLB2(a)                ( (a)&0x00000fbf )
-
-#define tlbtab_start\
-       mflr    r1  ;\
-       bl 0f       ;
-
-#define tlbtab_end\
-       .long 0, 0, 0   ;   \
-0:     mflr    r0      ;   \
-       mtlr    r1      ;   \
-       blr             ;
-
-#define tlbentry(epn,sz,rpn,erpn,attr)\
-       .long TLB0(epn,sz),TLB1(rpn,erpn),TLB2(attr)
-
 /**************************************************************************
  * TLB TABLE
  *
 
 tlbtab:
        tlbtab_start
-       tlbentry( 0xf0000000, SZ_256M, 0xf0000000, 1, AC_R|AC_W|AC_X|SA_G|SA_I)
-       tlbentry( CONFIG_SYS_PERIPHERAL_BASE, SZ_256M, 0x40000000, 1, AC_R|AC_W|SA_G|SA_I)
-       tlbentry( CONFIG_SYS_ISRAM_BASE, SZ_256K, 0x80000000, 0, AC_R|AC_W|AC_X )
-       tlbentry( CONFIG_SYS_SDRAM_BASE, SZ_256M, 0x00000000, 0, AC_R|AC_W|AC_X|SA_G|SA_I )
-       tlbentry( CONFIG_SYS_PCI_BASE, SZ_256M, 0x00000000, 2, AC_R|AC_W|SA_G|SA_I )
-       tlbentry( CONFIG_SYS_PCI_MEMBASE, SZ_256M, 0x00000000, 3, AC_R|AC_W|SA_G|SA_I )
+       tlbentry( 0xf0000000, SZ_256M, 0xf0000000, 1, AC_RWX | SA_IG)
+       tlbentry( CONFIG_SYS_PERIPHERAL_BASE, SZ_256M, 0x40000000, 1, AC_RW | SA_IG)
+       tlbentry( CONFIG_SYS_ISRAM_BASE, SZ_256K, 0x80000000, 0, AC_RWX )
+       tlbentry( CONFIG_SYS_SDRAM_BASE, SZ_256M, 0x00000000, 0, AC_RWX | SA_IG )
+       tlbentry( CONFIG_SYS_PCI_BASE, SZ_256M, 0x00000000, 2, AC_RW | SA_IG )
+       tlbentry( CONFIG_SYS_PCI_MEMBASE, SZ_256M, 0x00000000, 3, AC_RW | SA_IG )
        tlbtab_end
index f9382365ca6f9afb68531a1d4210e540bf58bf08..ed3741c54a98d54dacb22bbd2bbe32c4e63098ce 100644 (file)
 */
 
 #include <ppc_asm.tmpl>
+#include <asm/mmu.h>
 #include <config.h>
 
-/* General */
-#define TLB_VALID   0x00000200
-
-/* Supported page sizes */
-
-#define SZ_1K      0x00000000
-#define SZ_4K      0x00000010
-#define SZ_16K     0x00000020
-#define SZ_64K     0x00000030
-#define SZ_256K            0x00000040
-#define SZ_1M      0x00000050
-#define SZ_8M       0x00000060
-#define SZ_16M     0x00000070
-#define SZ_256M            0x00000090
-
-/* Storage attributes */
-#define SA_W       0x00000800      /* Write-through */
-#define SA_I       0x00000400      /* Caching inhibited */
-#define SA_M       0x00000200      /* Memory coherence */
-#define SA_G       0x00000100      /* Guarded */
-#define SA_E       0x00000080      /* Endian */
-
-/* Access control */
-#define AC_X       0x00000024      /* Execute */
-#define AC_W       0x00000012      /* Write */
-#define AC_R       0x00000009      /* Read */
-
-/* Some handy macros */
-
-#define EPN(e)         ((e) & 0xfffffc00)
-#define TLB0(epn,sz)   ( (EPN((epn)) | (sz) | TLB_VALID ) )
-#define TLB1(rpn,erpn) ( ((rpn)&0xfffffc00) | (erpn) )
-#define TLB2(a)                ( (a)&0x00000fbf )
-
-#define tlbtab_start\
-       mflr    r1  ;\
-       bl 0f       ;
-
-#define tlbtab_end\
-       .long 0, 0, 0   ;   \
-0:     mflr    r0      ;   \
-       mtlr    r1      ;   \
-       blr             ;
-
-#define tlbentry(epn,sz,rpn,erpn,attr)\
-       .long TLB0(epn,sz),TLB1(rpn,erpn),TLB2(attr)
-
-
 /**************************************************************************
  * TLB TABLE
  *
@@ -91,22 +44,22 @@ tlbtab:
      * BOOT_CS (FLASH) must be first. Before relocation SA_I can be off to use the
      * speed up boot process. It is patched after relocation to enable SA_I
      */
-    tlbentry( CONFIG_SYS_BOOT_BASE_ADDR, SZ_256M, CONFIG_SYS_BOOT_BASE_ADDR, 0, AC_R|AC_W|AC_X|SA_G/*|SA_I*/)
+    tlbentry( CONFIG_SYS_BOOT_BASE_ADDR, SZ_256M, CONFIG_SYS_BOOT_BASE_ADDR, 0, AC_RWX | SA_G/*|SA_I*/)
 
     /* TLB-entry for init-ram in dcache (SA_I must be turned off!) */
-    tlbentry( CONFIG_SYS_INIT_RAM_ADDR, SZ_64K, CONFIG_SYS_INIT_RAM_ADDR, 0, AC_R|AC_W|AC_X|SA_G )
+    tlbentry( CONFIG_SYS_INIT_RAM_ADDR, SZ_64K, CONFIG_SYS_INIT_RAM_ADDR, 0, AC_RWX | SA_G )
 
-    tlbentry( CONFIG_SYS_SDRAM_BASE, SZ_256M, CONFIG_SYS_SDRAM_BASE, 0, AC_R|AC_W|AC_X|SA_G|SA_I )
-    tlbentry( CONFIG_SYS_PCI_BASE, SZ_256M, CONFIG_SYS_PCI_BASE, 0, AC_R|AC_W|SA_G|SA_I )
-    tlbentry( CONFIG_SYS_NVRAM_BASE_ADDR, SZ_256M, CONFIG_SYS_NVRAM_BASE_ADDR, 0, AC_R|AC_W|AC_X|SA_W|SA_I )
+    tlbentry( CONFIG_SYS_SDRAM_BASE, SZ_256M, CONFIG_SYS_SDRAM_BASE, 0, AC_RWX | SA_IG )
+    tlbentry( CONFIG_SYS_PCI_BASE, SZ_256M, CONFIG_SYS_PCI_BASE, 0, AC_RW | SA_IG )
+    tlbentry( CONFIG_SYS_NVRAM_BASE_ADDR, SZ_256M, CONFIG_SYS_NVRAM_BASE_ADDR, 0, AC_RWX | SA_W|SA_I )
 
     /* PCI */
-    tlbentry( CONFIG_SYS_PCI_MEMBASE, SZ_256M, CONFIG_SYS_PCI_MEMBASE, 0, AC_R|AC_W|SA_G|SA_I )
-    tlbentry( CONFIG_SYS_PCI_MEMBASE1, SZ_256M, CONFIG_SYS_PCI_MEMBASE1, 0, AC_R|AC_W|SA_G|SA_I )
-    tlbentry( CONFIG_SYS_PCI_MEMBASE2, SZ_256M, CONFIG_SYS_PCI_MEMBASE2, 0, AC_R|AC_W|SA_G|SA_I )
-    tlbentry( CONFIG_SYS_PCI_MEMBASE3, SZ_256M, CONFIG_SYS_PCI_MEMBASE3, 0, AC_R|AC_W|SA_G|SA_I )
+    tlbentry( CONFIG_SYS_PCI_MEMBASE, SZ_256M, CONFIG_SYS_PCI_MEMBASE, 0, AC_RW | SA_IG )
+    tlbentry( CONFIG_SYS_PCI_MEMBASE1, SZ_256M, CONFIG_SYS_PCI_MEMBASE1, 0, AC_RW | SA_IG )
+    tlbentry( CONFIG_SYS_PCI_MEMBASE2, SZ_256M, CONFIG_SYS_PCI_MEMBASE2, 0, AC_RW | SA_IG )
+    tlbentry( CONFIG_SYS_PCI_MEMBASE3, SZ_256M, CONFIG_SYS_PCI_MEMBASE3, 0, AC_RW | SA_IG )
 
     /* USB 2.0 Device */
-    tlbentry( CONFIG_SYS_USB_DEVICE, SZ_1K, 0x50000000, 0, AC_R|AC_W|SA_G|SA_I )
+    tlbentry( CONFIG_SYS_USB_DEVICE, SZ_1K, 0x50000000, 0, AC_RW | SA_IG )
 
     tlbtab_end
index f51035ff68236ed442d62cbe3e58e04bd9e8ff7c..b2ac3ca4a3fd93162bd73f6a53447f716ed78cfa 100644 (file)
@@ -51,7 +51,7 @@ tlbtabA:
         * BOOT_CS (FLASH) must be first. Before relocation SA_I can be off to use the
         * speed up boot process. It is patched after relocation to enable SA_I
         */
-       tlbentry(0xff000000, SZ_16M, 0xff000000, 4, AC_R|AC_W|AC_X|SA_G)
+       tlbentry(0xff000000, SZ_16M, 0xff000000, 4, AC_RWX | SA_G)
 
        /*
         * TLB entries for SDRAM are not needed on this platform.
@@ -59,23 +59,23 @@ tlbtabA:
         * routine.
         */
 
-       tlbentry(CONFIG_SYS_ISRAM_BASE, SZ_256K, 0x00000000, 4, AC_R|AC_W|AC_X|SA_I)
-       tlbentry(CONFIG_SYS_FPGA_BASE, SZ_1K, 0xE2000000, 4,AC_R|AC_W|SA_I)
+       tlbentry(CONFIG_SYS_ISRAM_BASE, SZ_256K, 0x00000000, 4, AC_RWX | SA_I)
+       tlbentry(CONFIG_SYS_FPGA_BASE, SZ_1K, 0xE2000000, 4,AC_RW | SA_I)
 
-       tlbentry(CONFIG_SYS_OPER_FLASH, SZ_16M, 0xE7000000, 4,AC_R|AC_W|AC_X|SA_G|SA_I)
-       tlbentry(CONFIG_SYS_PERIPHERAL_BASE, SZ_4K, 0xF0000000, 4, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_OPER_FLASH, SZ_16M, 0xE7000000, 4,AC_RWX | SA_IG)
+       tlbentry(CONFIG_SYS_PERIPHERAL_BASE, SZ_4K, 0xF0000000, 4, AC_RW | SA_IG)
 
-       tlbentry(CONFIG_SYS_PCI_BASE, SZ_256M, 0x00000000, 0xC, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CONFIG_SYS_PCI_MEMBASE, SZ_256M, 0x10000000, 0xC, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CONFIG_SYS_PCIE_MEMBASE, SZ_256M, 0xB0000000, 0xD, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CONFIG_SYS_PCIE_BASE, SZ_16K, 0x20000000, 0xC, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PCI_BASE, SZ_256M, 0x00000000, 0xC, AC_RW | SA_IG)
+       tlbentry(CONFIG_SYS_PCI_MEMBASE, SZ_256M, 0x10000000, 0xC, AC_RW | SA_IG)
+       tlbentry(CONFIG_SYS_PCIE_MEMBASE, SZ_256M, 0xB0000000, 0xD, AC_RW | SA_IG)
+       tlbentry(CONFIG_SYS_PCIE_BASE, SZ_16K, 0x20000000, 0xC, AC_RW | SA_IG)
 
-       tlbentry(CONFIG_SYS_PCIE0_CFGBASE, SZ_16M, 0x40000000, 0xC, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CONFIG_SYS_PCIE1_CFGBASE, SZ_16M, 0x80000000, 0xC, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CONFIG_SYS_PCIE2_CFGBASE, SZ_16M, 0xC0000000, 0xC, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CONFIG_SYS_PCIE0_XCFGBASE, SZ_1K, 0x50000000, 0xC, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CONFIG_SYS_PCIE1_XCFGBASE, SZ_1K, 0x90000000, 0xC, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CONFIG_SYS_PCIE2_XCFGBASE, SZ_1K, 0xD0000000, 0xC, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PCIE0_CFGBASE, SZ_16M, 0x40000000, 0xC, AC_RW | SA_IG)
+       tlbentry(CONFIG_SYS_PCIE1_CFGBASE, SZ_16M, 0x80000000, 0xC, AC_RW | SA_IG)
+       tlbentry(CONFIG_SYS_PCIE2_CFGBASE, SZ_16M, 0xC0000000, 0xC, AC_RW | SA_IG)
+       tlbentry(CONFIG_SYS_PCIE0_XCFGBASE, SZ_1K, 0x50000000, 0xC, AC_RW | SA_IG)
+       tlbentry(CONFIG_SYS_PCIE1_XCFGBASE, SZ_1K, 0x90000000, 0xC, AC_RW | SA_IG)
+       tlbentry(CONFIG_SYS_PCIE2_XCFGBASE, SZ_1K, 0xD0000000, 0xC, AC_RW | SA_IG)
        tlbtab_end
 
 /**************************************************************************
@@ -94,7 +94,7 @@ tlbtabB:
         * BOOT_CS (FLASH) must be first. Before relocation SA_I can be off to use the
         * speed up boot process. It is patched after relocation to enable SA_I
         */
-       tlbentry(0xff000000, SZ_16M, 0xff000000, 4, AC_R|AC_W|AC_X|SA_G)
+       tlbentry(0xff000000, SZ_16M, 0xff000000, 4, AC_RWX | SA_G)
 
        /*
         * TLB entries for SDRAM are not needed on this platform.
@@ -102,20 +102,20 @@ tlbtabB:
         * routine.
         */
 
-       tlbentry(CONFIG_SYS_ISRAM_BASE, SZ_256K, 0x00000000, 4, AC_R|AC_W|AC_X|SA_I)
-       tlbentry(CONFIG_SYS_FPGA_BASE, SZ_1K, 0xE2000000, 4,AC_R|AC_W|SA_I)
+       tlbentry(CONFIG_SYS_ISRAM_BASE, SZ_256K, 0x00000000, 4, AC_RWX | SA_I)
+       tlbentry(CONFIG_SYS_FPGA_BASE, SZ_1K, 0xE2000000, 4,AC_RW | SA_I)
 
-       tlbentry(CONFIG_SYS_OPER_FLASH, SZ_16M, 0xE7000000, 4,AC_R|AC_W|AC_X|SA_G|SA_I)
-       tlbentry(CONFIG_SYS_PERIPHERAL_BASE, SZ_4K, 0xF0000000, 4, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_OPER_FLASH, SZ_16M, 0xE7000000, 4,AC_RWX | SA_IG)
+       tlbentry(CONFIG_SYS_PERIPHERAL_BASE, SZ_4K, 0xF0000000, 4, AC_RW | SA_IG)
 
-       tlbentry(CONFIG_SYS_PCI_BASE, SZ_256M, 0x00000000, 0xC, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CONFIG_SYS_PCI_MEMBASE, SZ_256M, 0x10000000, 0xC, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CONFIG_SYS_PCIE_MEMBASE, SZ_256M, 0xB0000000, 0xD, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PCI_BASE, SZ_256M, 0x00000000, 0xC, AC_RW | SA_IG)
+       tlbentry(CONFIG_SYS_PCI_MEMBASE, SZ_256M, 0x10000000, 0xC, AC_RW | SA_IG)
+       tlbentry(CONFIG_SYS_PCIE_MEMBASE, SZ_256M, 0xB0000000, 0xD, AC_RW | SA_IG)
 
-       tlbentry(CONFIG_SYS_PCIE0_CFGBASE, SZ_16M, 0x00000000, 0xD, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CONFIG_SYS_PCIE1_CFGBASE, SZ_16M, 0x20000000, 0xD, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CONFIG_SYS_PCIE2_CFGBASE, SZ_16M, 0x40000000, 0xD, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CONFIG_SYS_PCIE0_XCFGBASE, SZ_1K, 0x10000000, 0xD, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CONFIG_SYS_PCIE1_XCFGBASE, SZ_1K, 0x30000000, 0xD, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CONFIG_SYS_PCIE2_XCFGBASE, SZ_1K, 0x50000000, 0xD, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PCIE0_CFGBASE, SZ_16M, 0x00000000, 0xD, AC_RW | SA_IG)
+       tlbentry(CONFIG_SYS_PCIE1_CFGBASE, SZ_16M, 0x20000000, 0xD, AC_RW | SA_IG)
+       tlbentry(CONFIG_SYS_PCIE2_CFGBASE, SZ_16M, 0x40000000, 0xD, AC_RW | SA_IG)
+       tlbentry(CONFIG_SYS_PCIE0_XCFGBASE, SZ_1K, 0x10000000, 0xD, AC_RW | SA_IG)
+       tlbentry(CONFIG_SYS_PCIE1_XCFGBASE, SZ_1K, 0x30000000, 0xD, AC_RW | SA_IG)
+       tlbentry(CONFIG_SYS_PCIE2_XCFGBASE, SZ_1K, 0x50000000, 0xD, AC_RW | SA_IG)
        tlbtab_end
index 241f484491353ec67931fb1a3611e3f49823e3e7..0d23929903ec9051852fe643188e33a83341a226 100644 (file)
@@ -555,7 +555,7 @@ int checkboard (void)
 }
 
 /*
- * Override the default functions in arch/ppc/cpu/ppc4xx/44x_spd_ddr2.c with
+ * Override the default functions in arch/powerpc/cpu/ppc4xx/44x_spd_ddr2.c with
  * board specific values.
  */
 static int ppc440spe_rev_a(void)
index faeefe8bdde2b791cc07a3208c9251ccd7360ca1..bebcded619431371af49b5f331651717ccaff6e1 100644 (file)
@@ -55,17 +55,17 @@ SECTIONS
     /* WARNING - the following is hand-optimized to fit within */
     /* the sector layout of our flash chips!   XXX FIXME XXX   */
 
-    arch/ppc/cpu/ppc4xx/start.o        (.text)
+    arch/powerpc/cpu/ppc4xx/start.o    (.text)
     board/amirix/ap1000/init.o (.text)
-    arch/ppc/cpu/ppc4xx/kgdb.o (.text)
-    arch/ppc/cpu/ppc4xx/traps.o        (.text)
-    arch/ppc/cpu/ppc4xx/interrupts.o   (.text)
-    arch/ppc/cpu/ppc4xx/4xx_uart.o     (.text)
-    arch/ppc/cpu/ppc4xx/cpu_init.o     (.text)
-    arch/ppc/cpu/ppc4xx/speed.o        (.text)
+    arch/powerpc/cpu/ppc4xx/kgdb.o     (.text)
+    arch/powerpc/cpu/ppc4xx/traps.o    (.text)
+    arch/powerpc/cpu/ppc4xx/interrupts.o       (.text)
+    arch/powerpc/cpu/ppc4xx/4xx_uart.o (.text)
+    arch/powerpc/cpu/ppc4xx/cpu_init.o (.text)
+    arch/powerpc/cpu/ppc4xx/speed.o    (.text)
     common/dlmalloc.o  (.text)
     lib/crc32.o                (.text)
-    arch/ppc/lib/extable.o     (.text)
+    arch/powerpc/lib/extable.o (.text)
     lib/zlib.o         (.text)
 
 /*    . = env_offset;*/
index 7250591030aa08d9786f34b7c15f977216631d11..be455bbefe9e14ef94520ded0e39c90b21b28e51 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * COM1 NS16550 support
- * originally from linux source (arch/ppc/boot/ns16550.c)
+ * originally from linux source (arch/powerpc/boot/ns16550.c)
  * modified to use CONFIG_SYS_ISA_MEM and new defines
  */
 
index 210aea4b2fd5791f44b562b246edc086ec4e1d7a..8aa251d32a3c69cd4e388e99f6b6d3dc4adba31c 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * NS16550 Serial Port
- * originally from linux source (arch/ppc/boot/ns16550.h)
+ * originally from linux source (arch/powerpc/boot/ns16550.h)
  * modified slightly to
  * have addresses as offsets from CONFIG_SYS_ISA_BASE
  * added a few more definitions
index 5bd5a75c619a567a2ce9a1d71f61900db94ee134..36dd55dee45b561869345e0f2c6d373d13974114 100644 (file)
@@ -55,9 +55,9 @@ SECTIONS
     /* WARNING - the following is hand-optimized to fit within */
     /* the sector layout of our flash chips!   XXX FIXME XXX   */
 
-    arch/ppc/cpu/mpc8xx/start.o        (.text)
+    arch/powerpc/cpu/mpc8xx/start.o    (.text)
     common/dlmalloc.o  (.text)
-    arch/ppc/lib/ppcstring.o   (.text)
+    arch/powerpc/lib/ppcstring.o       (.text)
     lib/vsprintf.o     (.text)
     lib/crc32.o                (.text)
     lib/zlib.o         (.text)
index e62f6be5aa58cc5829707ffd9625868e95f33540..99098bffbedfc6f93b8b1511a71665790953765f 100644 (file)
@@ -55,7 +55,7 @@ SECTIONS
     /* WARNING - the following is hand-optimized to fit within */
     /* the sector layout of our flash chips!   XXX FIXME XXX   */
 
-    arch/ppc/cpu/mpc8xx/start.o        (.text)
+    arch/powerpc/cpu/mpc8xx/start.o    (.text)
     common/dlmalloc.o  (.text)
     lib/vsprintf.o     (.text)
     lib/crc32.o                (.text)
index 30a37d9fb24fd6aa67fcd2503e0a5735d0eb1fe3..2d8492e6ffc78ab3530053bb5b7b7d4c406f7976 100644 (file)
@@ -50,7 +50,7 @@ SECTIONS
   .plt : { *(.plt) }
   .text      :
   {
-    arch/ppc/cpu/mpc5xxx/start.o       (.text)
+    arch/powerpc/cpu/mpc5xxx/start.o   (.text)
     *(.text)
     *(.got1)
     . = ALIGN(16);
index 57cc3058686f84ade0bd96e32c1d6f5c0804c0b2..c21890542f63c57afb9d33d5ac6146e57dc897a7 100644 (file)
@@ -55,7 +55,7 @@ SECTIONS
     /* WARNING - the following is hand-optimized to fit within */
     /* the sector layout of our flash chips!   XXX FIXME XXX   */
 
-    arch/ppc/cpu/mpc8xx/start.o        (.text)
+    arch/powerpc/cpu/mpc8xx/start.o    (.text)
     common/dlmalloc.o  (.text)
     lib/vsprintf.o     (.text)
     lib/crc32.o                (.text)
index 09c0191e5f693a085626b5cf55c916b44e91625f..0e9cdcf81d72e130d7db729d2d34a3e8aa450427 100644 (file)
@@ -59,7 +59,7 @@ SECTIONS
     common/dlmalloc.o  (.text)
     lib/vsprintf.o     (.text)
     lib/crc32.o                (.text)
-    arch/ppc/lib/extable.o     (.text)
+    arch/powerpc/lib/extable.o (.text)
 
     common/env_embedded.o(.text)
 
index 5a00afe402c9377b0f32bd0298161313680ce9ac..1ed3e1b6a4e5c6c36b3eeff4c27e28fc0fc58347 100644 (file)
@@ -129,7 +129,7 @@ phys_size_t initdram (int board_type)
        /*
         * ToDo: Move the asm init routine sdram_init() to this C file,
         * or even better use some common ppc4xx code available
-        * in arch/ppc/cpu/ppc4xx
+        * in arch/powerpc/cpu/ppc4xx
         */
        sdram_init();
 
index 996a67b4edc4ba559eb6fb48d73cb15cabfcbe01..c138b0d9e81bb47b33181b533888eadf0028dc36 100644 (file)
@@ -97,7 +97,7 @@ phys_size_t initdram (int board_type)
        /*
         * ToDo: Move the asm init routine sdram_init() to this C file,
         * or even better use some common ppc4xx code available
-        * in arch/ppc/cpu/ppc4xx
+        * in arch/powerpc/cpu/ppc4xx
         */
        sdram_init();
 
index 6dff003dc1fb3f54de5ea94c268c07d669f5af3c..29dcc0910051a98f2e2d119f291317fddf1ea8d7 100644 (file)
@@ -56,7 +56,7 @@ SECTIONS
   .plt : { *(.plt) }
   .text      :
   {
-    arch/ppc/cpu/74xx_7xx/start.o      (.text)
+    arch/powerpc/cpu/74xx_7xx/start.o  (.text)
 
 /* store the environment in a seperate sector in the boot flash */
 /*    . = env_offset; */
index 6dff003dc1fb3f54de5ea94c268c07d669f5af3c..29dcc0910051a98f2e2d119f291317fddf1ea8d7 100644 (file)
@@ -56,7 +56,7 @@ SECTIONS
   .plt : { *(.plt) }
   .text      :
   {
-    arch/ppc/cpu/74xx_7xx/start.o      (.text)
+    arch/powerpc/cpu/74xx_7xx/start.o  (.text)
 
 /* store the environment in a seperate sector in the boot flash */
 /*    . = env_offset; */
index dc370eacf22ecb6bafb2879887aa8b84a70cbb58..9fe9758c476ec3617250e0aee7a2001d5e504659 100644 (file)
@@ -52,7 +52,7 @@ SECTIONS
   .plt : { *(.plt) }
   .text      :
   {
-    arch/ppc/cpu/mpc8xx/start.o        (.text)
+    arch/powerpc/cpu/mpc8xx/start.o    (.text)
     common/env_embedded.o(.text)
 
     *(.text)
index e62f6be5aa58cc5829707ffd9625868e95f33540..99098bffbedfc6f93b8b1511a71665790953765f 100644 (file)
@@ -55,7 +55,7 @@ SECTIONS
     /* WARNING - the following is hand-optimized to fit within */
     /* the sector layout of our flash chips!   XXX FIXME XXX   */
 
-    arch/ppc/cpu/mpc8xx/start.o        (.text)
+    arch/powerpc/cpu/mpc8xx/start.o    (.text)
     common/dlmalloc.o  (.text)
     lib/vsprintf.o     (.text)
     lib/crc32.o                (.text)
index 3fb6d1269214743af69b734109196cdc1ac35f70..4f986f72c1dfce7f3c9302104a07b067a7fafd3d 100644 (file)
@@ -52,7 +52,7 @@ SECTIONS
   .plt : { *(.plt) }
   .text      :
   {
-    arch/ppc/cpu/mpc8xx/start.o        (.text)
+    arch/powerpc/cpu/mpc8xx/start.o    (.text)
 
     *(.text)
     *(.got1)
index 3229a23a3eb7f0c3e127319c886c12a40e463dd5..0f536f314292b912ec9530999506c58341722756 100644 (file)
@@ -55,11 +55,11 @@ SECTIONS
     /* WARNING - the following is hand-optimized to fit within */
     /* the sector layout of our flash chips!   XXX FIXME XXX   */
 
-    arch/ppc/cpu/mpc8xx/start.o        (.text)
+    arch/powerpc/cpu/mpc8xx/start.o    (.text)
     common/dlmalloc.o  (.text)
     lib/vsprintf.o     (.text)
     lib/crc32.o                (.text)
-    arch/ppc/lib/extable.o     (.text)
+    arch/powerpc/lib/extable.o (.text)
 
     . = env_offset;
     common/env_embedded.o(.text)
index f9579a6430265a4bb45b89854e46d6fa825a28a2..172caa5569b133e4b96d2bc217e26af1de709df2 100644 (file)
@@ -52,7 +52,7 @@ SECTIONS
   .plt           : { *(.plt)           }
   .text          :
   {
-    arch/ppc/cpu/mpc8xx/start.o        (.text)
+    arch/powerpc/cpu/mpc8xx/start.o    (.text)
     *(.text)
     *(.got1)
     . = ALIGN(16);
index 96c0b8385d43884bd8671497808b2085551c0ceb..d4312049390b1fa12f9250a5ab47fcb3e66bfb82 100644 (file)
@@ -132,7 +132,7 @@ phys_size_t initdram (int board_type)
        /*
         * ToDo: Move the asm init routine sdram_init() to this C file,
         * or even better use some common ppc4xx code available
-        * in arch/ppc/cpu/ppc4xx
+        * in arch/powerpc/cpu/ppc4xx
         */
        sdram_init();
 
index 1c215277cf87063a3802ddb994d7a9e24098d63c..dedf73455d8f33ecfaa2b55e19839c4bacbf0452 100644 (file)
@@ -1062,7 +1062,7 @@ bool db64360_eth_start (struct eth_device *dev)
 *************************************************************************/
 /*
  * based on Linux code
- * arch/ppc/galileo/EVB64360/mv64360_eth.c - Driver for MV64360X ethernet ports
+ * arch/powerpc/galileo/EVB64360/mv64360_eth.c - Driver for MV64360X ethernet ports
  * Copyright (C) 2002 rabeeh@galileo.co.il
 
  * This program is free software; you can redistribute it and/or
index 6dff003dc1fb3f54de5ea94c268c07d669f5af3c..29dcc0910051a98f2e2d119f291317fddf1ea8d7 100644 (file)
@@ -56,7 +56,7 @@ SECTIONS
   .plt : { *(.plt) }
   .text      :
   {
-    arch/ppc/cpu/74xx_7xx/start.o      (.text)
+    arch/powerpc/cpu/74xx_7xx/start.o  (.text)
 
 /* store the environment in a seperate sector in the boot flash */
 /*    . = env_offset; */
index 3d33d0f0222620718bafe3f10de6dd1f42b20f62..0e1d625a1b7911236653925a1ab44588cbf03e1c 100644 (file)
@@ -57,7 +57,7 @@ SECTIONS
   .plt : { *(.plt) }
   .text      :
   {
-    arch/ppc/cpu/ppc4xx/start.o                (.text)
+    arch/powerpc/cpu/ppc4xx/start.o            (.text)
 
     . = env_offset;
     common/env_embedded.o(.text)
index afcf9c4a535bb08fd77a4b544a5702a84f24533e..351095a48a9299872339d6be8c9e8ca231ba8aa4 100644 (file)
@@ -44,38 +44,38 @@ tlbtab:
         * BOOT_CS (FLASH) must be first. Before relocation SA_I can be off to use the
         * speed up boot process. It is patched after relocation to enable SA_I
         */
-       tlbentry( CONFIG_SYS_BOOT_BASE_ADDR, SZ_256M, CONFIG_SYS_BOOT_BASE_ADDR, 1, AC_R|AC_W|AC_X|SA_G )
+       tlbentry( CONFIG_SYS_BOOT_BASE_ADDR, SZ_256M, CONFIG_SYS_BOOT_BASE_ADDR, 1, AC_RWX | SA_G )
 
 #ifdef CONFIG_SYS_INIT_RAM_DCACHE
        /* TLB-entry for init-ram in dcache (SA_I must be turned off!) */
-       tlbentry( CONFIG_SYS_INIT_RAM_ADDR, SZ_64K, CONFIG_SYS_INIT_RAM_ADDR, 0, AC_R|AC_W|AC_X|SA_G )
+       tlbentry( CONFIG_SYS_INIT_RAM_ADDR, SZ_64K, CONFIG_SYS_INIT_RAM_ADDR, 0, AC_RWX | SA_G )
 #endif
 
        /* TLB-entry for PCI Memory */
-       tlbentry( CONFIG_SYS_PCI_MEMBASE, SZ_256M,  CONFIG_SYS_PCI_MEMBASE, 1, AC_R|AC_W|SA_G|SA_I )
-       tlbentry( CONFIG_SYS_PCI_MEMBASE1, SZ_256M, CONFIG_SYS_PCI_MEMBASE1, 1, AC_R|AC_W|SA_G|SA_I )
-       tlbentry( CONFIG_SYS_PCI_MEMBASE2, SZ_256M, CONFIG_SYS_PCI_MEMBASE2, 1, AC_R|AC_W|SA_G|SA_I )
-       tlbentry( CONFIG_SYS_PCI_MEMBASE3, SZ_256M, CONFIG_SYS_PCI_MEMBASE3, 1, AC_R|AC_W|SA_G|SA_I )
+       tlbentry( CONFIG_SYS_PCI_MEMBASE, SZ_256M,  CONFIG_SYS_PCI_MEMBASE, 1, AC_RW | SA_IG )
+       tlbentry( CONFIG_SYS_PCI_MEMBASE1, SZ_256M, CONFIG_SYS_PCI_MEMBASE1, 1, AC_RW | SA_IG )
+       tlbentry( CONFIG_SYS_PCI_MEMBASE2, SZ_256M, CONFIG_SYS_PCI_MEMBASE2, 1, AC_RW | SA_IG )
+       tlbentry( CONFIG_SYS_PCI_MEMBASE3, SZ_256M, CONFIG_SYS_PCI_MEMBASE3, 1, AC_RW | SA_IG )
 
        /* TLB-entry for PCI IO */
-       tlbentry( CONFIG_SYS_PCI_IOBASE, SZ_64K, CONFIG_SYS_PCI_IOBASE, 1, AC_R|AC_W|SA_G|SA_I )
+       tlbentry( CONFIG_SYS_PCI_IOBASE, SZ_64K, CONFIG_SYS_PCI_IOBASE, 1, AC_RW | SA_IG )
 
        /* TLB-entries for EBC:  CPLD, DUMEM, DUIO */
-       tlbentry( CONFIG_SYS_CPLD_BASE, SZ_1K, CONFIG_SYS_CPLD_BASE, 1, AC_R|AC_W|AC_X|SA_G|SA_I )
-       tlbentry( CONFIG_SYS_DUMEM_BASE, SZ_1M, CONFIG_SYS_DUMEM_BASE, 1, AC_R|AC_W|AC_X|SA_G|SA_I )
-       tlbentry( CONFIG_SYS_DUIO_BASE, SZ_64K, CONFIG_SYS_DUIO_BASE, 1, AC_R|AC_W|AC_X|SA_G|SA_I )
+       tlbentry( CONFIG_SYS_CPLD_BASE, SZ_1K, CONFIG_SYS_CPLD_BASE, 1, AC_RWX | SA_IG )
+       tlbentry( CONFIG_SYS_DUMEM_BASE, SZ_1M, CONFIG_SYS_DUMEM_BASE, 1, AC_RWX | SA_IG )
+       tlbentry( CONFIG_SYS_DUIO_BASE, SZ_64K, CONFIG_SYS_DUIO_BASE, 1, AC_RWX | SA_IG )
 
        /* TLB-entry for NAND */
-       tlbentry( CONFIG_SYS_NAND0_ADDR, SZ_1K, CONFIG_SYS_NAND0_ADDR, 1, AC_R|AC_W|AC_X|SA_G|SA_I )
-       tlbentry( CONFIG_SYS_NAND1_ADDR, SZ_1K, CONFIG_SYS_NAND1_ADDR, 1, AC_R|AC_W|AC_X|SA_G|SA_I )
+       tlbentry( CONFIG_SYS_NAND0_ADDR, SZ_1K, CONFIG_SYS_NAND0_ADDR, 1, AC_RWX | SA_IG )
+       tlbentry( CONFIG_SYS_NAND1_ADDR, SZ_1K, CONFIG_SYS_NAND1_ADDR, 1, AC_RWX | SA_IG )
 
        /* TLB-entry for Internal Registers & OCM */
-       tlbentry( 0xe0000000, SZ_16M, 0xe0000000, 0,  AC_R|AC_W|AC_X|SA_I )
+       tlbentry( 0xe0000000, SZ_16M, 0xe0000000, 0,  AC_RWX | SA_I )
 
        /* TLB-entry PCI registers */
-       tlbentry( 0xEEC00000, SZ_1K, 0xEEC00000, 1,  AC_R|AC_W|AC_X|SA_G|SA_I )
+       tlbentry( 0xEEC00000, SZ_1K, 0xEEC00000, 1,  AC_RWX | SA_IG )
 
        /* TLB-entry for peripherals */
-       tlbentry( 0xEF000000, SZ_16M, 0xEF000000, 1, AC_R|AC_W|AC_X|SA_G|SA_I)
+       tlbentry( 0xEF000000, SZ_16M, 0xEF000000, 1, AC_RWX | SA_IG)
 
        tlbtab_end
index d51cd0cf05877c7630db3dcde5793b0e391e85f4..96f7206b30775d8b5701640d9d39b30bbf5bbc2e 100644 (file)
@@ -44,23 +44,23 @@ tlbtab:
         * speed up boot process. It is patched after relocation to enable SA_I
         */
 #ifndef CONFIG_NAND_SPL
-       tlbentry( CONFIG_SYS_BOOT_BASE_ADDR, SZ_256M, CONFIG_SYS_BOOT_BASE_ADDR, 1, AC_R|AC_W|AC_X|SA_G )
+       tlbentry( CONFIG_SYS_BOOT_BASE_ADDR, SZ_256M, CONFIG_SYS_BOOT_BASE_ADDR, 1, AC_RWX | SA_G )
 #else
-       tlbentry( CONFIG_SYS_NAND_BOOT_SPL_SRC, SZ_4K, CONFIG_SYS_NAND_BOOT_SPL_SRC, 1, AC_R|AC_W|AC_X|SA_G )
+       tlbentry( CONFIG_SYS_NAND_BOOT_SPL_SRC, SZ_4K, CONFIG_SYS_NAND_BOOT_SPL_SRC, 1, AC_RWX | SA_G )
 #endif
 
        /* TLB entries for DDR2 SDRAM are generated dynamically */
 
 #ifdef CONFIG_SYS_INIT_RAM_DCACHE
        /* TLB-entry for init-ram in dcache (SA_I must be turned off!) */
-       tlbentry( CONFIG_SYS_INIT_RAM_ADDR, SZ_64K, CONFIG_SYS_INIT_RAM_ADDR, 0, AC_R|AC_W|AC_X|SA_G )
+       tlbentry( CONFIG_SYS_INIT_RAM_ADDR, SZ_64K, CONFIG_SYS_INIT_RAM_ADDR, 0, AC_RWX | SA_G )
 #endif
 
        /* TLB-entry for PCI Memory */
-       tlbentry( CONFIG_SYS_PCI_MEMBASE, SZ_256M, CONFIG_SYS_PCI_MEMBASE, 1, AC_R|AC_W|SA_G|SA_I )
-       tlbentry( CONFIG_SYS_PCI_MEMBASE1, SZ_256M, CONFIG_SYS_PCI_MEMBASE1, 1, AC_R|AC_W|SA_G|SA_I )
-       tlbentry( CONFIG_SYS_PCI_MEMBASE2, SZ_256M, CONFIG_SYS_PCI_MEMBASE2, 1, AC_R|AC_W|SA_G|SA_I )
-       tlbentry( CONFIG_SYS_PCI_MEMBASE3, SZ_256M, CONFIG_SYS_PCI_MEMBASE3, 1, AC_R|AC_W|SA_G|SA_I )
+       tlbentry( CONFIG_SYS_PCI_MEMBASE, SZ_256M, CONFIG_SYS_PCI_MEMBASE, 1, AC_RW | SA_IG )
+       tlbentry( CONFIG_SYS_PCI_MEMBASE1, SZ_256M, CONFIG_SYS_PCI_MEMBASE1, 1, AC_RW | SA_IG )
+       tlbentry( CONFIG_SYS_PCI_MEMBASE2, SZ_256M, CONFIG_SYS_PCI_MEMBASE2, 1, AC_RW | SA_IG )
+       tlbentry( CONFIG_SYS_PCI_MEMBASE3, SZ_256M, CONFIG_SYS_PCI_MEMBASE3, 1, AC_RW | SA_IG )
 
        /* TLB-entries for EBC */
        /* PMC440 maps EBC to 0xef000000 which is handled by the peripheral
@@ -68,22 +68,22 @@ tlbtab:
         * This dummy entry is only for convinience in order not to modify the
         * amount of entries. Currently OS/9 relies on this :-)
         */
-       tlbentry( 0xc0000000, SZ_256M, 0xc0000000, 1, AC_R|AC_W|AC_X|SA_G|SA_I )
+       tlbentry( 0xc0000000, SZ_256M, 0xc0000000, 1, AC_RWX | SA_IG )
 
        /* TLB-entry for NAND */
-       tlbentry( CONFIG_SYS_NAND_ADDR, SZ_1K, CONFIG_SYS_NAND_ADDR, 1, AC_R|AC_W|AC_X|SA_G|SA_I )
+       tlbentry( CONFIG_SYS_NAND_ADDR, SZ_1K, CONFIG_SYS_NAND_ADDR, 1, AC_RWX | SA_IG )
 
        /* TLB-entry for Internal Registers & OCM */
-       tlbentry( 0xe0000000, SZ_16M, 0xe0000000, 0,  AC_R|AC_W|AC_X|SA_I )
+       tlbentry( 0xe0000000, SZ_16M, 0xe0000000, 0,  AC_RWX | SA_I )
 
        /*TLB-entry PCI registers*/
-       tlbentry( 0xEEC00000, SZ_1K, 0xEEC00000, 1,  AC_R|AC_W|AC_X|SA_G|SA_I )
+       tlbentry( 0xEEC00000, SZ_1K, 0xEEC00000, 1,  AC_RWX | SA_IG )
 
        /* TLB-entry for peripherals */
-       tlbentry( 0xEF000000, SZ_16M, 0xEF000000, 1, AC_R|AC_W|AC_X|SA_G|SA_I)
+       tlbentry( 0xEF000000, SZ_16M, 0xEF000000, 1, AC_RWX | SA_IG)
 
        /* TLB-entry PCI IO space */
-       tlbentry(0xE8000000, SZ_64K, 0xE8000000, 1, AC_R|AC_W|AC_X|SA_G|SA_I)
+       tlbentry(0xE8000000, SZ_64K, 0xE8000000, 1, AC_RWX | SA_IG)
 
        /* TODO:  what about high IO space */
        tlbtab_end
@@ -95,7 +95,7 @@ tlbtab:
         */
 #define TLB00  TLB0(CONFIG_SYS_BOOT_BASE_ADDR, SZ_256M)
 #define TLB01  TLB1(CONFIG_SYS_BOOT_BASE_ADDR, 1)
-#define TLB02  TLB2(AC_R|AC_W|AC_X|SA_G|SA_I)
+#define TLB02  TLB2(AC_RWX | SA_IG)
 
        .globl  reconfig_tlb0
 reconfig_tlb0:
index 8a71bfa44ef5d77aca463e2444b660d85c763fa8..cf4229a22e05077a79322e1d9d4522fae78b3a2f 100644 (file)
@@ -53,7 +53,7 @@ SECTIONS
     /* WARNING - the following is hand-optimized to fit within */
     /* the sector layout of our flash chips!   XXX FIXME XXX   */
 
-    arch/ppc/cpu/ppc4xx/start.o        (.text)
+    arch/powerpc/cpu/ppc4xx/start.o    (.text)
 
     /* Align to next NAND block */
     . = ALIGN(0x4000);
index 4490f19a1f0b313ff43f417c64aa88450062b5c8..5b6a9c0a1f78a19ee2713862849bf3af59e7b3aa 100644 (file)
@@ -55,9 +55,9 @@ SECTIONS
     /* WARNING - the following is hand-optimized to fit within */
     /* the sector layout of our flash chips!   XXX FIXME XXX   */
 
-    arch/ppc/cpu/mpc8xx/start.o        (.text)
+    arch/powerpc/cpu/mpc8xx/start.o    (.text)
     common/dlmalloc.o  (.text)
-    arch/ppc/lib/ppcstring.o   (.text)
+    arch/powerpc/lib/ppcstring.o       (.text)
     lib/vsprintf.o     (.text)
     lib/crc32.o                (.text)
     lib/zlib.o         (.text)
index 94b13422afba601a333acc35bfeaf0a946482e29..28ac825c19643cf9fa173366ef502b4dcfb056bc 100644 (file)
@@ -55,12 +55,12 @@ SECTIONS
     /* WARNING - the following is hand-optimized to fit within */
     /* the sector layout of our flash chips!   XXX FIXME XXX   */
 
-    arch/ppc/cpu/mpc8xx/start.o        (.text)
-    arch/ppc/cpu/mpc8xx/traps.o        (.text)
-    arch/ppc/cpu/mpc8xx/interrupts.o   (.text)
-    arch/ppc/cpu/mpc8xx/serial.o       (.text)
-    arch/ppc/cpu/mpc8xx/cpu_init.o     (.text)
-    arch/ppc/cpu/mpc8xx/speed.o        (.text)
+    arch/powerpc/cpu/mpc8xx/start.o    (.text)
+    arch/powerpc/cpu/mpc8xx/traps.o    (.text)
+    arch/powerpc/cpu/mpc8xx/interrupts.o       (.text)
+    arch/powerpc/cpu/mpc8xx/serial.o   (.text)
+    arch/powerpc/cpu/mpc8xx/cpu_init.o (.text)
+    arch/powerpc/cpu/mpc8xx/speed.o    (.text)
     common/dlmalloc.o  (.text)
     lib/crc32.o                (.text)
     lib/zlib.o         (.text)
index 458d4e076cdd693943ab8454edee4be8a5b062d4..be05d8fdcc62d38b5ed18a15297c66484d968295 100644 (file)
@@ -55,15 +55,15 @@ SECTIONS
     /* WARNING - the following is hand-optimized to fit within */
     /* the sector layout of our flash chips!   XXX FIXME XXX   */
 
-    arch/ppc/cpu/mpc8xx/start.o        (.text)
-    arch/ppc/cpu/mpc8xx/traps.o        (.text)
-    arch/ppc/cpu/mpc8xx/interrupts.o   (.text)
-    arch/ppc/cpu/mpc8xx/cpu.o  (.text)
-    arch/ppc/cpu/mpc8xx/cpu_init.o     (.text)
-    arch/ppc/cpu/mpc8xx/speed.o        (.text)
-    arch/ppc/cpu/mpc8xx/serial.o       (.text)
-    arch/ppc/lib/extable.o     (.text)
-    arch/ppc/lib/ppcstring.o   (.text)
+    arch/powerpc/cpu/mpc8xx/start.o    (.text)
+    arch/powerpc/cpu/mpc8xx/traps.o    (.text)
+    arch/powerpc/cpu/mpc8xx/interrupts.o       (.text)
+    arch/powerpc/cpu/mpc8xx/cpu.o      (.text)
+    arch/powerpc/cpu/mpc8xx/cpu_init.o (.text)
+    arch/powerpc/cpu/mpc8xx/speed.o    (.text)
+    arch/powerpc/cpu/mpc8xx/serial.o   (.text)
+    arch/powerpc/lib/extable.o (.text)
+    arch/powerpc/lib/ppcstring.o       (.text)
     lib/string.o       (.text)
     lib/crc32.o                (.text)
     common/dlmalloc.o  (.text)
index 6dff003dc1fb3f54de5ea94c268c07d669f5af3c..29dcc0910051a98f2e2d119f291317fddf1ea8d7 100644 (file)
@@ -56,7 +56,7 @@ SECTIONS
   .plt : { *(.plt) }
   .text      :
   {
-    arch/ppc/cpu/74xx_7xx/start.o      (.text)
+    arch/powerpc/cpu/74xx_7xx/start.o  (.text)
 
 /* store the environment in a seperate sector in the boot flash */
 /*    . = env_offset; */
index d6476cdb7150b8d4365f7f8a9779f94e2ef412ba..100c9804da66ccdbaf268c524683d36bc7163f27 100644 (file)
@@ -50,7 +50,7 @@ SECTIONS
   .plt : { *(.plt) }
   .text      :
   {
-    arch/ppc/cpu/mpc8xx/start.o                (.text)
+    arch/powerpc/cpu/mpc8xx/start.o            (.text)
 
     /*. = DEFINED(env_offset) ? env_offset : .;*/
     common/env_embedded.o      (.ppcenv)
index 61c0d68d7814ba41e6bea6952d41d68ecdb7e178..a7a67a9276f6ee6d58007db8c0ab05e1d680dddf 100644 (file)
@@ -55,11 +55,11 @@ SECTIONS
     /* WARNING - the following is hand-optimized to fit within */
     /* the sector layout of our flash chips!   XXX FIXME XXX   */
 
-    arch/ppc/cpu/mpc8xx/start.o        (.text)
+    arch/powerpc/cpu/mpc8xx/start.o    (.text)
     common/dlmalloc.o  (.text)
     lib/vsprintf.o     (.text)
     lib/crc32.o                (.text)
-    arch/ppc/lib/extable.o     (.text)
+    arch/powerpc/lib/extable.o (.text)
 
     . = env_offset;
     common/env_embedded.o(.text)
index fbfba6ec9a17113379a1d3040de64673623a638c..0da55d97911f48bca7446676adb3029375068cab 100644 (file)
@@ -52,7 +52,7 @@ SECTIONS
   .plt : { *(.plt) }
   .text      :
   {
-    arch/ppc/cpu/mpc8xx/start.o        (.text)
+    arch/powerpc/cpu/mpc8xx/start.o    (.text)
 
     *(.text)
     *(.got1)
index e62f6be5aa58cc5829707ffd9625868e95f33540..99098bffbedfc6f93b8b1511a71665790953765f 100644 (file)
@@ -55,7 +55,7 @@ SECTIONS
     /* WARNING - the following is hand-optimized to fit within */
     /* the sector layout of our flash chips!   XXX FIXME XXX   */
 
-    arch/ppc/cpu/mpc8xx/start.o        (.text)
+    arch/powerpc/cpu/mpc8xx/start.o    (.text)
     common/dlmalloc.o  (.text)
     lib/vsprintf.o     (.text)
     lib/crc32.o                (.text)
index 2fc878be8a73e1b086824ab728cba085fd0adecd..cbee8fe09353aebd1aec34e72a081ac808372451 100644 (file)
@@ -50,6 +50,22 @@ struct fb_videomode {
 #define FB_SYNC_COMP_HIGH_ACT  8       /* composite sync high active   */
 #define FB_VMODE_NONINTERLACED  0      /* non interlaced */
 
+/* This setting is used for the ifm pdm360ng with PRIMEVIEW PM070WL3 */
+static struct fb_videomode fsl_diu_mode_800 = {
+       .refresh        = 60,
+       .xres           = 800,
+       .yres           = 480,
+       .pixclock       = 31250,
+       .left_margin    = 86,
+       .right_margin   = 42,
+       .upper_margin   = 33,
+       .lower_margin   = 10,
+       .hsync_len      = 128,
+       .vsync_len      = 2,
+       .sync           = 0,
+       .vmode          = FB_VMODE_NONINTERLACED
+};
+
 /*
  * These parameters give default parameters
  * for video output 1024x768,
@@ -210,9 +226,14 @@ int fsl_diu_init(int xres,
 
        disable_lcdc();
 
-       if (xres == 1280) {
+       switch (xres) {
+       case 800:
+               fsl_diu_mode_db = &fsl_diu_mode_800;
+               break;
+       case 1280:
                fsl_diu_mode_db = &fsl_diu_mode_1280;
-       } else {
+               break;
+       default:
                fsl_diu_mode_db = &fsl_diu_mode_1024;
        }
 
@@ -519,9 +540,9 @@ int fsl_diu_display_bmp(unsigned char *bmp,
                                b = *bitmap++;
                                for (k = 0; k < 8; k++) {
                                        if (b & 0x80)
-                                               *fb_t = palette[1];
+                                               *fb_t++ = palette[1];
                                        else
-                                               *fb_t = palette[0];
+                                               *fb_t++ = palette[0];
                                        b = b << 1;
                                }
                        }
index c6a3ade2c37a1fb8cfcf90a61b190238ecd93a71..e1c63f8e375a155f07b100b7229cadcbf75865a1 100644 (file)
@@ -323,7 +323,7 @@ int board_early_init_r (void)
         * We will over-ride the env_init called in board_init_f
         * This is really a work-around because, the HLP bank 1
         * where NVRAM resides is not visible during board_init_f
-        * (arch/ppc/lib/board.c)
+        * (arch/powerpc/lib/board.c)
         * Alternatively, we could use the I2C EEPROM at start-up to configure
         * and enable all HLP banks and not just HLP 0 as is being done for
         * Taiga Rev. 2.
index c4266cec5047420b7b4cee0bc8c1884bfa7771cc..3b3fb3a5c38f76576662896511e8a259a1f08722 100644 (file)
@@ -56,7 +56,7 @@ SECTIONS
   .plt : { *(.plt) }
   .text      :
   {
-    arch/ppc/cpu/74xx_7xx/start.o      (.text)
+    arch/powerpc/cpu/74xx_7xx/start.o  (.text)
 
 /* store the environment in a seperate sector in the boot flash */
 /*    . = env_offset; */
index 9d8b18d99348f468e5cc31c8cffa371a7806b3a9..32a87adb9e8170b6f0079efb906157a747c200f7 100644 (file)
@@ -14,7 +14,7 @@
 #include <hwconfig.h>
 #include <i2c.h>
 #include <asm/io.h>
-#include <asm/fsl_serdes.h>
+#include <asm/fsl_mpc83xx_serdes.h>
 #include <spd_sdram.h>
 #include <tsec.h>
 #include <libfdt.h>
index 6b7b8b2e7f7c27e13f521046ea80d8cff2a0f692..82f34f85c8bf267aa17cfeed92c8ca5cb693b544 100644 (file)
@@ -18,7 +18,7 @@
 #include <i2c.h>
 #include <fdt_support.h>
 #include <asm/fsl_i2c.h>
-#include <asm/fsl_serdes.h>
+#include <asm/fsl_mpc83xx_serdes.h>
 
 static struct pci_region pci_regions[] = {
        {
index c5c2e40833aca0e26147005473b70f40b5877fff..d636796f85d6c6f9fa5d370c274cbe9fae1213ff 100644 (file)
@@ -16,7 +16,7 @@
 #include <hwconfig.h>
 #include <i2c.h>
 #include <asm/io.h>
-#include <asm/fsl_serdes.h>
+#include <asm/fsl_mpc83xx_serdes.h>
 #include <fdt_support.h>
 #include <spd_sdram.h>
 #include <vsc7385.h>
index 1f9f8eb94914eff392bc8e61a47fc136fdc74193..9c98b2a3cf84f82a5e65486a7f62a78c000b8fa0 100644 (file)
@@ -50,15 +50,15 @@ SECTIONS
   .plt : { *(.plt) }
   .text :
   {
-    arch/ppc/cpu/mpc86xx/start.o       (.text)
-    arch/ppc/cpu/mpc86xx/traps.o (.text)
-    arch/ppc/cpu/mpc86xx/interrupts.o (.text)
-    arch/ppc/cpu/mpc86xx/cpu_init.o (.text)
-    arch/ppc/cpu/mpc86xx/cpu.o (.text)
-    arch/ppc/cpu/mpc86xx/speed.o (.text)
+    arch/powerpc/cpu/mpc86xx/start.o   (.text)
+    arch/powerpc/cpu/mpc86xx/traps.o (.text)
+    arch/powerpc/cpu/mpc86xx/interrupts.o (.text)
+    arch/powerpc/cpu/mpc86xx/cpu_init.o (.text)
+    arch/powerpc/cpu/mpc86xx/cpu.o (.text)
+    arch/powerpc/cpu/mpc86xx/speed.o (.text)
     common/dlmalloc.o (.text)
     lib/crc32.o (.text)
-    arch/ppc/lib/extable.o (.text)
+    arch/powerpc/lib/extable.o (.text)
     lib/zlib.o (.text)
     *(.text)
     *(.got1)
index d7c65ce21765212123320ab13f61c54d1e9aedbb..5bf0f2d46b5e787aa1bd4e5593b74ea91a861624 100644 (file)
@@ -50,15 +50,15 @@ SECTIONS
   .plt : { *(.plt) }
   .text      :
   {
-    arch/ppc/cpu/mpc86xx/start.o       (.text)
-    arch/ppc/cpu/mpc86xx/traps.o (.text)
-    arch/ppc/cpu/mpc86xx/interrupts.o (.text)
-    arch/ppc/cpu/mpc86xx/cpu_init.o (.text)
-    arch/ppc/cpu/mpc86xx/cpu.o (.text)
-    arch/ppc/cpu/mpc86xx/speed.o (.text)
+    arch/powerpc/cpu/mpc86xx/start.o   (.text)
+    arch/powerpc/cpu/mpc86xx/traps.o (.text)
+    arch/powerpc/cpu/mpc86xx/interrupts.o (.text)
+    arch/powerpc/cpu/mpc86xx/cpu_init.o (.text)
+    arch/powerpc/cpu/mpc86xx/cpu.o (.text)
+    arch/powerpc/cpu/mpc86xx/speed.o (.text)
     common/dlmalloc.o (.text)
     lib/crc32.o (.text)
-    arch/ppc/lib/extable.o (.text)
+    arch/powerpc/lib/extable.o (.text)
     lib/zlib.o (.text)
     drivers/bios_emulator/atibios.o (.text)
     *(.text)
index 3af660e775306710682a233e20512160f858368a..31cdf9ae4cbf2f7ae20e69a7085191a7383cff43 100644 (file)
@@ -198,6 +198,8 @@ int board_eth_init(bd_t *bis)
 #endif
 
 #if defined(CONFIG_OF_BOARD_SETUP)
+extern void ft_pci_board_setup(void *blob);
+
 void ft_board_setup(void *blob, bd_t *bd)
 {
        phys_addr_t base;
@@ -208,6 +210,8 @@ void ft_board_setup(void *blob, bd_t *bd)
        base = getenv_bootm_low();
        size = getenv_bootm_size();
 
+       ft_pci_board_setup(blob);
+
        fdt_fixup_memory(blob, (u64)base, (u64)size);
 }
 #endif
index 0bbd45a625bc2340aed9c4b7e1aaa44ea23ca2bd..ba750cb538b13ee7722628a9531df1cbcbcf4610 100644 (file)
@@ -51,25 +51,25 @@ tlbtab:
      * the speed up boot process. It is patched after relocation to enable SA_I
      */
     tlbentry( CONFIG_SYS_BOOT_BASE_ADDR, SZ_256M, CONFIG_SYS_BOOT_BASE_ADDR,
-       0, AC_R|AC_W|AC_X|SA_G/*|SA_I*/)
+       0, AC_RWX | SA_G/*|SA_I*/)
 
     /* TLB-entry for init-ram in dcache (SA_I must be turned off!) */
     tlbentry( CONFIG_SYS_INIT_RAM_ADDR, SZ_64K, CONFIG_SYS_INIT_RAM_ADDR,
-       0, AC_R|AC_W|AC_X|SA_G )
+       0, AC_RWX | SA_G )
 
     tlbentry( CONFIG_SYS_SDRAM_BASE, SZ_256M, CONFIG_SYS_SDRAM_BASE,
-       0, AC_R|AC_W|AC_X|SA_G|SA_I )
+       0, AC_RWX | SA_IG )
     tlbentry( CONFIG_SYS_PCI_BASE, SZ_256M, CONFIG_SYS_PCI_BASE,
-       0, AC_R|AC_W|SA_G|SA_I )
+       0, AC_RW | SA_IG )
 
     /* PCI */
     tlbentry( CONFIG_SYS_PCI_MEMBASE, SZ_256M, CONFIG_SYS_PCI_MEMBASE,
-       0, AC_R|AC_W|SA_G|SA_I )
+       0, AC_RW | SA_IG )
     tlbentry( CONFIG_SYS_PCI_MEMBASE1, SZ_256M, CONFIG_SYS_PCI_MEMBASE1,
-       0, AC_R|AC_W|SA_G|SA_I )
+       0, AC_RW | SA_IG )
     tlbentry( CONFIG_SYS_PCI_MEMBASE2, SZ_256M, CONFIG_SYS_PCI_MEMBASE2,
-       0, AC_R|AC_W|SA_G|SA_I )
+       0, AC_RW | SA_IG )
     tlbentry( CONFIG_SYS_PCI_MEMBASE3, SZ_256M, CONFIG_SYS_PCI_MEMBASE3,
-       0, AC_R|AC_W|SA_G|SA_I )
+       0, AC_RW | SA_IG )
 
     tlbtab_end
index a8e8b6c1c25a19edde0f7f3821f51e7e6a422510..5a819c2a30ccbb5c7b1ea579475842a38c9042fb 100644 (file)
@@ -51,7 +51,7 @@ tlbtab:
         * enable SA_I
         */
        tlbentry(CONFIG_SYS_BOOT_BASE_ADDR, SZ_16M, CONFIG_SYS_BOOT_BASE_ADDR,
-               4, AC_R|AC_W|AC_X|SA_G) /* TLB 0 */
+               4, AC_RWX | SA_G) /* TLB 0 */
 
        /*
         * TLB entries for SDRAM are not needed on this platform.
@@ -62,36 +62,36 @@ tlbtab:
 #ifdef CONFIG_SYS_INIT_RAM_DCACHE
        /* TLB-entry for init-ram in dcache (SA_I must be turned off!) */
        tlbentry(CONFIG_SYS_INIT_RAM_ADDR, SZ_4K, CONFIG_SYS_INIT_RAM_ADDR,
-               0, AC_R|AC_W|AC_X|SA_G)
+               0, AC_RWX | SA_G)
 #endif
 
        tlbentry(CONFIG_SYS_PCI_BASE, SZ_256M, 0x00000000, 0xC,
-               AC_R|AC_W|SA_G|SA_I)
+               AC_RW | SA_IG)
        tlbentry(CONFIG_SYS_PCI_MEMBASE, SZ_256M, 0x20000000, 0xC,
-               AC_R|AC_W|SA_G|SA_I)
+               AC_RW | SA_IG)
 
        /* TLB-entry for NVRAM */
        tlbentry(CONFIG_SYS_NVRAM_BASE, SZ_1M, CONFIG_SYS_NVRAM_BASE, 4,
-               AC_R|AC_W|SA_G|SA_I)
+               AC_RW | SA_IG)
 
        /* TLB-entry for UART */
        tlbentry(CONFIG_SYS_UART_BASE, SZ_16K, CONFIG_SYS_UART_BASE, 4,
-               AC_R|AC_W|SA_G|SA_I)
+               AC_RW | SA_IG)
 
        /* TLB-entry for IO */
        tlbentry(CONFIG_SYS_IO_BASE, SZ_16K, CONFIG_SYS_IO_BASE, 4,
-               AC_R|AC_W|SA_G|SA_I)
+               AC_RW | SA_IG)
 
        /* TLB-entry for OCM */
        tlbentry(CONFIG_SYS_OCM_BASE, SZ_1M, 0x00000000, 4,
-               AC_R|AC_W|AC_X|SA_I)
+               AC_RWX | SA_I)
 
        /* TLB-entry for Local Configuration registers => peripherals */
        tlbentry(CONFIG_SYS_LOCAL_CONF_REGS, SZ_16M, CONFIG_SYS_LOCAL_CONF_REGS,
-               4, AC_R|AC_W|AC_X|SA_G|SA_I)
+               4, AC_RWX | SA_IG)
 
        /* AHB: Internal USB Peripherals (USB, SATA) */
        tlbentry(CONFIG_SYS_AHB_BASE, SZ_1M, 0xbff00000, 4,
-               AC_R|AC_W|AC_X|SA_G|SA_I)
+               AC_RWX | SA_IG)
 
        tlbtab_end
index 146573e1df7f2843de5409a9c91f951f45651d1a..8d4692533f64073c343ff62bd5a0a94579a3dfb5 100644 (file)
@@ -197,7 +197,7 @@ const mpc8xx_iop_conf_t iop_conf_tab[NUM_PORTS][PORT_BITS] = {
 
 /*
  * Configure the MPC8XX I/O ports per the ioport configuration table
- * (taken from ./arch/ppc/cpu/mpc8260/cpu_init.c)
+ * (taken from ./arch/powerpc/cpu/mpc8260/cpu_init.c)
  */
 void config_mpc8xx_ioports (volatile immap_t * immr)
 {
index 0e129253e7f9bf395cc6b6a85fd2b939af61f920..35e92d11140d5ea167be0e34820093a64adf1c8d 100644 (file)
@@ -55,7 +55,7 @@ SECTIONS
   .plt           : { *(.plt)           }
   .text :
   {
-    arch/ppc/cpu/mpc8xx/start.o        (.text)
+    arch/powerpc/cpu/mpc8xx/start.o    (.text)
     *(.text)
     *(.got1)
   }
index d184379dbc6cbc40761d46dfa0e7c28bb6d8fe41..a4c30321168f12eaa06b16859be466a874d2e695 100644 (file)
@@ -54,7 +54,7 @@ SECTIONS
   .plt           : { *(.plt)           }
   .text :
   {
-    arch/ppc/cpu/mpc8xx/start.o                (.text)
+    arch/powerpc/cpu/mpc8xx/start.o            (.text)
     *(.text)
     *(.got1)
   }
index 22ada9ae1d70bd0c4b0de1406a84c4a4087948ca..bcfdd87af428d38678db3db96b505460e26bf578 100644 (file)
@@ -55,9 +55,9 @@ SECTIONS
     /* WARNING - the following is hand-optimized to fit within */
     /* the sector layout of our flash chips!   XXX FIXME XXX   */
 
-    arch/ppc/cpu/mpc8xx/start.o        (.text)
+    arch/powerpc/cpu/mpc8xx/start.o    (.text)
     common/dlmalloc.o  (.text)
-    arch/ppc/lib/ppcstring.o   (.text)
+    arch/powerpc/lib/ppcstring.o       (.text)
     lib/vsprintf.o     (.text)
     lib/crc32.o                (.text)
     lib/zlib.o         (.text)
index e5aa625b5ca6870922f470d80f16e40a621b4e78..60936aaf34e450af03eaf011615e4d62d7d0ae57 100644 (file)
@@ -55,9 +55,9 @@ SECTIONS
     /* WARNING - the following is hand-optimized to fit within */
     /* the sector layout of our flash chips!   XXX FIXME XXX   */
 
-    arch/ppc/cpu/mpc8xx/start.o        (.text)
+    arch/powerpc/cpu/mpc8xx/start.o    (.text)
     common/dlmalloc.o  (.text)
-    arch/ppc/lib/ppcstring.o   (.text)
+    arch/powerpc/lib/ppcstring.o       (.text)
     lib/vsprintf.o     (.text)
     lib/crc32.o                (.text)
     lib/zlib.o         (.text)
index 0e68e1414278ef82433a9a08b51e490353220529..4145a91c744773df5cb5c9e9c5aa112d9b275b9c 100644 (file)
@@ -52,7 +52,7 @@ SECTIONS
   .plt : { *(.plt) }
   .text      :
   {
-    arch/ppc/cpu/mpc8xx/start.o(.text)
+    arch/powerpc/cpu/mpc8xx/start.o(.text)
     *(.text)
     common/env_embedded.o(.text)
     *(.got1)
index 23e3e3bc5ea45d0f369b390c3e0becce64022b9d..e121d65f7bcb16bc089b6f987dae9b0c7609a60c 100644 (file)
@@ -55,12 +55,12 @@ SECTIONS
     /* WARNING - the following is hand-optimized to fit within */
     /* the sector layout of our flash chips!   XXX FIXME XXX   */
 
-    arch/ppc/cpu/mpc8xx/start.o                (.text)
+    arch/powerpc/cpu/mpc8xx/start.o            (.text)
     common/dlmalloc.o          (.text)
-    arch/ppc/cpu/mpc8xx/interrupts.o   (.text)
-    arch/ppc/lib/time.o                (.text)
-    arch/ppc/lib/ticks.o               (.text)
-    arch/ppc/lib/cache.o               (.text)
+    arch/powerpc/cpu/mpc8xx/interrupts.o       (.text)
+    arch/powerpc/lib/time.o            (.text)
+    arch/powerpc/lib/ticks.o           (.text)
+    arch/powerpc/lib/cache.o           (.text)
     lib/crc32.o                (.text)
     . = env_offset;
     common/env_embedded.o(.text)
index 47e3927ec6e76c1d8290b72ffc5af028270e332a..7038ebc1dcd3d823b1e92eed2b7d503d673b6578 100644 (file)
@@ -55,11 +55,11 @@ SECTIONS
     /* WARNING - the following is hand-optimized to fit within */
     /* the sector layout of our flash chips!   XXX FIXME XXX   */
 
-    arch/ppc/cpu/mpc8xx/start.o        (.text)
-    arch/ppc/lib/ppcstring.o   (.text)
-    arch/ppc/cpu/mpc8xx/interrupts.o (.text)
-    arch/ppc/lib/time.o                (.text)
-    arch/ppc/lib/ticks.o               (.text)
+    arch/powerpc/cpu/mpc8xx/start.o    (.text)
+    arch/powerpc/lib/ppcstring.o       (.text)
+    arch/powerpc/cpu/mpc8xx/interrupts.o (.text)
+    arch/powerpc/lib/time.o            (.text)
+    arch/powerpc/lib/ticks.o           (.text)
     . = env_offset;
     common/env_embedded.o(.text)
 
index aebf30411e444aee07273fd7510f9977fd6d643c..8ccf33e15c59c11f769284dccf0f4779a364b062 100644 (file)
@@ -39,4 +39,4 @@ TEXT_BASE = 0xFFF00000
 endif
 
 PLATFORM_CPPFLAGS += -DTEXT_BASE=$(TEXT_BASE) -I$(TOPDIR)/board
-LDSCRIPT := $(SRCTREE)/arch/ppc/cpu/mpc5xxx/u-boot-customlayout.lds
+LDSCRIPT := $(SRCTREE)/arch/powerpc/cpu/mpc5xxx/u-boot-customlayout.lds
index 7086ced3486f51a3a9502981b2c0b7b3651b7ae1..0897715a94ce9564d62e9d283196d7d08047359f 100644 (file)
@@ -55,10 +55,10 @@ SECTIONS
     /* WARNING - the following is hand-optimized to fit within */
     /* the sector layout of our flash chips!   XXX FIXME XXX   */
 
-    arch/ppc/cpu/mpc8260/start.o       (.text)
+    arch/powerpc/cpu/mpc8260/start.o   (.text)
 /*
     common/dlmalloc.o  (.text)
-    arch/ppc/lib/ppcstring.o   (.text)
+    arch/powerpc/lib/ppcstring.o       (.text)
     lib/vsprintf.o     (.text)
     lib/crc32.o                (.text)
     lib/zlib.o         (.text)
index 57cc3058686f84ade0bd96e32c1d6f5c0804c0b2..c21890542f63c57afb9d33d5ac6146e57dc897a7 100644 (file)
@@ -55,7 +55,7 @@ SECTIONS
     /* WARNING - the following is hand-optimized to fit within */
     /* the sector layout of our flash chips!   XXX FIXME XXX   */
 
-    arch/ppc/cpu/mpc8xx/start.o        (.text)
+    arch/powerpc/cpu/mpc8xx/start.o    (.text)
     common/dlmalloc.o  (.text)
     lib/vsprintf.o     (.text)
     lib/crc32.o                (.text)
index d6837005f6ce70e7d67f15dfcbdc06eb5672a18b..7c5278adae7f8ba9a2683ce9e8f8ef05dad2af41 100644 (file)
@@ -55,11 +55,11 @@ SECTIONS
     /* WARNING - the following is hand-optimized to fit within */
     /* the sector layout of our flash chips!   XXX FIXME XXX   */
 
-    arch/ppc/cpu/mpc8xx/start.o        (.text)
+    arch/powerpc/cpu/mpc8xx/start.o    (.text)
 /*
-    arch/ppc/cpu/mpc8xx/start.o        (.text)
+    arch/powerpc/cpu/mpc8xx/start.o    (.text)
     common/dlmalloc.o  (.text)
-    arch/ppc/lib/ppcstring.o   (.text)
+    arch/powerpc/lib/ppcstring.o       (.text)
     lib/vsprintf.o     (.text)
     lib/crc32.o                (.text)
     lib/zlib.o         (.text)
index b331d5afc1654f94049d9a4376a2ca0db6bb5b93..9c1e3ecd8ae1d94386d407ee7c4c40caeb1ff6e1 100644 (file)
@@ -55,11 +55,11 @@ SECTIONS
     /* WARNING - the following is hand-optimized to fit within */
     /* the sector layout of our flash chips!   XXX FIXME XXX   */
 
-    arch/ppc/cpu/mpc8xx/start.o        (.text)
+    arch/powerpc/cpu/mpc8xx/start.o    (.text)
     common/dlmalloc.o  (.text)
     lib/vsprintf.o     (.text)
     lib/crc32.o                (.text)
-    arch/ppc/lib/extable.o     (.text)
+    arch/powerpc/lib/extable.o (.text)
 
     . = env_offset;
     common/env_embedded.o(.text)
index 761efa1d1723720eadfe783093cff19546f5c530..9f6fb3b6805f0064e3dff5e96213bc41881ceee4 100644 (file)
@@ -39,4 +39,4 @@ TEXT_BASE = 0xFFE00000
 endif
 
 PLATFORM_CPPFLAGS += -DTEXT_BASE=$(TEXT_BASE) -I$(TOPDIR)/board
-LDSCRIPT := $(SRCTREE)/arch/ppc/cpu/mpc5xxx/u-boot-customlayout.lds
+LDSCRIPT := $(SRCTREE)/arch/powerpc/cpu/mpc5xxx/u-boot-customlayout.lds
index d8560423734b8e36767d186302c40155c4720a6c..4ac77c29850cc5f924f12e70fd6ce280135973b0 100644 (file)
@@ -55,12 +55,12 @@ SECTIONS
     /* WARNING - the following is hand-optimized to fit within */
     /* the sector layout of our flash chips!   XXX FIXME XXX   */
 
-    arch/ppc/cpu/mpc8xx/start.o        (.text)
+    arch/powerpc/cpu/mpc8xx/start.o    (.text)
     common/dlmalloc.o  (.text)
-    arch/ppc/lib/ppcstring.o   (.text)
-    arch/ppc/cpu/mpc8xx/interrupts.o (.text)
-    arch/ppc/lib/time.o                (.text)
-    arch/ppc/lib/ticks.o               (.text)
+    arch/powerpc/lib/ppcstring.o       (.text)
+    arch/powerpc/cpu/mpc8xx/interrupts.o (.text)
+    arch/powerpc/lib/time.o            (.text)
+    arch/powerpc/lib/ticks.o           (.text)
 /**
     . = env_offset;
     common/env_embedded.o(.text)
index dd39b9ac79dc2c1c1001faf992934b4e83e90856..0c0bbb8f5dbe8cd85815cd8d10a7be300e95a77d 100644 (file)
@@ -55,11 +55,11 @@ SECTIONS
     /* WARNING - the following is hand-optimized to fit within */
     /* the sector layout of our flash chips!   XXX FIXME XXX   */
 
-    arch/ppc/cpu/mpc8xx/start.o        (.text)
-    arch/ppc/lib/ppcstring.o   (.text)
-    arch/ppc/cpu/mpc8xx/interrupts.o (.text)
-    arch/ppc/lib/time.o                (.text)
-    arch/ppc/lib/ticks.o               (.text)
+    arch/powerpc/cpu/mpc8xx/start.o    (.text)
+    arch/powerpc/lib/ppcstring.o       (.text)
+    arch/powerpc/cpu/mpc8xx/interrupts.o (.text)
+    arch/powerpc/lib/time.o            (.text)
+    arch/powerpc/lib/ticks.o           (.text)
 /**
     . = env_offset;
     common/env_embedded.o(.text)
index 767408b52baca720f875e96d296666b2f6393e05..b6e08843fa6ee3b2ce4f4f000ec6962b75714737 100644 (file)
@@ -52,7 +52,7 @@ SECTIONS
   .plt : { *(.plt) }
   .text      :
   {
-    arch/ppc/cpu/mpc8xx/start.o        (.text)
+    arch/powerpc/cpu/mpc8xx/start.o    (.text)
     common/env_embedded.o(.text)
     *(.text)
     *(.got1)
index 5ec82f441ddff6fda7c9d10ac84197462d47384a..6bcf167a0a3bf31b0eb89739c8b649a17a348cba 100644 (file)
@@ -55,11 +55,11 @@ SECTIONS
     /* WARNING - the following is hand-optimized to fit within */
     /* the sector layout of our flash chips!   XXX FIXME XXX   */
 
-    arch/ppc/cpu/mpc8xx/start.o        (.text)
+    arch/powerpc/cpu/mpc8xx/start.o    (.text)
     common/dlmalloc.o  (.text)
     lib/vsprintf.o     (.text)
     lib/crc32.o                (.text)
-    arch/ppc/lib/extable.o     (.text)
+    arch/powerpc/lib/extable.o (.text)
 
     . = env_offset;
     common/env_embedded.o(.text)
index e4c7b9dd94a54e98bbde5cd65322737b6e5428ae..fb39c8416909e965377ee2fff470279a8b347b4b 100644 (file)
@@ -26,7 +26,7 @@
 
 /*
  * This function is run very early, out of flash, and before devices are
- * initialized. It is called by arch/ppc/lib/board.c:board_init_f by virtue
+ * initialized. It is called by arch/powerpc/lib/board.c:board_init_f by virtue
  * of being in the init_sequence array.
  *
  * The SDRAM has been initialized already -- start.S:start called
@@ -85,7 +85,7 @@ int board_pre_init (void)
 #endif
 
 /*
- * This function is also called by arch/ppc/lib/board.c:board_init_f (it is
+ * This function is also called by arch/powerpc/lib/board.c:board_init_f (it is
  * also in the init_sequence array) but later. Many more things are
  * configured, but we are still running from flash.
  */
@@ -149,7 +149,7 @@ int checkboard (void)
 /* **** No more functions called by board_init_f. **** */
 
 /*
- * This function is called by arch/ppc/lib/board.c:board_init_r. At this
+ * This function is called by arch/powerpc/lib/board.c:board_init_r. At this
  * point, basic setup is done, U-Boot has been moved into SDRAM and
  * PCI has been set up. From here we done late setup.
  */
index a12ebde2367ce81c1e616a7a54c396876caaa45c..02eb6f2c3c574f2074f6117aafde6fd6624543f9 100644 (file)
@@ -27,7 +27,7 @@
 /*
  * this is even after checkboard. It returns the size of the SDRAM
  * that we have installed. This function is called by board_init_f
- * in arch/ppc/lib/board.c to initialize the memory and return what I
+ * in arch/powerpc/lib/board.c to initialize the memory and return what I
  * found.
  */
 phys_size_t initdram (int board_type)
index ceddaf752e4e45c560db8e0e67ca62e357d8c8ac..ce5e4d6a45ed502aedfff600fe85272cadef1c99 100644 (file)
@@ -2,7 +2,7 @@
  * (C) Copyright 2008
  * Gary Jennejohn, DENX Software Engineering GmbH, garyj@denx.de.
  *
- * Based in part on arch/ppc/cpu/mpc8260/ether_scc.c.
+ * Based in part on arch/powerpc/cpu/mpc8260/ether_scc.c.
  *
  * See file CREDITS for list of people who contributed to this
  * project.
index 543deafb9ee402d25c424a271ec630d3d1fcca21..04782884e43ed149e49b98d94e66a38656fa705a 100644 (file)
@@ -2,7 +2,7 @@
  * (C) Copyright 2008
  * Gary Jennejohn, DENX Software Engineering GmbH, garyj@denx.de.
  *
- * Based in part on arch/ppc/cpu/mpc8xx/scc.c.
+ * Based in part on arch/powerpc/cpu/mpc8xx/scc.c.
  *
  * See file CREDITS for list of people who contributed to this
  * project.
index 19936bd4b18f926934576c09113973e7e35af2ad..cba9c6c6814e18c78769a8b41373355eab739d62 100644 (file)
@@ -55,15 +55,15 @@ SECTIONS
     /* WARNING - the following is hand-optimized to fit within */
     /* the sector layout of our flash chips!   XXX FIXME XXX   */
 
-    arch/ppc/cpu/mpc8xx/start.o                (.text)
-    arch/ppc/cpu/mpc8xx/traps.o                (.text)
+    arch/powerpc/cpu/mpc8xx/start.o            (.text)
+    arch/powerpc/cpu/mpc8xx/traps.o            (.text)
     common/dlmalloc.o          (.text)
-    arch/ppc/lib/ppcstring.o           (.text)
+    arch/powerpc/lib/ppcstring.o               (.text)
     lib/vsprintf.o     (.text)
     lib/crc32.o                (.text)
     lib/zlib.o         (.text)
-    arch/ppc/lib/cache.o               (.text)
-    arch/ppc/lib/time.o                (.text)
+    arch/powerpc/lib/cache.o           (.text)
+    arch/powerpc/lib/time.o            (.text)
 
     . = DEFINED(env_offset) ? env_offset : .;
     common/env_embedded.o      (.ppcenv)
index 6b8e7eaf7e6caf72571b62d1da27faf063df4d3e..98f68a66081325af4533567c3c80a7c027896f31 100644 (file)
@@ -2,7 +2,7 @@
  * (C) Copyright 2008
  * Gary Jennejohn, DENX Software Engineering GmbH, garyj@denx.de.
  *
- * Based in part on arch/ppc/cpu/mpc8260/ether_scc.c.
+ * Based in part on arch/powerpc/cpu/mpc8260/ether_scc.c.
  *
  * See file CREDITS for list of people who contributed to this
  * project.
index c725bbbb44d4b9e4a4673172812284d96fd64eed..bfc6bc15253a982c4ce9ce935a236837044605a3 100644 (file)
@@ -43,7 +43,7 @@ tlbtab:
         * BOOT_CS (FLASH) must be first. Before relocation SA_I can be off to use the
         * speed up boot process. It is patched after relocation to enable SA_I
         */
-       tlbentry( 0xF0000000, SZ_256M, 0xF0000000, 1, AC_R|AC_W|AC_X|SA_G )
+       tlbentry( 0xF0000000, SZ_256M, 0xF0000000, 1, AC_RWX | SA_G )
 
        /*
         * TLB entries for SDRAM are not needed on this platform.  They are
@@ -53,37 +53,37 @@ tlbtab:
 #ifdef CONFIG_SYS_INIT_RAM_DCACHE
        /* TLB-entry for init-ram in dcache (SA_I must be turned off!) */
        tlbentry( CONFIG_SYS_INIT_RAM_ADDR, SZ_64K, CONFIG_SYS_INIT_RAM_ADDR, 0,
-                 AC_R|AC_W|AC_X|SA_G )
+                 AC_RWX | SA_G )
 #endif
 
        /* TLB-entry for PCI Memory */
        tlbentry( CONFIG_SYS_PCI_MEMBASE + 0x00000000, SZ_256M,
-                 CONFIG_SYS_PCI_MEMBASE + 0x00000000, 1, AC_R|AC_W|SA_G|SA_I )
+                 CONFIG_SYS_PCI_MEMBASE + 0x00000000, 1, AC_RW | SA_IG )
 
        tlbentry( CONFIG_SYS_PCI_MEMBASE + 0x10000000, SZ_256M,
-                 CONFIG_SYS_PCI_MEMBASE + 0x10000000, 1, AC_R|AC_W|SA_G|SA_I )
+                 CONFIG_SYS_PCI_MEMBASE + 0x10000000, 1, AC_RW | SA_IG )
 
        tlbentry( CONFIG_SYS_PCI_MEMBASE + 0x20000000, SZ_256M,
-                 CONFIG_SYS_PCI_MEMBASE + 0x20000000, 1, AC_R|AC_W|SA_G|SA_I )
+                 CONFIG_SYS_PCI_MEMBASE + 0x20000000, 1, AC_RW | SA_IG )
 
        tlbentry( CONFIG_SYS_PCI_MEMBASE + 0x30000000, SZ_256M,
-                 CONFIG_SYS_PCI_MEMBASE + 0x30000000, 1, AC_R|AC_W|SA_G|SA_I )
+                 CONFIG_SYS_PCI_MEMBASE + 0x30000000, 1, AC_RW | SA_IG )
 
        /* TLB-entry for EBC */
-       tlbentry( CONFIG_SYS_CPLD_BASE, SZ_1K, CONFIG_SYS_CPLD_BASE, 1, AC_R|AC_W|SA_G|SA_I )
+       tlbentry( CONFIG_SYS_CPLD_BASE, SZ_1K, CONFIG_SYS_CPLD_BASE, 1, AC_RW | SA_IG )
 
        /* TLB-entry for Internal Registers & OCM */
        /* I wonder why this must be executable -- lrj@acm.org 2007-10-08 */
-       tlbentry( 0xE0000000, SZ_16M, 0xE0000000, 0, AC_R|AC_W|AC_X|SA_I )
+       tlbentry( 0xE0000000, SZ_16M, 0xE0000000, 0, AC_RWX | SA_I )
 
        /*TLB-entry PCI registers*/
-       tlbentry( 0xEEC00000, SZ_1K, 0xEEC00000, 1, AC_R|AC_W|SA_G|SA_I )
+       tlbentry( 0xEEC00000, SZ_1K, 0xEEC00000, 1, AC_RW | SA_IG )
 
        /* TLB-entry for peripherals */
-       tlbentry( 0xEF000000, SZ_16M, 0xEF000000, 1, AC_R|AC_W|SA_G|SA_I)
+       tlbentry( 0xEF000000, SZ_16M, 0xEF000000, 1, AC_RW | SA_IG)
 
        /* TLB-entry PCI IO Space - from sr@denx.de */
-       tlbentry(0xE8000000, SZ_64K, 0xE8000000, 1, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(0xE8000000, SZ_64K, 0xE8000000, 1, AC_RW | SA_IG)
 
        tlbtab_end
 
index e483394539dd04e28a9bb147ccbd31f572695a23..4d73180cd159b54a6b9758752beac207135fa7ca 100644 (file)
@@ -33,7 +33,7 @@ SECTIONS
 
   .bootpg 0xF7FBF000 :
   {
-    arch/ppc/cpu/ppc4xx/start.o        (.bootpg)
+    arch/powerpc/cpu/ppc4xx/start.o    (.bootpg)
   } = 0xffff
 
   /* Read-only sections, merged into text segment: */
@@ -65,7 +65,7 @@ SECTIONS
     /* WARNING - the following is hand-optimized to fit within */
     /* the sector layout of our flash chips!   XXX FIXME XXX   */
 
-    arch/ppc/cpu/ppc4xx/start.o        (.text)
+    arch/powerpc/cpu/ppc4xx/start.o    (.text)
 
     *(.text)
     *(.got1)
index 18cecaf51092d2196ad40c6a95a010ea889368e0..369ef19a473b2d9202da6435912a24c6244b0c7e 100644 (file)
@@ -55,11 +55,11 @@ SECTIONS
     /* WARNING - the following is hand-optimized to fit within */
     /* the sector layout of our flash chips!   XXX FIXME XXX   */
 
-    arch/ppc/cpu/mpc8xx/start.o                (.text)
+    arch/powerpc/cpu/mpc8xx/start.o            (.text)
 /*
-    arch/ppc/cpu/mpc8xx/start.o        (.text)
+    arch/powerpc/cpu/mpc8xx/start.o    (.text)
     common/dlmalloc.o  (.text)
-    arch/ppc/lib/ppcstring.o   (.text)
+    arch/powerpc/lib/ppcstring.o       (.text)
     lib/vsprintf.o     (.text)
     lib/crc32.o                (.text)
     lib/zlib.o         (.text)
index 723f56291140ecae477aede1033130a90e043740..a78d0b76bee5d673bf59ec689ffd9c28e05cad33 100644 (file)
@@ -55,7 +55,7 @@ SECTIONS
     /* WARNING - the following is hand-optimized to fit within */
     /* the sector layout of our flash chips!   XXX FIXME XXX   */
 
-    arch/ppc/cpu/mpc8xx/start.o        (.text)
+    arch/powerpc/cpu/mpc8xx/start.o    (.text)
     common/dlmalloc.o  (.text)
     lib/vsprintf.o     (.text)
     lib/crc32.o                (.text)
index 18cecaf51092d2196ad40c6a95a010ea889368e0..369ef19a473b2d9202da6435912a24c6244b0c7e 100644 (file)
@@ -55,11 +55,11 @@ SECTIONS
     /* WARNING - the following is hand-optimized to fit within */
     /* the sector layout of our flash chips!   XXX FIXME XXX   */
 
-    arch/ppc/cpu/mpc8xx/start.o                (.text)
+    arch/powerpc/cpu/mpc8xx/start.o            (.text)
 /*
-    arch/ppc/cpu/mpc8xx/start.o        (.text)
+    arch/powerpc/cpu/mpc8xx/start.o    (.text)
     common/dlmalloc.o  (.text)
-    arch/ppc/lib/ppcstring.o   (.text)
+    arch/powerpc/lib/ppcstring.o       (.text)
     lib/vsprintf.o     (.text)
     lib/crc32.o                (.text)
     lib/zlib.o         (.text)
index 723f56291140ecae477aede1033130a90e043740..a78d0b76bee5d673bf59ec689ffd9c28e05cad33 100644 (file)
@@ -55,7 +55,7 @@ SECTIONS
     /* WARNING - the following is hand-optimized to fit within */
     /* the sector layout of our flash chips!   XXX FIXME XXX   */
 
-    arch/ppc/cpu/mpc8xx/start.o        (.text)
+    arch/powerpc/cpu/mpc8xx/start.o    (.text)
     common/dlmalloc.o  (.text)
     lib/vsprintf.o     (.text)
     lib/crc32.o                (.text)
index 160f5cf386d2ffc049ccec53d1220e81eac6ca51..9fd4d1c61c8dd9fac28caaf87b6f257c07d53dea 100644 (file)
@@ -55,9 +55,9 @@ SECTIONS
     /* WARNING - the following is hand-optimized to fit within */
     /* the sector layout of our flash chips!   XXX FIXME XXX   */
 
-    arch/ppc/cpu/mpc8xx/start.o        (.text)
+    arch/powerpc/cpu/mpc8xx/start.o    (.text)
     common/dlmalloc.o  (.text)
-    arch/ppc/lib/ppcstring.o   (.text)
+    arch/powerpc/lib/ppcstring.o       (.text)
     lib/vsprintf.o     (.text)
     lib/crc32.o                (.text)
     lib/zlib.o         (.text)
index 172482f880d3d2411ba7b3ebbc00ab7b6cb2c92d..deea7e29fc1cc296cace670448b02e08b3c1040f 100644 (file)
@@ -55,7 +55,7 @@ SECTIONS
     /* WARNING - the following is hand-optimized to fit within */
     /* the sector layout of our flash chips!   XXX FIXME XXX   */
 
-    arch/ppc/cpu/mpc8xx/start.o        (.text)
+    arch/powerpc/cpu/mpc8xx/start.o    (.text)
     common/dlmalloc.o  (.text)
     lib/vsprintf.o     (.text)
     lib/crc32.o                (.text)
index cfbad13478a6037750c22935aa561184b1a0f3d1..fcfe6247d041598f618ef6db48e7b58987900c4f 100644 (file)
@@ -17,7 +17,7 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  * MA 02111-1307 USA
  *
- * This file was adapted from arch/ppc/cpu/mpc5xxx/serial.c
+ * This file was adapted from arch/powerpc/cpu/mpc5xxx/serial.c
  *
  */
 
index c98158f1ba6b1eae14878d5ad36a1101fab7d455..a6d2427fef028e3ee7d0efbe7d5d07c5495da7cd 100644 (file)
@@ -65,6 +65,7 @@ struct serial_device zoom2_serial_device##n = \
        N(n),                                   \
        U(n),                                   \
        quad_init_##n,                          \
+       NULL,                                   \
        quad_setbrg_##n,                        \
        quad_getc_##n,                          \
        quad_tstc_##n,                          \
index ff2f56640b382777f211d0d85994e9ee8d12f3b2..b871958f1ba5bef503329b1cf7a4925362adee2f 100644 (file)
@@ -52,7 +52,7 @@ SECTIONS
   .plt : { *(.plt) }
   .text      :
   {
-    arch/ppc/cpu/mpc8xx/start.o        (.text)
+    arch/powerpc/cpu/mpc8xx/start.o    (.text)
     common/env_embedded.o(.text)
     *(.text)
     *(.got1)
index fcf2cbb96d121e2a981937de5a47fa344244d9e9..131ad23c77c4f38502f4a1c5a75c3ae9f06604fe 100644 (file)
@@ -55,11 +55,11 @@ SECTIONS
     /* WARNING - the following is hand-optimized to fit within */
     /* the sector layout of our flash chips!   XXX FIXME XXX   */
 
-    arch/ppc/cpu/mpc8xx/start.o        (.text)
+    arch/powerpc/cpu/mpc8xx/start.o    (.text)
     common/dlmalloc.o  (.text)
     lib/vsprintf.o     (.text)
     lib/crc32.o                (.text)
-    arch/ppc/lib/extable.o     (.text)
+    arch/powerpc/lib/extable.o (.text)
 
     . = env_offset;
     common/env_embedded.o(.text)
index c714fb7ad9734d9a7cc32f2c8353277bc71a7771..8efc8a146e55a2fd65cd100d27608faaec09f709 100644 (file)
@@ -47,7 +47,7 @@ tlbtab:
         * BOOT_CS (FLASH) must be first. Before relocation SA_I can be off to use the
         * speed up boot process. It is patched after relocation to enable SA_I
         */
-       tlbentry(CONFIG_SYS_BOOT_BASE_ADDR, SZ_256M, CONFIG_SYS_BOOT_BASE_ADDR, 1, AC_R|AC_W|AC_X|SA_G)
+       tlbentry(CONFIG_SYS_BOOT_BASE_ADDR, SZ_256M, CONFIG_SYS_BOOT_BASE_ADDR, 1, AC_RWX | SA_G)
 
        /*
         * TLB entries for SDRAM are not needed on this platform.
@@ -57,34 +57,34 @@ tlbtab:
 
 #ifdef CONFIG_SYS_INIT_RAM_DCACHE
        /* TLB-entry for init-ram in dcache (SA_I must be turned off!) */
-       tlbentry(CONFIG_SYS_INIT_RAM_ADDR, SZ_4K, CONFIG_SYS_INIT_RAM_ADDR, 0, AC_R|AC_W|AC_X|SA_G)
+       tlbentry(CONFIG_SYS_INIT_RAM_ADDR, SZ_4K, CONFIG_SYS_INIT_RAM_ADDR, 0, AC_RWX | SA_G)
 #endif
 
        /* TLB-entry for PCI Memory */
-       tlbentry(CONFIG_SYS_PCI_MEMBASE, SZ_256M, CONFIG_SYS_PCI_MEMBASE, 1, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CONFIG_SYS_PCI_MEMBASE1, SZ_256M, CONFIG_SYS_PCI_MEMBASE1, 1, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CONFIG_SYS_PCI_MEMBASE2, SZ_256M, CONFIG_SYS_PCI_MEMBASE2, 1, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CONFIG_SYS_PCI_MEMBASE3, SZ_256M, CONFIG_SYS_PCI_MEMBASE3, 1, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PCI_MEMBASE, SZ_256M, CONFIG_SYS_PCI_MEMBASE, 1, AC_RW | SA_IG)
+       tlbentry(CONFIG_SYS_PCI_MEMBASE1, SZ_256M, CONFIG_SYS_PCI_MEMBASE1, 1, AC_RW | SA_IG)
+       tlbentry(CONFIG_SYS_PCI_MEMBASE2, SZ_256M, CONFIG_SYS_PCI_MEMBASE2, 1, AC_RW | SA_IG)
+       tlbentry(CONFIG_SYS_PCI_MEMBASE3, SZ_256M, CONFIG_SYS_PCI_MEMBASE3, 1, AC_RW | SA_IG)
 
        /* TLB-entry for the FPGA Chip select 2 */
-       tlbentry(CONFIG_SYS_FPGA_BASE_0, SZ_1M, CONFIG_SYS_FPGA_BASE_0, 1, AC_R|AC_W|AC_X|SA_I|SA_G)
+       tlbentry(CONFIG_SYS_FPGA_BASE_0, SZ_1M, CONFIG_SYS_FPGA_BASE_0, 1, AC_RWX | SA_I|SA_G)
 
        /* TLB-entry for the FPGA Chip select 3 */
-       tlbentry(CONFIG_SYS_FPGA_BASE_1, SZ_1M, CONFIG_SYS_FPGA_BASE_1, 1,AC_R|AC_W|AC_X|SA_I|SA_G)
+       tlbentry(CONFIG_SYS_FPGA_BASE_1, SZ_1M, CONFIG_SYS_FPGA_BASE_1, 1,AC_RWX | SA_I|SA_G)
 
        /* TLB-entry for the LIME Controller */
-       tlbentry(CONFIG_SYS_LIME_BASE_0, SZ_16M, CONFIG_SYS_LIME_BASE_0, 1, AC_R|AC_W|AC_X|SA_I|SA_G)
-       tlbentry(CONFIG_SYS_LIME_BASE_1, SZ_16M, CONFIG_SYS_LIME_BASE_1, 1, AC_R|AC_W|AC_X|SA_I|SA_G)
-       tlbentry(CONFIG_SYS_LIME_BASE_2, SZ_16M, CONFIG_SYS_LIME_BASE_2, 1, AC_R|AC_W|AC_X|SA_I|SA_G)
-       tlbentry(CONFIG_SYS_LIME_BASE_3, SZ_16M, CONFIG_SYS_LIME_BASE_3, 1, AC_R|AC_W|AC_X|SA_I|SA_G)
+       tlbentry(CONFIG_SYS_LIME_BASE_0, SZ_16M, CONFIG_SYS_LIME_BASE_0, 1, AC_RWX | SA_I|SA_G)
+       tlbentry(CONFIG_SYS_LIME_BASE_1, SZ_16M, CONFIG_SYS_LIME_BASE_1, 1, AC_RWX | SA_I|SA_G)
+       tlbentry(CONFIG_SYS_LIME_BASE_2, SZ_16M, CONFIG_SYS_LIME_BASE_2, 1, AC_RWX | SA_I|SA_G)
+       tlbentry(CONFIG_SYS_LIME_BASE_3, SZ_16M, CONFIG_SYS_LIME_BASE_3, 1, AC_RWX | SA_I|SA_G)
 
        /* TLB-entry for Internal Registers & OCM */
-       tlbentry(0xe0000000, SZ_16M, 0xe0000000, 0,  AC_R|AC_W|AC_X|SA_I)
+       tlbentry(0xe0000000, SZ_16M, 0xe0000000, 0,  AC_RWX | SA_I)
 
        /*TLB-entry PCI registers*/
-       tlbentry(0xEEC00000, SZ_1K, 0xEEC00000, 1,  AC_R|AC_W|AC_X|SA_G|SA_I)
+       tlbentry(0xEEC00000, SZ_1K, 0xEEC00000, 1,  AC_RWX | SA_IG)
 
        /* TLB-entry for peripherals */
-       tlbentry(0xEF000000, SZ_16M, 0xEF000000, 1, AC_R|AC_W|AC_X|SA_G|SA_I)
+       tlbentry(0xEF000000, SZ_16M, 0xEF000000, 1, AC_RWX | SA_IG)
 
        tlbtab_end
index cfbb6ef398802712f728a34aaaf421d5b8f67885..3e917a99c2eb588432d9e154f93fa02d18374d8d 100644 (file)
@@ -55,11 +55,11 @@ SECTIONS
   {
     /* WARNING - the following is hand-optimized to fit within  */
     /* the first two sectors (=8KB) of our S29GL flash chip */
-    cpu/mpc5xxx/start.o          (.text)
-    cpu/mpc5xxx/traps.o          (.text)
-    lib_generic/crc32.o         (.text)
-    lib_ppc/cache.o             (.text)
-    lib_ppc/time.o              (.text)
+    arch/powerpc/cpu/mpc5xxx/start.o          (.text)
+    arch/powerpc/cpu/mpc5xxx/traps.o          (.text)
+    lib/crc32.o         (.text)
+    arch/powerpc/lib/cache.o             (.text)
+    arch/powerpc/lib/time.o              (.text)
 
     /* This is only needed to force failure if size of above code will ever */
     /* increase and grow into reserved space. */
index 3572f1ad322ba70a79a4735226760da5e8bbde32..f883e7f02466b9731692311e033ae835047cec8f 100644 (file)
@@ -52,7 +52,7 @@ SECTIONS
   .plt : { *(.plt) }
   .text      :
   {
-    arch/ppc/cpu/mpc8xx/start.o        (.text)
+    arch/powerpc/cpu/mpc8xx/start.o    (.text)
 
     *(.text)
     *(.got1)
index 61c0d68d7814ba41e6bea6952d41d68ecdb7e178..a7a67a9276f6ee6d58007db8c0ab05e1d680dddf 100644 (file)
@@ -55,11 +55,11 @@ SECTIONS
     /* WARNING - the following is hand-optimized to fit within */
     /* the sector layout of our flash chips!   XXX FIXME XXX   */
 
-    arch/ppc/cpu/mpc8xx/start.o        (.text)
+    arch/powerpc/cpu/mpc8xx/start.o    (.text)
     common/dlmalloc.o  (.text)
     lib/vsprintf.o     (.text)
     lib/crc32.o                (.text)
-    arch/ppc/lib/extable.o     (.text)
+    arch/powerpc/lib/extable.o (.text)
 
     . = env_offset;
     common/env_embedded.o(.text)
index 3bc251d12d7325b797aef04287793465c99437c3..1c99fd6c751b4001d0995e3a9988a52f33f30703 100644 (file)
@@ -3,7 +3,7 @@
  * Sysgo Real-Time Solutions, GmbH <www.elinos.com>
  * Marius Groeger <mgroeger@sysgo.de>
  *
- * Code in faintly related to linux/arch/ppc/8xx_io:
+ * Code in faintly related to linux/arch/powerpc/8xx_io:
  * MPC8xx CPM I2C interface. Copyright (c) 1999 Dan Malek (dmalek@jlc.net).
  *
  * This file implements functions to read the MBX's Vital Product Data
index e382283ea25e3d5ed0b12c43b5800384e37cf25e..950f857976cd72990bd2d67b1af630e5f8cf4176 100644 (file)
@@ -55,17 +55,17 @@ SECTIONS
     /* WARNING - the following is hand-optimized to fit within */
     /* the sector layout of our flash chips!   XXX FIXME XXX   */
 
-    arch/ppc/cpu/ppc4xx/start.o        (.text)
+    arch/powerpc/cpu/ppc4xx/start.o    (.text)
     board/ml2/init.o   (.text)
-    arch/ppc/cpu/ppc4xx/kgdb.o (.text)
-    arch/ppc/cpu/ppc4xx/traps.o        (.text)
-    arch/ppc/cpu/ppc4xx/interrupts.o   (.text)
-    arch/ppc/cpu/ppc4xx/4xx_uart.o     (.text)
-    arch/ppc/cpu/ppc4xx/cpu_init.o     (.text)
-    arch/ppc/cpu/ppc4xx/speed.o        (.text)
+    arch/powerpc/cpu/ppc4xx/kgdb.o     (.text)
+    arch/powerpc/cpu/ppc4xx/traps.o    (.text)
+    arch/powerpc/cpu/ppc4xx/interrupts.o       (.text)
+    arch/powerpc/cpu/ppc4xx/4xx_uart.o (.text)
+    arch/powerpc/cpu/ppc4xx/cpu_init.o (.text)
+    arch/powerpc/cpu/ppc4xx/speed.o    (.text)
     common/dlmalloc.o  (.text)
     lib/crc32.o                (.text)
-    arch/ppc/lib/extable.o     (.text)
+    arch/powerpc/lib/extable.o (.text)
     lib/zlib.o         (.text)
 
 /*    . = env_offset;*/
index 09c0191e5f693a085626b5cf55c916b44e91625f..0e9cdcf81d72e130d7db729d2d34a3e8aa450427 100644 (file)
@@ -59,7 +59,7 @@ SECTIONS
     common/dlmalloc.o  (.text)
     lib/vsprintf.o     (.text)
     lib/crc32.o                (.text)
-    arch/ppc/lib/extable.o     (.text)
+    arch/powerpc/lib/extable.o (.text)
 
     common/env_embedded.o(.text)
 
index ed5492d45ed10db7832988d46cef652f857a7022..0116dde4df2f433cee2353db7a0287011fb6edee 100644 (file)
@@ -52,9 +52,9 @@ SECTIONS
   .plt : { *(.plt) }
   .text      :
   {
-    arch/ppc/cpu/mpc824x/start.o               (.text)
-    arch/ppc/lib/board.o               (.text)
-    arch/ppc/lib/ppcstring.o           (.text)
+    arch/powerpc/cpu/mpc824x/start.o           (.text)
+    arch/powerpc/lib/board.o           (.text)
+    arch/powerpc/lib/ppcstring.o               (.text)
     lib/vsprintf.o     (.text)
     lib/crc32.o                (.text)
     lib/zlib.o         (.text)
index d3169489b5a3fe0460f6d253f3feb6aa5f242c6e..449d0645e490054a2d4f110130fe4cb411b5843b 100644 (file)
@@ -37,7 +37,7 @@ SECTIONS
   PROVIDE(_f_init_rom = .);
 
   .init : {
-      arch/ppc/cpu/mpc824x/start.o     (.text)
+      arch/powerpc/cpu/mpc824x/start.o (.text)
       *(.init)
   } > ram
   _init_size = SIZEOF(.init);
index 2721fdc6f8a62134fd38e6db125d01400a018327..4f42b329d835a0c6af8c874ed7ea8d57a4416be4 100644 (file)
@@ -52,9 +52,9 @@ SECTIONS
   .plt : { *(.plt) }
   .text      :
   {
-    arch/ppc/cpu/mpc824x/start.o       (.text)
+    arch/powerpc/cpu/mpc824x/start.o   (.text)
         common/board.o (.text)
-    arch/ppc/lib/ppcstring.o   (.text)
+    arch/powerpc/lib/ppcstring.o       (.text)
     lib/vsprintf.o     (.text)
     lib/crc32.o                (.text)
     lib/zlib.o         (.text)
index 09c0191e5f693a085626b5cf55c916b44e91625f..0e9cdcf81d72e130d7db729d2d34a3e8aa450427 100644 (file)
@@ -59,7 +59,7 @@ SECTIONS
     common/dlmalloc.o  (.text)
     lib/vsprintf.o     (.text)
     lib/crc32.o                (.text)
-    arch/ppc/lib/extable.o     (.text)
+    arch/powerpc/lib/extable.o (.text)
 
     common/env_embedded.o(.text)
 
index 4e9ee73e6a5ff4599d7095dc1a9bca86d69ceb71..6850728331ee2944e476ee7c5f743303cdb65b7e 100644 (file)
@@ -42,4 +42,4 @@ TEXT_BASE = 0xFFF00000
 endif
 
 PLATFORM_CPPFLAGS += -DTEXT_BASE=$(TEXT_BASE) -I$(TOPDIR)/board
-LDSCRIPT := $(SRCTREE)/arch/ppc/cpu/mpc5xxx/u-boot.lds
+LDSCRIPT := $(SRCTREE)/arch/powerpc/cpu/mpc5xxx/u-boot.lds
index 2cd6d3c1ad44f38d55240e865309b60fdb2061e3..4e27bc947d5fee286b60de550aa1f47461e68e23 100644 (file)
@@ -52,7 +52,7 @@ SECTIONS
   .plt : { *(.plt) }
   .text      :
   {
-    arch/ppc/cpu/mpc5xxx/start.o       (.text)
+    arch/powerpc/cpu/mpc5xxx/start.o   (.text)
     *(.text)
     *(.got1)
     . = ALIGN(16);
index 90ca165c44a216fada1f69e2cfa62efdc8da9101..e89a9bc9cd7f48c6aa59be934ec13d702ed7b1fc 100644 (file)
@@ -52,7 +52,7 @@ SECTIONS
   .plt : { *(.plt) }
   .text      :
   {
-    arch/ppc/cpu/mpc8xx/start.o        (.text)
+    arch/powerpc/cpu/mpc8xx/start.o    (.text)
     *(.text)
     *(.got1)
   }
index 1405b1730b945c830e2eb85517aec3bd1e98131a..770adf789179be8484cc872d2d6ffdee91cfd7eb 100644 (file)
@@ -52,7 +52,7 @@ SECTIONS
   .plt : { *(.plt) }
   .text      :
   {
-    arch/ppc/cpu/mpc8xx/start.o        (.text)
+    arch/powerpc/cpu/mpc8xx/start.o    (.text)
     *(.text)
     *(.got1)
   }
index d6e2404f9a310b0ed6fb43038685402ad1beb8d0..77aebe6b49a2bea871ad216f5adc92c28f4eaae5 100644 (file)
@@ -52,15 +52,15 @@ SECTIONS
   .plt         : { *(.plt)             }
   .text        :
   {
-    arch/ppc/cpu/mpc8xx/start.o                (.text)
-    arch/ppc/cpu/mpc8xx/traps.o                (.text)
+    arch/powerpc/cpu/mpc8xx/start.o            (.text)
+    arch/powerpc/cpu/mpc8xx/traps.o            (.text)
     common/dlmalloc.o          (.text)
-    arch/ppc/lib/ppcstring.o           (.text)
+    arch/powerpc/lib/ppcstring.o               (.text)
     lib/vsprintf.o     (.text)
     lib/crc32.o                (.text)
     lib/zlib.o         (.text)
-    arch/ppc/lib/cache.o               (.text)
-    arch/ppc/lib/time.o                (.text)
+    arch/powerpc/lib/cache.o           (.text)
+    arch/powerpc/lib/time.o            (.text)
 
     . = DEFINED(env_offset) ? env_offset : .;
     common/env_embedded.o      (.text)
index ec479b1533e93d31c115721c45a89d99bc5fabb8..df7b6adba4782392cee67fa397555fcdb030fe09 100644 (file)
@@ -55,7 +55,7 @@ SECTIONS
     /* WARNING - the following is hand-optimized to fit within */
     /* the sector layout of our flash chips!   XXX FIXME XXX   */
 
-    arch/ppc/cpu/mpc8xx/start.o                (.text)
+    arch/powerpc/cpu/mpc8xx/start.o            (.text)
     common/dlmalloc.o          (.text)
     lib/vsprintf.o     (.text)
     lib/crc32.o                (.text)
index 1c99405bea9cb4288f199c7e3342dae8cc3cbd4c..6fd6138223cf4dd086f1c1dfb2bd884aca416bac 100644 (file)
@@ -34,7 +34,7 @@ DECLARE_GLOBAL_DATA_PTR;
 
 /*
  * This function is run very early, out of flash, and before devices are
- * initialized. It is called by arch/ppc/lib/board.c:board_init_f by virtue
+ * initialized. It is called by arch/powerpc/lib/board.c:board_init_f by virtue
  * of being in the init_sequence array.
  *
  * The SDRAM has been initialized already -- start.S:start called
index 0be51925c10e4babef3f354bec45c8a6c20be079..c5737d043a7e92231c7c55d162f697b98a042f5b 100644 (file)
@@ -83,11 +83,11 @@ System-LEDs ??? (Analog zu HCU4 ???)
 Startup sequence
 ----------------
 
-(arch/ppc/cpu/ppc4xx/resetvec.S)
+(arch/powerpc/cpu/ppc4xx/resetvec.S)
 depending on configs option
 call _start_440 _start_pci oder _start
 
-(arch/ppc/cpu/ppc4xx/start.S)
+(arch/powerpc/cpu/ppc4xx/start.S)
 
 _start_440:
        initialize register like
@@ -109,7 +109,7 @@ _start:
        call cpu_init_f /* run low-level CPU init code     (from Flash) */
 
     call cpu_init_f
-    board_init_f: (arch/ppc/lib\board.c)
+    board_init_f: (arch/powerpc/lib\board.c)
        init_sequence defines a list of function to be called
            board_early_init_f: (board/netstal/hcu5/hcu5.c)
                We are using Bootstrap-Option A
@@ -136,18 +136,18 @@ _start:
         *  - board info struct
        Save local variables to board info struct
        call relocate_code() does not return
-       relocate_code: (arch/ppc/cpu/ppc4xx/start.S)
+       relocate_code: (arch/powerpc/cpu/ppc4xx/start.S)
 -------------------------------------------------------
 From now on our copy is in RAM and we will run from there,
        starting with board_init_r
 -------------------------------------------------------
-    board_init_r: (arch/ppc/lib\board.c)
+    board_init_r: (arch/powerpc/lib\board.c)
        setup bd function pointers
        trap_init
        flash_init: (board/netstal/hcu5/flash.c)
                /* setup for u-boot erase, update */
        setup bd flash info
-       cpu_init_r: (arch/ppc/cpu/ppc4xx/cpu_init.c)
+       cpu_init_r: (arch/powerpc/cpu/ppc4xx/cpu_init.c)
            peripheral chip select in using defines like
            CONFIG_SYS_EBC_PB0A, CONFIG_SYS_EBC_PB0C from hcu5.h
        mem_malloc_init
@@ -161,8 +161,8 @@ From now on our copy is in RAM and we will run from there,
 Most of the HW specific code for the HCU5 may be found in
 include/configs/hcu5.h
 board/netstal/hcu5/*
-arch/ppc/cpu/ppc4xx/*
-arch/ppc/lib/*
+arch/powerpc/cpu/ppc4xx/*
+arch/powerpc/lib/*
 include/ppc440.h
 
 Drivers for serial etc are found under drivers/
index 90433fe82d58ac1e813d82767441b53c3f04c65d..5eb8efc5242e0d880a86ab6004b631a6bb76057b 100644 (file)
@@ -49,7 +49,7 @@ extern flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];
 
 /*
  * This function is run very early, out of flash, and before devices are
- * initialized. It is called by arch/ppc/lib/board.c:board_init_f by virtue
+ * initialized. It is called by arch/powerpc/lib/board.c:board_init_f by virtue
  * of being in the init_sequence array.
  *
  * The SDRAM has been initialized already -- start.S:start called
index 05b5e389c20e661f831d8eb3c275ee41d2b12196..45e63dd3d4021f8634da12e8a8ea1710d070d16d 100644 (file)
@@ -40,13 +40,13 @@ tlbtab:
        tlbtab_start
 
        /* TLB#0: vxWorks needs this entry for the Machine Check interrupt, */
-       tlbentry( 0x40000000, SZ_256M, 0, 0, AC_R|AC_W|AC_X|SA_G|SA_I )
+       tlbentry( 0x40000000, SZ_256M, 0, 0, AC_RWX | SA_IG )
        /* TLB#1: TLB-entry for DDR SDRAM (Up to 2GB) */
        tlbentry( CONFIG_SYS_SDRAM_BASE, SZ_256M, CONFIG_SYS_SDRAM_BASE, 0,
-               AC_R|AC_W|AC_X|SA_G|SA_I )
+               AC_RWX | SA_IG )
 
        /* TLB#2: TLB-entry for EBC */
-       tlbentry( 0x80000000, SZ_256M, 0x80000000, 1, AC_R|AC_W|AC_X|SA_G|SA_I)
+       tlbentry( 0x80000000, SZ_256M, 0x80000000, 1, AC_RWX | SA_IG)
 
        /*
         * TLB#3: BOOT_CS (FLASH) must be forth. Before relocation SA_I can be
@@ -54,7 +54,7 @@ tlbtab:
         * to enable SA_I
         */
        tlbentry( CONFIG_SYS_BOOT_BASE_ADDR, SZ_1M, CONFIG_SYS_BOOT_BASE_ADDR, 1,
-               AC_R|AC_W|AC_X|SA_G)
+               AC_RWX | SA_G)
 
        /*
         * TLB entries for SDRAM are not needed on this platform.
@@ -64,43 +64,43 @@ tlbtab:
 
        /* TLB#4: */
        tlbentry( CONFIG_SYS_PCI_MEMBASE1, SZ_256M, CONFIG_SYS_PCI_MEMBASE1, 1,
-               AC_R|AC_W|SA_G|SA_I )
+               AC_RW | SA_IG )
        /* TLB#5: */
        tlbentry( CONFIG_SYS_PCI_MEMBASE2, SZ_256M, CONFIG_SYS_PCI_MEMBASE2, 1,
-               AC_R|AC_W|SA_G|SA_I )
+               AC_RW | SA_IG )
        /* TLB#6: */
        tlbentry( CONFIG_SYS_PCI_MEMBASE3, SZ_256M, CONFIG_SYS_PCI_MEMBASE3, 1,
-               AC_R|AC_W|SA_G|SA_I )
+               AC_RW | SA_IG )
 
        /* TLB-entry for Internal Registers & OCM */
        /* TLB#7: */
        tlbentry( 0xe0000000, SZ_16M, 0xe0000000, 0,
-               AC_R|AC_W|AC_X|SA_G|SA_I )
+               AC_RWX | SA_IG )
 
        /*TLB-entry PCI registers*/
        /* TLB#8: */
-       tlbentry( 0xEEC00000, SZ_1K, 0xEEC00000, 1,  AC_R|AC_W|AC_X|SA_G|SA_I )
+       tlbentry( 0xEEC00000, SZ_1K, 0xEEC00000, 1,  AC_RWX | SA_IG )
 
        /* TLB-entry for peripherals */
        /* TLB#9: */
-       tlbentry( 0xEF000000, SZ_16M, 0xEF000000, 1, AC_R|AC_W|AC_X|SA_G|SA_I)
+       tlbentry( 0xEF000000, SZ_16M, 0xEF000000, 1, AC_RWX | SA_IG)
 
        /*              CAN */
        /* TLB#10: */
-       tlbentry( CONFIG_SYS_CS_1, SZ_1K, CONFIG_SYS_CS_1, 1, AC_R|AC_W|AC_X|SA_G|SA_I )
+       tlbentry( CONFIG_SYS_CS_1, SZ_1K, CONFIG_SYS_CS_1, 1, AC_RWX | SA_IG )
 
        /* TLB#11:  CPLD and IMC-Standard 32 MB */
-       tlbentry( CONFIG_SYS_CS_2, SZ_16M, CONFIG_SYS_CS_2, 1, AC_R|AC_W|AC_X|SA_G|SA_I )
+       tlbentry( CONFIG_SYS_CS_2, SZ_16M, CONFIG_SYS_CS_2, 1, AC_RWX | SA_IG )
 
        /* TLB#12: */
        tlbentry( CONFIG_SYS_CS_2 + 0x1000000, SZ_16M, CONFIG_SYS_CS_2 + 0x1000000, 1,
-               AC_R|AC_W|AC_X|SA_G|SA_I )
+               AC_RWX | SA_IG )
 
         /*             IMC-Fast 32 MB */
        /* TLB#13: */
-       tlbentry( CONFIG_SYS_CS_3, SZ_16M, CONFIG_SYS_CS_3, 1, AC_R|AC_W|AC_X|SA_G|SA_I )
+       tlbentry( CONFIG_SYS_CS_3, SZ_16M, CONFIG_SYS_CS_3, 1, AC_RWX | SA_IG )
        /* TLB#14: */
        tlbentry( CONFIG_SYS_CS_3 + 0x1000000, SZ_16M, CONFIG_SYS_CS_3, 1,
-               AC_R|AC_W|AC_X|SA_G|SA_I )
+               AC_RWX | SA_IG )
 
        tlbtab_end
index 87bc45edb42f821c1a86d3ce39be8ed97ac5b8d5..ed28e209fa38f976cd2df6fc59303eb3265fb150 100644 (file)
@@ -39,7 +39,7 @@ DECLARE_GLOBAL_DATA_PTR;
 
 /*
  * This function is run very early, out of flash, and before devices are
- * initialized. It is called by arch/ppc/lib/board.c:board_init_f by virtue
+ * initialized. It is called by arch/powerpc/lib/board.c:board_init_f by virtue
  * of being in the init_sequence array.
  *
  * The SDRAM has been initialized already -- start.S:start called
index c4df378c978c433342b8d291f8d49dd507f95484..9001767ef7ce93664763596d8360fff065b072fc 100644 (file)
@@ -52,15 +52,15 @@ SECTIONS
   .plt         : { *(.plt)             }
   .text        :
   {
-    arch/ppc/cpu/mpc8xx/start.o                (.text)
-    arch/ppc/cpu/mpc8xx/traps.o                (.text)
+    arch/powerpc/cpu/mpc8xx/start.o            (.text)
+    arch/powerpc/cpu/mpc8xx/traps.o            (.text)
     common/dlmalloc.o          (.text)
-    arch/ppc/lib/ppcstring.o           (.text)
+    arch/powerpc/lib/ppcstring.o               (.text)
     lib/vsprintf.o     (.text)
     lib/crc32.o                (.text)
     lib/zlib.o         (.text)
-    arch/ppc/lib/cache.o               (.text)
-    arch/ppc/lib/time.o                (.text)
+    arch/powerpc/lib/cache.o           (.text)
+    arch/powerpc/lib/time.o            (.text)
 
     . = DEFINED(env_offset) ? env_offset : .;
     common/env_embedded.o      (.text)
index ec479b1533e93d31c115721c45a89d99bc5fabb8..df7b6adba4782392cee67fa397555fcdb030fe09 100644 (file)
@@ -55,7 +55,7 @@ SECTIONS
     /* WARNING - the following is hand-optimized to fit within */
     /* the sector layout of our flash chips!   XXX FIXME XXX   */
 
-    arch/ppc/cpu/mpc8xx/start.o                (.text)
+    arch/powerpc/cpu/mpc8xx/start.o            (.text)
     common/dlmalloc.o          (.text)
     lib/vsprintf.o     (.text)
     lib/crc32.o                (.text)
index c4df378c978c433342b8d291f8d49dd507f95484..9001767ef7ce93664763596d8360fff065b072fc 100644 (file)
@@ -52,15 +52,15 @@ SECTIONS
   .plt         : { *(.plt)             }
   .text        :
   {
-    arch/ppc/cpu/mpc8xx/start.o                (.text)
-    arch/ppc/cpu/mpc8xx/traps.o                (.text)
+    arch/powerpc/cpu/mpc8xx/start.o            (.text)
+    arch/powerpc/cpu/mpc8xx/traps.o            (.text)
     common/dlmalloc.o          (.text)
-    arch/ppc/lib/ppcstring.o           (.text)
+    arch/powerpc/lib/ppcstring.o               (.text)
     lib/vsprintf.o     (.text)
     lib/crc32.o                (.text)
     lib/zlib.o         (.text)
-    arch/ppc/lib/cache.o               (.text)
-    arch/ppc/lib/time.o                (.text)
+    arch/powerpc/lib/cache.o           (.text)
+    arch/powerpc/lib/time.o            (.text)
 
     . = DEFINED(env_offset) ? env_offset : .;
     common/env_embedded.o      (.text)
index ec479b1533e93d31c115721c45a89d99bc5fabb8..df7b6adba4782392cee67fa397555fcdb030fe09 100644 (file)
@@ -55,7 +55,7 @@ SECTIONS
     /* WARNING - the following is hand-optimized to fit within */
     /* the sector layout of our flash chips!   XXX FIXME XXX   */
 
-    arch/ppc/cpu/mpc8xx/start.o                (.text)
+    arch/powerpc/cpu/mpc8xx/start.o            (.text)
     common/dlmalloc.o          (.text)
     lib/vsprintf.o     (.text)
     lib/crc32.o                (.text)
index 6683361ea42cddfd9bf903590bee6d5e9bc0c842..d05f80bb36b2792e8572c6c1a9fee5e36f5afcc3 100644 (file)
@@ -52,15 +52,15 @@ SECTIONS
   .plt         : { *(.plt)             }
   .text        :
   {
-    arch/ppc/cpu/mpc8xx/start.o                (.text)
-    arch/ppc/cpu/mpc8xx/traps.o                (.text)
+    arch/powerpc/cpu/mpc8xx/start.o            (.text)
+    arch/powerpc/cpu/mpc8xx/traps.o            (.text)
     common/dlmalloc.o          (.text)
-    arch/ppc/lib/ppcstring.o           (.text)
+    arch/powerpc/lib/ppcstring.o               (.text)
     lib/vsprintf.o     (.text)
     lib/crc32.o                (.text)
     lib/zlib.o         (.text)
-    arch/ppc/lib/cache.o               (.text)
-    arch/ppc/lib/time.o                (.text)
+    arch/powerpc/lib/cache.o           (.text)
+    arch/powerpc/lib/time.o            (.text)
 
     . = DEFINED(env_offset) ? env_offset : .;
     common/env_embedded.o      (.text)
index cef1a428bd077788d220921929f862439723ef0d..58202dc9f51918002a2294518dad3d51d647ea6b 100644 (file)
@@ -55,7 +55,7 @@ SECTIONS
     /* WARNING - the following is hand-optimized to fit within */
     /* the sector layout of our flash chips!   XXX FIXME XXX   */
 
-    arch/ppc/cpu/mpc8xx/start.o                (.text)
+    arch/powerpc/cpu/mpc8xx/start.o            (.text)
     common/dlmalloc.o          (.text)
     lib/vsprintf.o     (.text)
     lib/crc32.o                (.text)
index dc370eacf22ecb6bafb2879887aa8b84a70cbb58..9fe9758c476ec3617250e0aee7a2001d5e504659 100644 (file)
@@ -52,7 +52,7 @@ SECTIONS
   .plt : { *(.plt) }
   .text      :
   {
-    arch/ppc/cpu/mpc8xx/start.o        (.text)
+    arch/powerpc/cpu/mpc8xx/start.o    (.text)
     common/env_embedded.o(.text)
 
     *(.text)
index e62f6be5aa58cc5829707ffd9625868e95f33540..99098bffbedfc6f93b8b1511a71665790953765f 100644 (file)
@@ -55,7 +55,7 @@ SECTIONS
     /* WARNING - the following is hand-optimized to fit within */
     /* the sector layout of our flash chips!   XXX FIXME XXX   */
 
-    arch/ppc/cpu/mpc8xx/start.o        (.text)
+    arch/powerpc/cpu/mpc8xx/start.o    (.text)
     common/dlmalloc.o  (.text)
     lib/vsprintf.o     (.text)
     lib/crc32.o                (.text)
index b2be32812494fb7dc0bc135c16e2101e9c166b4c..87d8c67949c353436b0cfef0710b493902c15228 100644 (file)
@@ -59,7 +59,7 @@ SECTIONS
   .plt : { *(.plt) }
   .text      :
   {
-    arch/ppc/cpu/74xx_7xx/start.o      (.text)
+    arch/powerpc/cpu/74xx_7xx/start.o  (.text)
 
 /* store the environment in a seperate sector in the boot flash */
 /*    . = env_offset; */
index 25e7f4f70fc0006d9ee4fbc1e42af0b9b8c4f0bd..9745c14e5a462e74bcb7e4ef0a79d4bb36ccf618 100644 (file)
  */
 
 #include <ppc_asm.tmpl>
+#include <asm/mmu.h>
 #include <config.h>
 
-/* General */
-#define TLB_VALID   0x00000200
-
-/* Supported page sizes */
-
-#define SZ_1K      0x00000000
-#define SZ_4K      0x00000010
-#define SZ_16K     0x00000020
-#define SZ_64K     0x00000030
-#define SZ_256K            0x00000040
-#define SZ_1M      0x00000050
-#define SZ_8M       0x00000060
-#define SZ_16M     0x00000070
-#define SZ_256M            0x00000090
-
-/* Storage attributes */
-#define SA_W       0x00000800      /* Write-through */
-#define SA_I       0x00000400      /* Caching inhibited */
-#define SA_M       0x00000200      /* Memory coherence */
-#define SA_G       0x00000100      /* Guarded */
-#define SA_E       0x00000080      /* Endian */
-
-/* Access control */
-#define AC_X       0x00000024      /* Execute */
-#define AC_W       0x00000012      /* Write */
-#define AC_R       0x00000009      /* Read */
-
-/* Some handy macros */
-
-#define EPN(e)         ((e) & 0xfffffc00)
-#define TLB0(epn,sz)   ( (EPN((epn)) | (sz) | TLB_VALID ) )
-#define TLB1(rpn,erpn) ( ((rpn)&0xfffffc00) | (erpn) )
-#define TLB2(a)                ( (a)&0x00000fbf )
-
-#define tlbtab_start\
-       mflr    r1  ;\
-       bl 0f       ;
-
-#define tlbtab_end\
-       .long 0, 0, 0   ;   \
-0:     mflr    r0      ;   \
-       mtlr    r1      ;   \
-       blr             ;
-
-#define tlbentry(epn,sz,rpn,erpn,attr)\
-       .long TLB0(epn,sz),TLB1(rpn,erpn),TLB2(attr)
-
-
 /**************************************************************************
  * TLB TABLE
  *
@@ -93,10 +46,10 @@ tlbtab:
         * BOOT_CS (FLASH) must be first. Before relocation SA_I can be off to use the
         * speed up boot process. It is patched after relocation to enable SA_I
         */
-       tlbentry( CONFIG_SYS_BOOT_BASE_ADDR, SZ_256M, CONFIG_SYS_BOOT_BASE_ADDR, 0, AC_R|AC_W|AC_X|SA_G/*|SA_I*/)
+       tlbentry( CONFIG_SYS_BOOT_BASE_ADDR, SZ_256M, CONFIG_SYS_BOOT_BASE_ADDR, 0, AC_RWX | SA_G/*|SA_I*/)
 
        /* TLB-entry for init-ram in dcache (SA_I must be turned off!) */
-       tlbentry( CONFIG_SYS_INIT_RAM_ADDR, SZ_64K, CONFIG_SYS_INIT_RAM_ADDR, 0, AC_R|AC_W|AC_X|SA_G )
+       tlbentry( CONFIG_SYS_INIT_RAM_ADDR, SZ_64K, CONFIG_SYS_INIT_RAM_ADDR, 0, AC_RWX | SA_G )
 
        /*
         * TLB entries for SDRAM are not needed on this platform.
@@ -104,15 +57,15 @@ tlbtab:
         * routine.
         */
 
-       tlbentry( CONFIG_SYS_PCI_BASE, SZ_256M, CONFIG_SYS_PCI_BASE, 0, AC_R|AC_W|SA_G|SA_I )
+       tlbentry( CONFIG_SYS_PCI_BASE, SZ_256M, CONFIG_SYS_PCI_BASE, 0, AC_RW | SA_IG )
 
        /* PCI */
-       tlbentry( CONFIG_SYS_PCI_MEMBASE, SZ_256M, CONFIG_SYS_PCI_MEMBASE, 0, AC_R|AC_W|SA_G|SA_I )
-       tlbentry( CONFIG_SYS_PCI_MEMBASE1, SZ_256M, CONFIG_SYS_PCI_MEMBASE1, 0, AC_R|AC_W|SA_G|SA_I )
-       tlbentry( CONFIG_SYS_PCI_MEMBASE2, SZ_256M, CONFIG_SYS_PCI_MEMBASE2, 0, AC_R|AC_W|SA_G|SA_I )
-       tlbentry( CONFIG_SYS_PCI_MEMBASE3, SZ_256M, CONFIG_SYS_PCI_MEMBASE3, 0, AC_R|AC_W|SA_G|SA_I )
+       tlbentry( CONFIG_SYS_PCI_MEMBASE, SZ_256M, CONFIG_SYS_PCI_MEMBASE, 0, AC_RW | SA_IG )
+       tlbentry( CONFIG_SYS_PCI_MEMBASE1, SZ_256M, CONFIG_SYS_PCI_MEMBASE1, 0, AC_RW | SA_IG )
+       tlbentry( CONFIG_SYS_PCI_MEMBASE2, SZ_256M, CONFIG_SYS_PCI_MEMBASE2, 0, AC_RW | SA_IG )
+       tlbentry( CONFIG_SYS_PCI_MEMBASE3, SZ_256M, CONFIG_SYS_PCI_MEMBASE3, 0, AC_RW | SA_IG )
 
        /* USB 2.0 Device */
-       tlbentry( CONFIG_SYS_USB_DEVICE, SZ_1K, 0x50000000, 0, AC_R|AC_W|SA_G|SA_I )
+       tlbentry( CONFIG_SYS_USB_DEVICE, SZ_1K, 0x50000000, 0, AC_RW | SA_IG )
 
        tlbtab_end
index bed385c44b8088b67b8f63423979d5718868fd30..a6885d68953892148a6f2b840ef391f83b18eba1 100644 (file)
@@ -148,7 +148,7 @@ int board_early_init_f(void)
        mtdcr(EBC0_CFGDATA, reg | 0x04000000);  /* Set ATC */
 
        /*--------------------------------------------------------------------
-        * GPIO's are alreay setup in arch/ppc/cpu/ppc4xx/cpu_init.c
+        * GPIO's are alreay setup in arch/powerpc/cpu/ppc4xx/cpu_init.c
         * via define from board config file.
         *-------------------------------------------------------------------*/
 
diff --git a/board/pdm360ng/Makefile b/board/pdm360ng/Makefile
new file mode 100644 (file)
index 0000000..8513242
--- /dev/null
@@ -0,0 +1,51 @@
+#
+# (C) Copyright 2007
+# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
+#
+# See file CREDITS for list of people who contributed to this
+# project.
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of
+# the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+# MA 02111-1307 USA
+#
+
+include $(TOPDIR)/config.mk
+
+LIB    = $(obj)lib$(BOARD).a
+
+COBJS-y        := $(BOARD).o
+
+COBJS  := $(COBJS-y)
+SRCS   := $(SOBJS:.o=.S) $(COBJS:.o=.c)
+OBJS   := $(addprefix $(obj),$(COBJS))
+SOBJS  := $(addprefix $(obj),$(SOBJS))
+
+$(LIB):        $(obj).depend $(OBJS)
+       $(AR) $(ARFLAGS) $@ $(OBJS)
+
+clean:
+       rm -f $(SOBJS) $(OBJS)
+
+distclean:     clean
+       rm -f $(LIB) core *.bak $(obj).depend
+
+#########################################################################
+
+# defines $(obj).depend target
+include $(SRCTREE)/rules.mk
+
+sinclude $(obj).depend
+
+#########################################################################
diff --git a/board/pdm360ng/config.mk b/board/pdm360ng/config.mk
new file mode 100644 (file)
index 0000000..c3b07dd
--- /dev/null
@@ -0,0 +1,24 @@
+#
+# (C) Copyright 2009
+# Michael Weiß, ifm ecomatic gmbh, michael.weiss@ifm.com
+#
+# See file CREDITS for list of people who contributed to this
+# project.
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of
+# the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+# MA 02111-1307 USA
+#
+
+TEXT_BASE = 0xF0000000
diff --git a/board/pdm360ng/pdm360ng.c b/board/pdm360ng/pdm360ng.c
new file mode 100644 (file)
index 0000000..8fe5ac8
--- /dev/null
@@ -0,0 +1,650 @@
+/*
+ * (C) Copyright 2009, 2010 Wolfgang Denk <wd@denx.de>
+ *
+ * (C) Copyright 2009-2010
+ * Michael Weiß, ifm ecomatic gmbh, michael.weiss@ifm.com
+ *
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of
+ * the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ */
+
+#include <common.h>
+#include <asm/bitops.h>
+#include <command.h>
+#include <asm/io.h>
+#include <asm/processor.h>
+#include <asm/mpc512x.h>
+#include <fdt_support.h>
+#include <flash.h>
+#ifdef CONFIG_MISC_INIT_R
+#include <i2c.h>
+#endif
+#include <serial.h>
+#include <jffs2/load_kernel.h>
+#include <mtd_node.h>
+
+DECLARE_GLOBAL_DATA_PTR;
+
+extern flash_info_t flash_info[];
+ulong flash_get_size (phys_addr_t base, int banknum);
+
+/* Clocks in use */
+#define SCCR1_CLOCKS_EN        (CLOCK_SCCR1_CFG_EN |                           \
+                        CLOCK_SCCR1_LPC_EN |                           \
+                        CLOCK_SCCR1_NFC_EN |                           \
+                        CLOCK_SCCR1_PSC_EN(CONFIG_PSC_CONSOLE) |       \
+                        CLOCK_SCCR1_PSCFIFO_EN |                       \
+                        CLOCK_SCCR1_DDR_EN |                           \
+                        CLOCK_SCCR1_FEC_EN |                           \
+                        CLOCK_SCCR1_TPR_EN)
+
+#define SCCR2_CLOCKS_EN        (CLOCK_SCCR2_MEM_EN |           \
+                        CLOCK_SCCR2_SPDIF_EN |         \
+                        CLOCK_SCCR2_DIU_EN |           \
+                        CLOCK_SCCR2_I2C_EN)
+
+int board_early_init_f(void)
+{
+       volatile immap_t *im = (immap_t *)CONFIG_SYS_IMMR;
+
+       /*
+        * Initialize Local Window for FLASH-Bank1 access (CS1)
+        */
+       out_be32(&im->sysconf.lpcs1aw,
+               CSAW_START(CONFIG_SYS_FLASH1_BASE) |
+               CSAW_STOP(CONFIG_SYS_FLASH1_BASE, CONFIG_SYS_FLASH_SIZE)
+       );
+       out_be32(&im->lpc.cs_cfg[1], CONFIG_SYS_CS1_CFG);
+
+       /*
+        * Local Window for MRAM access (CS2)
+        */
+       out_be32(&im->sysconf.lpcs2aw,
+               CSAW_START(CONFIG_SYS_MRAM_BASE) |
+               CSAW_STOP(CONFIG_SYS_MRAM_BASE, CONFIG_SYS_MRAM_SIZE)
+       );
+       out_be32(&im->lpc.cs_cfg[2], CONFIG_SYS_CS2_CFG);
+
+       sync_law(&im->sysconf.lpcs2aw);
+
+       /*
+        * Configure Flash Speed
+        */
+       out_be32(&im->lpc.cs_cfg[0], CONFIG_SYS_CS0_CFG);
+       out_be32(&im->lpc.altr, CONFIG_SYS_CS_ALETIMING);
+
+       /*
+        * Enable clocks
+        */
+       out_be32(&im->clk.sccr[0], SCCR1_CLOCKS_EN);
+       out_be32(&im->clk.sccr[1], SCCR2_CLOCKS_EN);
+#if defined(CONFIG_IIM) || defined(CONFIG_CMD_FUSE)
+       setbits_be32(&im->clk.sccr[1], CLOCK_SCCR2_IIM_EN);
+#endif
+
+       return 0;
+}
+
+sdram_conf_t mddrc_config[] = {
+       {
+               (512 << 20),    /* 512 MB RAM configuration */
+               {
+                       CONFIG_SYS_MDDRC_SYS_CFG,
+                       CONFIG_SYS_MDDRC_TIME_CFG0,
+                       CONFIG_SYS_MDDRC_TIME_CFG1,
+                       CONFIG_SYS_MDDRC_TIME_CFG2
+               }
+       },
+       {
+               (128 << 20),    /* 128 MB RAM configuration */
+               {
+                       CONFIG_SYS_MDDRC_SYS_CFG_ALT1,
+                       CONFIG_SYS_MDDRC_TIME_CFG0_ALT1,
+                       CONFIG_SYS_MDDRC_TIME_CFG1_ALT1,
+                       CONFIG_SYS_MDDRC_TIME_CFG2_ALT1
+               }
+       },
+};
+
+phys_size_t initdram (int board_type)
+{
+       int i;
+       u32 msize = 0;
+       u32 pdm360ng_init_seq[] = {
+               CONFIG_SYS_DDRCMD_NOP,
+               CONFIG_SYS_DDRCMD_NOP,
+               CONFIG_SYS_DDRCMD_NOP,
+               CONFIG_SYS_DDRCMD_NOP,
+               CONFIG_SYS_DDRCMD_NOP,
+               CONFIG_SYS_DDRCMD_NOP,
+               CONFIG_SYS_DDRCMD_NOP,
+               CONFIG_SYS_DDRCMD_NOP,
+               CONFIG_SYS_DDRCMD_NOP,
+               CONFIG_SYS_DDRCMD_NOP,
+               CONFIG_SYS_DDRCMD_PCHG_ALL,
+               CONFIG_SYS_DDRCMD_NOP,
+               CONFIG_SYS_DDRCMD_RFSH,
+               CONFIG_SYS_DDRCMD_NOP,
+               CONFIG_SYS_DDRCMD_RFSH,
+               CONFIG_SYS_DDRCMD_NOP,
+               CONFIG_SYS_MICRON_INIT_DEV_OP,
+               CONFIG_SYS_DDRCMD_NOP,
+               CONFIG_SYS_DDRCMD_EM2,
+               CONFIG_SYS_DDRCMD_NOP,
+               CONFIG_SYS_DDRCMD_PCHG_ALL,
+               CONFIG_SYS_DDRCMD_EM2,
+               CONFIG_SYS_DDRCMD_EM3,
+               CONFIG_SYS_DDRCMD_EN_DLL,
+               CONFIG_SYS_DDRCMD_RES_DLL,
+               CONFIG_SYS_DDRCMD_PCHG_ALL,
+               CONFIG_SYS_DDRCMD_RFSH,
+               CONFIG_SYS_DDRCMD_RFSH,
+               CONFIG_SYS_MICRON_INIT_DEV_OP,
+               CONFIG_SYS_DDRCMD_OCD_DEFAULT,
+               CONFIG_SYS_DDRCMD_OCD_EXIT,
+               CONFIG_SYS_DDRCMD_PCHG_ALL,
+               CONFIG_SYS_DDRCMD_NOP
+       };
+
+       for (i = 0; i < ARRAY_SIZE(mddrc_config); i++) {
+               msize = fixed_sdram(&mddrc_config[i].cfg, pdm360ng_init_seq,
+                                   ARRAY_SIZE(pdm360ng_init_seq));
+               if (msize == mddrc_config[i].size)
+                       break;
+       }
+
+       return msize;
+}
+
+#if defined(CONFIG_SERIAL_MULTI)
+static int set_lcd_brightness(char *);
+#endif
+
+int misc_init_r(void)
+{
+       volatile immap_t *im = (immap_t *)CONFIG_SYS_IMMR;
+
+       /*
+        * Re-configure flash setup using auto-detected info
+        */
+       if (flash_info[1].size > 0) {
+               out_be32(&im->sysconf.lpcs1aw,
+                       CSAW_START(gd->bd->bi_flashstart + flash_info[1].size) |
+                       CSAW_STOP(gd->bd->bi_flashstart + flash_info[1].size,
+                                 flash_info[1].size));
+               sync_law(&im->sysconf.lpcs1aw);
+               /*
+                * Re-check to get correct base address
+                */
+               flash_get_size (gd->bd->bi_flashstart + flash_info[1].size, 1);
+       } else {
+               /* Disable Bank 1 */
+               out_be32(&im->sysconf.lpcs1aw, 0x01000100);
+               sync_law(&im->sysconf.lpcs1aw);
+       }
+
+       out_be32(&im->sysconf.lpcs0aw,
+               CSAW_START(gd->bd->bi_flashstart) |
+               CSAW_STOP(gd->bd->bi_flashstart, flash_info[0].size));
+       sync_law(&im->sysconf.lpcs0aw);
+
+       /*
+        * Re-check to get correct base address
+        */
+       flash_get_size (gd->bd->bi_flashstart, 0);
+
+       /*
+        * Re-do flash protection upon new addresses
+        */
+       flash_protect (FLAG_PROTECT_CLEAR,
+                      gd->bd->bi_flashstart, 0xffffffff,
+                      &flash_info[0]);
+
+       /* Monitor protection ON by default */
+       flash_protect (FLAG_PROTECT_SET,
+                      CONFIG_SYS_MONITOR_BASE,
+                      CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN - 1,
+                      &flash_info[0]);
+
+       /* Environment protection ON by default */
+       flash_protect (FLAG_PROTECT_SET,
+                      CONFIG_ENV_ADDR,
+                      CONFIG_ENV_ADDR + CONFIG_ENV_SECT_SIZE - 1,
+                      &flash_info[0]);
+
+#ifdef CONFIG_ENV_ADDR_REDUND
+       /* Redundant environment protection ON by default */
+       flash_protect (FLAG_PROTECT_SET,
+                      CONFIG_ENV_ADDR_REDUND,
+                      CONFIG_ENV_ADDR_REDUND + CONFIG_ENV_SECT_SIZE - 1,
+                      &flash_info[0]);
+#endif
+
+#ifdef CONFIG_FSL_DIU_FB
+# if   !(defined(CONFIG_VIDEO) || defined(CONFIG_CFB_CONSOLE))
+       mpc5121_diu_init();
+#endif
+#if defined(CONFIG_SERIAL_MULTI)
+       set_lcd_brightness(0);
+#endif
+       /* Switch LCD-Backlight and LVDS-Interface on */
+       setbits_be32(&im->gpio.gpdir, 0x01040000);
+       clrsetbits_be32(&im->gpio.gpdat, 0x01000000, 0x00040000);
+#endif
+
+#if defined(CONFIG_HARD_I2C)
+       if (!getenv("ethaddr")) {
+               uchar buf[6];
+               uchar ifm_oui[3] = { 0, 2, 1, };
+               int ret;
+
+               /* I2C-0 for on-board eeprom */
+               i2c_set_bus_num(CONFIG_SYS_I2C_EEPROM_BUS_NUM);
+
+               /* Read ethaddr from EEPROM */
+               ret = i2c_read(CONFIG_SYS_I2C_EEPROM_ADDR,
+                              CONFIG_SYS_I2C_EEPROM_MAC_OFFSET, 1, buf, 6);
+               if (ret != 0) {
+                       printf("Error: Unable to read MAC from I2C"
+                               " EEPROM at address %02X:%02X\n",
+                               CONFIG_SYS_I2C_EEPROM_ADDR,
+                               CONFIG_SYS_I2C_EEPROM_MAC_OFFSET);
+                       return 1;
+               }
+
+               /* Owned by IFM ? */
+               if (memcmp(buf, ifm_oui, sizeof(ifm_oui))) {
+                       printf("Illegal MAC address in EEPROM: %pM\n", buf);
+                       return 1;
+               }
+
+               eth_setenv_enetaddr("ethaddr", buf);
+       }
+#endif /* defined(CONFIG_HARD_I2C) */
+
+       return 0;
+}
+
+static  iopin_t ioregs_init[] = {
+       /* FUNC1=LPC_CS4 */
+       {
+               offsetof(struct ioctrl512x, io_control_pata_ce1), 1, 0,
+               IO_PIN_FMUX(1) | IO_PIN_HOLD(0) | IO_PIN_PUD(1) |
+               IO_PIN_PUE(1) | IO_PIN_ST(0) | IO_PIN_DS(3)
+       },
+       /* FUNC3=GPIO10 */
+       {
+               offsetof(struct ioctrl512x, io_control_pata_ce2), 1, 0,
+               IO_PIN_FMUX(3) | IO_PIN_HOLD(0) | IO_PIN_PUD(0) |
+               IO_PIN_PUE(0) | IO_PIN_ST(0) | IO_PIN_DS(0)
+       },
+       /* FUNC1=CAN3_TX */
+       {
+               offsetof(struct ioctrl512x, io_control_pata_isolate), 1, 0,
+               IO_PIN_FMUX(1) | IO_PIN_HOLD(0) | IO_PIN_PUD(0) |
+               IO_PIN_PUE(0) | IO_PIN_ST(0) | IO_PIN_DS(0)
+       },
+       /* FUNC3=GPIO14 */
+       {
+               offsetof(struct ioctrl512x, io_control_pata_iochrdy), 1, 0,
+               IO_PIN_FMUX(3) | IO_PIN_HOLD(0) | IO_PIN_PUD(0) |
+               IO_PIN_PUE(0) | IO_PIN_ST(0) | IO_PIN_DS(0)
+       },
+       /* FUNC2=DIU_LD22 Sets Next 2 to DIU_LD pads */
+       /* DIU_LD22-DIU_LD23 */
+       {
+               offsetof(struct ioctrl512x, io_control_pci_ad31), 2, 0,
+               IO_PIN_FMUX(2) | IO_PIN_HOLD(0) | IO_PIN_PUD(0) |
+               IO_PIN_PUE(0) | IO_PIN_ST(0) | IO_PIN_DS(1)
+       },
+       /* FUNC2=USB1_DATA7 Sets Next 12 to USB1 pads */
+       /* USB1_DATA7-USB1_DATA0, USB1_STOP, USB1_NEXT, USB1_CLK, USB1_DIR */
+       {
+               offsetof(struct ioctrl512x, io_control_pci_ad29), 12, 0,
+               IO_PIN_FMUX(2) | IO_PIN_HOLD(0) | IO_PIN_PUD(0) |
+               IO_PIN_PUE(0) | IO_PIN_ST(0) | IO_PIN_DS(1)
+       },
+       /* FUNC1=VIU_DATA0 Sets Next 3 to VIU_DATA pads */
+       /* VIU_DATA0-VIU_DATA2 */
+       {
+               offsetof(struct ioctrl512x, io_control_pci_ad17), 3, 0,
+               IO_PIN_FMUX(1) | IO_PIN_HOLD(0) | IO_PIN_PUD(0) |
+               IO_PIN_PUE(0) | IO_PIN_ST(0) | IO_PIN_DS(1)
+       },
+       /* FUNC2=FEC_TXD_0 */
+       {
+               offsetof(struct ioctrl512x, io_control_pci_ad14), 1, 0,
+               IO_PIN_FMUX(2) | IO_PIN_HOLD(0) | IO_PIN_PUD(0) |
+               IO_PIN_PUE(0) | IO_PIN_ST(0) | IO_PIN_DS(1)
+       },
+       /* FUNC1=VIU_DATA3 Sets Next 2 to VIU_DATA pads */
+       /* VIU_DATA3, VIU_DATA4 */
+       {
+               offsetof(struct ioctrl512x, io_control_pci_ad13), 2, 0,
+               IO_PIN_FMUX(1) | IO_PIN_HOLD(0) | IO_PIN_PUD(0) |
+               IO_PIN_PUE(0) | IO_PIN_ST(0) | IO_PIN_DS(1)
+       },
+       /* FUNC2=FEC_RXD_1 Sets Next 12 to FEC pads */
+       /* FEC_RXD_1, FEC_RXD_0, FEC_RX_CLK, FEC_TX_CLK, FEC_RX_ER, FEC_RX_DV */
+       /* FEC_TX_EN, FEC_TX_ER, FEC_CRS, FEC_MDC, FEC_MDIO, FEC_COL */
+       {
+               offsetof(struct ioctrl512x, io_control_pci_ad11), 12, 0,
+               IO_PIN_FMUX(2) | IO_PIN_HOLD(0) | IO_PIN_PUD(0) |
+               IO_PIN_PUE(0) | IO_PIN_ST(0) | IO_PIN_DS(1)
+       },
+       /* FUNC2=DIU_LD03 Sets Next 25 to DIU pads */
+       /* DIU_LD00-DIU_LD21 */
+       {
+               offsetof(struct ioctrl512x, io_control_pci_cbe0), 22, 0,
+               IO_PIN_FMUX(2) | IO_PIN_HOLD(0) | IO_PIN_PUD(0) |
+               IO_PIN_PUE(0) | IO_PIN_ST(0) | IO_PIN_DS(1)
+       },
+       /* FUNC2=DIU_CLK Sets Next 3 to DIU pads */
+       /* DIU_CLK, DIU_VSYNC, DIU_HSYNC */
+       {
+               offsetof(struct ioctrl512x, io_control_spdif_txclk), 3, 0,
+               IO_PIN_FMUX(2) | IO_PIN_HOLD(0) | IO_PIN_PUD(0) |
+               IO_PIN_PUE(0) | IO_PIN_ST(0) | IO_PIN_DS(3)
+       },
+       /* FUNC2=CAN3_RX */
+       {
+               offsetof(struct ioctrl512x, io_control_irq1), 1, 0,
+               IO_PIN_FMUX(2) | IO_PIN_HOLD(0) | IO_PIN_PUD(0) |
+               IO_PIN_PUE(0) | IO_PIN_ST(0) | IO_PIN_DS(0)
+       },
+       /* Sets lowest slew on 2 CAN_TX Pins*/
+       {
+               offsetof(struct ioctrl512x, io_control_can1_tx), 2, 0,
+               IO_PIN_FMUX(0) | IO_PIN_HOLD(0) | IO_PIN_PUD(0) |
+               IO_PIN_PUE(0) | IO_PIN_ST(0) | IO_PIN_DS(0)
+       },
+       /* FUNC3=CAN4_TX Sets Next 2 to CAN4 pads */
+       /* CAN4_TX, CAN4_RX */
+       {
+               offsetof(struct ioctrl512x, io_control_j1850_tx), 2, 0,
+               IO_PIN_FMUX(3) | IO_PIN_HOLD(0) | IO_PIN_PUD(0) |
+               IO_PIN_PUE(0) | IO_PIN_ST(0) | IO_PIN_DS(0)
+       },
+       /* FUNC3=GPIO8 Sets Next 2 to GPIO pads */
+       /* GPIO8, GPIO9 */
+       {
+               offsetof(struct ioctrl512x, io_control_psc0_0), 2, 0,
+               IO_PIN_FMUX(3) | IO_PIN_HOLD(0) | IO_PIN_PUD(0) |
+               IO_PIN_PUE(0) | IO_PIN_ST(0) | IO_PIN_DS(0)
+       },
+       /* FUNC1=FEC_TXD_1 Sets Next 3 to FEC pads */
+       /* FEC_TXD_1, FEC_TXD_2, FEC_TXD_3 */
+       {
+               offsetof(struct ioctrl512x, io_control_psc0_4), 3, 0,
+               IO_PIN_FMUX(1) | IO_PIN_HOLD(0) | IO_PIN_PUD(0) |
+               IO_PIN_PUE(0) | IO_PIN_ST(0) | IO_PIN_DS(3)
+       },
+       /* FUNC1=FEC_RXD_3 Sets Next 2 to FEC pads */
+       /* FEC_RXD_3, FEC_RXD_2 */
+       {
+               offsetof(struct ioctrl512x, io_control_psc1_4), 2, 0,
+               IO_PIN_FMUX(1) | IO_PIN_HOLD(0) | IO_PIN_PUD(0) |
+               IO_PIN_PUE(0) | IO_PIN_ST(0) | IO_PIN_DS(3)
+       },
+       /* FUNC3=GPIO17 */
+       {
+               offsetof(struct ioctrl512x, io_control_psc2_1), 1, 0,
+               IO_PIN_FMUX(3) | IO_PIN_HOLD(0) | IO_PIN_PUD(0) |
+               IO_PIN_PUE(0) | IO_PIN_ST(0) | IO_PIN_DS(0)
+       },
+       /* FUNC3=GPIO2/GPT2 Sets Next 3 to GPIO pads */
+       /* GPIO2, GPIO20, GPIO21 */
+       {
+               offsetof(struct ioctrl512x, io_control_psc2_4), 3, 0,
+               IO_PIN_FMUX(3) | IO_PIN_HOLD(0) | IO_PIN_PUD(0) |
+               IO_PIN_PUE(0) | IO_PIN_ST(0) | IO_PIN_DS(0)
+       },
+       /* FUNC2=VIU_PIX_CLK */
+       {
+               offsetof(struct ioctrl512x, io_control_psc3_4), 1, 0,
+               IO_PIN_FMUX(2) | IO_PIN_HOLD(0) | IO_PIN_PUD(0) |
+               IO_PIN_PUE(0) | IO_PIN_ST(0) | IO_PIN_DS(3)
+       },
+       /* FUNC3=GPIO24 Sets Next 2 to GPIO pads */
+       /* GPIO24, GPIO25 */
+       {
+               offsetof(struct ioctrl512x, io_control_psc4_0), 2, 0,
+               IO_PIN_FMUX(3) | IO_PIN_HOLD(0) | IO_PIN_PUD(0) |
+               IO_PIN_PUE(0) | IO_PIN_ST(0) | IO_PIN_DS(0)
+       },
+       /* FUNC1=NFC_CE2 */
+       {
+               offsetof(struct ioctrl512x, io_control_psc4_4), 1, 0,
+               IO_PIN_FMUX(1) | IO_PIN_HOLD(0) | IO_PIN_PUD(1) |
+               IO_PIN_PUE(1) | IO_PIN_ST(0) | IO_PIN_DS(0)
+       },
+       /* FUNC2=VIU_DATA5 Sets Next 5 to VIU_DATA pads */
+       /* VIU_DATA5-VIU_DATA9 */
+       {
+               offsetof(struct ioctrl512x, io_control_psc5_0), 5, 0,
+               IO_PIN_FMUX(2) | IO_PIN_HOLD(0) | IO_PIN_PUD(0) |
+               IO_PIN_PUE(0) | IO_PIN_ST(0) | IO_PIN_DS(3)
+       },
+       /* FUNC1=LPC_TSIZ1 Sets Next 2 to LPC_TSIZ pads */
+       /* LPC_TSIZ1-LPC_TSIZ2 */
+       {
+               offsetof(struct ioctrl512x, io_control_psc6_0), 2, 0,
+               IO_PIN_FMUX(1) | IO_PIN_HOLD(0) | IO_PIN_PUD(0) |
+               IO_PIN_PUE(0) | IO_PIN_ST(0) | IO_PIN_DS(3)
+       },
+       /* FUNC1=LPC_TS */
+       {
+               offsetof(struct ioctrl512x, io_control_psc6_4), 1, 0,
+               IO_PIN_FMUX(1) | IO_PIN_HOLD(0) | IO_PIN_PUD(0) |
+               IO_PIN_PUE(0) | IO_PIN_ST(0) | IO_PIN_DS(3)
+       },
+       /* FUNC3=GPIO16 */
+       {
+               offsetof(struct ioctrl512x, io_control_psc7_0), 1, 0,
+               IO_PIN_FMUX(3) | IO_PIN_HOLD(0) | IO_PIN_PUD(0) |
+               IO_PIN_PUE(0) | IO_PIN_ST(0) | IO_PIN_DS(0)
+       },
+       /* FUNC3=GPIO18 Sets Next 3 to GPIO pads */
+       /* GPIO18-GPIO19, GPT7/GPIO7 */
+       {
+               offsetof(struct ioctrl512x, io_control_psc7_2), 3, 0,
+               IO_PIN_FMUX(3) | IO_PIN_HOLD(0) | IO_PIN_PUD(0) |
+               IO_PIN_PUE(0) | IO_PIN_ST(0) | IO_PIN_DS(0)
+       },
+       /* FUNC3=GPIO0/GPT0 */
+       {
+               offsetof(struct ioctrl512x, io_control_psc8_4), 1, 0,
+               IO_PIN_FMUX(3) | IO_PIN_HOLD(0) | IO_PIN_PUD(0) |
+               IO_PIN_PUE(0) | IO_PIN_ST(0) | IO_PIN_DS(0)
+       },
+       /* FUNC3=GPIO11 Sets Next 4 to GPIO pads */
+       /* GPIO11, GPIO2, GPIO12, GPIO13 */
+       {
+               offsetof(struct ioctrl512x, io_control_psc10_3), 4, 0,
+               IO_PIN_FMUX(3) | IO_PIN_HOLD(0) | IO_PIN_PUD(0) |
+               IO_PIN_PUE(0) | IO_PIN_ST(0) | IO_PIN_DS(0)
+       },
+       /* FUNC2=DIU_DE */
+       {
+               offsetof(struct ioctrl512x, io_control_psc11_4), 1, 0,
+               IO_PIN_FMUX(2) | IO_PIN_HOLD(0) | IO_PIN_PUD(0) |
+               IO_PIN_PUE(0) | IO_PIN_ST(0) | IO_PIN_DS(3)
+       }
+};
+
+int checkboard (void)
+{
+       volatile immap_t *im = (immap_t *)CONFIG_SYS_IMMR;
+
+       puts("Board: PDM360NG\n");
+
+       /* initialize function mux & slew rate IO inter alia on IO Pins  */
+
+       iopin_initialize(ioregs_init, ARRAY_SIZE(ioregs_init));
+
+       /* initialize IO_CONTROL_GP (GPIO/GPT-mux-register) */
+       setbits_be32(&im->io_ctrl.io_control_gp,
+                    (1 << 0) |   /* GP_MUX7->GPIO7 */
+                    (1 << 5));   /* GP_MUX2->GPIO2 */
+
+       /* configure GPIO24 (VIU_CE), output/high */
+       setbits_be32(&im->gpio.gpdir, 0x80);
+       setbits_be32(&im->gpio.gpdat, 0x80);
+
+       return 0;
+}
+
+#if defined(CONFIG_OF_LIBFDT) && defined(CONFIG_OF_BOARD_SETUP)
+#ifdef CONFIG_FDT_FIXUP_PARTITIONS
+struct node_info nodes[] = {
+       { "fsl,mpc5121-nfc",    MTD_DEV_TYPE_NAND, },
+       { "cfi-flash",          MTD_DEV_TYPE_NOR,  },
+};
+#endif
+
+void ft_board_setup(void *blob, bd_t *bd)
+{
+       u32 val[8];
+       int rc, i = 0;
+
+       ft_cpu_setup(blob, bd);
+       fdt_fixup_memory(blob, (u64)bd->bi_memstart, (u64)bd->bi_memsize);
+#ifdef CONFIG_FDT_FIXUP_PARTITIONS
+       fdt_fixup_mtdparts(blob, nodes, ARRAY_SIZE(nodes));
+#endif
+
+       /* Fixup NOR FLASH mapping */
+       val[i++] = 0;                           /* chip select number */
+       val[i++] = 0;                           /* always 0 */
+       val[i++] = gd->bd->bi_flashstart;
+       val[i++] = gd->bd->bi_flashsize;
+
+       /* Fixup MRAM mapping */
+       val[i++] = 2;                           /* chip select number */
+       val[i++] = 0;                           /* always 0 */
+       val[i++] = CONFIG_SYS_MRAM_BASE;
+       val[i++] = CONFIG_SYS_MRAM_SIZE;
+
+       rc = fdt_find_and_setprop(blob, "/localbus", "ranges",
+                                 val, i * sizeof(u32), 1);
+       if (rc)
+               printf("Unable to update localbus ranges, err=%s\n",
+                      fdt_strerror(rc));
+
+       /* Fixup reg property in NOR Flash node */
+       i = 0;
+       val[i++] = 0;                   /* always 0 */
+       val[i++] = 0;                   /* start at offset 0 */
+       val[i++] = flash_info[0].size;  /* size of Bank 0 */
+
+       /* Second Bank available? */
+       if (flash_info[1].size > 0) {
+               val[i++] = 0;                   /* always 0 */
+               val[i++] = flash_info[0].size;  /* offset of Bank 1 */
+               val[i++] = flash_info[1].size;  /* size of Bank 1 */
+       }
+
+       rc = fdt_find_and_setprop(blob, "/localbus/flash", "reg",
+                                 val, i * sizeof(u32), 1);
+       if (rc)
+               printf("Unable to update flash reg property, err=%s\n",
+                      fdt_strerror(rc));
+}
+#endif /* defined(CONFIG_OF_LIBFDT) && defined(CONFIG_OF_BOARD_SETUP) */
+
+#if defined(CONFIG_SERIAL_MULTI)
+/*
+ * If argument is NULL, set the LCD brightness to the
+ * value from "brightness" environment variable. Set
+ * the LCD brightness to the value specified by the
+ * argument otherwise. Default brightness is zero.
+ */
+#define MAX_BRIGHTNESS 99
+static int set_lcd_brightness(char *brightness)
+{
+       struct stdio_dev *cop_port;
+       char *env;
+       char cmd_buf[20];
+       int val = 0;
+       int cs = 0;
+       int len, i;
+
+       if (brightness) {
+               val = simple_strtol(brightness, NULL, 10);
+       } else {
+               env = getenv("brightness");
+               if (env)
+                       val = simple_strtol(env, NULL, 10);
+       }
+
+       if (val < 0)
+               val = 0;
+
+       if (val > MAX_BRIGHTNESS)
+               val = MAX_BRIGHTNESS;
+
+       sprintf(cmd_buf, "$SB;%04d;", val);
+
+       len = strlen(cmd_buf);
+       for (i = 1; i <= len; i++)
+               cs += cmd_buf[i];
+
+       cs = (~cs + 1) & 0xff;
+       sprintf(cmd_buf + len, "%02X\n", cs);
+
+       /* IO Coprocessor communication */
+       cop_port = open_port(4, CONFIG_SYS_PDM360NG_COPROC_BAUDRATE);
+       if (!cop_port) {
+               printf("Error: Can't open IO Coprocessor port.\n");
+               return -1;
+       }
+
+       debug("%s: cmd: %s", __func__, cmd_buf);
+       write_port(cop_port, cmd_buf);
+       /*
+        * Wait for transmission and maybe response data
+        * before closing the port.
+        */
+       udelay(CONFIG_SYS_PDM360NG_COPROC_READ_DELAY);
+       memset(cmd_buf, 0, sizeof(cmd_buf));
+       len = read_port(cop_port, cmd_buf, sizeof(cmd_buf));
+       if (len)
+               printf("Error: %s\n", cmd_buf);
+
+       close_port(4);
+
+       return 0;
+}
+
+static int cmd_lcd_brightness(cmd_tbl_t *cmdtp, int flag,
+                             int argc, char *argv[])
+{
+       if (argc < 2) {
+               cmd_usage(cmdtp);
+               return 1;
+       }
+
+       return set_lcd_brightness(argv[1]);
+}
+
+U_BOOT_CMD(lcdbr, 2, 1, cmd_lcd_brightness,
+       "set LCD brightness",
+       "<brightness> - set LCD backlight level to <brightness>.\n"
+);
+#endif /* CONFIG_SERIAL_MULTI */
index aae105716039a56225f78f54b8f06c3ba7220bc5..604d0d305d2ab29df4859d894024504bf89952e8 100644 (file)
@@ -56,7 +56,7 @@ SECTIONS
   .plt : { *(.plt) }
   .text      :
   {
-    arch/ppc/cpu/74xx_7xx/start.o      (.text)
+    arch/powerpc/cpu/74xx_7xx/start.o  (.text)
 
 /* store the environment in a seperate sector in the boot flash */
 /*    . = env_offset; */
index 4af7d13bf3034e1f6669e17bca86936f4aa54064..9f9812ad0734d8ca7c4d1922a8e17298de157881 100644 (file)
  */
 
 #include <ppc_asm.tmpl>
+#include <asm/mmu.h>
 #include <config.h>
 
-/* General */
-#define TLB_VALID   0x00000200
-
-/* Supported page sizes */
-#define SZ_1K      0x00000000
-#define SZ_4K      0x00000010
-#define SZ_16K     0x00000020
-#define SZ_64K     0x00000030
-#define SZ_256K            0x00000040
-#define SZ_1M      0x00000050
-#define SZ_16M     0x00000070
-#define SZ_256M            0x00000090
-
-/* Storage attributes */
-#define SA_W       0x00000800      /* Write-through */
-#define SA_I       0x00000400      /* Caching inhibited */
-#define SA_M       0x00000200      /* Memory coherence */
-#define SA_G       0x00000100      /* Guarded */
-#define SA_E       0x00000080      /* Endian */
-
-/* Access control */
-#define AC_X       0x00000024      /* Execute */
-#define AC_W       0x00000012      /* Write */
-#define AC_R       0x00000009      /* Read */
-
-/* Some handy macros */
-
-#define EPN(e)         ((e) & 0xfffffc00)
-#define TLB0(epn,sz)   ( (EPN((epn)) | (sz) | TLB_VALID ) )
-#define TLB1(rpn,erpn) ( ((rpn)&0xfffffc00) | (erpn) )
-#define TLB2(a)        ( (a)&0x00000fbf )
-
-#define tlbtab_start\
-       mflr    r1  ;\
-       bl 0f       ;
-
-#define tlbtab_end\
-       .long 0, 0, 0   ;   \
-0:     mflr    r0      ;   \
-       mtlr    r1      ;   \
-       blr             ;
-
-#define tlbentry(epn,sz,rpn,erpn,attr)\
-       .long TLB0(epn,sz),TLB1(rpn,erpn),TLB2(attr)
-
-
 /**************************************************************************
  * TLB TABLE
  *
 
 tlbtab:
        tlbtab_start
-       tlbentry( 0xff000000, SZ_16M, 0xff000000, 1, AC_R|AC_W|AC_X|SA_G|SA_I )
-       tlbentry( CONFIG_SYS_PERIPHERAL_BASE, SZ_256M, 0x40000000, 1, AC_R|AC_W|SA_G|SA_I )
-       tlbentry( CONFIG_SYS_ISRAM_BASE, SZ_4K, 0x80000000, 0, AC_R|AC_W|AC_X )
-       tlbentry( CONFIG_SYS_ISRAM_BASE + 0x1000, SZ_4K, 0x80001000, 0, AC_R|AC_W|AC_X )
+       tlbentry(0xff000000, SZ_16M, 0xff000000, 1, AC_RWX | SA_IG )
+       tlbentry(CONFIG_SYS_PERIPHERAL_BASE, SZ_256M, 0x40000000, 1, AC_RW | SA_IG)
+       tlbentry(CONFIG_SYS_ISRAM_BASE, SZ_4K, 0x80000000, 0, AC_RWX)
+       tlbentry(CONFIG_SYS_ISRAM_BASE + 0x1000, SZ_4K, 0x80001000, 0, AC_RWX)
 #ifdef CONFIG_4xx_DCACHE
-       tlbentry( CONFIG_SYS_SDRAM_BASE, SZ_256M, 0x00000000, 0, AC_R|AC_W|AC_X|SA_G)
+       tlbentry(CONFIG_SYS_SDRAM_BASE, SZ_256M, 0x00000000, 0, AC_RWX | SA_G)
 #else
-       tlbentry( CONFIG_SYS_SDRAM_BASE, SZ_256M, 0x00000000, 0, AC_R|AC_W|AC_X|SA_G|SA_I )
+       tlbentry(CONFIG_SYS_SDRAM_BASE, SZ_256M, 0x00000000, 0, AC_RWX | SA_IG)
 #endif
 
 #ifdef CONFIG_SYS_INIT_RAM_DCACHE
        /* TLB-entry for init-ram in dcache (SA_I must be turned off!) */
-       tlbentry( CONFIG_SYS_INIT_RAM_ADDR, SZ_64K, CONFIG_SYS_INIT_RAM_ADDR, 0, AC_R|AC_W|AC_X|SA_G )
+       tlbentry(CONFIG_SYS_INIT_RAM_ADDR, SZ_64K, CONFIG_SYS_INIT_RAM_ADDR, 0, AC_RWX | SA_G)
 #endif
-       tlbentry( CONFIG_SYS_PCI_BASE, SZ_256M, 0x00000000, 2, AC_R|AC_W|SA_G|SA_I )
+       tlbentry(CONFIG_SYS_PCI_BASE, SZ_256M, 0x00000000, 2, AC_RW | SA_IG)
 
        /* PCI */
-       tlbentry( CONFIG_SYS_PCI_MEMBASE, SZ_256M, CONFIG_SYS_PCI_MEMBASE, 3, AC_R|AC_W|SA_G|SA_I )
-       tlbentry( CONFIG_SYS_PCI_MEMBASE1, SZ_256M, CONFIG_SYS_PCI_MEMBASE1, 3, AC_R|AC_W|SA_G|SA_I )
-       tlbentry( CONFIG_SYS_PCI_MEMBASE2, SZ_256M, CONFIG_SYS_PCI_MEMBASE2, 3, AC_R|AC_W|SA_G|SA_I )
+       tlbentry(CONFIG_SYS_PCI_MEMBASE, SZ_256M, CONFIG_SYS_PCI_MEMBASE, 3, AC_RW | SA_IG)
+       tlbentry(CONFIG_SYS_PCI_MEMBASE1, SZ_256M, CONFIG_SYS_PCI_MEMBASE1, 3, AC_RW | SA_IG)
+       tlbentry(CONFIG_SYS_PCI_MEMBASE2, SZ_256M, CONFIG_SYS_PCI_MEMBASE2, 3, AC_RW | SA_IG)
 
        /* NAND */
-       tlbentry( CONFIG_SYS_NAND_BASE, SZ_4K, CONFIG_SYS_NAND_BASE, 1, AC_R|AC_W|AC_X|SA_G|SA_I )
+       tlbentry(CONFIG_SYS_NAND_BASE, SZ_4K, CONFIG_SYS_NAND_BASE, 1, AC_RWX | SA_IG)
        tlbtab_end
index 8203b3cbf1876c3412981112fe5b995cdb365b7e..8fcc1551e533d850487ec48effaf07e5f53221d1 100644 (file)
@@ -1137,7 +1137,7 @@ bool db64460_eth_start (struct eth_device *dev)
 *************************************************************************/
 /*
  * based on Linux code
- * arch/ppc/galileo/EVB64460/mv64460_eth.c - Driver for MV64460X ethernet ports
+ * arch/powerpc/galileo/EVB64460/mv64460_eth.c - Driver for MV64460X ethernet ports
  * Copyright (C) 2002 rabeeh@galileo.co.il
 
  * This program is free software; you can redistribute it and/or
index 6dff003dc1fb3f54de5ea94c268c07d669f5af3c..29dcc0910051a98f2e2d119f291317fddf1ea8d7 100644 (file)
@@ -56,7 +56,7 @@ SECTIONS
   .plt : { *(.plt) }
   .text      :
   {
-    arch/ppc/cpu/74xx_7xx/start.o      (.text)
+    arch/powerpc/cpu/74xx_7xx/start.o  (.text)
 
 /* store the environment in a seperate sector in the boot flash */
 /*    . = env_offset; */
index 8c1a79c4b79ddfad00afda26215942b0dad6f75a..66acaf2713907b2f3d4703d92df2d5be4dcd6f49 100644 (file)
  */
 
 #include <ppc_asm.tmpl>
+#include <asm/mmu.h>
 #include <config.h>
 
-/* General */
-#define TLB_VALID   0x00000200
-
-/* Supported page sizes */
-
-#define SZ_1K      0x00000000
-#define SZ_4K      0x00000010
-#define SZ_16K     0x00000020
-#define SZ_64K     0x00000030
-#define SZ_256K            0x00000040
-#define SZ_1M      0x00000050
-#define SZ_16M     0x00000070
-#define SZ_256M            0x00000090
-
-/* Storage attributes */
-#define SA_W       0x00000800      /* Write-through */
-#define SA_I       0x00000400      /* Caching inhibited */
-#define SA_M       0x00000200      /* Memory coherence */
-#define SA_G       0x00000100      /* Guarded */
-#define SA_E       0x00000080      /* Endian */
-
-/* Access control */
-#define AC_X       0x00000024      /* Execute */
-#define AC_W       0x00000012      /* Write */
-#define AC_R       0x00000009      /* Read */
-
-/* Some handy macros */
-
-#define EPN(e)         ((e) & 0xfffffc00)
-#define TLB0(epn,sz)   ( (EPN((epn)) | (sz) | TLB_VALID ) )
-#define TLB1(rpn,erpn) ( ((rpn)&0xfffffc00) | (erpn) )
-#define TLB2(a)                ( (a)&0x00000fbf )
-
-#define tlbtab_start\
-       mflr    r1  ;\
-       bl 0f       ;
-
-#define tlbtab_end\
-       .long 0, 0, 0   ;   \
-0:     mflr    r0      ;   \
-       mtlr    r1      ;   \
-       blr             ;
-
-#define tlbentry(epn,sz,rpn,erpn,attr)\
-       .long TLB0(epn,sz),TLB1(rpn,erpn),TLB2(attr)
-
-
 /**************************************************************************
  * TLB TABLE
  *
 
 tlbtab:
     tlbtab_start
-    tlbentry( 0xf0000000, SZ_256M, 0xf0000000, 1, AC_R|AC_W|AC_X|SA_G|SA_I)
-    tlbentry( CONFIG_SYS_PERIPHERAL_BASE, SZ_256M, 0x40000000, 1, AC_R|AC_W|SA_G|SA_I)
-    tlbentry( CONFIG_SYS_ISRAM_BASE, SZ_4K, 0x80000000, 0, AC_R|AC_W|AC_X )
-    tlbentry( CONFIG_SYS_ISRAM_BASE + 0x1000, SZ_4K, 0x80001000, 0, AC_R|AC_W|AC_X )
-    tlbentry( CONFIG_SYS_SDRAM_BASE, SZ_256M, 0x00000000, 0, AC_R|AC_W|AC_X|SA_G|SA_I )
-    tlbentry( CONFIG_SYS_PCI_BASE, SZ_256M, 0x00000000, 2, AC_R|AC_W|SA_G|SA_I )
-    tlbentry( CONFIG_SYS_PCI_MEMBASE, SZ_256M, 0x00000000, 3, AC_R|AC_W|SA_G|SA_I )
+    tlbentry( 0xf0000000, SZ_256M, 0xf0000000, 1, AC_RWX | SA_IG)
+    tlbentry( CONFIG_SYS_PERIPHERAL_BASE, SZ_256M, 0x40000000, 1, AC_RW | SA_IG)
+    tlbentry( CONFIG_SYS_ISRAM_BASE, SZ_4K, 0x80000000, 0, AC_RWX )
+    tlbentry( CONFIG_SYS_ISRAM_BASE + 0x1000, SZ_4K, 0x80001000, 0, AC_RWX )
+    tlbentry( CONFIG_SYS_SDRAM_BASE, SZ_256M, 0x00000000, 0, AC_RWX | SA_IG )
+    tlbentry( CONFIG_SYS_PCI_BASE, SZ_256M, 0x00000000, 2, AC_RW | SA_IG )
+    tlbentry( CONFIG_SYS_PCI_MEMBASE, SZ_256M, 0x00000000, 3, AC_RW | SA_IG )
     tlbtab_end
diff --git a/board/psyent/pci5441/u-boot.lds b/board/psyent/pci5441/u-boot.lds
deleted file mode 100644 (file)
index f155800..0000000
+++ /dev/null
@@ -1,136 +0,0 @@
-/*
- * (C) Copyright 2004, Psyent Corporation <www.psyent.com>
- * Scott McNutt <smcnutt@psyent.com>
- *
- * See file CREDITS for list of people who contributed to this
- * project.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.         See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
- * MA 02111-1307 USA
- */
-
-
-OUTPUT_FORMAT("elf32-littlenios2")
-OUTPUT_ARCH(nios2)
-ENTRY(_start)
-
-SECTIONS
-{
-       .text :
-       {
-         arch/nios/cpu2/start.o (.text)
-         *(.text)
-         *(.text.*)
-         *(.gnu.linkonce.t*)
-         *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
-         *(.gnu.linkonce.r*)
-       }
-       . = ALIGN (4);
-       _etext = .;
-       PROVIDE (etext = .);
-
-       /* CMD TABLE - sandwich this in between text and data so
-        * the initialization code relocates the command table as
-        * well -- admittedly, this is just pure laziness ;-)
-        */
-       . = .;
-       __u_boot_cmd_start = .;
-       .u_boot_cmd :
-       {
-         *(.u_boot_cmd)
-       }
-       . = ALIGN(4);
-       __u_boot_cmd_end = .;
-
-       /* INIT DATA sections - "Small" data (see the gcc -G option)
-        * is always gp-relative. Here we make all init data sections
-        * adjacent to simplify the startup code -- and provide
-        * the global pointer for gp-relative access.
-        */
-       _data = .;
-       .data :
-       {
-         *(.data)
-         *(.data.*)
-         *(.gnu.linkonce.d*)
-       }
-
-       . = ALIGN(16);
-       _gp = .;                        /* Global pointer addr */
-       PROVIDE (gp = .);
-
-       .sdata :
-       {
-         *(.sdata)
-         *(.sdata.*)
-         *(.gnu.linkonce.s.*)
-       }
-       . = ALIGN(4);
-
-       _edata = .;
-       PROVIDE (edata = .);
-
-       /* UNINIT DATA - Small uninitialized data is first so it's
-        * adjacent to sdata and can be referenced via gp. The normal
-        * bss follows. We keep it adjacent to simplify init code.
-        */
-       __bss_start = .;
-       .sbss (NOLOAD) :
-       {
-         *(.sbss)
-         *(.sbss.*)
-         *(.gnu.linkonce.sb.*)
-         *(.scommon)
-       }
-       . = ALIGN(4);
-       .bss (NOLOAD) :
-       {
-         *(.bss)
-         *(.bss.*)
-         *(.dynbss)
-         *(COMMON)
-         *(.scommon)
-       }
-       . = ALIGN(4);
-       _end = .;
-       PROVIDE (end = .);
-
-       /* DEBUG -- symbol table, string table, etc. etc.
-        */
-       .stab 0 : { *(.stab) }
-       .stabstr 0 : { *(.stabstr) }
-       .stab.excl 0 : { *(.stab.excl) }
-       .stab.exclstr 0 : { *(.stab.exclstr) }
-       .stab.index 0 : { *(.stab.index) }
-       .stab.indexstr 0 : { *(.stab.indexstr) }
-       .comment 0 : { *(.comment) }
-       .debug          0 : { *(.debug) }
-       .line           0 : { *(.line) }
-       .debug_srcinfo  0 : { *(.debug_srcinfo) }
-       .debug_sfnames  0 : { *(.debug_sfnames) }
-       .debug_aranges  0 : { *(.debug_aranges) }
-       .debug_pubnames 0 : { *(.debug_pubnames) }
-       .debug_info     0 : { *(.debug_info) }
-       .debug_abbrev   0 : { *(.debug_abbrev) }
-       .debug_line     0 : { *(.debug_line) }
-       .debug_frame    0 : { *(.debug_frame) }
-       .debug_str      0 : { *(.debug_str) }
-       .debug_loc      0 : { *(.debug_loc) }
-       .debug_macinfo  0 : { *(.debug_macinfo) }
-       .debug_weaknames 0 : { *(.debug_weaknames) }
-       .debug_funcnames 0 : { *(.debug_funcnames) }
-       .debug_typenames 0 : { *(.debug_typenames) }
-       .debug_varnames  0 : { *(.debug_varnames) }
-}
diff --git a/board/psyent/pk1c20/u-boot.lds b/board/psyent/pk1c20/u-boot.lds
deleted file mode 100644 (file)
index f155800..0000000
+++ /dev/null
@@ -1,136 +0,0 @@
-/*
- * (C) Copyright 2004, Psyent Corporation <www.psyent.com>
- * Scott McNutt <smcnutt@psyent.com>
- *
- * See file CREDITS for list of people who contributed to this
- * project.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.         See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
- * MA 02111-1307 USA
- */
-
-
-OUTPUT_FORMAT("elf32-littlenios2")
-OUTPUT_ARCH(nios2)
-ENTRY(_start)
-
-SECTIONS
-{
-       .text :
-       {
-         arch/nios/cpu2/start.o (.text)
-         *(.text)
-         *(.text.*)
-         *(.gnu.linkonce.t*)
-         *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
-         *(.gnu.linkonce.r*)
-       }
-       . = ALIGN (4);
-       _etext = .;
-       PROVIDE (etext = .);
-
-       /* CMD TABLE - sandwich this in between text and data so
-        * the initialization code relocates the command table as
-        * well -- admittedly, this is just pure laziness ;-)
-        */
-       . = .;
-       __u_boot_cmd_start = .;
-       .u_boot_cmd :
-       {
-         *(.u_boot_cmd)
-       }
-       . = ALIGN(4);
-       __u_boot_cmd_end = .;
-
-       /* INIT DATA sections - "Small" data (see the gcc -G option)
-        * is always gp-relative. Here we make all init data sections
-        * adjacent to simplify the startup code -- and provide
-        * the global pointer for gp-relative access.
-        */
-       _data = .;
-       .data :
-       {
-         *(.data)
-         *(.data.*)
-         *(.gnu.linkonce.d*)
-       }
-
-       . = ALIGN(16);
-       _gp = .;                        /* Global pointer addr */
-       PROVIDE (gp = .);
-
-       .sdata :
-       {
-         *(.sdata)
-         *(.sdata.*)
-         *(.gnu.linkonce.s.*)
-       }
-       . = ALIGN(4);
-
-       _edata = .;
-       PROVIDE (edata = .);
-
-       /* UNINIT DATA - Small uninitialized data is first so it's
-        * adjacent to sdata and can be referenced via gp. The normal
-        * bss follows. We keep it adjacent to simplify init code.
-        */
-       __bss_start = .;
-       .sbss (NOLOAD) :
-       {
-         *(.sbss)
-         *(.sbss.*)
-         *(.gnu.linkonce.sb.*)
-         *(.scommon)
-       }
-       . = ALIGN(4);
-       .bss (NOLOAD) :
-       {
-         *(.bss)
-         *(.bss.*)
-         *(.dynbss)
-         *(COMMON)
-         *(.scommon)
-       }
-       . = ALIGN(4);
-       _end = .;
-       PROVIDE (end = .);
-
-       /* DEBUG -- symbol table, string table, etc. etc.
-        */
-       .stab 0 : { *(.stab) }
-       .stabstr 0 : { *(.stabstr) }
-       .stab.excl 0 : { *(.stab.excl) }
-       .stab.exclstr 0 : { *(.stab.exclstr) }
-       .stab.index 0 : { *(.stab.index) }
-       .stab.indexstr 0 : { *(.stab.indexstr) }
-       .comment 0 : { *(.comment) }
-       .debug          0 : { *(.debug) }
-       .line           0 : { *(.line) }
-       .debug_srcinfo  0 : { *(.debug_srcinfo) }
-       .debug_sfnames  0 : { *(.debug_sfnames) }
-       .debug_aranges  0 : { *(.debug_aranges) }
-       .debug_pubnames 0 : { *(.debug_pubnames) }
-       .debug_info     0 : { *(.debug_info) }
-       .debug_abbrev   0 : { *(.debug_abbrev) }
-       .debug_line     0 : { *(.debug_line) }
-       .debug_frame    0 : { *(.debug_frame) }
-       .debug_str      0 : { *(.debug_str) }
-       .debug_loc      0 : { *(.debug_loc) }
-       .debug_macinfo  0 : { *(.debug_macinfo) }
-       .debug_weaknames 0 : { *(.debug_weaknames) }
-       .debug_funcnames 0 : { *(.debug_funcnames) }
-       .debug_typenames 0 : { *(.debug_typenames) }
-       .debug_varnames  0 : { *(.debug_varnames) }
-}
index f7de95dc8797b2c4bfc097f4becc2cac53fc8230..3f92a9dc438ea241e4920f2a31f0e15ddd044583 100644 (file)
@@ -55,9 +55,9 @@ SECTIONS
     /* WARNING - the following is hand-optimized to fit within */
     /* the sector layout of our flash chips!   XXX FIXME XXX   */
 
-    arch/ppc/cpu/mpc8xx/start.o        (.text)
+    arch/powerpc/cpu/mpc8xx/start.o    (.text)
     common/dlmalloc.o  (.text)
-    arch/ppc/lib/ppcstring.o   (.text)
+    arch/powerpc/lib/ppcstring.o       (.text)
     lib/vsprintf.o     (.text)
     lib/crc32.o                (.text)
     lib/zlib.o         (.text)
index a2b7bc70d9e5f42903cb9904ad848a650286bf40..f212fab28aded11630dfe791f06b535dba283af6 100644 (file)
@@ -55,7 +55,7 @@ SECTIONS
     /* WARNING - the following is hand-optimized to fit within */
     /* the sector layout of our flash chips!   XXX FIXME XXX   */
 
-    arch/ppc/cpu/mpc8xx/start.o        (.text)
+    arch/powerpc/cpu/mpc8xx/start.o    (.text)
     common/dlmalloc.o  (.text)
     lib/vsprintf.o     (.text)
     lib/crc32.o                (.text)
index 4fc18fcf2d9d3b3e141f6d7b73b33379e09781c8..3cf0ba4bff8b276b15adb5d47b576f988a0bf4ae 100644 (file)
@@ -55,10 +55,10 @@ SECTIONS
     /* WARNING - the following is hand-optimized to fit within */
     /* the sector layout of our flash chips!   XXX FIXME XXX   */
 
-    arch/ppc/cpu/mpc8xx/start.o                (.text)
-    arch/ppc/cpu/mpc8xx/cpu_init.o     (.text)
-    arch/ppc/cpu/mpc8xx/interrupts.o   (.text)
-    arch/ppc/cpu/mpc8xx/traps.o                (.text)
+    arch/powerpc/cpu/mpc8xx/start.o            (.text)
+    arch/powerpc/cpu/mpc8xx/cpu_init.o (.text)
+    arch/powerpc/cpu/mpc8xx/interrupts.o       (.text)
+    arch/powerpc/cpu/mpc8xx/traps.o            (.text)
 /***
     . = env_offset;
     common/env_embedded.o      (.text)
index 2161501fff954a6eccf43785cb9a2a8407c174fd..f188b979a3c5ee1350d7949222836a349e0331f9 100644 (file)
@@ -55,9 +55,9 @@ SECTIONS
     /* WARNING - the following is hand-optimized to fit within */
     /* the sector layout of our flash chips!   XXX FIXME XXX   */
 
-    arch/ppc/cpu/mpc8xx/start.o        (.text)
+    arch/powerpc/cpu/mpc8xx/start.o    (.text)
     common/dlmalloc.o  (.text)
-    arch/ppc/lib/ppcstring.o   (.text)
+    arch/powerpc/lib/ppcstring.o       (.text)
     lib/vsprintf.o     (.text)
     lib/crc32.o                (.text)
     lib/zlib.o         (.text)
index f7de95dc8797b2c4bfc097f4becc2cac53fc8230..3f92a9dc438ea241e4920f2a31f0e15ddd044583 100644 (file)
@@ -55,9 +55,9 @@ SECTIONS
     /* WARNING - the following is hand-optimized to fit within */
     /* the sector layout of our flash chips!   XXX FIXME XXX   */
 
-    arch/ppc/cpu/mpc8xx/start.o        (.text)
+    arch/powerpc/cpu/mpc8xx/start.o    (.text)
     common/dlmalloc.o  (.text)
-    arch/ppc/lib/ppcstring.o   (.text)
+    arch/powerpc/lib/ppcstring.o       (.text)
     lib/vsprintf.o     (.text)
     lib/crc32.o                (.text)
     lib/zlib.o         (.text)
index a2b7bc70d9e5f42903cb9904ad848a650286bf40..f212fab28aded11630dfe791f06b535dba283af6 100644 (file)
@@ -55,7 +55,7 @@ SECTIONS
     /* WARNING - the following is hand-optimized to fit within */
     /* the sector layout of our flash chips!   XXX FIXME XXX   */
 
-    arch/ppc/cpu/mpc8xx/start.o        (.text)
+    arch/powerpc/cpu/mpc8xx/start.o    (.text)
     common/dlmalloc.o  (.text)
     lib/vsprintf.o     (.text)
     lib/crc32.o                (.text)
index 0c51d481277753ae1bd9704922f164613858a79f..7763c7fed7b09d5e2ecfbab7fe128a3aa963a5b5 100644 (file)
@@ -52,7 +52,7 @@ SECTIONS
   .plt : { *(.plt) }
   .text      :
   {
-    arch/ppc/cpu/mpc8260/start.o       (.text)
+    arch/powerpc/cpu/mpc8260/start.o   (.text)
     *(.text)
     *(.got1)
     /*. = env_offset; */
index 007f875f0ff6a1648d2cce02f9a0f5b9c9cb89c2..d286714919a44c6a5e330c2d4bbf39948bff15c5 100644 (file)
@@ -21,7 +21,7 @@
  */
 
 /*
- * Ported from arch/ppc/cpu/ppc4xx/i2c.c by AS HARNOIS by
+ * Ported from arch/powerpc/cpu/ppc4xx/i2c.c by AS HARNOIS by
  * Travis B. Sawyer
  * Sandburst Corporation.
  */
index 3198dfdfa148acd4fec24ae50ba7e19e2c74dad8..2bdae06f67b80f238949cf54ad1c2d90de9e1fbd 100644 (file)
  */
 
 #include <ppc_asm.tmpl>
+#include <asm/mmu.h>
 #include <config.h>
 
-/* General */
-#define TLB_VALID   0x00000200
-
-/* Supported page sizes */
-
-#define SZ_1K      0x00000000
-#define SZ_4K      0x00000010
-#define SZ_16K     0x00000020
-#define SZ_64K     0x00000030
-#define SZ_256K            0x00000040
-#define SZ_1M      0x00000050
-#define SZ_16M     0x00000070
-#define SZ_256M            0x00000090
-
-/* Storage attributes */
-#define SA_W       0x00000800      /* Write-through */
-#define SA_I       0x00000400      /* Caching inhibited */
-#define SA_M       0x00000200      /* Memory coherence */
-#define SA_G       0x00000100      /* Guarded */
-#define SA_E       0x00000080      /* Endian */
-
-/* Access control */
-#define AC_X       0x00000024      /* Execute */
-#define AC_W       0x00000012      /* Write */
-#define AC_R       0x00000009      /* Read */
-
-/* Some handy macros */
-
-#define EPN(e)         ((e) & 0xfffffc00)
-#define TLB0(epn,sz)   ( (EPN((epn)) | (sz) | TLB_VALID ) )
-#define TLB1(rpn,erpn) ( ((rpn)&0xfffffc00) | (erpn) )
-#define TLB2(a)                ( (a)&0x00000fbf )
-
-#define tlbtab_start\
-       mflr    r1  ;\
-       bl 0f       ;
-
-#define tlbtab_end\
-       .long 0, 0, 0   ;   \
-0:     mflr    r0      ;   \
-       mtlr    r1      ;   \
-       blr             ;
-
-#define tlbentry(epn,sz,rpn,erpn,attr)\
-       .long TLB0(epn,sz),TLB1(rpn,erpn),TLB2(attr)
-
-
 /**************************************************************************
  * TLB TABLE
  *
 
 tlbtab:
        tlbtab_start
-       tlbentry( 0xf0000000, SZ_256M, 0xf0000000, 1, AC_R|AC_W|AC_X|SA_G|SA_I)
-       tlbentry( CONFIG_SYS_PERIPHERAL_BASE, SZ_256M, 0x40000000, 1, AC_R|AC_W|SA_G|SA_I)
-       tlbentry( CONFIG_SYS_ISRAM_BASE, SZ_256K, 0x80000000, 0, AC_R|AC_W|AC_X|SA_G|SA_I)
-       tlbentry( CONFIG_SYS_SDRAM_BASE, SZ_256M, 0x00000000, 0, AC_R|AC_W|AC_X|SA_G|SA_I )
-       tlbentry( CONFIG_SYS_SDRAM_BASE+0x10000000, SZ_256M, 0x10000000, 0, AC_R|AC_W|AC_X|SA_G|SA_I )
-       tlbentry( CONFIG_SYS_SDRAM_BASE+0x20000000, SZ_256M, 0x20000000, 0, AC_R|AC_W|AC_X|SA_G|SA_I )
-       tlbentry( CONFIG_SYS_SDRAM_BASE+0x30000000, SZ_256M, 0x30000000, 0, AC_R|AC_W|AC_X|SA_G|SA_I )
-       tlbentry( CONFIG_SYS_PCI_BASE, SZ_256M, 0x00000000, 2, AC_R|AC_W|SA_G|SA_I )
-       tlbentry( CONFIG_SYS_PCI_MEMBASE, SZ_256M, 0x00000000, 3, AC_R|AC_W|SA_G|SA_I )
+       tlbentry( 0xf0000000, SZ_256M, 0xf0000000, 1, AC_RWX | SA_IG)
+       tlbentry( CONFIG_SYS_PERIPHERAL_BASE, SZ_256M, 0x40000000, 1, AC_RW | SA_IG)
+       tlbentry( CONFIG_SYS_ISRAM_BASE, SZ_256K, 0x80000000, 0, AC_RWX | SA_IG)
+       tlbentry( CONFIG_SYS_SDRAM_BASE, SZ_256M, 0x00000000, 0, AC_RWX | SA_IG )
+       tlbentry( CONFIG_SYS_SDRAM_BASE+0x10000000, SZ_256M, 0x10000000, 0, AC_RWX | SA_IG )
+       tlbentry( CONFIG_SYS_SDRAM_BASE+0x20000000, SZ_256M, 0x20000000, 0, AC_RWX | SA_IG )
+       tlbentry( CONFIG_SYS_SDRAM_BASE+0x30000000, SZ_256M, 0x30000000, 0, AC_RWX | SA_IG )
+       tlbentry( CONFIG_SYS_PCI_BASE, SZ_256M, 0x00000000, 2, AC_RW | SA_IG )
+       tlbentry( CONFIG_SYS_PCI_MEMBASE, SZ_256M, 0x00000000, 3, AC_RW | SA_IG )
        tlbtab_end
index c1743985378c3207f0fadcdbbcf998d087a03390..6b31b1e7ce3d689fc32c6773f43eae489739325c 100644 (file)
@@ -56,18 +56,18 @@ SECTIONS
     /* WARNING - the following is hand-optimized to fit within */
     /* the sector layout of our flash chips!   XXX FIXME XXX   */
 
-    arch/ppc/cpu/ppc4xx/start.o        (.text)
+    arch/powerpc/cpu/ppc4xx/start.o    (.text)
     board/sandburst/karef/init.o (.text)
-    arch/ppc/cpu/ppc4xx/kgdb.o (.text)
-    arch/ppc/cpu/ppc4xx/traps.o        (.text)
-    arch/ppc/cpu/ppc4xx/interrupts.o   (.text)
-    arch/ppc/cpu/ppc4xx/4xx_uart.o     (.text)
-    arch/ppc/cpu/ppc4xx/cpu_init.o     (.text)
-    arch/ppc/cpu/ppc4xx/speed.o        (.text)
+    arch/powerpc/cpu/ppc4xx/kgdb.o     (.text)
+    arch/powerpc/cpu/ppc4xx/traps.o    (.text)
+    arch/powerpc/cpu/ppc4xx/interrupts.o       (.text)
+    arch/powerpc/cpu/ppc4xx/4xx_uart.o (.text)
+    arch/powerpc/cpu/ppc4xx/cpu_init.o (.text)
+    arch/powerpc/cpu/ppc4xx/speed.o    (.text)
     drivers/net/4xx_enet.o     (.text)
     common/dlmalloc.o  (.text)
     lib/crc32.o                (.text)
-    arch/ppc/lib/extable.o     (.text)
+    arch/powerpc/lib/extable.o (.text)
     lib/zlib.o         (.text)
 
 /*    common/env_embedded.o(.text) */
index ccdec46ee54f85bd1aa7d7f3b5d8b42bb59cf0f9..fa78a3f4ba02d586c5b034f0ea13ef5dce0a4a57 100644 (file)
 */
 
 #include <ppc_asm.tmpl>
+#include <asm/mmu.h>
 #include <config.h>
 
-/* General */
-#define TLB_VALID   0x00000200
-
-/* Supported page sizes */
-
-#define SZ_1K      0x00000000
-#define SZ_4K      0x00000010
-#define SZ_16K     0x00000020
-#define SZ_64K     0x00000030
-#define SZ_256K            0x00000040
-#define SZ_1M      0x00000050
-#define SZ_16M     0x00000070
-#define SZ_256M            0x00000090
-
-/* Storage attributes */
-#define SA_W       0x00000800      /* Write-through */
-#define SA_I       0x00000400      /* Caching inhibited */
-#define SA_M       0x00000200      /* Memory coherence */
-#define SA_G       0x00000100      /* Guarded */
-#define SA_E       0x00000080      /* Endian */
-
-/* Access control */
-#define AC_X       0x00000024      /* Execute */
-#define AC_W       0x00000012      /* Write */
-#define AC_R       0x00000009      /* Read */
-
-/* Some handy macros */
-
-#define EPN(e)         ((e) & 0xfffffc00)
-#define TLB0(epn,sz)   ( (EPN((epn)) | (sz) | TLB_VALID ) )
-#define TLB1(rpn,erpn) ( ((rpn)&0xfffffc00) | (erpn) )
-#define TLB2(a)                ( (a)&0x00000fbf )
-
-#define tlbtab_start\
-       mflr    r1  ;\
-       bl 0f       ;
-
-#define tlbtab_end\
-       .long 0, 0, 0   ;   \
-0:     mflr    r0      ;   \
-       mtlr    r1      ;   \
-       blr             ;
-
-#define tlbentry(epn,sz,rpn,erpn,attr)\
-       .long TLB0(epn,sz),TLB1(rpn,erpn),TLB2(attr)
-
-
 /**************************************************************************
  * TLB TABLE
  *
 
 tlbtab:
        tlbtab_start
-       tlbentry( 0xf0000000, SZ_256M, 0xf0000000, 1, AC_R|AC_W|AC_X|SA_G|SA_I)
-       tlbentry( CONFIG_SYS_PERIPHERAL_BASE, SZ_256M, 0x40000000, 1, AC_R|AC_W|SA_G|SA_I)
-       tlbentry( CONFIG_SYS_ISRAM_BASE, SZ_256K, 0x80000000, 0, AC_R|AC_W|AC_X|SA_G|SA_I)
-       tlbentry( CONFIG_SYS_SDRAM_BASE, SZ_256M, 0x00000000, 0, AC_R|AC_W|AC_X|SA_G|SA_I )
-       tlbentry( CONFIG_SYS_SDRAM_BASE+0x10000000, SZ_256M, 0x10000000, 0, AC_R|AC_W|AC_X|SA_G|SA_I )
-       tlbentry( CONFIG_SYS_SDRAM_BASE+0x20000000, SZ_256M, 0x20000000, 0, AC_R|AC_W|AC_X|SA_G|SA_I )
-       tlbentry( CONFIG_SYS_SDRAM_BASE+0x30000000, SZ_256M, 0x30000000, 0, AC_R|AC_W|AC_X|SA_G|SA_I )
-       tlbentry( CONFIG_SYS_PCI_BASE, SZ_256M, 0x00000000, 2, AC_R|AC_W|SA_G|SA_I )
-       tlbentry( CONFIG_SYS_PCI_MEMBASE, SZ_256M, 0x00000000, 3, AC_R|AC_W|SA_G|SA_I )
+       tlbentry( 0xf0000000, SZ_256M, 0xf0000000, 1, AC_RWX | SA_IG)
+       tlbentry( CONFIG_SYS_PERIPHERAL_BASE, SZ_256M, 0x40000000, 1, AC_RW | SA_IG)
+       tlbentry( CONFIG_SYS_ISRAM_BASE, SZ_256K, 0x80000000, 0, AC_RWX | SA_IG)
+       tlbentry( CONFIG_SYS_SDRAM_BASE, SZ_256M, 0x00000000, 0, AC_RWX | SA_IG )
+       tlbentry( CONFIG_SYS_SDRAM_BASE+0x10000000, SZ_256M, 0x10000000, 0, AC_RWX | SA_IG )
+       tlbentry( CONFIG_SYS_SDRAM_BASE+0x20000000, SZ_256M, 0x20000000, 0, AC_RWX | SA_IG )
+       tlbentry( CONFIG_SYS_SDRAM_BASE+0x30000000, SZ_256M, 0x30000000, 0, AC_RWX | SA_IG )
+       tlbentry( CONFIG_SYS_PCI_BASE, SZ_256M, 0x00000000, 2, AC_RW | SA_IG )
+       tlbentry( CONFIG_SYS_PCI_MEMBASE, SZ_256M, 0x00000000, 3, AC_RW | SA_IG )
        tlbtab_end
index 845841607c121c8d36e2a6f8516b0df39160e8f6..2fb3ad97dcce1a004c3a56a388c81a780fa0c97f 100644 (file)
@@ -56,18 +56,18 @@ SECTIONS
     /* WARNING - the following is hand-optimized to fit within */
     /* the sector layout of our flash chips!   XXX FIXME XXX   */
 
-    arch/ppc/cpu/ppc4xx/start.o        (.text)
+    arch/powerpc/cpu/ppc4xx/start.o    (.text)
     board/sandburst/metrobox/init.o (.text)
-    arch/ppc/cpu/ppc4xx/kgdb.o (.text)
-    arch/ppc/cpu/ppc4xx/traps.o        (.text)
-    arch/ppc/cpu/ppc4xx/interrupts.o   (.text)
-    arch/ppc/cpu/ppc4xx/4xx_uart.o     (.text)
-    arch/ppc/cpu/ppc4xx/cpu_init.o     (.text)
-    arch/ppc/cpu/ppc4xx/speed.o        (.text)
+    arch/powerpc/cpu/ppc4xx/kgdb.o     (.text)
+    arch/powerpc/cpu/ppc4xx/traps.o    (.text)
+    arch/powerpc/cpu/ppc4xx/interrupts.o       (.text)
+    arch/powerpc/cpu/ppc4xx/4xx_uart.o (.text)
+    arch/powerpc/cpu/ppc4xx/cpu_init.o (.text)
+    arch/powerpc/cpu/ppc4xx/speed.o    (.text)
     drivers/net/4xx_enet.o     (.text)
     common/dlmalloc.o  (.text)
     lib/crc32.o                (.text)
-    arch/ppc/lib/extable.o     (.text)
+    arch/powerpc/lib/extable.o (.text)
     lib/zlib.o         (.text)
 
 /*    common/env_embedded.o(.text) */
index 2f8730bf2bb0847a482d4236dd317855d500fc13..4cea3b30f0fa80570e34f2b7f0009afdf96a1f8a 100644 (file)
@@ -50,15 +50,15 @@ SECTIONS
   .plt : { *(.plt) }
   .text      :
   {
-    arch/ppc/cpu/mpc86xx/start.o       (.text)
-    arch/ppc/cpu/mpc86xx/traps.o (.text)
-    arch/ppc/cpu/mpc86xx/interrupts.o (.text)
-    arch/ppc/cpu/mpc86xx/cpu_init.o (.text)
-    arch/ppc/cpu/mpc86xx/cpu.o (.text)
-    arch/ppc/cpu/mpc86xx/speed.o (.text)
+    arch/powerpc/cpu/mpc86xx/start.o   (.text)
+    arch/powerpc/cpu/mpc86xx/traps.o (.text)
+    arch/powerpc/cpu/mpc86xx/interrupts.o (.text)
+    arch/powerpc/cpu/mpc86xx/cpu_init.o (.text)
+    arch/powerpc/cpu/mpc86xx/cpu.o (.text)
+    arch/powerpc/cpu/mpc86xx/speed.o (.text)
     common/dlmalloc.o (.text)
     lib/crc32.o (.text)
-    arch/ppc/lib/extable.o (.text)
+    arch/powerpc/lib/extable.o (.text)
     lib/zlib.o (.text)
     *(.text)
     *(.got1)
index 573fbee937a5b7a6187bf2f4ab7a2563c7424a53..9b1a39bc8487c0a48c25ce0011986bf553aa4420 100644 (file)
@@ -60,17 +60,17 @@ SECTIONS
     /* WARNING - the following is hand-optimized to fit within */
     /* the sector layout of our flash chips!   XXX FIXME XXX   */
 
-    arch/ppc/cpu/ppc4xx/start.o        (.text)
+    arch/powerpc/cpu/ppc4xx/start.o    (.text)
     board/sc3/init.o   (.text)
-    arch/ppc/cpu/ppc4xx/kgdb.o (.text)
-    arch/ppc/cpu/ppc4xx/traps.o        (.text)
-    arch/ppc/cpu/ppc4xx/interrupts.o   (.text)
-    arch/ppc/cpu/ppc4xx/4xx_uart.o     (.text)
-    arch/ppc/cpu/ppc4xx/cpu_init.o     (.text)
-    arch/ppc/cpu/ppc4xx/speed.o        (.text)
+    arch/powerpc/cpu/ppc4xx/kgdb.o     (.text)
+    arch/powerpc/cpu/ppc4xx/traps.o    (.text)
+    arch/powerpc/cpu/ppc4xx/interrupts.o       (.text)
+    arch/powerpc/cpu/ppc4xx/4xx_uart.o (.text)
+    arch/powerpc/cpu/ppc4xx/cpu_init.o (.text)
+    arch/powerpc/cpu/ppc4xx/speed.o    (.text)
     common/dlmalloc.o  (.text)
     lib/crc32.o                (.text)
-    arch/ppc/lib/extable.o     (.text)
+    arch/powerpc/lib/extable.o (.text)
     lib/zlib.o         (.text)
 
 /*    . = env_offset;*/
index 5bd5a75c619a567a2ce9a1d71f61900db94ee134..36dd55dee45b561869345e0f2c6d373d13974114 100644 (file)
@@ -55,9 +55,9 @@ SECTIONS
     /* WARNING - the following is hand-optimized to fit within */
     /* the sector layout of our flash chips!   XXX FIXME XXX   */
 
-    arch/ppc/cpu/mpc8xx/start.o        (.text)
+    arch/powerpc/cpu/mpc8xx/start.o    (.text)
     common/dlmalloc.o  (.text)
-    arch/ppc/lib/ppcstring.o   (.text)
+    arch/powerpc/lib/ppcstring.o       (.text)
     lib/vsprintf.o     (.text)
     lib/crc32.o                (.text)
     lib/zlib.o         (.text)
index 460a98321535207bab000356d0c30ff07ca4d0e9..7e066b11e594af39e70882f21bc1066983f2598d 100644 (file)
@@ -55,7 +55,7 @@ SECTIONS
     /* WARNING - the following is hand-optimized to fit within */
     /* the sector layout of our flash chips!   XXX FIXME XXX   */
 
-    arch/ppc/cpu/mpc8xx/start.o        (.text)
+    arch/powerpc/cpu/mpc8xx/start.o    (.text)
     common/dlmalloc.o  (.text)
     lib/vsprintf.o     (.text)
     lib/crc32.o                (.text)
index 904d45fccc5aed82b59b46187d63e79ba3e482f3..a9b00cafae086c58c73c0f64e79b1b9467e1840e 100644 (file)
@@ -55,11 +55,11 @@ SECTIONS
     /* WARNING - the following is hand-optimized to fit within */
     /* the sector layout of our flash chips!   XXX FIXME XXX   */
 
-    arch/ppc/cpu/mpc8xx/start.o        (.text)
+    arch/powerpc/cpu/mpc8xx/start.o    (.text)
     common/dlmalloc.o  (.text)
-    arch/ppc/lib/ppcstring.o   (.text)
-    arch/ppc/cpu/mpc8xx/interrupts.o (.text)
-    arch/ppc/lib/time.o                (.text)
+    arch/powerpc/lib/ppcstring.o       (.text)
+    arch/powerpc/cpu/mpc8xx/interrupts.o (.text)
+    arch/powerpc/lib/time.o            (.text)
     . = env_offset;
     common/env_embedded.o(.text)
 
index ff2f56640b382777f211d0d85994e9ee8d12f3b2..b871958f1ba5bef503329b1cf7a4925362adee2f 100644 (file)
@@ -52,7 +52,7 @@ SECTIONS
   .plt : { *(.plt) }
   .text      :
   {
-    arch/ppc/cpu/mpc8xx/start.o        (.text)
+    arch/powerpc/cpu/mpc8xx/start.o    (.text)
     common/env_embedded.o(.text)
     *(.text)
     *(.got1)
index fcf2cbb96d121e2a981937de5a47fa344244d9e9..131ad23c77c4f38502f4a1c5a75c3ae9f06604fe 100644 (file)
@@ -55,11 +55,11 @@ SECTIONS
     /* WARNING - the following is hand-optimized to fit within */
     /* the sector layout of our flash chips!   XXX FIXME XXX   */
 
-    arch/ppc/cpu/mpc8xx/start.o        (.text)
+    arch/powerpc/cpu/mpc8xx/start.o    (.text)
     common/dlmalloc.o  (.text)
     lib/vsprintf.o     (.text)
     lib/crc32.o                (.text)
-    arch/ppc/lib/extable.o     (.text)
+    arch/powerpc/lib/extable.o (.text)
 
     . = env_offset;
     common/env_embedded.o(.text)
index c3e7f501cb7a26a09f6bc77e30745d26a39ff85a..43a8e20f0454a6fcb73b606ca3158df39d2e7869 100644 (file)
@@ -52,7 +52,7 @@ SECTIONS
   .plt : { *(.plt) }
   .text      :
   {
-    arch/ppc/cpu/mpc8xx/start.o        (.text)
+    arch/powerpc/cpu/mpc8xx/start.o    (.text)
     common/env_embedded.o(.text)
     *(.text)
     *(.got1)
index f2154c429b0c47df64a2918907d752474d9d8e74..1c008959fde660460e061062df996b1d67ee7f7d 100644 (file)
@@ -55,15 +55,15 @@ SECTIONS
     /* WARNING - the following is hand-optimized to fit within */
     /* the sector layout of our flash chips!   XXX FIXME XXX   */
 
-       arch/ppc/cpu/mpc8xx/start.o             (.text)
-       arch/ppc/cpu/mpc8xx/traps.o             (.text)
+       arch/powerpc/cpu/mpc8xx/start.o         (.text)
+       arch/powerpc/cpu/mpc8xx/traps.o         (.text)
        common/dlmalloc.o               (.text)
-       arch/ppc/lib/ppcstring.o                (.text)
+       arch/powerpc/lib/ppcstring.o            (.text)
        lib/vsprintf.o  (.text)
        lib/crc32.o             (.text)
        lib/zlib.o              (.text)
-       arch/ppc/lib/cache.o            (.text)
-       arch/ppc/lib/time.o             (.text)
+       arch/powerpc/lib/cache.o                (.text)
+       arch/powerpc/lib/time.o         (.text)
 
     . = DEFINED(env_offset) ? env_offset : .;
        common/env_embedded.o   (.ppcenv)
index f2154c429b0c47df64a2918907d752474d9d8e74..1c008959fde660460e061062df996b1d67ee7f7d 100644 (file)
@@ -55,15 +55,15 @@ SECTIONS
     /* WARNING - the following is hand-optimized to fit within */
     /* the sector layout of our flash chips!   XXX FIXME XXX   */
 
-       arch/ppc/cpu/mpc8xx/start.o             (.text)
-       arch/ppc/cpu/mpc8xx/traps.o             (.text)
+       arch/powerpc/cpu/mpc8xx/start.o         (.text)
+       arch/powerpc/cpu/mpc8xx/traps.o         (.text)
        common/dlmalloc.o               (.text)
-       arch/ppc/lib/ppcstring.o                (.text)
+       arch/powerpc/lib/ppcstring.o            (.text)
        lib/vsprintf.o  (.text)
        lib/crc32.o             (.text)
        lib/zlib.o              (.text)
-       arch/ppc/lib/cache.o            (.text)
-       arch/ppc/lib/time.o             (.text)
+       arch/powerpc/lib/cache.o                (.text)
+       arch/powerpc/lib/time.o         (.text)
 
     . = DEFINED(env_offset) ? env_offset : .;
        common/env_embedded.o   (.ppcenv)
index c000746c54fc2deae4398f342e95d72c887b8d42..3631018116348a2a325c96e5a502497fbdf692d6 100644 (file)
@@ -55,15 +55,15 @@ SECTIONS
     /* WARNING - the following is hand-optimized to fit within */
     /* the sector layout of our flash chips!   XXX FIXME XXX   */
 
-    arch/ppc/cpu/mpc8xx/start.o                (.text)
-    arch/ppc/cpu/mpc8xx/traps.o                (.text)
+    arch/powerpc/cpu/mpc8xx/start.o            (.text)
+    arch/powerpc/cpu/mpc8xx/traps.o            (.text)
     common/dlmalloc.o          (.text)
-    arch/ppc/lib/ppcstring.o           (.text)
+    arch/powerpc/lib/ppcstring.o               (.text)
     lib/vsprintf.o     (.text)
     lib/crc32.o                (.text)
     lib/zlib.o         (.text)
-    arch/ppc/lib/cache.o               (.text)
-    arch/ppc/lib/time.o                (.text)
+    arch/powerpc/lib/cache.o           (.text)
+    arch/powerpc/lib/time.o            (.text)
 
     . = DEFINED(env_offset) ? env_offset : .;
     common/env_embedded.o      (.ppcenv)
index c4d83574d6903f6f7724799534169ecdced9e2ee..866777428394f4ee42b683717db7cfd2103ebb8c 100644 (file)
@@ -52,7 +52,7 @@ SECTIONS
   .plt : { *(.plt) }
   .text      :
   {
-    arch/ppc/cpu/mpc8xx/start.o        (.text)
+    arch/powerpc/cpu/mpc8xx/start.o    (.text)
     common/env_embedded.o(.text)
     *(.text)
     *(.got1)
index 61c0d68d7814ba41e6bea6952d41d68ecdb7e178..a7a67a9276f6ee6d58007db8c0ab05e1d680dddf 100644 (file)
@@ -55,11 +55,11 @@ SECTIONS
     /* WARNING - the following is hand-optimized to fit within */
     /* the sector layout of our flash chips!   XXX FIXME XXX   */
 
-    arch/ppc/cpu/mpc8xx/start.o        (.text)
+    arch/powerpc/cpu/mpc8xx/start.o    (.text)
     common/dlmalloc.o  (.text)
     lib/vsprintf.o     (.text)
     lib/crc32.o                (.text)
-    arch/ppc/lib/extable.o     (.text)
+    arch/powerpc/lib/extable.o (.text)
 
     . = env_offset;
     common/env_embedded.o(.text)
index 678ec5850f662926eddbc5c49c3f552ccba84b3a..0b2584c6b1c572794271b7ced8f83b995f397854 100644 (file)
@@ -259,7 +259,7 @@ board_early_init_f(void)
 #endif
 
        /* Why is the phy reset done _after_ the ethernet
-        * initialization in arch/ppc/lib/board.c?
+        * initialization in arch/powerpc/lib/board.c?
         * Do it here so it's done before the TSECs are used.
         */
        reset_phy();
index c4df378c978c433342b8d291f8d49dd507f95484..9001767ef7ce93664763596d8360fff065b072fc 100644 (file)
@@ -52,15 +52,15 @@ SECTIONS
   .plt         : { *(.plt)             }
   .text        :
   {
-    arch/ppc/cpu/mpc8xx/start.o                (.text)
-    arch/ppc/cpu/mpc8xx/traps.o                (.text)
+    arch/powerpc/cpu/mpc8xx/start.o            (.text)
+    arch/powerpc/cpu/mpc8xx/traps.o            (.text)
     common/dlmalloc.o          (.text)
-    arch/ppc/lib/ppcstring.o           (.text)
+    arch/powerpc/lib/ppcstring.o               (.text)
     lib/vsprintf.o     (.text)
     lib/crc32.o                (.text)
     lib/zlib.o         (.text)
-    arch/ppc/lib/cache.o               (.text)
-    arch/ppc/lib/time.o                (.text)
+    arch/powerpc/lib/cache.o           (.text)
+    arch/powerpc/lib/time.o            (.text)
 
     . = DEFINED(env_offset) ? env_offset : .;
     common/env_embedded.o      (.text)
index ec479b1533e93d31c115721c45a89d99bc5fabb8..df7b6adba4782392cee67fa397555fcdb030fe09 100644 (file)
@@ -55,7 +55,7 @@ SECTIONS
     /* WARNING - the following is hand-optimized to fit within */
     /* the sector layout of our flash chips!   XXX FIXME XXX   */
 
-    arch/ppc/cpu/mpc8xx/start.o                (.text)
+    arch/powerpc/cpu/mpc8xx/start.o            (.text)
     common/dlmalloc.o          (.text)
     lib/vsprintf.o     (.text)
     lib/crc32.o                (.text)
index 90270954e44d489658897eadea608a87859f74bd..59f1844885d1c1fb862c79925026ae95fadf09c0 100644 (file)
@@ -55,15 +55,15 @@ SECTIONS
     /* WARNING - the following is hand-optimized to fit within */
     /* the sector layout of our flash chips!   XXX FIXME XXX   */
 
-    arch/ppc/cpu/mpc8xx/start.o                (.text)
-    arch/ppc/cpu/mpc8xx/traps.o                (.text)
+    arch/powerpc/cpu/mpc8xx/start.o            (.text)
+    arch/powerpc/cpu/mpc8xx/traps.o            (.text)
     common/dlmalloc.o          (.text)
-    arch/ppc/lib/ppcstring.o           (.text)
+    arch/powerpc/lib/ppcstring.o               (.text)
     lib/vsprintf.o     (.text)
     lib/crc32.o                (.text)
     lib/zlib.o         (.text)
-    arch/ppc/lib/cache.o               (.text)
-    arch/ppc/lib/time.o                (.text)
+    arch/powerpc/lib/cache.o           (.text)
+    arch/powerpc/lib/time.o            (.text)
 
     . = env_offset;
     common/env_embedded.o      (.ppcenv)
index a2b7bc70d9e5f42903cb9904ad848a650286bf40..f212fab28aded11630dfe791f06b535dba283af6 100644 (file)
@@ -55,7 +55,7 @@ SECTIONS
     /* WARNING - the following is hand-optimized to fit within */
     /* the sector layout of our flash chips!   XXX FIXME XXX   */
 
-    arch/ppc/cpu/mpc8xx/start.o        (.text)
+    arch/powerpc/cpu/mpc8xx/start.o    (.text)
     common/dlmalloc.o  (.text)
     lib/vsprintf.o     (.text)
     lib/crc32.o                (.text)
index a2277c260d6539c2ac11429920faa473798db283..32a3e2bf02a5d5412011983adff8cc97f6b3ca9d 100644 (file)
@@ -55,14 +55,14 @@ SECTIONS
     /* WARNING - the following is hand-optimized to fit within */
     /* the sector layout of our flash chips!   XXX FIXME XXX   */
 
-    arch/ppc/cpu/mpc8xx/start.o                (.text)
-    arch/ppc/cpu/mpc8xx/traps.o                (.text)
+    arch/powerpc/cpu/mpc8xx/start.o            (.text)
+    arch/powerpc/cpu/mpc8xx/traps.o            (.text)
     common/dlmalloc.o          (.text)
-    arch/ppc/lib/ppcstring.o           (.text)
+    arch/powerpc/lib/ppcstring.o               (.text)
     lib/vsprintf.o     (.text)
     lib/crc32.o                (.text)
     lib/zlib.o         (.text)
-    arch/ppc/lib/cache.o               (.text)
+    arch/powerpc/lib/cache.o           (.text)
 
     . = DEFINED(env_offset) ? env_offset : .;
     common/env_embedded.o      (.ppcenv)
index 57cc3058686f84ade0bd96e32c1d6f5c0804c0b2..c21890542f63c57afb9d33d5ac6146e57dc897a7 100644 (file)
@@ -55,7 +55,7 @@ SECTIONS
     /* WARNING - the following is hand-optimized to fit within */
     /* the sector layout of our flash chips!   XXX FIXME XXX   */
 
-    arch/ppc/cpu/mpc8xx/start.o        (.text)
+    arch/powerpc/cpu/mpc8xx/start.o    (.text)
     common/dlmalloc.o  (.text)
     lib/vsprintf.o     (.text)
     lib/crc32.o                (.text)
index f67b1d9c1970f4205edaca3a205cae671e8c8be6..0d8f60594643e4854013fc0b37641995e7131153 100644 (file)
@@ -55,15 +55,15 @@ SECTIONS
     /* WARNING - the following is hand-optimized to fit within */
     /* the sector layout of our flash chips!   XXX FIXME XXX   */
 
-    arch/ppc/cpu/mpc8xx/start.o                (.text)
-    arch/ppc/cpu/mpc8xx/traps.o                (.text)
+    arch/powerpc/cpu/mpc8xx/start.o            (.text)
+    arch/powerpc/cpu/mpc8xx/traps.o            (.text)
     common/dlmalloc.o          (.text)
-    arch/ppc/lib/ppcstring.o           (.text)
+    arch/powerpc/lib/ppcstring.o               (.text)
     lib/vsprintf.o     (.text)
     lib/crc32.o                (.text)
     lib/zlib.o         (.text)
-    arch/ppc/lib/cache.o               (.text)
-    arch/ppc/lib/time.o                (.text)
+    arch/powerpc/lib/cache.o           (.text)
+    arch/powerpc/lib/time.o            (.text)
 
     common/env_embedded.o      (.text)
 
index 84b338a75de79bee7547fa49045a7ab84fd134e2..a7caa8d90aa01f08836860982453b5a25e41aba8 100644 (file)
@@ -55,7 +55,7 @@ SECTIONS
     /* WARNING - the following is hand-optimized to fit within */
     /* the sector layout of our flash chips!   XXX FIXME XXX   */
 
-    arch/ppc/cpu/mpc8xx/start.o        (.text)
+    arch/powerpc/cpu/mpc8xx/start.o    (.text)
     common/dlmalloc.o  (.text)
     lib/vsprintf.o     (.text)
     lib/crc32.o                (.text)
index aebf30411e444aee07273fd7510f9977fd6d643c..8ccf33e15c59c11f769284dccf0f4779a364b062 100644 (file)
@@ -39,4 +39,4 @@ TEXT_BASE = 0xFFF00000
 endif
 
 PLATFORM_CPPFLAGS += -DTEXT_BASE=$(TEXT_BASE) -I$(TOPDIR)/board
-LDSCRIPT := $(SRCTREE)/arch/ppc/cpu/mpc5xxx/u-boot-customlayout.lds
+LDSCRIPT := $(SRCTREE)/arch/powerpc/cpu/mpc5xxx/u-boot-customlayout.lds
index bc47060f254e9530566c0a32d61057f6eea343c8..9bdc97fe4eb155e0e8aa59fe89ec5fddfcb7e34d 100644 (file)
@@ -55,15 +55,15 @@ SECTIONS
     /* WARNING - the following is hand-optimized to fit within */
     /* the sector layout of our flash chips!   XXX FIXME XXX   */
 
-    arch/ppc/cpu/mpc8xx/start.o                (.text)
-    arch/ppc/cpu/mpc8xx/traps.o                (.text)
+    arch/powerpc/cpu/mpc8xx/start.o            (.text)
+    arch/powerpc/cpu/mpc8xx/traps.o            (.text)
     common/dlmalloc.o          (.text)
-    arch/ppc/lib/ppcstring.o           (.text)
+    arch/powerpc/lib/ppcstring.o               (.text)
     lib/vsprintf.o     (.text)
     lib/crc32.o                (.text)
     lib/zlib.o         (.text)
-    arch/ppc/lib/cache.o               (.text)
-    arch/ppc/lib/time.o                (.text)
+    arch/powerpc/lib/cache.o           (.text)
+    arch/powerpc/lib/time.o            (.text)
 
 /*
     . = env_offset;
index 369c15a18c6abe3d39f5da9aa7b6a9d088db2127..5ff67d13d45dac3682c369782f868fecec86ea30 100644 (file)
@@ -59,7 +59,7 @@ SECTIONS
     common/dlmalloc.o  (.text)
     lib/vsprintf.o     (.text)
     lib/crc32.o                (.text)
-    arch/ppc/lib/extable.o     (.text)
+    arch/powerpc/lib/extable.o (.text)
 
     common/env_embedded.o(.text)
 
index 96a12d73e5f1f522098b596e0792f2fe8bcfb8d3..5c84e65a09db17befe6564cbb429713ca7ccc9aa 100644 (file)
@@ -157,7 +157,7 @@ phys_size_t initdram (int board_type)
        /*
         * ToDo: Move the asm init routine sdram_init() to this C file,
         * or even better use some common ppc4xx code available
-        * in arch/ppc/cpu/ppc4xx
+        * in arch/powerpc/cpu/ppc4xx
         */
        sdram_init();
 
index 5bd5a75c619a567a2ce9a1d71f61900db94ee134..36dd55dee45b561869345e0f2c6d373d13974114 100644 (file)
@@ -55,9 +55,9 @@ SECTIONS
     /* WARNING - the following is hand-optimized to fit within */
     /* the sector layout of our flash chips!   XXX FIXME XXX   */
 
-    arch/ppc/cpu/mpc8xx/start.o        (.text)
+    arch/powerpc/cpu/mpc8xx/start.o    (.text)
     common/dlmalloc.o  (.text)
-    arch/ppc/lib/ppcstring.o   (.text)
+    arch/powerpc/lib/ppcstring.o       (.text)
     lib/vsprintf.o     (.text)
     lib/crc32.o                (.text)
     lib/zlib.o         (.text)
index b331d5afc1654f94049d9a4376a2ca0db6bb5b93..9c1e3ecd8ae1d94386d407ee7c4c40caeb1ff6e1 100644 (file)
@@ -55,11 +55,11 @@ SECTIONS
     /* WARNING - the following is hand-optimized to fit within */
     /* the sector layout of our flash chips!   XXX FIXME XXX   */
 
-    arch/ppc/cpu/mpc8xx/start.o        (.text)
+    arch/powerpc/cpu/mpc8xx/start.o    (.text)
     common/dlmalloc.o  (.text)
     lib/vsprintf.o     (.text)
     lib/crc32.o                (.text)
-    arch/ppc/lib/extable.o     (.text)
+    arch/powerpc/lib/extable.o (.text)
 
     . = env_offset;
     common/env_embedded.o(.text)
index 54371e276b901d07d03af9e3dd353aa3882f3ca3..fa50c8e1ceac65b017dbe9a9c55e94caa5898093 100644 (file)
 */
 
 #include <ppc_asm.tmpl>
+#include <asm/mmu.h>
 #include <config.h>
 
-/* General */
-#define TLB_VALID      0x00000200
-
-/* Supported page sizes */
-#define SZ_1K          0x00000000
-#define SZ_4K          0x00000010
-#define SZ_16K         0x00000020
-#define SZ_64K         0x00000030
-#define SZ_256K                0x00000040
-#define SZ_1M          0x00000050
-#define SZ_16M         0x00000070
-#define SZ_256M                0x00000090
-
-/* Storage attributes */
-#define SA_W           0x00000800      /* Write-through */
-#define SA_I           0x00000400      /* Caching inhibited */
-#define SA_M           0x00000200      /* Memory coherence */
-#define SA_G           0x00000100      /* Guarded */
-#define SA_E           0x00000080      /* Endian */
-
-/* Access control */
-#define AC_X           0x00000024      /* Execute */
-#define AC_W           0x00000012      /* Write */
-#define AC_R           0x00000009      /* Read */
-
-/* Some handy macros */
-#define EPN(e)         ((e) & 0xfffffc00)
-#define TLB0(epn,sz)   ((EPN((epn)) | (sz) | TLB_VALID ))
-#define TLB1(rpn,erpn) (((rpn)&0xfffffc00) | (erpn))
-#define TLB2(a)                ((a)&0x00000fbf)
-
-#define tlbtab_start   \
-       mflr    r1;     \
-       bl 0f;
-
-#define tlbtab_end     \
-       .long 0, 0, 0;  \
-0:     mflr    r0;     \
-       mtlr    r1;     \
-       blr;
-
-#define tlbentry(epn,sz,rpn,erpn,attr)\
-       .long TLB0(epn,sz),TLB1(rpn,erpn),TLB2(attr)
-
-
 /*
  * TLB TABLE
  *
 
 tlbtab:
        tlbtab_start
-       tlbentry( 0xf0000000, SZ_256M, 0xf0000000, 1, AC_R|AC_W|AC_X|SA_G|SA_I)
-       tlbentry( CONFIG_SYS_PERIPHERAL_BASE, SZ_256M, 0x40000000, 1, AC_R|AC_W|SA_G|SA_I)
-       tlbentry( CONFIG_SYS_ISRAM_BASE, SZ_256K, 0x80000000, 0, AC_R|AC_W|AC_X|SA_G|SA_I)
-       tlbentry( CONFIG_SYS_SDRAM_BASE, SZ_256M, 0x00000000, 0, AC_R|AC_W|AC_X|SA_G|SA_I )
-       tlbentry( CONFIG_SYS_SDRAM_BASE+0x10000000, SZ_256M, 0x10000000, 0, AC_R|AC_W|AC_X|SA_G|SA_I )
-       tlbentry( CONFIG_SYS_PCI_BASE, SZ_256M, 0x00000000, 2, AC_R|AC_W|SA_G|SA_I )
-       tlbentry( CONFIG_SYS_PCI_MEMBASE, SZ_256M, 0x00000000, 3, AC_R|AC_W|SA_G|SA_I )
+       tlbentry( 0xf0000000, SZ_256M, 0xf0000000, 1, AC_RWX | SA_IG)
+       tlbentry( CONFIG_SYS_PERIPHERAL_BASE, SZ_256M, 0x40000000, 1, AC_RW | SA_IG)
+       tlbentry( CONFIG_SYS_ISRAM_BASE, SZ_256K, 0x80000000, 0, AC_RWX | SA_IG)
+       tlbentry( CONFIG_SYS_SDRAM_BASE, SZ_256M, 0x00000000, 0, AC_RWX | SA_IG )
+       tlbentry( CONFIG_SYS_SDRAM_BASE+0x10000000, SZ_256M, 0x10000000, 0, AC_RWX | SA_IG )
+       tlbentry( CONFIG_SYS_PCI_BASE, SZ_256M, 0x00000000, 2, AC_RW | SA_IG )
+       tlbentry( CONFIG_SYS_PCI_MEMBASE, SZ_256M, 0x00000000, 3, AC_RW | SA_IG )
        tlbtab_end
index c3f6fefb45c907d261095f8556996d2d88fd28a1..a7475785fa203fec9e001d8860946a10d19a5020 100644 (file)
@@ -55,17 +55,17 @@ SECTIONS
     /* WARNING - the following is hand-optimized to fit within */
     /* the sector layout of our flash chips!   XXX FIXME XXX   */
 
-    arch/ppc/cpu/ppc4xx/start.o        (.text)
+    arch/powerpc/cpu/ppc4xx/start.o    (.text)
     board/xes/xpedite1000/init.o (.text)
-    arch/ppc/cpu/ppc4xx/kgdb.o (.text)
-    arch/ppc/cpu/ppc4xx/traps.o        (.text)
-    arch/ppc/cpu/ppc4xx/interrupts.o   (.text)
-    arch/ppc/cpu/ppc4xx/4xx_uart.o     (.text)
-    arch/ppc/cpu/ppc4xx/cpu_init.o     (.text)
-    arch/ppc/cpu/ppc4xx/speed.o        (.text)
+    arch/powerpc/cpu/ppc4xx/kgdb.o     (.text)
+    arch/powerpc/cpu/ppc4xx/traps.o    (.text)
+    arch/powerpc/cpu/ppc4xx/interrupts.o       (.text)
+    arch/powerpc/cpu/ppc4xx/4xx_uart.o (.text)
+    arch/powerpc/cpu/ppc4xx/cpu_init.o (.text)
+    arch/powerpc/cpu/ppc4xx/speed.o    (.text)
     common/dlmalloc.o  (.text)
     lib/crc32.o                (.text)
-    arch/ppc/lib/extable.o     (.text)
+    arch/powerpc/lib/extable.o (.text)
     lib/zlib.o         (.text)
 
 /*    common/env_embedded.o(.text) */
index 2f8730bf2bb0847a482d4236dd317855d500fc13..4cea3b30f0fa80570e34f2b7f0009afdf96a1f8a 100644 (file)
@@ -50,15 +50,15 @@ SECTIONS
   .plt : { *(.plt) }
   .text      :
   {
-    arch/ppc/cpu/mpc86xx/start.o       (.text)
-    arch/ppc/cpu/mpc86xx/traps.o (.text)
-    arch/ppc/cpu/mpc86xx/interrupts.o (.text)
-    arch/ppc/cpu/mpc86xx/cpu_init.o (.text)
-    arch/ppc/cpu/mpc86xx/cpu.o (.text)
-    arch/ppc/cpu/mpc86xx/speed.o (.text)
+    arch/powerpc/cpu/mpc86xx/start.o   (.text)
+    arch/powerpc/cpu/mpc86xx/traps.o (.text)
+    arch/powerpc/cpu/mpc86xx/interrupts.o (.text)
+    arch/powerpc/cpu/mpc86xx/cpu_init.o (.text)
+    arch/powerpc/cpu/mpc86xx/cpu.o (.text)
+    arch/powerpc/cpu/mpc86xx/speed.o (.text)
     common/dlmalloc.o (.text)
     lib/crc32.o (.text)
-    arch/ppc/lib/extable.o (.text)
+    arch/powerpc/lib/extable.o (.text)
     lib/zlib.o (.text)
     *(.text)
     *(.got1)
index f388b775c2e2d85dd85df4068e67f2709367eed8..838f1315b3fd5d905997499c5bb5cabf0ac39f1f 100644 (file)
@@ -60,10 +60,9 @@ void fsl_isr2 (void *arg) {
        puts("*");
 }
 
-void fsl_init2 (void) {
+int fsl_init2 (void) {
        puts("fsl_init2\n");
-       install_interrupt_handler (FSL_INTR_2,\
- fsl_isr2,\
- NULL);
+       install_interrupt_handler (FSL_INTR_2, fsl_isr2, NULL);
+       return 0;
 }
 #endif
index 8fafbd59c03bf96afef43db8bcd5873777a84a52..65d0e4dfd89a4a1191272e7d0fe0a7bff084f6b6 100644 (file)
@@ -33,7 +33,7 @@ SECTIONS
 
   .bootpg 0xFFFFF000 :
   {
-    arch/ppc/cpu/ppc4xx/start.o        (.bootpg)
+    arch/powerpc/cpu/ppc4xx/start.o    (.bootpg)
   } = 0xffff
 
   /* Read-only sections, merged into text segment: */
index 0cbed8ea57365968d22f39b09c6118466bcb1590..b8f8bedb817582e6615a2440feca5eda084c78a5 100644 (file)
@@ -33,7 +33,7 @@ SECTIONS
 
   .bootpg 0xFFFFF000 :
   {
-    arch/ppc/cpu/ppc4xx/start.o        (.bootpg)
+    arch/powerpc/cpu/ppc4xx/start.o    (.bootpg)
   } = 0xffff
 
   /* Read-only sections, merged into text segment: */
index 0531452a23be652555296a1b4503f7911ac49424..9e3b64c379b9831fd891bf9973f668e6f16acf2d 100644 (file)
@@ -1,4 +1,4 @@
-/* taken from arch/ppc/kernel/ppc-stub.c */
+/* taken from arch/powerpc/kernel/ppc-stub.c */
 
 /****************************************************************************
 
index 94e192121130b04b2c47834bb7dff99e2b0d6fbf..0682faa9d1f8a33b13aa6119f98b29d882f73b14 100644 (file)
@@ -59,6 +59,14 @@ struct serial_device *__default_serial_console (void)
 #else
                return &serial0_device;
 #endif
+#elif defined(CONFIG_MPC512X)
+#if (CONFIG_PSC_CONSOLE == 3)
+               return &serial3_device;
+#elif (CONFIG_PSC_CONSOLE == 6)
+               return &serial6_device;
+#else
+#error "Bad CONFIG_PSC_CONSOLE."
+#endif
 #elif defined(CONFIG_S3C2410)
 #if defined(CONFIG_SERIAL1)
        return &s3c24xx_serial0_device;
@@ -158,6 +166,20 @@ void serial_initialize (void)
        serial_register(&s5p_serial1_device);
        serial_register(&s5p_serial2_device);
        serial_register(&s5p_serial3_device);
+#endif
+#if defined(CONFIG_MPC512X)
+#if defined(CONFIG_SYS_PSC1)
+       serial_register(&serial1_device);
+#endif
+#if defined(CONFIG_SYS_PSC3)
+       serial_register(&serial3_device);
+#endif
+#if defined(CONFIG_SYS_PSC4)
+       serial_register(&serial4_device);
+#endif
+#if defined(CONFIG_SYS_PSC6)
+       serial_register(&serial6_device);
+#endif
 #endif
        serial_assign (default_serial_console ()->name);
 }
@@ -174,6 +196,7 @@ void serial_stdio_init (void)
                dev.flags = DEV_FLAGS_OUTPUT | DEV_FLAGS_INPUT;
 
                dev.start = s->init;
+               dev.stop = s->uninit;
                dev.putc = s->putc;
                dev.puts = s->puts;
                dev.getc = s->getc;
index b804e069a1950452fc5dc9cdcecf0717e135e0c5..c5146d9b186be35467e175f88b77c31c178ca05a 100644 (file)
@@ -333,7 +333,7 @@ Linux:
        $ make oldconfig
        $ make dep
        $ make uImage
-       $ cp -p arch/ppc/mbxboot/uImage /tftpboot
+       $ cp -p arch/powerpc/mbxboot/uImage /tftpboot
 
        Load uImage via tftp and boot it.
 
index e8a654128d0aa233cff17389147dc955edf5e9e7..012db1c5f7435dcede54ab4c7655e239cafa05af 100644 (file)
@@ -17,11 +17,11 @@ Changed files:
                                added console settings from environment
 - common/devices.c             added ISA keyboard init
 - common/main.c                        corrected the read of bootdelay
-- arch/ppc/cpu/ppc4xx/405gp_pci.c      excluded file from PIP405
-- arch/ppc/cpu/ppc4xx/i2c.c            added 16bit read write I2C support
+- arch/powerpc/cpu/ppc4xx/405gp_pci.c  excluded file from PIP405
+- arch/powerpc/cpu/ppc4xx/i2c.c                added 16bit read write I2C support
                                added page write
-- arch/ppc/cpu/ppc4xx/speed.c          added get_PCI_freq
-- arch/ppc/cpu/ppc4xx/start.S          added CONFIG_IDENT_STRING
+- arch/powerpc/cpu/ppc4xx/speed.c              added get_PCI_freq
+- arch/powerpc/cpu/ppc4xx/start.S              added CONFIG_IDENT_STRING
 - disk/Makefile                        added part_iso for CD support
 - disk/part.c                  changed to work with block device description
                                added ISO CD support
@@ -275,7 +275,7 @@ Added the config variable CONFIG_IDENT_STRING which will be added to the
 "U_BOOT_VERSION __TIME__ DATE___ " String, to allows to identify intermidiate
 and custom versions.
 Changed files:
-- arch/ppc/cpu/ppc4xx/start.s
+- arch/powerpc/cpu/ppc4xx/start.s
 
 Firmware Image:
 ---------------
@@ -288,11 +288,11 @@ Changed files:
 
 Correct PCI Frequency for PPC405:
 ---------------------------------
-Added function (in arch/ppc/cpu/ppc4xx/speed.c) to get the PCI frequency for PPC405 CPU.
+Added function (in arch/powerpc/cpu/ppc4xx/speed.c) to get the PCI frequency for PPC405 CPU.
 The PCI Frequency will now be set correct in the board description in common/board.c.
 (was set to the busfreq before).
 Changed files:
-- arch/ppc/cpu/ppc4xx/speed.c
+- arch/powerpc/cpu/ppc4xx/speed.c
 - common/board.c
 
 I2C Stuff:
@@ -301,7 +301,7 @@ Added defined(CONFIG_PIP405) at several points in common/cmd_i2c.c.
 Added 16bit read/write support for I2C (PPC405), and page write to
 I2C EEPROM if defined CONFIG_SYS_EEPROM_PAGE_WRITE_ENABLE.
 Changed files:
-- arch/ppc/cpu/ppc4xx/i2c.c
+- arch/powerpc/cpu/ppc4xx/i2c.c
 - common/cmd_i2c.c
 
 Environment / Console:
index 0d5e20e9773d852cc63a5001dd6b86094239b141..eeb218d39c64c064cd69143a848676074f3b9404 100644 (file)
@@ -713,7 +713,7 @@ use external loopback for testing. That will need appropriate
 reconfiguration of the physical interface chip.
 
 The test routines for the SCC ethernet tests will be located in
-arch/ppc/cpu/mpc8xx/scc.c.
+arch/powerpc/cpu/mpc8xx/scc.c.
 
 2.2.3.2. UART tests (SMC/SCC)
 
@@ -725,7 +725,7 @@ will be transmitted. These tests may be enhanced to make to perform
 test will be executed manually.
 
 The test routine for the SMC/SCC UART tests will be located in
-arch/ppc/cpu/mpc8xx/serial.c.
+arch/powerpc/cpu/mpc8xx/serial.c.
 
 2.2.3.3. USB test
 
index 0aa4d11303bdad2801211dacd0eddc7dfb7ddbd6..3ca671126d42371665293f09fecabdd3cf0808ee 100644 (file)
        board/RPXLITE/RPXLITE.c         /* DRAM-related routines */
        board/RPXLITE/flash.c           /* flash-related routines */
        board/RPXLITE/config.mk         /* set text base address */
-       arch/ppc/cpu/mpc8xx/serial.c                    /* board specific register setting */
+       arch/powerpc/cpu/mpc8xx/serial.c /* board specific register setting */
        include/config_RPXLITE.h        /* board specific registers */
 
        See 'reg_config.txt' for register values in detail.
index e64e64a3e2ef3b10bb3d776318cf691c34da6d09..93b55068f5703165d6fdb1b914636f547e5359cc 100644 (file)
@@ -14,10 +14,10 @@ The following common files have been modified by this project:
 
 MAKEALL                        - TQM8260 entry added
 Makefile               - TQM8260_config entry added
-arch/ppc/cpu/mpc8260/Makefile  - soft_i2c.o module added
-arch/ppc/cpu/mpc8260/ether_scc.c       - TQM8260-specific definitions added, an obvious
+arch/powerpc/cpu/mpc8260/Makefile      - soft_i2c.o module added
+arch/powerpc/cpu/mpc8260/ether_scc.c   - TQM8260-specific definitions added, an obvious
                          bug fixed (fcr -> scr)
-arch/ppc/cpu/mpc8260/ether_fcc.c       - TQM8260-specific definitions added
+arch/powerpc/cpu/mpc8260/ether_fcc.c   - TQM8260-specific definitions added
 include/flash.h                - added definitions for the AM29LV640D Flash chip
 
 
@@ -33,7 +33,7 @@ board/tqm8260/config.mk         - config file
 board/tqm8260/flash.c    - flash driver (for AM29LV640D)
 board/tqm8260/ppcboot.lds - linker script
 board/tqm8260/tqm8260.c          - ioport and memory initialization
-arch/ppc/cpu/mpc8260/soft_i2c.c          - software i2c EEPROM driver
+arch/powerpc/cpu/mpc8260/soft_i2c.c      - software i2c EEPROM driver
 include/config_TQM8260.h  - main configuration file
 
 
index 9249cfb31e07a37e4333568a58336f1987fa86b4..334507397d5be802135bbd8a2b1a11201a49198f 100644 (file)
@@ -22,7 +22,7 @@ Changed files:
 - include/asm-ppc/global_data.h added global variables - inp_clk, pci_clk,
                            vco_clk, pev_clk, flb_clk, and bExtUart
 
-- arch/ppc/lib/board.c     added CONFIG_MPC8220 support
+- arch/powerpc/lib/board.c         added CONFIG_MPC8220 support
 
 - net/eth.c                added FEC support for MPC8220
 
@@ -37,24 +37,24 @@ Added files:
 - board/alaska/config.mk    config make
 - board/alaska/u-boot.lds   Linker description
 
-- arch/ppc/cpu/mpc8220/dma.h       multi-channel dma header file
-- arch/ppc/cpu/mpc8220/dramSetup.h   dram setup header file
-- arch/ppc/cpu/mpc8220/fec.h       MPC8220 FEC header file
-- arch/ppc/cpu/mpc8220/cpu.c       cpu specific code
-- arch/ppc/cpu/mpc8220/cpu_init.c    Flexbus ChipSelect and Mux pins setup
-- arch/ppc/cpu/mpc8220/dramSetup.c   MPC8220 DDR SDRAM setup
-- arch/ppc/cpu/mpc8220/fec.c       MPC8220 FEC driver
-- arch/ppc/cpu/mpc8220/i2c.c       MPC8220 I2C driver
-- arch/ppc/cpu/mpc8220/interrupts.c  interrupt support (not enable)
-- arch/ppc/cpu/mpc8220/loadtask.c    load dma
-- arch/ppc/cpu/mpc8220/speed.c     system, pci, flexbus, pev, and cpu clock
-- arch/ppc/cpu/mpc8220/traps.c     exception
-- arch/ppc/cpu/mpc8220/uart.c      MPC8220 UART driver
-- arch/ppc/cpu/mpc8220/Makefile            Makefile
-- arch/ppc/cpu/mpc8220/config.mk           config make
-- arch/ppc/cpu/mpc8220/fec_dma_task.S MPC8220 FEC multi-channel dma program
-- arch/ppc/cpu/mpc8220/io.S        io functions
-- arch/ppc/cpu/mpc8220/start.S     start up
+- arch/powerpc/cpu/mpc8220/dma.h           multi-channel dma header file
+- arch/powerpc/cpu/mpc8220/dramSetup.h   dram setup header file
+- arch/powerpc/cpu/mpc8220/fec.h           MPC8220 FEC header file
+- arch/powerpc/cpu/mpc8220/cpu.c           cpu specific code
+- arch/powerpc/cpu/mpc8220/cpu_init.c    Flexbus ChipSelect and Mux pins setup
+- arch/powerpc/cpu/mpc8220/dramSetup.c   MPC8220 DDR SDRAM setup
+- arch/powerpc/cpu/mpc8220/fec.c           MPC8220 FEC driver
+- arch/powerpc/cpu/mpc8220/i2c.c           MPC8220 I2C driver
+- arch/powerpc/cpu/mpc8220/interrupts.c  interrupt support (not enable)
+- arch/powerpc/cpu/mpc8220/loadtask.c    load dma
+- arch/powerpc/cpu/mpc8220/speed.c         system, pci, flexbus, pev, and cpu clock
+- arch/powerpc/cpu/mpc8220/traps.c         exception
+- arch/powerpc/cpu/mpc8220/uart.c          MPC8220 UART driver
+- arch/powerpc/cpu/mpc8220/Makefile        Makefile
+- arch/powerpc/cpu/mpc8220/config.mk       config make
+- arch/powerpc/cpu/mpc8220/fec_dma_task.S MPC8220 FEC multi-channel dma program
+- arch/powerpc/cpu/mpc8220/io.S            io functions
+- arch/powerpc/cpu/mpc8220/start.S         start up
 
 - include/mpc8220.h
 
index 4c1e6c4d5ba2f021128955350bc60b06af9be1dc..35e9d2706ab0a45cc5ce0e3ef7d6e11a7c127977 100644 (file)
@@ -18,15 +18,15 @@ can be easily implemented.
 ./common/board.c
        Added call to initialize debugger on startup.
 
-./arch/ppc/cpu/ppc4xx/Makefile
+./arch/powerpc/cpu/ppc4xx/Makefile
        Added bedbug_405.c to the Makefile.
 
-./arch/ppc/cpu/ppc4xx/start.S
+./arch/powerpc/cpu/ppc4xx/start.S
        Added code to handle the debug exception (0x2000) on the 405.
        Also added code to handle critical exceptions since the debug
        is treated as critical on the 405.
 
-./arch/ppc/cpu/ppc4xx/traps.c
+./arch/powerpc/cpu/ppc4xx/traps.c
        Added more detailed output for the program exception to tell
        if it is an illegal instruction, privileged instruction or
        a trap. Also added debug trap handler.
@@ -51,7 +51,7 @@ can be easily implemented.
        hardware breakpoints and stepping through code.  These
        routines are common to all PowerPC processors.
 
-./arch/ppc/cpu/ppc4xx/bedbug_405.c
+./arch/powerpc/cpu/ppc4xx/bedbug_405.c
        AMCC  PPC405 specific debugger routines.
 
 
@@ -63,16 +63,16 @@ Changes:
        common/cmd_bedbug.c
                Added call to initialize 860 debugger.
 
-       arch/ppc/cpu/mpc8xx/Makefile
+       arch/powerpc/cpu/mpc8xx/Makefile
                Added new file "bedbug_860.c" to the makefile
 
-       arch/ppc/cpu/mpc8xx/start.S
+       arch/powerpc/cpu/mpc8xx/start.S
                Added handler for InstructionBreakpoint (0xfd00)
 
-       arch/ppc/cpu/mpc8xx/traps.c
+       arch/powerpc/cpu/mpc8xx/traps.c
                Added new routine DebugException()
 
 New Files:
 
-       arch/ppc/cpu/mpc8xx/bedbug_860.c
+       arch/powerpc/cpu/mpc8xx/bedbug_860.c
                CPU-specific routines for 860 debug registers.
index 26fb0c27dcf7eb053c60d3fa439ed495cf55fca0..df51b5cf5cce24b921f92468dd235e5ba27ae2ce 100644 (file)
@@ -25,7 +25,7 @@ Added or Changed Files:
 u-boot-0.2.0/common/cmd_boot.c
 u-boot-0.2.0/common/cmd_reginfo.c
 u-boot-0.2.0/common/environment.c
-u-boot-0.2.0/arch/ppc/cpu/mpc5xx/*
+u-boot-0.2.0/arch/powerpc/cpu/mpc5xx/*
 u-boot-0.2.0/include/cmd_reginfo.h
 u-boot-0.2.0/include/common.h
 u-boot-0.2.0/include/ppc_asm.tmpl
@@ -34,9 +34,9 @@ u-boot-0.2.0/include/mpc5xx.h
 u-boot-0.2.0/include/status_led.h
 u-boot-0.2.0/include/asm-ppc/u-boot.h
 u-boot-0.2.0/include/asm-ppc/5xx_immap.h
-u-boot-0.2.0/arch/ppc/lib/board.c
-u-boot-0.2.0/arch/ppc/lib/cache.c
-u-boot-0.2.0/arch/ppc/lib/time.c
+u-boot-0.2.0/arch/powerpc/lib/board.c
+u-boot-0.2.0/arch/powerpc/lib/cache.c
+u-boot-0.2.0/arch/powerpc/lib/time.c
 u-boot-0.2.0/Makefile
 u-boot-0.2.0/CREDITS
 u-boot-0.2.0/doc/README.mpc5xx
index ae8202bdd17d4146be4f0196dbb8ee4ab9d1a530..046f981cf0d299695e1d7835e64a3662fdeff44b 100644 (file)
@@ -124,8 +124,8 @@ Updated 13-July-2004 Jon Loeliger
     kernel's ppcboot.h is consistent with U-Boot's u-boot.h. You can use two
     default configuration files as your starting points to configure the
     kernel:
-       arch/ppc/configs/mpc8540_ads_defconfig
-       arch/ppc/configs/mpc8560_ads_defconfig
+       arch/powerpc/configs/mpc8540_ads_defconfig
+       arch/powerpc/configs/mpc8560_ads_defconfig
 
 3. DEFINITIONS AND COMPILATION
 
index abcda6fb5fd6852a3bf775383df95666f3cf562b..88785605fa78e047ba28aeca413156a25df41c99 100644 (file)
@@ -21,6 +21,7 @@
 #include <common.h>
 #include <command.h>
 #include <asm/io.h>
+#include <asm/processor.h>
 #include <malloc.h>
 #include <libata.h>
 #include <fis.h>
@@ -191,6 +192,27 @@ int init_sata(int dev)
        /* Wait the controller offline */
        ata_wait_register(&reg->hstatus, HSTATUS_ONOFF, 0, 1000);
 
+#if defined(CONFIG_FSL_SATA_V2) && defined(CONFIG_FSL_SATA_ERRATUM_A001)
+       /*
+        * For P1022/1013 Rev1.0 silicon, after power on SATA host
+        * controller is configured in legacy mode instead of the
+        * expected enterprise mode. software needs to clear bit[28]
+        * of HControl register to change to enterprise mode from
+        * legacy mode.
+        */
+       {
+               u32 svr = get_svr();
+               if (IS_SVR_REV(svr, 1, 0) &&
+                   ((SVR_SOC_VER(svr) == SVR_P1022) ||
+                    (SVR_SOC_VER(svr) == SVR_P1022_E) ||
+                    (SVR_SOC_VER(svr) == SVR_P1013) ||
+                    (SVR_SOC_VER(svr) == SVR_P1013_E))) {
+                       out_le32(&reg->hstatus, 0x20000000);
+                       out_le32(&reg->hcontrol, 0x00000100);
+               }
+       }
+#endif
+
        /* Set the command header base address to CHBA register to tell DMA */
        out_le32(&reg->chba, (u32)cmd_hdr & ~0x3);
 
index 18e88fa4ad042b34cae9a93c6db5f63413bab6bd..576efaf6f5241ba7359f72a3d02633441cb767fc 100644 (file)
@@ -243,8 +243,12 @@ typedef struct prd_entry {
 
 /* ext_c_ddc
 */
-#define PRD_ENTRY_EXT          0x80000000 /* extension flag or called indirect descriptor flag */
-#define PRD_ENTRY_DATA_SNOOP   0x00400000 /* Snoop enable for all data associated with the PRD entry */
+#define PRD_ENTRY_EXT          0x80000000 /* extension flag */
+#ifdef CONFIG_FSL_SATA_V2
+#define PRD_ENTRY_DATA_SNOOP   0x10000000 /* Data snoop enable */
+#else
+#define PRD_ENTRY_DATA_SNOOP   0x00400000 /* Data snoop enable */
+#endif
 #define PRD_ENTRY_LEN_MASK     0x003fffff /* Data word count */
 
 #define PRD_ENTRY_MAX_XFER_SZ  (PRD_ENTRY_LEN_MASK + 1)
index 2241990f94f5c87a76af7e9933342f28a3506a52..cb13deeea968c91ae73db887b33793c0d3fef86a 100644 (file)
@@ -221,9 +221,10 @@ i2c_init(int speed, int slaveadd)
        unsigned int temp;
 
 #ifdef CONFIG_SYS_I2C_INIT_BOARD
-       /* call board specific i2c bus reset routine before accessing the   */
-       /* environment, which might be in a chip on that bus. For details   */
-       /* about this problem see doc/I2C_Edge_Conditions.                  */
+       /* Call board specific i2c bus reset routine before accessing the
+        * environment, which might be in a chip on that bus. For details
+        * about this problem see doc/I2C_Edge_Conditions.
+       */
        i2c_init_board();
 #endif
        dev = (struct fsl_i2c *) (CONFIG_SYS_IMMR + CONFIG_SYS_I2C_OFFSET);
@@ -249,6 +250,15 @@ i2c_init(int speed, int slaveadd)
        writeb(0x0, &dev->sr);                  /* clear status register */
        writeb(I2C_CR_MEN, &dev->cr);           /* start I2C controller */
 #endif
+
+#ifdef CONFIG_SYS_I2C_BOARD_LATE_INIT
+       /* Call board specific i2c bus reset routine AFTER the bus has been
+        * initialized. Use either this callpoint or i2c_init_board;
+        * which is called before i2c_init operations.
+        * For details about this problem see doc/I2C_Edge_Conditions.
+       */
+       i2c_board_late_init();
+#endif
 }
 
 static int
index 0f6f8b161c91a645746756cb50989e11aeea7561..a9b07a97c7d3356022cb5564c9b1fd58461dd2b8 100644 (file)
@@ -72,8 +72,10 @@ uint esdhc_xfertyp(struct mmc_cmd *cmd, struct mmc_data *data)
        uint xfertyp = 0;
 
        if (data) {
-               xfertyp |= XFERTYP_DPSEL | XFERTYP_DMAEN;
-
+               xfertyp |= XFERTYP_DPSEL;
+#ifndef CONFIG_SYS_FSL_ESDHC_USE_PIO
+               xfertyp |= XFERTYP_DMAEN;
+#endif
                if (data->blocks > 1) {
                        xfertyp |= XFERTYP_MSBSEL;
                        xfertyp |= XFERTYP_BCEN;
@@ -97,6 +99,71 @@ uint esdhc_xfertyp(struct mmc_cmd *cmd, struct mmc_data *data)
        return XFERTYP_CMD(cmd->cmdidx) | xfertyp;
 }
 
+#ifdef CONFIG_SYS_FSL_ESDHC_USE_PIO
+/*
+ * PIO Read/Write Mode reduce the performace as DMA is not used in this mode.
+ */
+static int
+esdhc_pio_read_write(struct mmc *mmc, struct mmc_data *data)
+{
+       struct fsl_esdhc *regs = mmc->priv;
+       uint blocks;
+       char *buffer;
+       uint databuf;
+       uint size;
+       uint irqstat;
+       uint timeout;
+
+       if (data->flags & MMC_DATA_READ) {
+               blocks = data->blocks;
+               buffer = data->dest;
+               while (blocks) {
+                       timeout = PIO_TIMEOUT;
+                       size = data->blocksize;
+                       irqstat = esdhc_read32(&regs->irqstat);
+                       while (!(esdhc_read32(&regs->prsstat) & PRSSTAT_BREN)
+                               && --timeout);
+                       if (timeout <= 0) {
+                               printf("\nData Read Failed in PIO Mode.");
+                               return timeout;
+                       }
+                       while (size && (!(irqstat & IRQSTAT_TC))) {
+                               udelay(100); /* Wait before last byte transfer complete */
+                               irqstat = esdhc_read32(&regs->irqstat);
+                               databuf = in_le32(&regs->datport);
+                               *((uint *)buffer) = databuf;
+                               buffer += 4;
+                               size -= 4;
+                       }
+                       blocks--;
+               }
+       } else {
+               blocks = data->blocks;
+               buffer = data->src;
+               while (blocks) {
+                       timeout = PIO_TIMEOUT;
+                       size = data->blocksize;
+                       irqstat = esdhc_read32(&regs->irqstat);
+                       while (!(esdhc_read32(&regs->prsstat) & PRSSTAT_BWEN)
+                               && --timeout);
+                       if (timeout <= 0) {
+                               printf("\nData Write Failed in PIO Mode.");
+                               return timeout;
+                       }
+                       while (size && (!(irqstat & IRQSTAT_TC))) {
+                               udelay(100); /* Wait before last byte transfer complete */
+                               databuf = *((uint *)buffer);
+                               buffer += 4;
+                               size -= 4;
+                               irqstat = esdhc_read32(&regs->irqstat);
+                               out_le32(&regs->datport, databuf);
+                       }
+                       blocks--;
+               }
+       }
+}
+#endif
+
 static int esdhc_setup_data(struct mmc *mmc, struct mmc_data *data)
 {
        uint wml_value;
@@ -104,6 +171,17 @@ static int esdhc_setup_data(struct mmc *mmc, struct mmc_data *data)
        struct fsl_esdhc_cfg *cfg = (struct fsl_esdhc_cfg *)mmc->priv;
        struct fsl_esdhc *regs = (struct fsl_esdhc *)cfg->esdhc_base;
 
+#ifdef CONFIG_SYS_FSL_ESDHC_USE_PIO
+       if (!(data->flags & MMC_DATA_READ)) {
+               if ((esdhc_read32(&regs->prsstat) & PRSSTAT_WPSPL) == 0) {
+                       printf("\nThe SD card is locked. "
+                               "Can not write to a locked card.\n\n");
+                       return TIMEOUT;
+               }
+               esdhc_write32(&regs->dsaddr, (u32)data->src);
+       } else
+               esdhc_write32(&regs->dsaddr, (u32)data->dest);
+#else
        wml_value = data->blocksize/4;
 
        if (data->flags & MMC_DATA_READ) {
@@ -124,6 +202,7 @@ static int esdhc_setup_data(struct mmc *mmc, struct mmc_data *data)
                                        wml_value << 16);
                esdhc_write32(&regs->dsaddr, (u32)data->src);
        }
+#endif
 
        esdhc_write32(&regs->blkattr, data->blocks << 16 | data->blocksize);
 
@@ -220,6 +299,9 @@ esdhc_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd, struct mmc_data *data)
 
        /* Wait until all of the blocks are transferred */
        if (data) {
+#ifdef CONFIG_SYS_FSL_ESDHC_USE_PIO
+               esdhc_pio_read_write(mmc, data);
+#else
                do {
                        irqstat = esdhc_read32(&regs->irqstat);
 
@@ -230,6 +312,7 @@ esdhc_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd, struct mmc_data *data)
                                return TIMEOUT;
                } while (!(irqstat & IRQSTAT_TC) &&
                                (esdhc_read32(&regs->prsstat) & PRSSTAT_DLA));
+#endif
        }
 
        esdhc_write32(&regs->irqstat, -1);
index 82e4eed8068364fb8c7715f1f8cd2890e5eb3a8d..87ee2c2408b481291e0970175f23c72874612f7b 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * arch/ppc/kernel/pci_auto.c
+ * arch/powerpc/kernel/pci_auto.c
  *
  * PCI autoconfiguration library
  *
index c1cc23bfcdd5229f195da16402182bd15590f4a9..fa48feaf04252c0c50167898b99ddf84efcfaf37 100644 (file)
@@ -47,7 +47,7 @@
 /*--------------------------------------------------------------------+
  * Fixed PHY (PHY-less) support for Ethernet Ports.
  *
- * Copied from arch/ppc/cpu/ppc4xx/4xx_enet.c
+ * Copied from arch/powerpc/cpu/ppc4xx/4xx_enet.c
  *--------------------------------------------------------------------*/
 
 /*
index fb28aa9eb94bbc3d1ffe52958f63c3c381b58c24..2980e4d07c18105a9c27827102f9be97edc18dee 100644 (file)
@@ -38,8 +38,16 @@ int serial_init( void ) { return(0);}
 
 void serial_putc (char c)
 {
-       while (NIOS_JTAG_WSPACE ( readl (&jtag->control)) == 0)
-               WATCHDOG_RESET ();
+       while (1) {
+               unsigned st = readl(&jtag->control);
+               if (NIOS_JTAG_WSPACE(st))
+                       break;
+#ifdef CONFIG_ALTERA_JTAG_UART_BYPASS
+               if (!(st & NIOS_JTAG_AC)) /* no connection */
+                       return;
+#endif
+               WATCHDOG_RESET();
+       }
        writel ((unsigned char)c, &jtag->data);
 }
 
index b3bf10bb19cc4a8320b2d9609dea3dd98ec978b6..23c0f76ddea928c205f62f58e09a315468ca8a43 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * COM1 NS16550 support
- * originally from linux source (arch/ppc/boot/ns16550.c)
+ * originally from linux source (arch/powerpc/boot/ns16550.c)
  * modified to use CONFIG_SYS_ISA_MEM and new defines
  */
 
index dd5f332ba93a3c467603dca91915e32db93504de..8eda95cd3eddd1e2e3b183cefba3ebc9fe04d569 100644 (file)
@@ -115,6 +115,7 @@ static NS16550_t serial_ports[4] = {
        name,\
        bus,\
        eserial##port##_init,\
+       NULL,\
        eserial##port##_setbrg,\
        eserial##port##_getc,\
        eserial##port##_tstc,\
index 9ba457e75aabfa97794a0689dbb6d0b3af191c2f..b74e43957ff70d4024efc78d6b0618c437823664 100644 (file)
@@ -266,6 +266,7 @@ struct serial_device serial_ffuart_device =
        "serial_ffuart",
        "PXA",
        ffuart_init,
+       NULL,
        ffuart_setbrg,
        ffuart_getc,
        ffuart_tstc,
@@ -310,6 +311,7 @@ struct serial_device serial_btuart_device =
        "serial_btuart",
        "PXA",
        btuart_init,
+       NULL,
        btuart_setbrg,
        btuart_getc,
        btuart_tstc,
@@ -354,6 +356,7 @@ struct serial_device serial_stuart_device =
        "serial_stuart",
        "PXA",
        stuart_init,
+       NULL,
        stuart_setbrg,
        stuart_getc,
        stuart_tstc,
index 5dd4dd8160469c6d66df82fe141524132cf0d3a2..8a3e30209cfae7857d3ad59925031480f8e4c791 100644 (file)
@@ -78,6 +78,7 @@ DECLARE_GLOBAL_DATA_PTR;
        name, \
        bus, \
        s3serial##port##_init, \
+       NULL,\
        s3serial##port##_setbrg, \
        s3serial##port##_getc, \
        s3serial##port##_tstc, \
index 68b8d0101bfc7258c5f1605f9a23e88c879953b5..9747db37219313f97b287bb8b945dc9226f0cbd5 100644 (file)
@@ -185,6 +185,7 @@ void s5p_serial##port##_puts(const char *s) { serial_puts_dev(s, port); }
        name, \
        bus, \
        s5p_serial##port##_init, \
+       NULL, \
        s5p_serial##port##_setbrg, \
        s5p_serial##port##_getc, \
        s5p_serial##port##_tstc, \
index 687ffe6ace06d7d59248989870aced71cd5d4b6f..44ab39dd3ff622b5d6d17c81cd1e6b89e4b0f0d4 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * Copyright (c) 2006 Ben Warren, Qstreams Networks Inc.
- * With help from the common/soft_spi and arch/ppc/cpu/mpc8260 drivers
+ * With help from the common/soft_spi and arch/powerpc/cpu/mpc8260 drivers
  *
  * See file CREDITS for list of people who contributed to this
  * project.
index 1e1d507652a0969d48a232fe462bcd03ad3faa7f..99a595e8820d44ca7c711a1e42e6c63127346881 100644 (file)
@@ -56,6 +56,7 @@ void lcd_panel_disable(void)
 
 #define msleep(a) udelay(a * 1000)
 
+#ifndef CONFIG_DISPLAY_VBEST_VGG322403
 #define XRES           240
 #define YRES           320
 #define PANEL_TYPE     IPU_PANEL_TFT
@@ -70,6 +71,22 @@ void lcd_panel_disable(void)
 #define SIG_POL                (DI_D3_DRDY_SHARP_POL | DI_D3_CLK_POL)
 #define IF_CONF                0
 #define IF_CLK_DIV     0x175
+#else /* Display Vbest VGG322403 */
+#define XRES           320
+#define YRES           240
+#define PANEL_TYPE     IPU_PANEL_TFT
+#define PIXEL_CLK      156000
+#define PIXEL_FMT      IPU_PIX_FMT_RGB666
+#define H_START_WIDTH  20              /* left_margin */
+#define H_SYNC_WIDTH   30              /* hsync_len */
+#define H_END_WIDTH    (38 + 30)       /* right_margin + hsync_len */
+#define V_START_WIDTH  7               /* upper_margin */
+#define V_SYNC_WIDTH   3               /* vsync_len */
+#define V_END_WIDTH    (26 + 3)        /* lower_margin + vsync_len */
+#define SIG_POL                (DI_D3_DRDY_SHARP_POL | DI_D3_CLK_POL)
+#define IF_CONF                0
+#define IF_CLK_DIV     0x175
+#endif
 
 #define LCD_COLOR_IPU  LCD_COLOR16
 
index bed16f15558e9478cba89c21987cca0f25394da1..5b5f7a681c5e622b656f8a7269a69a604fbf10a9 100644 (file)
@@ -20,7 +20,7 @@
 # MA 02111-1307 USA
 #
 
-ifeq ($(ARCH),ppc)
+ifeq ($(ARCH),powerpc)
 LOAD_ADDR = 0x40000
 endif
 ifeq ($(ARCH),arm)
@@ -46,8 +46,8 @@ EXT_COBJ_FILES-$(CONFIG_API) += lib/div64.o
 EXT_COBJ_FILES-$(CONFIG_API) += lib/string.o
 EXT_COBJ_FILES-$(CONFIG_API) += lib/time.o
 EXT_COBJ_FILES-$(CONFIG_API) += lib/vsprintf.o
-ifeq ($(ARCH),ppc)
-EXT_SOBJ_FILES-$(CONFIG_API) += arch/ppc/lib/ppcstring.o
+ifeq ($(ARCH),powerpc)
+EXT_SOBJ_FILES-$(CONFIG_API) += arch/powerpc/lib/ppcstring.o
 endif
 
 # Create a list of source files so their dependencies can be auto-generated
index eeff5f5f2de1f35280e03bcc4061afdf0064a3fb..f35f1ba5f6daa4666e61b58cd79f82491491d958 100644 (file)
@@ -1,5 +1,5 @@
 /* The dpalloc function used and implemented in this file was derieved
- * from PPCBoot/U-Boot file "arch/ppc/cpu/mpc8260/commproc.c".
+ * from PPCBoot/U-Boot file "arch/powerpc/cpu/mpc8260/commproc.c".
  */
 
 /* Author: Arun Dharankar <ADharankar@ATTBI.Com>
@@ -7,7 +7,7 @@
  */
 
 /*
- * This file is based on "arch/ppc/8260_io/commproc.c" - here is it's
+ * This file is based on "arch/powerpc/8260_io/commproc.c" - here is it's
  * copyright notice:
  *
  * General Purpose functions for the global management of the
index 1478ec8c3ca2f8433c0fef115823d8587107205e..94695fc285d6ccdce7765db363558140deeeb02f 100644 (file)
 #endif
 
 #define CONFIG_CMDLINE_EDITING 1
-
+#define CONFIG_AUTO_COMPLETE   /* add autocompletion support   */
 
 /*
  * Miscellaneous configurable options
 
 #define CONFIG_SYS_HID0_INIT   0x000000000
 #define CONFIG_SYS_HID0_FINAL  (HID0_ENABLE_MACHINE_CHECK | \
-                        HID0_ENABLE_DYNAMIC_POWER_MANAGMENT)
+                                HID0_ENABLE_INSTRUCTION_CACHE | \
+                                HID0_ENABLE_DYNAMIC_POWER_MANAGMENT)
 
 #define CONFIG_SYS_HID2 HID2_HBE
 
index a8570ce55a974f1e2635c68a080dcdbd13030f92..6972fe8cd14d1e3a1b3b933da0041f87e58f8ece 100644 (file)
 #endif
 
 #define CONFIG_CMDLINE_EDITING 1       /* add command line history */
+#define CONFIG_AUTO_COMPLETE           /* add autocompletion support   */
 
 #undef CONFIG_WATCHDOG         /* watchdog disabled */
 
 /*
  * Core HID Setup
  */
-#define CONFIG_SYS_HID0_INIT           0x000000000
-#define CONFIG_SYS_HID0_FINAL          (HID0_ENABLE_MACHINE_CHECK | \
+#define CONFIG_SYS_HID0_INIT   0x000000000
+#define CONFIG_SYS_HID0_FINAL  (HID0_ENABLE_MACHINE_CHECK | \
+                                HID0_ENABLE_INSTRUCTION_CACHE | \
                                 HID0_ENABLE_DYNAMIC_POWER_MANAGMENT)
 #define CONFIG_SYS_HID2                HID2_HBE
 
index 4046f80b5a5caf942aac22c3011171249353ab87..7c843939c280fa44504bc30e3dfedd5ce2f2ac50 100644 (file)
 #define CONFIG_SYS_NS16550_COM2        (CONFIG_SYS_IMMR+0x4600)
 
 #define CONFIG_CMDLINE_EDITING 1       /* add command line history */
+#define CONFIG_AUTO_COMPLETE           /* add autocompletion support   */
 /* Use the HUSH parser */
 #define CONFIG_SYS_HUSH_PARSER
 #ifdef CONFIG_SYS_HUSH_PARSER
 /*
  * Core HID Setup
  */
-#define CONFIG_SYS_HID0_INIT           0x000000000
-#define CONFIG_SYS_HID0_FINAL          HID0_ENABLE_MACHINE_CHECK
+#define CONFIG_SYS_HID0_INIT   0x000000000
+#define CONFIG_SYS_HID0_FINAL  (HID0_ENABLE_MACHINE_CHECK | \
+                                HID0_ENABLE_INSTRUCTION_CACHE)
 #define CONFIG_SYS_HID2                HID2_HBE
 
 /*
index 2ad5f60094c94b5e104b24854733dad3434df79f..7bd279369e4149c6dca158392e4604cdfda8f502 100644 (file)
 #define CONFIG_SYS_NS16550_COM2        (CONFIG_SYS_IMMR+0x4600)
 
 #define CONFIG_CMDLINE_EDITING 1       /* add command line history     */
+#define CONFIG_AUTO_COMPLETE           /* add autocompletion support   */
 /* Use the HUSH parser */
 #define CONFIG_SYS_HUSH_PARSER
 #ifdef CONFIG_SYS_HUSH_PARSER
 /*
  * Core HID Setup
  */
-#define CONFIG_SYS_HID0_INIT           0x000000000
-#define CONFIG_SYS_HID0_FINAL          HID0_ENABLE_MACHINE_CHECK
+#define CONFIG_SYS_HID0_INIT   0x000000000
+#define CONFIG_SYS_HID0_FINAL  (HID0_ENABLE_MACHINE_CHECK | \
+                                HID0_ENABLE_INSTRUCTION_CACHE)
 #define CONFIG_SYS_HID2                HID2_HBE
 
 /*
index bf28d9eaba42e6bd2dbc61aeb2f7faa0b0b7f6f4..73dbea4b74111f0a286466039f8b4c11bd22a77d 100644 (file)
 #define CONFIG_SYS_NS16550_COM2        (CONFIG_SYS_IMMR+0x4600)
 
 #define CONFIG_CMDLINE_EDITING 1       /* add command line history     */
+#define CONFIG_AUTO_COMPLETE           /* add autocompletion support   */
 /* Use the HUSH parser */
 #define CONFIG_SYS_HUSH_PARSER
 #ifdef  CONFIG_SYS_HUSH_PARSER
 #define CONFIG_SYS_SICRL SICRL_LDP_A
 
 #define CONFIG_SYS_HID0_INIT   0x000000000
-#define CONFIG_SYS_HID0_FINAL  HID0_ENABLE_MACHINE_CHECK
+#define CONFIG_SYS_HID0_FINAL  (HID0_ENABLE_MACHINE_CHECK | \
+                                HID0_ENABLE_INSTRUCTION_CACHE)
 
 /* #define CONFIG_SYS_HID0_FINAL               (\
        HID0_ENABLE_INSTRUCTION_CACHE |\
index 52e2851620343af48356351492b317680b54fd13..9be571fecf5bc47c775f2809266ea8b820f9b079 100644 (file)
@@ -63,6 +63,7 @@
 /*
  * High Level Configuration Options
  */
+#define CONFIG_MPC83xx         1
 #define CONFIG_MPC834x         /* MPC834x family (8343, 8347, 8349) */
 #define CONFIG_MPC8349         /* MPC8349 specific */
 
@@ -511,7 +512,8 @@ boards, we say we have two, but don't display a message if we find only one. */
  * Miscellaneous configurable options
  */
 #define CONFIG_SYS_LONGHELP                    /* undef to save memory */
-#define CONFIG_CMDLINE_EDITING         /* Command-line editing */
+#define CONFIG_CMDLINE_EDITING                 /* Command-line editing */
+#define CONFIG_AUTO_COMPLETE                   /* add autocompletion support */
 #define CONFIG_SYS_HUSH_PARSER                 /* Use the HUSH parser */
 #define CONFIG_SYS_PROMPT_HUSH_PS2 "> "
 
@@ -595,8 +597,8 @@ boards, we say we have two, but don't display a message if we find only one. */
 #define CONFIG_SYS_SICRH SICRH_TSOBI1  /* Needed for gigabit to work on TSEC 1 */
 #define CONFIG_SYS_SICRL (SICRL_LDP_A | SICRL_USB1)    /* USB DR as device + USB MPH as host */
 
-#define CONFIG_SYS_HID0_INIT   0x000000000
-#define CONFIG_SYS_HID0_FINAL  CONFIG_SYS_HID0_INIT
+#define CONFIG_SYS_HID0_INIT   0x00000000
+#define CONFIG_SYS_HID0_FINAL  HID0_ENABLE_INSTRUCTION_CACHE
 
 #define CONFIG_SYS_HID2        HID2_HBE
 #define CONFIG_HIGH_BATS       1       /* High BATs supported */
index b9b5eaba2e728a192565707a4ff621895af610a8..87a137b3a33cca616b6b5f80219c200383e8f947 100644 (file)
 #define CONFIG_SYS_NS16550_COM2        (CONFIG_SYS_IMMR+0x4600)
 
 #define CONFIG_CMDLINE_EDITING 1       /* add command line history     */
+#define CONFIG_AUTO_COMPLETE           /* add autocompletion support   */
 /* Use the HUSH parser */
 #define CONFIG_SYS_HUSH_PARSER
 #ifdef CONFIG_SYS_HUSH_PARSER
 /*
  * Core HID Setup
  */
-#define CONFIG_SYS_HID0_INIT           0x000000000
-#define CONFIG_SYS_HID0_FINAL          HID0_ENABLE_MACHINE_CHECK
+#define CONFIG_SYS_HID0_INIT   0x000000000
+#define CONFIG_SYS_HID0_FINAL  (HID0_ENABLE_MACHINE_CHECK | \
+                                HID0_ENABLE_INSTRUCTION_CACHE)
 #define CONFIG_SYS_HID2                HID2_HBE
 
 /*
index c7bc9cddb8119eb35a229aac1e509fb5099f8f98..e78cf60a109ffb9d08aa71831e2c1f9839288240 100644 (file)
 #define CONFIG_SYS_NS16550_COM2        (CONFIG_SYS_IMMR+0x4600)
 
 #define CONFIG_CMDLINE_EDITING 1       /* add command line history */
+#define CONFIG_AUTO_COMPLETE           /* add autocompletion support   */
 /* Use the HUSH parser */
 #define CONFIG_SYS_HUSH_PARSER
 #ifdef CONFIG_SYS_HUSH_PARSER
 /*
  * Core HID Setup
  */
-#define CONFIG_SYS_HID0_INIT           0x000000000
-#define CONFIG_SYS_HID0_FINAL          HID0_ENABLE_MACHINE_CHECK
+#define CONFIG_SYS_HID0_INIT   0x000000000
+#define CONFIG_SYS_HID0_FINAL  (HID0_ENABLE_MACHINE_CHECK | \
+                                HID0_ENABLE_INSTRUCTION_CACHE)
 #define CONFIG_SYS_HID2                HID2_HBE
 
 /*
index 65d49ecd928cf6655f882ae630ed978cc493278f..b30d0e385a492b9f0d91f4f7397e44d8dc5109e0 100644 (file)
@@ -500,6 +500,7 @@ extern int board_pci_host_broken(void);
 #endif
 
 #define CONFIG_CMDLINE_EDITING 1       /* add command line history */
+#define CONFIG_AUTO_COMPLETE           /* add autocompletion support   */
 
 #undef CONFIG_WATCHDOG         /* watchdog disabled */
 
@@ -543,8 +544,9 @@ extern int board_pci_host_broken(void);
 /*
  * Core HID Setup
  */
-#define CONFIG_SYS_HID0_INIT           0x000000000
-#define CONFIG_SYS_HID0_FINAL          HID0_ENABLE_MACHINE_CHECK
+#define CONFIG_SYS_HID0_INIT   0x000000000
+#define CONFIG_SYS_HID0_FINAL  (HID0_ENABLE_MACHINE_CHECK | \
+                                HID0_ENABLE_INSTRUCTION_CACHE)
 #define CONFIG_SYS_HID2                HID2_HBE
 
 /*
index ca60272263edae72620453de0e79498274460dd9..1654f46a46574ee97063a06c697040b5be8c5311 100644 (file)
 #endif
 
 #define CONFIG_CMDLINE_EDITING 1       /* add command line history */
+#define CONFIG_AUTO_COMPLETE           /* add autocompletion support   */
 
 #undef CONFIG_WATCHDOG         /* watchdog disabled */
 
 /*
  * Core HID Setup
  */
-#define CONFIG_SYS_HID0_INIT           0x000000000
-#define CONFIG_SYS_HID0_FINAL          HID0_ENABLE_MACHINE_CHECK
+#define CONFIG_SYS_HID0_INIT   0x000000000
+#define CONFIG_SYS_HID0_FINAL  (HID0_ENABLE_MACHINE_CHECK | \
+                                HID0_ENABLE_INSTRUCTION_CACHE)
 #define CONFIG_SYS_HID2                HID2_HBE
 
 /*
index f8b016feed31c56ac6b9501ab543caa6ea2dc2a2..26897c69aff0635216b25f86dc4bb6a38f78a108 100644 (file)
  */
 #define CONFIG_SYS_LONGHELP
 #define CONFIG_CMDLINE_EDITING
+#define CONFIG_AUTO_COMPLETE           /* add autocompletion support   */
 #define CONFIG_SYS_HUSH_PARSER
 #define CONFIG_SYS_PROMPT_HUSH_PS2 "> "
 
 #define CONFIG_SYS_SICRL       (SICRL_LDP_A | SICRL_USB1 | SICRL_USB0)
 
 #define CONFIG_SYS_HID0_INIT   0x000000000
-#define CONFIG_SYS_HID0_FINAL  CONFIG_SYS_HID0_INIT
+#define CONFIG_SYS_HID0_FINAL  (CONFIG_SYS_HID0_INIT | \
+                                HID0_ENABLE_INSTRUCTION_CACHE)
 
 #define CONFIG_SYS_HID2        HID2_HBE
 #define CONFIG_HIGH_BATS       1
index 36e952e741341671cf2e7520b0650b86ce10d4fc..84af8df9c999eec406187bfffb1c6e28e10fda33 100644 (file)
 #endif
 
 #define CONFIG_CMDLINE_EDITING         1
-
+#define CONFIG_AUTO_COMPLETE           /* add autocompletion support   */
 
 /*
  * Miscellaneous configurable options
                                | SICRL_ETSEC2_A )
 
 #define CONFIG_SYS_HID0_INIT   0x000000000
-#define CONFIG_SYS_HID0_FINAL  (HID0_ENABLE_MACHINE_CHECK      \
-                               | HID0_ENABLE_DYNAMIC_POWER_MANAGMENT )
+#define CONFIG_SYS_HID0_FINAL  (HID0_ENABLE_MACHINE_CHECK | \
+                                HID0_ENABLE_INSTRUCTION_CACHE | \
+                                HID0_ENABLE_DYNAMIC_POWER_MANAGMENT )
 
 #define CONFIG_SYS_HID2                HID2_HBE
 
index 4c909e61ad0cb1010c6fef9c7cdfce3f179d17d2..c1e0e6429a234c8e7365e8e0910b83d65495e2f5 100644 (file)
@@ -332,6 +332,8 @@ extern int tqm834x_num_flash_banks;
 #define CONFIG_SYS_PROMPT              "=> "           /* Monitor Command Prompt */
 
 #define CONFIG_CMDLINE_EDITING 1       /* add command line history     */
+#define CONFIG_AUTO_COMPLETE           /* add autocompletion support   */
+
 #define CONFIG_SYS_HUSH_PARSER         1       /* Use the HUSH parser          */
 #ifdef CONFIG_SYS_HUSH_PARSER
 #define        CONFIG_SYS_PROMPT_HUSH_PS2      "> "
@@ -403,7 +405,8 @@ extern int tqm834x_num_flash_banks;
 
 /* i-cache and d-cache disabled */
 #define CONFIG_SYS_HID0_INIT   0x000000000
-#define CONFIG_SYS_HID0_FINAL  CONFIG_SYS_HID0_INIT
+#define CONFIG_SYS_HID0_FINAL  (CONFIG_SYS_HID0_INIT | \
+                                HID0_ENABLE_INSTRUCTION_CACHE)
 #define CONFIG_SYS_HID2        HID2_HBE
 
 #define CONFIG_HIGH_BATS       1       /* High BATs supported */
index 06763c5d966b12738f3d9a55df608688323f3f16..c5f9cc1046f747452bc03c1a61c777076b6c329e 100644 (file)
@@ -78,6 +78,9 @@
 #define CONFIG_SYS_DDR_SIZE            256             /* MB */
 #define CONFIG_SYS_DDR_BASE            0x00000000
 #define CONFIG_SYS_SDRAM_BASE          CONFIG_SYS_DDR_BASE
+#define CONFIG_SYS_MAX_RAM_SIZE                0x20000000
+
+#define CONFIG_SYS_IOCTRL_MUX_DDR      0x00000036
 
 /* DDR Controller Configuration
  *
 
 /*
  * Backward compatible definitions,
- * so we do not have to change arch/ppc/cpu/mpc512x/fixed_sdram.c
+ * so we do not have to change arch/powerpc/cpu/mpc512x/fixed_sdram.c
  */
 #define        CONFIG_SYS_DDRCMD_EM2           (CONFIG_SYS_MICRON_EMR2)
 #define CONFIG_SYS_DDRCMD_EM3          (CONFIG_SYS_MICRON_EMR3)
index 44669ea44d36bfb79723d87cf0ad630019c0133c..29951f7f122090953b0a3a0f6f383b568ce2e362 100644 (file)
 
 #define CONFIG_SYS_FLASH_BASE          0xfe000000
 /*
- * The flash size is autoconfigured, but arch/ppc/cpu/mpc5xxx/cpu_init.c needs this
+ * The flash size is autoconfigured, but arch/powerpc/cpu/mpc5xxx/cpu_init.c needs this
  * variable defined
  */
 #define CONFIG_SYS_FLASH_SIZE          0x02000000
index e5537da4af0a322e8686a40d82891d058a4e9cf4..48dc9463a8d20c762be5d0289a9dab3bb092668f 100644 (file)
  *       SDRAM Controller DDR autocalibration values and takes a lot longer
  *       to run than Method_B.
  * (See the Method_A and Method_B algorithm discription in the file:
- *     arch/ppc/cpu/ppc4xx/4xx_ibm_ddr2_autocalib.c)
+ *     arch/powerpc/cpu/ppc4xx/4xx_ibm_ddr2_autocalib.c)
  * Define CONFIG_PPC4xx_DDR_METHOD_A to use DDR autocalibration Method_A
  *
  * DDR Autocalibration Method_B is the default.
index d27b75b6471177755723ef5b898e532b7f4c995d..64972317fba17f518a7e9724860a613ded4e1ada 100644 (file)
  * Core HID Setup
  */
 #define CONFIG_SYS_HID0_INIT           0x000000000
-#define CONFIG_SYS_HID0_FINAL          HID0_ENABLE_MACHINE_CHECK
+#define CONFIG_SYS_HID0_FINAL          (HID0_ENABLE_MACHINE_CHECK | \
+                                        HID0_ENABLE_INSTRUCTION_CACHE)
 #define CONFIG_SYS_HID2                        HID2_HBE
 
 /*
index 3958d09eb9324d597cffe40f99d6b92a3413b9d8..6883e79e371354e036e781b55b14c8dcb5c51128 100644 (file)
  * taken from the orignal Linkstation boot code
  *
  * Most of the low level configuration setttings are normally used
- * in arch/ppc/cpu/mpc824x/cpu_init.c which is NOT used by this implementation.
+ * in arch/powerpc/cpu/mpc824x/cpu_init.c which is NOT used by this implementation.
  * Low level initialisation is done in board/linkstation/early_init.S
  * The values below are included for reference purpose only
  */
index cccc31d5edc983fd0430eb4c8727c43cc5d1ee7d..92c4f5fdb30f39ddc3c9e3f780953e4120e047c5 100644 (file)
@@ -66,6 +66,9 @@
 
 #define CONFIG_SYS_DDR_BASE            0x00000000      /* DDR is sys memory*/
 #define CONFIG_SYS_SDRAM_BASE          CONFIG_SYS_DDR_BASE
+#define CONFIG_SYS_MAX_RAM_SIZE                0x20000000
+
+#define CONFIG_SYS_IOCTRL_MUX_DDR      0x00000036
 
 /* DDR Controller Configuration
  *
diff --git a/include/configs/mpc5121-common.h b/include/configs/mpc5121-common.h
new file mode 100644 (file)
index 0000000..96fab20
--- /dev/null
@@ -0,0 +1,53 @@
+/*
+ * (C) Copyright 2010 DENX Software Engineering
+ * Anatolij Gustschin <agust@denx.de>
+ *
+ * Common configuration options for MPC5121 based boards
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of
+ * the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ */
+
+#ifndef __MPC5121_COMMON_H
+#define __MPC5121_COMMON_H
+
+/* Use SRAM for initial stack */
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_SRAM_BASE /* Init RAM base */
+#define CONFIG_SYS_INIT_RAM_END                CONFIG_SYS_SRAM_SIZE /* End of area */
+
+#define CONFIG_SYS_GBL_DATA_SIZE       0x100   /* num bytes of initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - \
+                                        CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_POST_WORD_ADDR      (CONFIG_SYS_GBL_DATA_OFFSET - 0x4)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_POST_WORD_ADDR
+
+#define CONFIG_SYS_MEMTEST_START       0x00200000      /* memtest region */
+#define CONFIG_SYS_MEMTEST_END         0x00400000
+
+/*
+ * Serial console
+ */
+#define CONFIG_BAUDRATE                115200
+#define CONFIG_SYS_BAUDRATE_TABLE \
+       {300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200}
+
+#define CONFIG_CMDLINE_EDITING         1       /* command line history */
+/* Use the HUSH parser */
+#define CONFIG_SYS_HUSH_PARSER
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
+#endif
+
+#endif /* __MPC5121_COMMON_H */
index fb49388bd0f6b76f5f635d0df6099791f8cc6abc..5281042efd10aeae32a6b5e4ec4b22dcdde4e361 100644 (file)
@@ -85,6 +85,9 @@
 #endif
 #define CONFIG_SYS_DDR_BASE            0x00000000      /* DDR is system memory*/
 #define CONFIG_SYS_SDRAM_BASE          CONFIG_SYS_DDR_BASE
+#define CONFIG_SYS_MAX_RAM_SIZE                0x20000000
+
+#define CONFIG_SYS_IOCTRL_MUX_DDR      0x00000036
 
 /* DDR Controller Configuration
  *
diff --git a/include/configs/nios2-generic.h b/include/configs/nios2-generic.h
new file mode 100644 (file)
index 0000000..e83e1e3
--- /dev/null
@@ -0,0 +1,153 @@
+/*
+ * (C) Copyright 2005, Psyent Corporation <www.psyent.com>
+ * Scott McNutt <smcnutt@psyent.com>
+ * (C) Copyright 2010, Thomas Chou <thomas@wytron.com.tw>
+ *
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of
+ * the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.         See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ */
+
+#ifndef __CONFIG_H
+#define __CONFIG_H
+
+/*
+ * BOARD/CPU
+ */
+#include "../board/altera/nios2-generic/custom_fpga.h" /* fpga parameters */
+#define CONFIG_BOARD_NAME "nios2-generic" /* custom board name */
+#define CONFIG_BOARD_EARLY_INIT_F      /* enable early board-spec. init */
+#define CONFIG_SYS_NIOS_SYSID_BASE     CONFIG_SYS_SYSID_BASE
+
+/*
+ * SERIAL
+ */
+#define CONFIG_ALTERA_UART
+#if defined(CONFIG_ALTERA_JTAG_UART)
+# define CONFIG_SYS_NIOS_CONSOLE       CONFIG_SYS_JTAG_UART_BASE
+#else
+# define CONFIG_SYS_NIOS_CONSOLE       CONFIG_SYS_UART_BASE
+#endif
+
+#define CONFIG_ALTERA_JTAG_UART_BYPASS
+#define CONFIG_SYS_NIOS_FIXEDBAUD
+#define CONFIG_BAUDRATE                CONFIG_SYS_UART_BAUD
+#define CONFIG_SYS_BAUDRATE_TABLE      {CONFIG_BAUDRATE}
+#define CONFIG_SYS_CONSOLE_INFO_QUIET  /* Suppress console info */
+
+/*
+ * TIMER
+ */
+#define CONFIG_SYS_NIOS_TMRBASE        CONFIG_SYS_TIMER_BASE
+#define CONFIG_SYS_NIOS_TMRIRQ         CONFIG_SYS_TIMER_IRQ
+#define CONFIG_SYS_HZ                  1000    /* Always 1000 */
+#define CONFIG_SYS_NIOS_TMRMS          10      /* Desired period (msec)*/
+#define CONFIG_SYS_NIOS_TMRCNT \
+       (CONFIG_SYS_NIOS_TMRMS * (CONFIG_SYS_TIMER_FREQ / 1000) - 1)
+
+/*
+ * STATUS LED
+ */
+#define CONFIG_STATUS_LED              /* Enable status driver */
+#define CONFIG_EPLED                   /* Enable LED PIO driver */
+#define CONFIG_SYS_LEDPIO_ADDR         LED_PIO_BASE
+
+#define STATUS_LED_BIT                 1       /* Bit-0 on PIO */
+#define STATUS_LED_STATE               1       /* Blinking */
+#define STATUS_LED_PERIOD      (500 / CONFIG_SYS_NIOS_TMRMS) /* 500 msec */
+
+/*
+ * BOOTP options
+ */
+#define CONFIG_BOOTP_BOOTFILESIZE
+#define CONFIG_BOOTP_BOOTPATH
+#define CONFIG_BOOTP_GATEWAY
+#define CONFIG_BOOTP_HOSTNAME
+
+/*
+ * Command line configuration.
+ */
+#include <config_cmd_default.h>
+#undef CONFIG_CMD_BOOTD
+#undef CONFIG_CMD_FPGA
+#undef CONFIG_CMD_IMLS
+#undef CONFIG_CMD_ITEST
+#undef CONFIG_CMD_NFS
+#undef CONFIG_CMD_SETGETDCR
+#undef CONFIG_CMD_XIMG
+
+#ifdef CONFIG_CMD_NET
+# define CONFIG_NET_MULTI
+# define CONFIG_CMD_DHCP
+# define CONFIG_CMD_PING
+#endif
+
+/*
+ * ENVIRONMENT -- Put environment in sector CONFIG_SYS_MONITOR_LEN above
+ * CONFIG_SYS_RESET_ADDR, since we assume the monitor is stored at the
+ * reset address, no? This will keep the environment in user region
+ * of flash. NOTE: the monitor length must be multiple of sector size
+ * (which is common practice).
+ */
+#define CONFIG_ENV_IS_IN_FLASH
+
+#define CONFIG_ENV_SIZE                0x10000 /* 64k, 1 sector */
+#define CONFIG_ENV_OVERWRITE           /* Serial change Ok     */
+#define CONFIG_ENV_ADDR                ((CONFIG_SYS_RESET_ADDR + \
+                                         CONFIG_SYS_MONITOR_LEN) | \
+                                        CONFIG_SYS_FLASH_BASE)
+
+/*
+ * MEMORY ORGANIZATION
+ *     -Monitor at top of sdram.
+ *     -The heap is placed below the monitor
+ *     -Global data is placed below the heap.
+ *     -The stack is placed below global data (&grows down).
+ */
+#define CONFIG_MONITOR_IS_IN_RAM
+#define CONFIG_SYS_MONITOR_LEN         0x40000 /* Reserve 256k */
+#define CONFIG_SYS_MONITOR_BASE        (CONFIG_SYS_SDRAM_BASE + \
+                                        CONFIG_SYS_SDRAM_SIZE - \
+                                        CONFIG_SYS_MONITOR_LEN)
+#define CONFIG_SYS_GBL_DATA_SIZE       256     /* Global data size rsvd */
+#define CONFIG_SYS_MALLOC_LEN          (CONFIG_ENV_SIZE + 0x20000)
+#define CONFIG_SYS_MALLOC_BASE         (CONFIG_SYS_MONITOR_BASE - \
+                                        CONFIG_SYS_MALLOC_LEN)
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_MALLOC_BASE - \
+                                        CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP             CONFIG_SYS_GBL_DATA_OFFSET
+
+/*
+ * MISC
+ */
+#define CONFIG_SYS_LONGHELP            /* Provide extended help */
+#define CONFIG_SYS_PROMPT              "==> "  /* Command prompt       */
+#define CONFIG_SYS_CBSIZE              256     /* Console I/O buf size */
+#define CONFIG_SYS_MAXARGS             16      /* Max command args     */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE /* Bootarg buf size */
+#define CONFIG_SYS_PBSIZE              (CONFIG_SYS_CBSIZE + \
+                                       sizeof(CONFIG_SYS_PROMPT) + \
+                                        16)    /* Print buf size */
+#define CONFIG_SYS_LOAD_ADDR           CONFIG_SYS_SDRAM_BASE
+#define CONFIG_SYS_MEMTEST_START       CONFIG_SYS_SDRAM_BASE
+#define CONFIG_SYS_MEMTEST_END         (CONFIG_SYS_INIT_SP - 0x20000)
+#define CONFIG_CMDLINE_EDITING
+
+#define CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
+
+#endif /* __CONFIG_H */
diff --git a/include/configs/pdm360ng.h b/include/configs/pdm360ng.h
new file mode 100644 (file)
index 0000000..718abdf
--- /dev/null
@@ -0,0 +1,486 @@
+/*
+ * (C) Copyright 2009-2010
+ * Michael Weiß, ifm ecomatic gmbh, michael.weiss@ifm.com
+ *
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of
+ * the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.         See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ */
+
+/*
+ * pdm360ng board configuration file
+ */
+
+#ifndef __CONFIG_H
+#define __CONFIG_H
+
+#define CONFIG_PDM360NG 1
+
+/*
+ * Memory map for the PDM360NG board:
+ *
+ * 0x0000_0000 - 0x1FFF_FFFF   DDR RAM (512 MB)
+ * 0x2000_0000 - 0x3FFF_FFFF   reserved (DDR RAM (512 MB)
+ * 0x5000_0000 - 0x5001_FFFF   SRAM (128 KB)
+ * 0x5004_0000 - 0x5005_FFFF   MRAM (CS2) (128 KB)
+ * 0x8000_0000 - 0x803F_FFFF   IMMR (4 MB)
+ * 0xF000_0000 - 0xF7FF_FFFF   NOR FLASH (CS0) (128 MB)
+ * 0xF800_0000 - 0xFFFF_FFFF   NOR FLASH (CS1) (128 MB) optional
+ */
+
+/*
+ * High Level Configuration Options
+ */
+#define CONFIG_E300            1       /* E300 Family */
+#define CONFIG_MPC512X         1       /* MPC512X family */
+#define CONFIG_FSL_DIU_FB      1       /* FSL DIU */
+
+/* Used for silent command in environment */
+#define CONFIG_SYS_DEVICE_NULLDEV
+#define CONFIG_SILENT_CONSOLE
+
+/* Video */
+#define CONFIG_VIDEO
+
+#if defined(CONFIG_VIDEO)
+#define CONFIG_CFB_CONSOLE
+#define CONFIG_VGA_AS_SINGLE_DEVICE
+#define CONFIG_SPLASH_SCREEN
+#define CONFIG_VIDEO_LOGO
+#define CONFIG_VIDEO_BMP_RLE8
+#define CONFIG_VIDEO_XRES      800
+#define CONFIG_VIDEO_YRES      480
+#endif
+
+#define CONFIG_SYS_MPC512X_CLKIN       33333333        /* in Hz */
+
+#define CONFIG_BOARD_EARLY_INIT_F      /* call board_early_init_f() */
+#define CONFIG_MISC_INIT_R
+
+#define CONFIG_SYS_IMMR                        0x80000000
+#define CONFIG_SYS_DIU_ADDR            ((CONFIG_SYS_IMMR) + 0x2100)
+
+/*
+ * DDR Setup
+ */
+
+/* DDR is system memory */
+#define CONFIG_SYS_DDR_BASE            0x00000000
+#define CONFIG_SYS_SDRAM_BASE          CONFIG_SYS_DDR_BASE
+#define CONFIG_SYS_MAX_RAM_SIZE                0x40000000
+
+/* DDR pin mux and slew rate */
+#define CONFIG_SYS_IOCTRL_MUX_DDR      0x00000012
+
+/* Manually set all parameters as there's no SPD etc. */
+/*
+ * DDR Controller Configuration for Micron DDR2 SDRAM MT47H128M8-3
+ *
+ * SYS_CFG:
+ *     [31:31] MDDRC Soft Reset:       Diabled
+ *     [30:30] DRAM CKE pin:           Enabled
+ *     [29:29] DRAM CLK:               Enabled
+ *     [28:28] Command Mode:           Enabled (For initialization only)
+ *     [27:25] DRAM Row Select:        dram_row[15:0] = magenta_address[25:10]
+ *     [24:21] DRAM Bank Select:       dram_bank[1:0] = magenta_address[11:10]
+ *     [20:19] Read Test:              DON'T USE
+ *     [18:18] Self Refresh:           Enabled
+ *     [17:17] 16bit Mode:             Disabled
+ *     [16:13] Read Delay:             3
+ *     [12:12] Half DQS Delay:         Disabled
+ *     [11:11] Quarter DQS Delay:      Disabled
+ *     [10:08] Write Delay:            2
+ *     [07:07] Early ODT:              Disabled
+ *     [06:06] On DIE Termination:     Enabled
+ *     [05:05] FIFO Overflow Clear:    DON'T USE here
+ *     [04:04] FIFO Underflow Clear:   DON'T USE here
+ *     [03:03] FIFO Overflow Pending:  DON'T USE here
+ *     [02:02] FIFO Underlfow Pending: DON'T USE here
+ *     [01:01] FIFO Overlfow Enabled:  Enabled
+ *     [00:00] FIFO Underflow Enabled: Enabled
+ * TIME_CFG0
+ *     [31:16] DRAM Refresh Time:      0 CSB clocks
+ *     [15:8]  DRAM Command Time:      0 CSB clocks
+ *     [07:00] DRAM Precharge Time:    0 CSB clocks
+ * TIME_CFG1
+ *     [31:26] DRAM tRFC:
+ *     [25:21] DRAM tWR1:
+ *     [20:17] DRAM tWRT1:
+ *     [16:11] DRAM tDRR:
+ *     [10:05] DRAM tRC:
+ *     [04:00] DRAM tRAS:
+ * TIME_CFG2
+ *     [31:28] DRAM tRCD:
+ *     [27:23] DRAM tFAW:
+ *     [22:19] DRAM tRTW1:
+ *     [18:15] DRAM tCCD:
+ *     [14:10] DRAM tRTP:
+ *     [09:05] DRAM tRP:
+ *     [04:00] DRAM tRPA
+ */
+#define CONFIG_SYS_MDDRC_SYS_CFG       0xEA804A40
+#define CONFIG_SYS_MDDRC_TIME_CFG0     0x030C3D2E
+#define CONFIG_SYS_MDDRC_TIME_CFG1     0x68EC1168
+#define CONFIG_SYS_MDDRC_TIME_CFG2     0x34310864
+
+/*
+ * Alternative 1: small RAM (128 MB) configuration
+ */
+#define CONFIG_SYS_MDDRC_SYS_CFG_ALT1  0xE8604A40
+#define CONFIG_SYS_MDDRC_TIME_CFG0_ALT1        0x030C3D2E
+#define CONFIG_SYS_MDDRC_TIME_CFG1_ALT1        0x3CEC1168
+#define CONFIG_SYS_MDDRC_TIME_CFG2_ALT1        0x33310863
+
+#define CONFIG_SYS_MDDRC_SYS_CFG_EN    0xF0000000
+
+#define CONFIG_SYS_DDRCMD_NOP          0x01380000
+#define CONFIG_SYS_DDRCMD_PCHG_ALL     0x01100400
+#define CONFIG_SYS_DDRCMD_EM2          0x01020000  /* EMR2 */
+#define CONFIG_SYS_DDRCMD_EM3          0x01030000  /* EMR3 */
+/* EMR with 150 ohm ODT todo: verify */
+#define CONFIG_SYS_DDRCMD_EN_DLL       0x01010040
+#define CONFIG_SYS_DDRCMD_RES_DLL      0x01000100
+#define CONFIG_SYS_DDRCMD_RFSH         0x01080000
+#define CONFIG_SYS_MICRON_INIT_DEV_OP  0x01000432
+/* EMR with 150 ohm ODT todo: verify */
+#define CONFIG_SYS_DDRCMD_OCD_DEFAULT  0x010107C0
+/* EMR new command with 150 ohm ODT todo: verify */
+#define CONFIG_SYS_DDRCMD_OCD_EXIT     0x01010440
+
+/* DDR Priority Manager Configuration */
+#define CONFIG_SYS_MDDRCGRP_PM_CFG1    0x00077777
+#define CONFIG_SYS_MDDRCGRP_PM_CFG2    0x00000000
+#define CONFIG_SYS_MDDRCGRP_HIPRIO_CFG 0x00000001
+#define CONFIG_SYS_MDDRCGRP_LUT0_MU    0xFFEEDDCC
+#define CONFIG_SYS_MDDRCGRP_LUT0_ML    0xBBAAAAAA
+#define CONFIG_SYS_MDDRCGRP_LUT1_MU    0x66666666
+#define CONFIG_SYS_MDDRCGRP_LUT1_ML    0x55555555
+#define CONFIG_SYS_MDDRCGRP_LUT2_MU    0x44444444
+#define CONFIG_SYS_MDDRCGRP_LUT2_ML    0x44444444
+#define CONFIG_SYS_MDDRCGRP_LUT3_MU    0x55555555
+#define CONFIG_SYS_MDDRCGRP_LUT3_ML    0x55555558
+#define CONFIG_SYS_MDDRCGRP_LUT4_MU    0x11111111
+#define CONFIG_SYS_MDDRCGRP_LUT4_ML    0x11111122
+#define CONFIG_SYS_MDDRCGRP_LUT0_AU    0xaaaaaaaa
+#define CONFIG_SYS_MDDRCGRP_LUT0_AL    0xaaaaaaaa
+#define CONFIG_SYS_MDDRCGRP_LUT1_AU    0x66666666
+#define CONFIG_SYS_MDDRCGRP_LUT1_AL    0x66666666
+#define CONFIG_SYS_MDDRCGRP_LUT2_AU    0x11111111
+#define CONFIG_SYS_MDDRCGRP_LUT2_AL    0x11111111
+#define CONFIG_SYS_MDDRCGRP_LUT3_AU    0x11111111
+#define CONFIG_SYS_MDDRCGRP_LUT3_AL    0x11111111
+#define CONFIG_SYS_MDDRCGRP_LUT4_AU    0x11111111
+#define CONFIG_SYS_MDDRCGRP_LUT4_AL    0x11111111
+
+/*
+ * NOR FLASH on the Local Bus
+ */
+#define CONFIG_SYS_FLASH_CFI           /* use Common Flash Interface */
+#define CONFIG_FLASH_CFI_DRIVER                /* use the CFI driver */
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE
+
+#define CONFIG_SYS_FLASH_BASE          0xF0000000 /* start of FLASH-Bank0 */
+#define CONFIG_SYS_FLASH_SIZE          0x08000000 /* max size of a Bank */
+/* start of FLASH-Bank1 */
+#define CONFIG_SYS_FLASH1_BASE         (CONFIG_SYS_FLASH_BASE + \
+                                        CONFIG_SYS_FLASH_SIZE)
+#define CONFIG_SYS_MAX_FLASH_SECT      512     /* max sectors per device */
+#define CONFIG_SYS_MAX_FLASH_BANKS     2       /* number of banks */
+#define CONFIG_SYS_FLASH_BANKS_LIST \
+       {CONFIG_SYS_FLASH_BASE, CONFIG_SYS_FLASH1_BASE}
+
+#define CONFIG_SYS_SRAM_BASE           0x50000000
+#define CONFIG_SYS_SRAM_SIZE           0x00020000      /* 128 KB */
+
+/* ALE active low, data size 4 bytes */
+#define CONFIG_SYS_CS0_CFG             0x05059350
+/* ALE active low, data size 4 bytes */
+#define CONFIG_SYS_CS1_CFG             0x05059350
+
+#define CONFIG_SYS_MRAM_BASE           0x50040000
+#define CONFIG_SYS_MRAM_SIZE           0x00020000
+/* ALE active low, data size 4 bytes */
+#define CONFIG_SYS_CS2_CFG             0x05059110
+
+/* alt. CS timing for CS0, CS1, CS2 */
+#define CONFIG_SYS_CS_ALETIMING                0x00000007
+
+/*
+ * NAND FLASH
+ */
+#define CONFIG_CMD_NAND                        /* enable NAND support */
+#define CONFIG_NAND_MPC5121_NFC
+#define CONFIG_SYS_NAND_BASE            0x40000000
+
+#define CONFIG_SYS_MAX_NAND_DEVICE      1
+#define NAND_MAX_CHIPS                  CONFIG_SYS_MAX_NAND_DEVICE
+#define CONFIG_SYS_NAND_SELECT_DEVICE  /* driver supports mutipl. chips */
+
+/*
+ * Configuration parameters for MPC5121 NAND driver
+ */
+#define CONFIG_FSL_NFC_WIDTH 1
+#define CONFIG_FSL_NFC_WRITE_SIZE 2048
+#define CONFIG_FSL_NFC_SPARE_SIZE 64
+#define CONFIG_FSL_NFC_CHIPS CONFIG_SYS_MAX_NAND_DEVICE
+
+/*
+ * Dynamic MTD partition support
+ */
+#define CONFIG_CMD_MTDPARTS
+#define CONFIG_MTD_DEVICE      /* needed for mtdparts commands */
+#define CONFIG_FLASH_CFI_MTD
+#define MTDIDS_DEFAULT         "nor0=f0000000.flash,nor1=f8000000.flash," \
+                                               "nand0=MPC5121 NAND"
+
+/*
+ * Flash layout
+ */
+#define MTDPARTS_DEFAULT       "mtdparts=f0000000.flash:512k(u-boot)," \
+                                               "256k(environment1),"   \
+                                               "256k(environment2),"   \
+                                               "256k(splash-factory)," \
+                                               "2m(FIT: recovery),"    \
+                                               "4608k(fs-recovery),"   \
+                                               "256k(splash-customer),"\
+                                               "5m(FIT: kernel+dtb),"  \
+                                               "64m(rootfs squash)ro," \
+                                               "51m(userfs ubi);"      \
+                                       "f8000000.flash:-(unused);"     \
+                                       "MPC5121 NAND:1024m(extended-userfs)"
+
+/*
+ * Override partitions in device tree using info
+ * in "mtdparts" environment variable
+ */
+#ifdef CONFIG_CMD_MTDPARTS
+#define CONFIG_FDT_FIXUP_PARTITIONS
+#endif
+
+#define CONFIG_SYS_MONITOR_BASE                TEXT_BASE       /* Start of monitor */
+#define CONFIG_SYS_MONITOR_LEN         (512 * 1024)    /* 512 kB for monitor */
+#ifdef CONFIG_FSL_DIU_FB
+#define CONFIG_SYS_MALLOC_LEN          (6 * 1024 * 1024) /* for malloc */
+#else
+#define CONFIG_SYS_MALLOC_LEN          (512 * 1024)
+#endif
+
+/*
+ * Serial Port
+ */
+#define CONFIG_CONS_INDEX     1
+
+/*
+ * Serial console configuration
+ */
+#define CONFIG_PSC_CONSOLE     6       /* console is on PSC6 */
+#if CONFIG_PSC_CONSOLE != 6
+#error CONFIG_PSC_CONSOLE must be 6
+#endif
+
+#define CONSOLE_FIFO_TX_SIZE   FIFOC_PSC6_TX_SIZE
+#define CONSOLE_FIFO_TX_ADDR   FIFOC_PSC6_TX_ADDR
+#define CONSOLE_FIFO_RX_SIZE   FIFOC_PSC6_RX_SIZE
+#define CONSOLE_FIFO_RX_ADDR   FIFOC_PSC6_RX_ADDR
+
+/*
+ * Used PSC UART devices
+ */
+#define CONFIG_SERIAL_MULTI
+#define CONFIG_SYS_PSC1
+#define CONFIG_SYS_PSC4
+#define CONFIG_SYS_PSC6
+
+/*
+ * Co-processor communication parameters
+ */
+#define CONFIG_SYS_PDM360NG_COPROC_READ_DELAY  5000
+#define CONFIG_SYS_PDM360NG_COPROC_BAUDRATE    38400
+
+/*
+ * I2C
+ */
+#define CONFIG_HARD_I2C                        /* I2C with hardware support */
+#define CONFIG_I2C_MULTI_BUS
+#define CONFIG_I2C_CMD_TREE
+/* I2C speed and slave address */
+#define CONFIG_SYS_I2C_SPEED           100000
+#define CONFIG_SYS_I2C_SLAVE           0x7F
+
+/*
+ * EEPROM configuration
+ */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN         2       /* 16-bit EEPROM addr */
+#define CONFIG_SYS_I2C_EEPROM_ADDR             0x50    /* ST AT24C01 */
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  10      /* 10ms of delay */
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS      4       /* 16-Byte Write Mode */
+
+/*
+ * MAC addr in EEPROM
+ */
+#define CONFIG_SYS_I2C_EEPROM_BUS_NUM          0
+#define CONFIG_SYS_I2C_EEPROM_MAC_OFFSET       0x10
+/*
+ * Enabled only to delete "ethaddr" before testing
+ * "ethaddr" setting from EEPROM
+ */
+#define CONFIG_ENV_OVERWRITE
+
+/*
+ * Ethernet configuration
+ */
+#define CONFIG_MPC512x_FEC     1
+#define CONFIG_NET_MULTI
+#define CONFIG_PHY_ADDR                0x1F
+#define CONFIG_MII             1       /* MII PHY management   */
+#define CONFIG_FEC_AN_TIMEOUT  1
+#define CONFIG_HAS_ETH0
+
+/*
+ * Configure on-board RTC
+ */
+#define CONFIG_RTC_M41T62                      /* use M41T00 rtc via i2c */
+#define CONFIG_SYS_I2C_RTC_ADDR                0x68    /* at address 0x68      */
+
+/*
+ * Environment
+ */
+#define CONFIG_ENV_IS_IN_FLASH 1
+/* This has to be a multiple of the Flash sector size */
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_MONITOR_BASE + \
+                                CONFIG_SYS_MONITOR_LEN)
+#define CONFIG_ENV_SIZE                0x2000
+#define CONFIG_ENV_SECT_SIZE   0x40000         /* one sector (256K) for env */
+
+/* Address and size of Redundant Environment Sector    */
+#define CONFIG_ENV_ADDR_REDUND (CONFIG_ENV_ADDR + CONFIG_ENV_SECT_SIZE)
+#define CONFIG_ENV_SIZE_REDUND (CONFIG_ENV_SIZE)
+
+#define CONFIG_LOADS_ECHO      1       /* echo on for serial download */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change */
+
+#include <config_cmd_default.h>
+
+#define CONFIG_CMD_ASKENV
+#define CONFIG_CMD_DATE
+#define CONFIG_CMD_DHCP
+#define CONFIG_CMD_EEPROM
+#define CONFIG_CMD_I2C
+#define CONFIG_CMD_MII
+#define CONFIG_CMD_PING
+#define CONFIG_CMD_REGINFO
+
+#ifdef CONFIG_VIDEO
+#define CONFIG_CMD_BMP
+#endif
+
+/*
+ * Miscellaneous configurable options
+ */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory */
+#define CONFIG_SYS_LOAD_ADDR   0x2000000       /* default load address */
+#define CONFIG_SYS_PROMPT      "=> "           /* Monitor Command Prompt */
+
+#ifdef CONFIG_CMD_KGDB
+       #define CONFIG_SYS_CBSIZE       1024    /* Console I/O Buffer Size */
+#else
+       #define CONFIG_SYS_CBSIZE       256     /* Console I/O Buffer Size */
+#endif
+
+/* Print Buffer Size */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
+/* Max number of command args */
+#define CONFIG_SYS_MAXARGS     16
+/* Boot Argument Buffer Size */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE
+/* Decrementer freq: 1ms ticks */
+#define CONFIG_SYS_HZ          1000
+
+/*
+ * For booting Linux, the board info and command line data
+ * have to be in the first 8 MB of memory, since this is
+ * the maximum mapped by the Linux kernel during initialization.
+ */
+/* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ   (8 << 20)
+
+/* Cache Configuration */
+#define CONFIG_SYS_DCACHE_SIZE         32768
+#define CONFIG_SYS_CACHELINE_SIZE      32
+#ifdef CONFIG_CMD_KGDB
+/* log base 2 of the above value */
+#define CONFIG_SYS_CACHELINE_SHIFT     5
+#endif
+
+#define CONFIG_SYS_HID0_INIT   0x000000000
+#define CONFIG_SYS_HID0_FINAL  (HID0_ENABLE_MACHINE_CHECK | HID0_ICE)
+#define CONFIG_SYS_HID2        HID2_HBE
+
+#define CONFIG_HIGH_BATS       1       /* High BATs supported */
+
+/*
+ * Internal Definitions
+ *
+ * Boot Flags
+ */
+#define BOOTFLAG_COLD          0x01    /* Normal Power-On: Boot from FLASH */
+#define BOOTFLAG_WARM          0x02    /* Software reboot */
+
+#ifdef CONFIG_CMD_KGDB
+#define CONFIG_KGDB_BAUDRATE   230400  /* speed of kgdb serial port */
+#define CONFIG_KGDB_SER_INDEX  2       /* which serial port to use */
+#endif
+
+#ifdef CONFIG_SERIAL_MULTI
+/* POST support */
+#define CONFIG_POST             (CONFIG_SYS_POST_COPROC)
+#endif
+
+/*
+ * Environment Configuration
+ */
+#define CONFIG_TIMESTAMP
+
+#define CONFIG_HOSTNAME                pdm360ng
+/* default location for tftp and bootm */
+#define CONFIG_LOADADDR                400000
+
+#define CONFIG_BOOTDELAY       5       /* -1 disables auto-boot */
+
+#define CONFIG_PREBOOT "echo;" \
+       "echo PDM360NG SAMPLE;" \
+       "echo"
+
+#define CONFIG_BOOTCOMMAND     "run env_cont"
+
+#define CONFIG_OF_LIBFDT       1
+#define CONFIG_OF_BOARD_SETUP  1
+#define CONFIG_OF_SUPPORT_OLD_DEVICE_TREES     1
+#define CONFIG_FIT
+#define CONFIG_FIT_VERBOSE
+
+#define OF_CPU                 "PowerPC,5121@0"
+#define OF_SOC_COMPAT          "fsl,mpc5121-immr"
+#define OF_TBCLK               (bd->bi_busfreq / 4)
+#define OF_STDOUT_PATH         "/soc@80000000/serial@11600"
+
+/*
+ * Include common options for all mpc5121 boards
+ */
+#include "mpc5121-common.h"
+
+#endif /* __CONFIG_H */
index 178c8e79743cb9d5902ed76ebd5b56e795d43d3e..baf84815693e73ff0b9a88b5610ed30cf0d35467 100644 (file)
 #define CONFIG_DNET_BASE       (CS1_BASE + QONG_FPGA_PERIPH_SIZE)
 #define CONFIG_NET_MULTI       1
 
+/* Framebuffer and LCD */
+#define CONFIG_LCD
+#define CONFIG_VIDEO_MX3
+#define        CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE
+#define CONFIG_SYS_CONSOLE_IS_IN_ENV
+#define LCD_BPP                LCD_COLOR16
+#define        CONFIG_SPLASH_SCREEN
+#define CONFIG_CMD_BMP
+#define CONFIG_BMP_16BPP
+#define CONFIG_DISPLAY_VBEST_VGG322403
+
 /*
  * Reducing the ARP timeout from default 5 seconds to 200ms we speed up the
  * initial TFTP transfer, should the user wish one, significantly.
index 2472187520a549ba871f50b7215228ac851d3cde..5538b18ef81213f8450d0cf61d6f2fa0486ec3cd 100644 (file)
  * Definitions for initial stack pointer and data area (in data cache)
  */
 /* use on chip memory (OCM) for temperary stack until sdram is tested */
-/* see ./arch/ppc/cpu/ppc4xx/start.S */
+/* see ./arch/powerpc/cpu/ppc4xx/start.S */
 #define CONFIG_SYS_TEMP_STACK_OCM      1
 
 /* On Chip Memory location */
  * Taken from PPCBoot board/icecube/icecube.h
  */
 
-/* see ./arch/ppc/cpu/ppc4xx/cpu_init.c ./cpu/ppc4xx/ndfc.c */
+/* see ./arch/powerpc/cpu/ppc4xx/cpu_init.c ./cpu/ppc4xx/ndfc.c */
 #define CONFIG_SYS_EBC_PB0AP           0x04002480
 /* AMD NOR flash - this corresponds to FLASH_BASE so may be correct */
 #define CONFIG_SYS_EBC_PB0CR           0xFFC5A000
  *
  * Taken in part from PPCBoot board/icecube/icecube.h
  */
-/* see ./arch/ppc/cpu/ppc4xx/cpu_init.c ./cpu/ppc4xx/start.S */
+/* see ./arch/powerpc/cpu/ppc4xx/cpu_init.c ./cpu/ppc4xx/start.S */
 #define CONFIG_SYS_GPIO0_OSRH          0x55555550
 #define CONFIG_SYS_GPIO0_OSRL          0x00000110
 #define CONFIG_SYS_GPIO0_ISR1H         0x00000000
index 4ea65ce164982007b1f76373953f2e92a79bb809..deaddde3bfffacc58d25a10b2bbbd63bf52d855b 100644 (file)
 #define CONFIG_SYS_NS16550_COM2        (CONFIG_SYS_IMMR+0x4600)
 
 #define CONFIG_CMDLINE_EDITING 1       /* add command line history     */
+#define CONFIG_AUTO_COMPLETE           /* add autocompletion support   */
 /* Use the HUSH parser */
 #define CONFIG_SYS_HUSH_PARSER
 #ifdef  CONFIG_SYS_HUSH_PARSER
 #define CONFIG_SYS_SICRL SICRL_LDP_A
 
 #define CONFIG_SYS_HID0_INIT   0x000000000
-#define CONFIG_SYS_HID0_FINAL  HID0_ENABLE_MACHINE_CHECK
+#define CONFIG_SYS_HID0_FINAL  (HID0_ENABLE_MACHINE_CHECK | \
+                                HID0_ENABLE_INSTRUCTION_CACHE)
 
 /* #define CONFIG_SYS_HID0_FINAL               (\
        HID0_ENABLE_INSTRUCTION_CACHE |\
index 7423663a26e1dd068473052f6c9d1b63c65abd99..61eb26ed84395e61b0baeab65716355ab3c2f448 100644 (file)
  * - internal SRAM (OCM=On Chip Memory) is placed to CONFIG_SYS_OCM_DATA_ADDR
  * - Stackpointer will be located to
  *   (CONFIG_SYS_INIT_RAM_ADDR&0xFFFF0000) | (CONFIG_SYS_INIT_SP_OFFSET&0x0000FFFF)
- *   in arch/ppc/cpu/ppc4xx/start.S
+ *   in arch/powerpc/cpu/ppc4xx/start.S
  */
 
 #undef CONFIG_SYS_INIT_DCACHE_CS
 #define BOOTFLAG_WARM  0x02            /* Software reboot                      */
 
 /* ################################################################################### */
-/* These defines will be used in arch/ppc/cpu/ppc4xx/cpu_init.c to setup external chip selects  */
+/* These defines will be used in arch/powerpc/cpu/ppc4xx/cpu_init.c to setup external chip selects  */
 /* They are currently undefined cause they are initiaized in board/solidcard3/init.S   */
 
 /* This chip select accesses the boot device */
index 96410413a0f4f81fce7d0ba69ff7029e6e7860b4..89f7cc4a1987882768c1fb349ffe282c31177c30 100644 (file)
 #define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
 #define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
-#define CONFIG_SYS_MONITOR_LEN         (256 * 1024)    /* Reserve 256kB for Mon */
+#define CONFIG_SYS_MONITOR_LEN         (384 * 1024)    /* Reserve 384KiB for Mon */
 #define CONFIG_SYS_MALLOC_LEN          (4 << 20)       /* Reserve 4 MB for malloc */
 
 /* FPGA and NAND */
  */
 #include <config_cmd_default.h>
 
+#define CONFIG_CMD_BMP
 #define CONFIG_CMD_DATE
 #define CONFIG_CMD_DHCP
 #define CONFIG_CMD_DTT
 #undef CONFIG_CMD_EEPROM
+#define CONFIG_CMD_EXT2                /* EXT2 Support                 */
 #define CONFIG_CMD_I2C
 #define CONFIG_CMD_SDRAM
 #define CONFIG_CMD_MII
-#define CONFIG_CMD_NFS
+#undef CONFIG_CMD_NFS
 #define CONFIG_CMD_PING
 #define CONFIG_CMD_SNTP
 #define CONFIG_CMD_USB
-#define CONFIG_CMD_EXT2                /* EXT2 Support                 */
-#define CONFIG_CMD_BMP
 
 #if defined(CONFIG_PCI)
     #define CONFIG_CMD_PCI
index 7603300ae187797efaa690c38c5391abecd5750f..f493e75d6fb55754e4c3ef25ac91c47e118d08d5 100644 (file)
 #define CONFIG_SYS_NS16550_COM2                (CONFIG_SYS_IMMR + 0x4600)
 
 #define CONFIG_CMDLINE_EDITING         /* add command line history     */
+#define CONFIG_AUTO_COMPLETE           /* add autocompletion support */
 /* Use the HUSH parser */
 #define CONFIG_SYS_HUSH_PARSER
 #ifdef CONFIG_SYS_HUSH_PARSER
 #define CONFIG_SYS_SICRL SICRL_LDP_A
 
 #define CONFIG_SYS_HID0_INIT   0x000000000
-#define CONFIG_SYS_HID0_FINAL  HID0_ENABLE_MACHINE_CHECK
+#define CONFIG_SYS_HID0_FINAL  (HID0_ENABLE_MACHINE_CHECK | \
+                                HID0_ENABLE_INSTRUCTION_CACHE)
 
 #define CONFIG_SYS_HID2                HID2_HBE
 
index f9ae15ad42a91158034726b64539e826eca0e1e4..477bbd792e81f4066c4f6d0b4239d798f82afc28 100644 (file)
@@ -90,6 +90,7 @@
 #define PRSSTAT_CDPL           (0x00040000)
 #define PRSSTAT_CINS           (0x00010000)
 #define PRSSTAT_BREN           (0x00000800)
+#define PRSSTAT_BWEN           (0x00000400)
 #define PRSSTAT_DLA            (0x00000004)
 #define PRSSTAT_CICHB          (0x00000002)
 #define PRSSTAT_CIDHB          (0x00000001)
 #define XFERTYP_DMAEN          0x00000001
 
 #define CINS_TIMEOUT           1000
+#define PIO_TIMEOUT            100000
 
 #define DSADDR         0x2e004
 
index d828964256eb9d14374168c2cf384d4ab10f8df4..cd23c8ac124cd38075d0330ad4a6a212a4bbcd49 100644 (file)
@@ -111,6 +111,9 @@ void i2c_init(int speed, int slaveaddr);
 #ifdef CONFIG_SYS_I2C_INIT_BOARD
 void i2c_init_board(void);
 #endif
+#ifdef CONFIG_SYS_I2C_BOARD_LATE_INIT
+void i2c_board_late_init(void);
+#endif
 
 #if defined(CONFIG_I2C_MUX)
 
index ce606b5738396651e758c662aa9a3e5a8fcd0ba1..9ea81e9463252872956fb85f14984ecbb6a85348 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * NS16550 Serial Port
- * originally from linux source (arch/ppc/boot/ns16550.h)
+ * originally from linux source (arch/powerpc/boot/ns16550.h)
  *
  * Cleanup and unification
  * (C) 2009 by Detlev Zundel, DENX Software Engineering GmbH
index ff83bce6b4e9753d0d2587ae1a43becf69a3a895..3da959d9a35cd13c7f5f36dd57e7155ed81fd85b 100644 (file)
@@ -124,6 +124,7 @@ extern int post_hotkeys_pressed(void);
 #define CONFIG_SYS_POST_BSPEC4         0x00080000
 #define CONFIG_SYS_POST_BSPEC5         0x00100000
 #define CONFIG_SYS_POST_CODEC          0x00200000
+#define CONFIG_SYS_POST_COPROC         0x00400000
 
 #endif /* CONFIG_POST */
 
index 4caf7907237be19234920f87bde03ebd8f31e8a9..111edbec8fb07228ce871ac103d908417f555a94 100644 (file)
@@ -9,6 +9,7 @@ struct serial_device {
        char ctlr[CTLRSIZE];
 
        int  (*init) (void);
+       int  (*uninit) (void);
        void (*setbrg) (void);
        int (*getc) (void);
        int (*tstc) (void);
@@ -37,6 +38,13 @@ extern struct serial_device eserial4_device;
 
 #endif
 
+#if defined(CONFIG_MPC512X)
+extern struct serial_device serial1_device;
+extern struct serial_device serial3_device;
+extern struct serial_device serial4_device;
+extern struct serial_device serial6_device;
+#endif
+
 #if defined(CONFIG_S3C2410)
 extern struct serial_device s3c24xx_serial0_device;
 extern struct serial_device s3c24xx_serial1_device;
@@ -84,4 +92,11 @@ extern int usbtty_tstc(void);
 
 #endif /* CONFIG_USB_TTY */
 
+#if defined(CONFIG_MPC512X) &&  defined(CONFIG_SERIAL_MULTI)
+extern struct stdio_dev *open_port(int num, int baudrate);
+extern int close_port(int num);
+extern int write_port(struct stdio_dev *port, char *buf);
+extern int read_port(struct stdio_dev *port, char *buf, int size);
+#endif
+
 #endif
index d9951b597f9fd4a798be978d48794b6c9fd8205e..e688a91200d8622457400c6e3340b72dacc10dd5 100644 (file)
@@ -13,7 +13,7 @@
  *
  * Code generated for this function might be very inefficient
  * for some CPUs. __div64_32() can be overridden by linking arch-specific
- * assembly versions such as arch/ppc/lib/div64.S and arch/sh/lib/div64.S.
+ * assembly versions such as arch/powerpc/lib/div64.S and arch/sh/lib/div64.S.
  */
 
 #include <linux/types.h>
index fce4582c252cb0328091506bc5da86011cfd3748..46fbe3c85ba949a8fa06864a0b40d7ac8421b102 100644 (file)
@@ -68,11 +68,11 @@ $(nandobj)u-boot.lds: $(LDSCRIPT)
 # from cpu directory
 $(obj)cache.S:
        @rm -f $(obj)cache.S
-       ln -s $(SRCTREE)/arch/ppc/cpu/ppc4xx/cache.S $(obj)cache.S
+       ln -s $(SRCTREE)/arch/powerpc/cpu/ppc4xx/cache.S $(obj)cache.S
 
 $(obj)gpio.c:
        @rm -f $(obj)gpio.c
-       ln -s $(SRCTREE)/arch/ppc/cpu/ppc4xx/gpio.c $(obj)gpio.c
+       ln -s $(SRCTREE)/arch/powerpc/cpu/ppc4xx/gpio.c $(obj)gpio.c
 
 $(obj)ndfc.c:
        @rm -f $(obj)ndfc.c
@@ -80,11 +80,11 @@ $(obj)ndfc.c:
 
 $(obj)resetvec.S:
        @rm -f $(obj)resetvec.S
-       ln -s $(SRCTREE)/arch/ppc/cpu/ppc4xx/resetvec.S $(obj)resetvec.S
+       ln -s $(SRCTREE)/arch/powerpc/cpu/ppc4xx/resetvec.S $(obj)resetvec.S
 
 $(obj)start.S:
        @rm -f $(obj)start.S
-       ln -s $(SRCTREE)/arch/ppc/cpu/ppc4xx/start.S $(obj)start.S
+       ln -s $(SRCTREE)/arch/powerpc/cpu/ppc4xx/start.S $(obj)start.S
 
 # from board directory
 $(obj)memory.c:
index 48fde1d1dabf109828418ab5cbf8e5575565c8a0..a114ca5f189c6131113b6af73f6b7aef383206cf 100644 (file)
@@ -66,11 +66,11 @@ $(obj)ndfc.c:
 
 $(obj)resetvec.S:
        @rm -f $(obj)resetvec.S
-       ln -s $(SRCTREE)/arch/ppc/cpu/ppc4xx/resetvec.S $(obj)resetvec.S
+       ln -s $(SRCTREE)/arch/powerpc/cpu/ppc4xx/resetvec.S $(obj)resetvec.S
 
 $(obj)start.S:
        @rm -f $(obj)start.S
-       ln -s $(SRCTREE)/arch/ppc/cpu/ppc4xx/start.S $(obj)start.S
+       ln -s $(SRCTREE)/arch/powerpc/cpu/ppc4xx/start.S $(obj)start.S
 
 # from board directory
 $(obj)init.S:
index 0012a9c99b32183e41f6ebe7be10d2ff7455a1ed..e7982375fd6978de3ae944f4297396c1682d244d 100644 (file)
@@ -71,11 +71,11 @@ $(obj)ndfc.c:
 
 $(obj)resetvec.S:
        @rm -f $(obj)resetvec.S
-       ln -s $(SRCTREE)/arch/ppc/cpu/ppc4xx/resetvec.S $(obj)resetvec.S
+       ln -s $(SRCTREE)/arch/powerpc/cpu/ppc4xx/resetvec.S $(obj)resetvec.S
 
 $(obj)start.S:
        @rm -f $(obj)start.S
-       ln -s $(SRCTREE)/arch/ppc/cpu/ppc4xx/start.S $(obj)start.S
+       ln -s $(SRCTREE)/arch/powerpc/cpu/ppc4xx/start.S $(obj)start.S
 
 # from board directory
 $(obj)init.S:
index de4980a55c10ce95f128cf84d04e0e51a6a61ded..a49ba0796e95f3591ba3fb0783afa512833ae2f2 100644 (file)
@@ -62,15 +62,15 @@ $(nandobj)u-boot.lds: $(LDSCRIPT)
 # from cpu directory
 $(obj)44x_spd_ddr2.c: $(obj)ecc.h
        @rm -f $(obj)44x_spd_ddr2.c
-       ln -s $(SRCTREE)/arch/ppc/cpu/ppc4xx/44x_spd_ddr2.c $(obj)44x_spd_ddr2.c
+       ln -s $(SRCTREE)/arch/powerpc/cpu/ppc4xx/44x_spd_ddr2.c $(obj)44x_spd_ddr2.c
 
 $(obj)cache.S:
        @rm -f $(obj)cache.S
-       ln -s $(SRCTREE)/arch/ppc/cpu/ppc4xx/cache.S $(obj)cache.S
+       ln -s $(SRCTREE)/arch/powerpc/cpu/ppc4xx/cache.S $(obj)cache.S
 
 $(obj)ecc.h:
        @rm -f $(obj)ecc.h
-       ln -s $(SRCTREE)/arch/ppc/cpu/ppc4xx/ecc.h $(obj)ecc.h
+       ln -s $(SRCTREE)/arch/powerpc/cpu/ppc4xx/ecc.h $(obj)ecc.h
 
 $(obj)ndfc.c:
        @rm -f $(obj)ndfc.c
@@ -78,11 +78,11 @@ $(obj)ndfc.c:
 
 $(obj)resetvec.S:
        @rm -f $(obj)resetvec.S
-       ln -s $(SRCTREE)/arch/ppc/cpu/ppc4xx/resetvec.S $(obj)resetvec.S
+       ln -s $(SRCTREE)/arch/powerpc/cpu/ppc4xx/resetvec.S $(obj)resetvec.S
 
 $(obj)start.S:
        @rm -f $(obj)start.S
-       ln -s $(SRCTREE)/arch/ppc/cpu/ppc4xx/start.S $(obj)start.S
+       ln -s $(SRCTREE)/arch/powerpc/cpu/ppc4xx/start.S $(obj)start.S
 
 # from nand_spl directory
 $(obj)nand_boot.c:
index e6f96fd3bced9ac542fde62bba53e884a959a7a0..951fe46305a143e130ae9490a6c42a0c14b68b6a 100644 (file)
@@ -62,7 +62,7 @@ $(nandobj)u-boot.lds: $(LDSCRIPT)
 # from cpu directory
 $(obj)denali_data_eye.c:
        @rm -f $(obj)denali_data_eye.c
-       ln -s $(SRCTREE)/arch/ppc/cpu/ppc4xx/denali_data_eye.c $(obj)denali_data_eye.c
+       ln -s $(SRCTREE)/arch/powerpc/cpu/ppc4xx/denali_data_eye.c $(obj)denali_data_eye.c
 
 $(obj)ndfc.c:
        @rm -f $(obj)ndfc.c
@@ -70,11 +70,11 @@ $(obj)ndfc.c:
 
 $(obj)resetvec.S:
        @rm -f $(obj)resetvec.S
-       ln -s $(SRCTREE)/arch/ppc/cpu/ppc4xx/resetvec.S $(obj)resetvec.S
+       ln -s $(SRCTREE)/arch/powerpc/cpu/ppc4xx/resetvec.S $(obj)resetvec.S
 
 $(obj)start.S:
        @rm -f $(obj)start.S
-       ln -s $(SRCTREE)/arch/ppc/cpu/ppc4xx/start.S $(obj)start.S
+       ln -s $(SRCTREE)/arch/powerpc/cpu/ppc4xx/start.S $(obj)start.S
 
 # from board directory
 $(obj)init.S:
index a23176c78afc451615444a7eeabb9e6f2816f357..98edb09362c3c8759a084eef2f8f52f180a03ee9 100644 (file)
@@ -65,7 +65,7 @@ $(nandobj)u-boot.lds: $(LDSCRIPT)
 # create symbolic links for common files
 
 $(obj)start.S:
-       ln -sf $(SRCTREE)/arch/ppc/cpu/mpc83xx/start.S $(obj)start.S
+       ln -sf $(SRCTREE)/arch/powerpc/cpu/mpc83xx/start.S $(obj)start.S
 
 $(obj)nand_boot_fsl_elbc.c:
        ln -sf $(SRCTREE)/nand_spl/nand_boot_fsl_elbc.c \
@@ -81,16 +81,16 @@ $(obj)ns16550.c:
        ln -sf $(SRCTREE)/drivers/serial/ns16550.c $(obj)ns16550.c
 
 $(obj)nand_init.c:
-       ln -sf $(SRCTREE)/arch/ppc/cpu/mpc83xx/nand_init.c $(obj)nand_init.c
+       ln -sf $(SRCTREE)/arch/powerpc/cpu/mpc83xx/nand_init.c $(obj)nand_init.c
 
 $(obj)cache.c:
-       ln -sf $(SRCTREE)/arch/ppc/lib/cache.c $(obj)cache.c
+       ln -sf $(SRCTREE)/arch/powerpc/lib/cache.c $(obj)cache.c
 
 $(obj)time.c:
-       ln -sf $(SRCTREE)/arch/ppc/lib/time.c $(obj)time.c
+       ln -sf $(SRCTREE)/arch/powerpc/lib/time.c $(obj)time.c
 
 $(obj)ticks.S:
-       ln -sf $(SRCTREE)/arch/ppc/lib/ticks.S $(obj)ticks.S
+       ln -sf $(SRCTREE)/arch/powerpc/lib/ticks.S $(obj)ticks.S
 
 #########################################################################
 
index a23176c78afc451615444a7eeabb9e6f2816f357..98edb09362c3c8759a084eef2f8f52f180a03ee9 100644 (file)
@@ -65,7 +65,7 @@ $(nandobj)u-boot.lds: $(LDSCRIPT)
 # create symbolic links for common files
 
 $(obj)start.S:
-       ln -sf $(SRCTREE)/arch/ppc/cpu/mpc83xx/start.S $(obj)start.S
+       ln -sf $(SRCTREE)/arch/powerpc/cpu/mpc83xx/start.S $(obj)start.S
 
 $(obj)nand_boot_fsl_elbc.c:
        ln -sf $(SRCTREE)/nand_spl/nand_boot_fsl_elbc.c \
@@ -81,16 +81,16 @@ $(obj)ns16550.c:
        ln -sf $(SRCTREE)/drivers/serial/ns16550.c $(obj)ns16550.c
 
 $(obj)nand_init.c:
-       ln -sf $(SRCTREE)/arch/ppc/cpu/mpc83xx/nand_init.c $(obj)nand_init.c
+       ln -sf $(SRCTREE)/arch/powerpc/cpu/mpc83xx/nand_init.c $(obj)nand_init.c
 
 $(obj)cache.c:
-       ln -sf $(SRCTREE)/arch/ppc/lib/cache.c $(obj)cache.c
+       ln -sf $(SRCTREE)/arch/powerpc/lib/cache.c $(obj)cache.c
 
 $(obj)time.c:
-       ln -sf $(SRCTREE)/arch/ppc/lib/time.c $(obj)time.c
+       ln -sf $(SRCTREE)/arch/powerpc/lib/time.c $(obj)time.c
 
 $(obj)ticks.S:
-       ln -sf $(SRCTREE)/arch/ppc/lib/ticks.S $(obj)ticks.S
+       ln -sf $(SRCTREE)/arch/powerpc/lib/ticks.S $(obj)ticks.S
 
 #########################################################################
 
index 7f75afcb5071f90a813b134d4486a2ca722de791..3d0936a4c5f11b72508b32896684af65232934dd 100644 (file)
@@ -64,15 +64,15 @@ $(nandobj)u-boot-spl:       $(OBJS)
 
 $(obj)cache.c:
        @rm -f $(obj)cache.c
-       ln -sf $(SRCTREE)/arch/ppc/lib/cache.c $(obj)cache.c
+       ln -sf $(SRCTREE)/arch/powerpc/lib/cache.c $(obj)cache.c
 
 $(obj)cpu_init_early.c:
        @rm -f $(obj)cpu_init_early.c
-       ln -sf $(SRCTREE)/arch/ppc/cpu/mpc85xx/cpu_init_early.c $(obj)cpu_init_early.c
+       ln -sf $(SRCTREE)/arch/powerpc/cpu/mpc85xx/cpu_init_early.c $(obj)cpu_init_early.c
 
 $(obj)cpu_init_nand.c:
        @rm -f $(obj)cpu_init_nand.c
-       ln -sf $(SRCTREE)/arch/ppc/cpu/mpc85xx/cpu_init_nand.c $(obj)cpu_init_nand.c
+       ln -sf $(SRCTREE)/arch/powerpc/cpu/mpc85xx/cpu_init_nand.c $(obj)cpu_init_nand.c
 
 $(obj)fsl_law.c:
        @rm -f $(obj)fsl_law.c
@@ -97,15 +97,15 @@ $(obj)resetvec.S:
 
 $(obj)fixed_ivor.S:
        @rm -f $(obj)fixed_ivor.S
-       ln -sf $(SRCTREE)/arch/ppc/cpu/mpc85xx/fixed_ivor.S $(obj)fixed_ivor.S
+       ln -sf $(SRCTREE)/arch/powerpc/cpu/mpc85xx/fixed_ivor.S $(obj)fixed_ivor.S
 
 $(obj)start.S: $(obj)fixed_ivor.S
        @rm -f $(obj)start.S
-       ln -sf $(SRCTREE)/arch/ppc/cpu/mpc85xx/start.S $(obj)start.S
+       ln -sf $(SRCTREE)/arch/powerpc/cpu/mpc85xx/start.S $(obj)start.S
 
 $(obj)tlb.c:
        @rm -f $(obj)tlb.c
-       ln -sf $(SRCTREE)/arch/ppc/cpu/mpc85xx/tlb.c $(obj)tlb.c
+       ln -sf $(SRCTREE)/arch/powerpc/cpu/mpc85xx/tlb.c $(obj)tlb.c
 
 $(obj)tlb_table.c:
        @rm -f $(obj)tlb_table.c
index 7f75afcb5071f90a813b134d4486a2ca722de791..3d0936a4c5f11b72508b32896684af65232934dd 100644 (file)
@@ -64,15 +64,15 @@ $(nandobj)u-boot-spl:       $(OBJS)
 
 $(obj)cache.c:
        @rm -f $(obj)cache.c
-       ln -sf $(SRCTREE)/arch/ppc/lib/cache.c $(obj)cache.c
+       ln -sf $(SRCTREE)/arch/powerpc/lib/cache.c $(obj)cache.c
 
 $(obj)cpu_init_early.c:
        @rm -f $(obj)cpu_init_early.c
-       ln -sf $(SRCTREE)/arch/ppc/cpu/mpc85xx/cpu_init_early.c $(obj)cpu_init_early.c
+       ln -sf $(SRCTREE)/arch/powerpc/cpu/mpc85xx/cpu_init_early.c $(obj)cpu_init_early.c
 
 $(obj)cpu_init_nand.c:
        @rm -f $(obj)cpu_init_nand.c
-       ln -sf $(SRCTREE)/arch/ppc/cpu/mpc85xx/cpu_init_nand.c $(obj)cpu_init_nand.c
+       ln -sf $(SRCTREE)/arch/powerpc/cpu/mpc85xx/cpu_init_nand.c $(obj)cpu_init_nand.c
 
 $(obj)fsl_law.c:
        @rm -f $(obj)fsl_law.c
@@ -97,15 +97,15 @@ $(obj)resetvec.S:
 
 $(obj)fixed_ivor.S:
        @rm -f $(obj)fixed_ivor.S
-       ln -sf $(SRCTREE)/arch/ppc/cpu/mpc85xx/fixed_ivor.S $(obj)fixed_ivor.S
+       ln -sf $(SRCTREE)/arch/powerpc/cpu/mpc85xx/fixed_ivor.S $(obj)fixed_ivor.S
 
 $(obj)start.S: $(obj)fixed_ivor.S
        @rm -f $(obj)start.S
-       ln -sf $(SRCTREE)/arch/ppc/cpu/mpc85xx/start.S $(obj)start.S
+       ln -sf $(SRCTREE)/arch/powerpc/cpu/mpc85xx/start.S $(obj)start.S
 
 $(obj)tlb.c:
        @rm -f $(obj)tlb.c
-       ln -sf $(SRCTREE)/arch/ppc/cpu/mpc85xx/tlb.c $(obj)tlb.c
+       ln -sf $(SRCTREE)/arch/powerpc/cpu/mpc85xx/tlb.c $(obj)tlb.c
 
 $(obj)tlb_table.c:
        @rm -f $(obj)tlb_table.c
index 7f75afcb5071f90a813b134d4486a2ca722de791..3d0936a4c5f11b72508b32896684af65232934dd 100644 (file)
@@ -64,15 +64,15 @@ $(nandobj)u-boot-spl:       $(OBJS)
 
 $(obj)cache.c:
        @rm -f $(obj)cache.c
-       ln -sf $(SRCTREE)/arch/ppc/lib/cache.c $(obj)cache.c
+       ln -sf $(SRCTREE)/arch/powerpc/lib/cache.c $(obj)cache.c
 
 $(obj)cpu_init_early.c:
        @rm -f $(obj)cpu_init_early.c
-       ln -sf $(SRCTREE)/arch/ppc/cpu/mpc85xx/cpu_init_early.c $(obj)cpu_init_early.c
+       ln -sf $(SRCTREE)/arch/powerpc/cpu/mpc85xx/cpu_init_early.c $(obj)cpu_init_early.c
 
 $(obj)cpu_init_nand.c:
        @rm -f $(obj)cpu_init_nand.c
-       ln -sf $(SRCTREE)/arch/ppc/cpu/mpc85xx/cpu_init_nand.c $(obj)cpu_init_nand.c
+       ln -sf $(SRCTREE)/arch/powerpc/cpu/mpc85xx/cpu_init_nand.c $(obj)cpu_init_nand.c
 
 $(obj)fsl_law.c:
        @rm -f $(obj)fsl_law.c
@@ -97,15 +97,15 @@ $(obj)resetvec.S:
 
 $(obj)fixed_ivor.S:
        @rm -f $(obj)fixed_ivor.S
-       ln -sf $(SRCTREE)/arch/ppc/cpu/mpc85xx/fixed_ivor.S $(obj)fixed_ivor.S
+       ln -sf $(SRCTREE)/arch/powerpc/cpu/mpc85xx/fixed_ivor.S $(obj)fixed_ivor.S
 
 $(obj)start.S: $(obj)fixed_ivor.S
        @rm -f $(obj)start.S
-       ln -sf $(SRCTREE)/arch/ppc/cpu/mpc85xx/start.S $(obj)start.S
+       ln -sf $(SRCTREE)/arch/powerpc/cpu/mpc85xx/start.S $(obj)start.S
 
 $(obj)tlb.c:
        @rm -f $(obj)tlb.c
-       ln -sf $(SRCTREE)/arch/ppc/cpu/mpc85xx/tlb.c $(obj)tlb.c
+       ln -sf $(SRCTREE)/arch/powerpc/cpu/mpc85xx/tlb.c $(obj)tlb.c
 
 $(obj)tlb_table.c:
        @rm -f $(obj)tlb_table.c
index 3ad6250db50e5be6c4bfffea08ce52532f8d33fc..2da61420a8d067df26c9df64fabed2dff272ca90 100644 (file)
@@ -66,7 +66,7 @@ $(nandobj)u-boot.lds: $(LDSCRIPT)
 
 $(obj)start.S:
        @rm -f $@
-       ln -s $(SRCTREE)/arch/ppc/cpu/mpc83xx/start.S $@
+       ln -s $(SRCTREE)/arch/powerpc/cpu/mpc83xx/start.S $@
 
 $(obj)nand_boot_fsl_elbc.c:
        @rm -f $@
@@ -86,19 +86,19 @@ $(obj)ns16550.c:
 
 $(obj)nand_init.c:
        @rm -f $@
-       ln -s $(SRCTREE)/arch/ppc/cpu/mpc83xx/nand_init.c $@
+       ln -s $(SRCTREE)/arch/powerpc/cpu/mpc83xx/nand_init.c $@
 
 $(obj)cache.c:
        @rm -f $@
-       ln -s $(SRCTREE)/arch/ppc/lib/cache.c $@
+       ln -s $(SRCTREE)/arch/powerpc/lib/cache.c $@
 
 $(obj)time.c:
        @rm -f $@
-       ln -s $(SRCTREE)/arch/ppc/lib/time.c $@
+       ln -s $(SRCTREE)/arch/powerpc/lib/time.c $@
 
 $(obj)ticks.S:
        @rm -f $@
-       ln -s $(SRCTREE)/arch/ppc/lib/ticks.S $@
+       ln -s $(SRCTREE)/arch/powerpc/lib/ticks.S $@
 
 #########################################################################
 
diff --git a/post/board/pdm360ng/Makefile b/post/board/pdm360ng/Makefile
new file mode 100644 (file)
index 0000000..d1538f6
--- /dev/null
@@ -0,0 +1,29 @@
+#
+# (C) Copyright 2010 DENX Software Engineering
+# Anatolij Gustschin, agust@denx.de.
+#
+# See file CREDITS for list of people who contributed to this
+# project.
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of
+# the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+# MA 02111-1307 USA
+#
+include $(OBJTREE)/include/autoconf.mk
+
+LIB    = libpostpdm360ng.a
+
+COBJS-$(CONFIG_HAS_POST)       += coproc_com.o
+
+include $(TOPDIR)/post/rules.mk
diff --git a/post/board/pdm360ng/coproc_com.c b/post/board/pdm360ng/coproc_com.c
new file mode 100644 (file)
index 0000000..0755352
--- /dev/null
@@ -0,0 +1,97 @@
+/*
+ * (C) Copyright 2010 DENX Software Engineering,
+ * Anatolij Gustschin, agust@denx.de.
+ *
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of
+ * the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ */
+
+/*
+ * Co-Processor communication POST
+ */
+#include <common.h>
+#include <post.h>
+#include <serial.h>
+
+#if defined(CONFIG_SERIAL_MULTI)
+
+/*
+ * Actually the termination sequence of the coprocessor
+ * commands is "\r\n" (CR LF), but here we use a side effect of
+ * the putc() routine of the serial driver which checks for LF
+ * and sends CR before sending LF. Therefore the termination
+ * sequence in the command below is only "\n".
+ * "alive" string is the coprocessor response for ping command
+ * and not a command, therefore it is terminated with "\r\n".
+ */
+char alive[] = "$AL;38\r\n";
+char ping[] = "$PI;2C\n";
+
+int coprocessor_post_test(int flags)
+{
+       struct stdio_dev *cop_port;
+       int ret;
+       char buf[10];
+
+       /* Test IO Coprocessor communication */
+       cop_port = open_port(4, CONFIG_SYS_PDM360NG_COPROC_BAUDRATE);
+       if (!cop_port)
+               return -1;
+
+       write_port(cop_port, ping);
+       udelay(CONFIG_SYS_PDM360NG_COPROC_READ_DELAY);
+
+       memset(buf, 0, sizeof(buf));
+       ret = read_port(cop_port, buf, sizeof(buf));
+       close_port(4);
+       if (ret <= 0) {
+               post_log("Error: Can't read IO Coprocessor port.\n");
+               return -1;
+       }
+
+       if (strcmp(buf, alive)) {
+               post_log("Error: IO-Cop. resp.: %s\n", buf);
+               return -1;
+       }
+
+       /* Test WD Coprocessor communication */
+       cop_port = open_port(1, CONFIG_SYS_PDM360NG_COPROC_BAUDRATE);
+       if (!cop_port) {
+               post_log("Error: Can't open WD Coprocessor port.\n");
+               return -1;
+       }
+
+       write_port(cop_port, ping);
+       udelay(CONFIG_SYS_PDM360NG_COPROC_READ_DELAY);
+
+       memset(buf, 0, sizeof(buf));
+       ret = read_port(cop_port, buf, sizeof(buf));
+       close_port(1);
+       if (ret <= 0) {
+               post_log("Error: Can't read WD Coprocessor port.\n");
+               return -1;
+       }
+
+       if (strcmp(buf, alive)) {
+               post_log("Error: WD-Cop. resp.: %s\n", buf);
+               return -1;
+       }
+
+       return 0;
+}
+#endif /* CONFIG_SERIAL_MULTI */
index 6ff5c79aa905aeeb085c3f19e977192e252febaa..cb18b6436d89c346fb7bd0192e0f24c971175151 100644 (file)
@@ -69,7 +69,7 @@ static struct {
 
        /* Additional Special-Purpose Registers.
         * The values must match the initialization
-        * values from arch/ppc/cpu/ppc4xx/start.S
+        * values from arch/powerpc/cpu/ppc4xx/start.S
         */
        {0x30,  "PID",          0x00000000,     0x00000000},
        {0x3a,  "CSRR0",        0x00000000,     0x00000000},
similarity index 98%
rename from post/lib_ppc/Makefile
rename to post/lib_powerpc/Makefile
index bd7a23299206d11d2f62d510987aa1e793ac0a63..0cd15cfa137b636a931647760f60e68b3acfb903 100644 (file)
@@ -22,7 +22,7 @@
 #
 include $(TOPDIR)/config.mk
 
-LIB    = libpostppc.a
+LIB    = libpost$(ARCH).a
 
 AOBJS-$(CONFIG_HAS_POST)       += asm.o
 COBJS-$(CONFIG_HAS_POST)       += cpu.o cmp.o cmpi.o two.o twox.o three.o threex.o
similarity index 100%
rename from post/lib_ppc/andi.c
rename to post/lib_powerpc/andi.c
similarity index 100%
rename from post/lib_ppc/asm.S
rename to post/lib_powerpc/asm.S
similarity index 100%
rename from post/lib_ppc/b.c
rename to post/lib_powerpc/b.c
similarity index 100%
rename from post/lib_ppc/cmp.c
rename to post/lib_powerpc/cmp.c
similarity index 100%
rename from post/lib_ppc/cmpi.c
rename to post/lib_powerpc/cmpi.c
similarity index 100%
rename from post/lib_ppc/cpu.c
rename to post/lib_powerpc/cpu.c
similarity index 100%
rename from post/lib_ppc/cr.c
rename to post/lib_powerpc/cr.c
similarity index 97%
rename from post/lib_ppc/fpu/Makefile
rename to post/lib_powerpc/fpu/Makefile
index a6815398e5a9b87fee630cfe9e2b9f3809b234ea..25726db73db1430f8a59a0ed15bcebf2089ad711 100644 (file)
@@ -22,7 +22,7 @@
 #
 include $(TOPDIR)/config.mk
 
-LIB    = libpostppcfpu.a
+LIB    = libpost$(ARCH)fpu.a
 
 COBJS-$(CONFIG_HAS_POST)       += fpu.o 20001122-1.o 20010114-2.o 20010226-1.o 980619-1.o
 COBJS-$(CONFIG_HAS_POST)       += acc1.o compare-fp-1.o mul-subnormal-single-1.o
similarity index 100%
rename from post/lib_ppc/load.c
rename to post/lib_powerpc/load.c
similarity index 100%
rename from post/lib_ppc/two.c
rename to post/lib_powerpc/two.c
similarity index 100%
rename from post/lib_ppc/twox.c
rename to post/lib_powerpc/twox.c
index 3224f009a67d883fe4632114d318ea74b6e72877..a4066f9f8b7a7974cef9bcd9dc529df6ee321921 100644 (file)
@@ -53,6 +53,7 @@ extern int gdc_post_test (int flags);
 extern int fpga_post_test (int flags);
 extern int lwmon5_watchdog_post_test(int flags);
 extern int sysmon1_post_test(int flags);
+extern int coprocessor_post_test(int flags);
 
 extern int sysmon_init_f (void);
 
@@ -286,6 +287,18 @@ struct post_test post_list[] =
 #if CONFIG_POST & CONFIG_SYS_POST_BSPEC5
        CONFIG_POST_BSPEC5,
 #endif
+#if CONFIG_POST & CONFIG_SYS_POST_COPROC
+    {
+       "Coprocessors communication test",
+       "coproc_com",
+       "This test checks communication with coprocessors.",
+       POST_RAM | POST_ALWAYS | POST_CRITICAL,
+       &coprocessor_post_test,
+       NULL,
+       NULL,
+       CONFIG_SYS_POST_COPROC
+    }
+#endif
 };
 
 unsigned int post_list_size = sizeof (post_list) / sizeof (struct post_test);