board support patch for phyCORE-MPC5200B-tiny
PATCH v3 1/1 board support patch for phyCORE-MPC5200B-tiny
Add support for the Phytec phyCORE-MPC5200B-tiny. This code is from Pengutronix.de but they didn't sign the patch.
Signed-off-by Jon Smirl <[email protected]>
--- Makefile | 10 + board/phytec/pcm030/Makefile | 50 ++++ board/phytec/pcm030/config.mk | 42 +++ board/phytec/pcm030/mt46v32m16-75.h | 54 ++++ board/phytec/pcm030/pcm030.c | 289 ++++++++++++++++++++++ cpu/mpc5xxx/ide.c | 3 include/configs/pcm030.h | 463 +++++++++++++++++++++++++++++++++++ 7 files changed, 911 insertions(+), 0 deletions(-) create mode 100644 board/phytec/pcm030/Makefile create mode 100644 board/phytec/pcm030/config.mk create mode 100644 board/phytec/pcm030/mt46v32m16-75.h create mode 100644 board/phytec/pcm030/pcm030.c create mode 100644 include/configs/pcm030.h
Makefile +10 -0
@@ -665,6 +665,16 @@ MVBC_P_config: unconfig o2dnt_config: unconfig @$(MKCONFIG) o2dnt ppc mpc5xxx o2dnt +pcm030_config \ +pcm030_LOWBOOT_config: unconfig + @ >include/config.h + @[ -z "$(findstring LOWBOOT_,$@)" ] || \ + { echo "TEXT_BASE = 0xFF000000" >board/phytec/pcm030/config.tmp ; \ + echo "... with LOWBOOT configuration" ; \ + } + @$(MKCONFIG) -a pcm030 ppc mpc5xxx pcm030 phytec + @ echo "remember to set pcm030_REV to 0 for rev 1245.0 rev or to 1 for rev 1245.1" + pf5200_config: unconfig @$(MKCONFIG) pf5200 ppc mpc5xxx pf5200 esd
board/phytec/pcm030/Makefile new file +50 -0
50 lines not on this page · raw message
board/phytec/pcm030/config.mk new file +42 -0
42 lines not on this page · raw message
board/phytec/pcm030/mt46v32m16-75.h new file +54 -0
54 lines not on this page · raw message
board/phytec/pcm030/pcm030.c new file +289 -0
289 lines not on this page · raw message
cpu/mpc5xxx/ide.c +3 -0
@@ -45,6 +45,9 @@ int ide_preinit (void)#if defined(CONFIG_SYS_ATA_CS_ON_I2C2 )/* ATA cs0/1 on i2c2 clk/io */ reg = (reg & ~0x03000000ul ) |0x02000000ul ; +#elif defined(CONFIG_PHYCORE_MPC5200B_TINY ) +/* ATA cs0/1 on Timer 0/1 */ + reg = (reg & ~0x03000000ul ) |0x03000000ul ;#else /* ATA cs0/1 on Local Plus cs4/5 */ reg = (reg & ~0x03000000ul ) |0x01000000ul ;
include/configs/pcm030.h new file +463 -0
463 lines not on this page · raw message