Add support for the MPC8349E-mITX-GP
PATCH 1/1 Add support for the MPC8349E-mITX-GP
Add support for the MPC8349E-mITX-GP, a stripped-down version of the MPC8349E-mITX. Bonus features include support for low-boot (BMS bit in HRCW is 0) for the ITX and a README for the ITX and the ITX-GP.
Signed-off-by Timur Tabi <[email protected]>
--- MAINTAINERS | 1 + MAKEALL | 4 +- Makefile | 15 ++- board/mpc8349itx/config.mk | 6 +- board/mpc8349itx/mpc8349itx.c | 22 ++- doc/README.mpc8349itx | 187 +++++++++++++++++ include/configs/MPC8349ITX.h | 459 ++++++++++++++++------------------------- include/mpc83xx.h | 41 ++++ 8 files changed, 447 insertions(+), 288 deletions(-)
MAINTAINERS +1 -0
@@ -348,6 +348,7 @@ John Zhan <[email protected]> Timur Tabi <[email protected]> MPC8349E-mITX MPC8349 + MPC8349E-mITX-GP MPC8349 Kim Phillips <[email protected]>
MAKEALL +2 -2
@@ -131,8 +131,8 @@ LIST_8260=" \ ######################################################################### LIST_83xx=" \ - MPC832XEMDS MPC8349EMDS MPC8349ITX MPC8360EMDS \ - sbc8349 TQM834x \ + MPC832XEMDS MPC8349EMDS MPC8349ITX MPC8349ITXGP \ + MPC8360EMDS sbc8349 TQM834x \ "
Makefile +13 -2
@@ -1634,8 +1634,19 @@ MPC832XEMDS_SLAVE_config: unconfig MPC8349EMDS_config: unconfig @$(MKCONFIG) $(@:_config=) ppc mpc83xx mpc8349emds -MPC8349ITX_config: unconfig - @$(MKCONFIG) $(@:_config=) ppc mpc83xx mpc8349itx +MPC8349ITX_config \ +MPC8349ITX_LOWBOOT_config \ +MPC8349ITXGP_config: unconfig + @mkdir -p $(obj)include + @mkdir -p $(obj)board/mpc8349itx + @echo "#define CONFIG_$(subst _LOWBOOT,,$(@:_config=))" >> $(obj)include/config.h + @if [ "$(findstring GP,$@)" ] ; then \ + echo "TEXT_BASE = 0xFE000000" >$(obj)board/mpc8349itx/config.tmp ; \ + fi + @if [ "$(findstring LOWBOOT,$@)" ] ; then \ + echo "TEXT_BASE = 0xFE000000" >$(obj)board/mpc8349itx/config.tmp ; \ + fi + @$(MKCONFIG) -a -n $(@:_config=) MPC8349ITX ppc mpc83xx mpc8349itx MPC8360EMDS_config \ MPC8360EMDS_HOST_33_config \
board/mpc8349itx/config.mk +5 -1
@@ -21,10 +21,14 @@ # # -# MPC8349ITX +# MPC8349E-mITX and MPC8349E-mITX-GP # +sinclude $(OBJTREE)/board/$(BOARDDIR)/config.tmp + +ifndef TEXT_BASE TEXT_BASE = 0xFEF00000 +endif ifneq ($(OBJTREE),$(SRCTREE)) # We are building u-boot in a separate directory, use generated
board/mpc8349itx/mpc8349itx.c +19 -3
@@ -168,7 +168,11 @@ long int initdram(int board_type)int checkboard (void ) { +#ifdef CONFIG_MPC8349ITX puts ("Board: Freescale MPC8349E-mITX\n" ); +#else +puts ("Board: Freescale MPC8349E-mITX-GP\n" ); +#endif return 0 ; }
@@ -181,6 +185,7 @@ int checkboard(void)*/ int misc_init_f (void ) { +#ifdef CONFIG_VSC7385 volatile u32 *vsc7385_cpuctrl;/* 0x1c0c0 is the VSC7385 CPU Control (CPUCTRL) Register. The power up
@@ -200,6 +205,7 @@ int misc_init_f(void) vsc7385_cpuctrl = (volatile u32 *)(CFG_VSC7385_BASE +0x1c0c0 ); *vsc7385_cpuctrl |=0x0c ; +#endif #ifdef CONFIG_COMPACT_FLASH /* UPM Table Configuration Code */
@@ -269,9 +275,19 @@ int misc_init_r(void)#ifdef CFG_I2C_EEPROM_ADDR static u8 eeprom_data[] =/* HRCW data */ { -0xaa ,0x55 ,0xaa , -0x7c ,0x02 ,0x40 ,0x05 ,0x04 ,0x00 ,0x00 , -0x7c ,0x02 ,0x41 ,0xb4 ,0x60 ,0xa0 ,0x00 , +0xAA ,0x55 ,0xAA ,/* Preamble */ +0x7C ,/* ACS=0, BYTE_EN=1111, CONT=1 */ +0x02 ,0x40 ,/* RCWL ADDR=0x0_0900 */ + (CFG_HRCW_LOW >>24 ) &0xFF , + (CFG_HRCW_LOW >>16 ) &0xFF , + (CFG_HRCW_LOW >>8 ) &0xFF , +CFG_HRCW_LOW &0xFF , +0x7C ,/* ACS=0, BYTE_EN=1111, CONT=1 */ +0x02 ,0x41 ,/* RCWH ADDR=0x0_0904 */ + (CFG_HRCW_HIGH >>24 ) &0xFF , + (CFG_HRCW_HIGH >>16 ) &0xFF , + (CFG_HRCW_HIGH >>8 ) &0xFF , +CFG_HRCW_HIGH &0xFF };u8 data[sizeof (eeprom_data)];
doc/README.mpc8349itx new file +187 -0
187 lines not on this page · raw message
include/configs/MPC8349ITX.h +179 -280
700 lines not on this page · raw message
include/mpc83xx.h +41 -0
47 lines not on this page · raw message
Signature · 1 line
1.4.4