8xx: add support for new keymile kmsupx4 board.
PATCH v2 6/6 8xx: add support for new keymile kmsupx4 board.
This patch adds support for the kmsupx4 board from Keymile, based on a Freescale MPC852T CPU
- serial console on SMC1
- 32 MB SDRAM
- 32 MB NOR Flash
- Ethernet over SCC3
- I2C Bitbang
Signed-off-by Heiko Schocher <[email protected]>
--- MAINTAINERS | 1 + MAKEALL | 1 + Makefile | 3 ++ board/keymile/common/common.c | 4 +++ board/keymile/km8xx/km8xx.c | 7 +++++- drivers/i2c/soft_i2c.c | 2 +- include/configs/km8xx.h | 46 ++++++++++++++++++++++++++++++++--------- include/configs/kmsupx4.h | 41 ++++++++++++++++++++++++++++++++++++ 8 files changed, 93 insertions(+), 12 deletions(-) create mode 100644 include/configs/kmsupx4.h
MAINTAINERS +1 -0
@@ -380,6 +380,7 @@ Heiko Schocher <[email protected]> ids8247 MPC8247 jupiter MPC5200 kmeter1 MPC8360 + kmsupx4 MPC852T mgcoge MPC8247 mgsuvd MPC852 mucmc52 MPC5200
MAKEALL +1 -0
@@ -117,6 +117,7 @@ LIST_8xx=" \ KUP4X \ LANTEC \ lwmon \ + kmsupx4 \ MBX \ MBX860T \ mgsuvd \
Makefile +3 -0
@@ -921,6 +921,9 @@ IVMS8_config: unconfig } @$(MKCONFIG) -a IVMS8 ppc mpc8xx ivm +kmsupx4_config: unconfig + @$(MKCONFIG) $(@:_config=) ppc mpc8xx km8xx keymile + KUP4K_config : unconfig @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4k kup
board/keymile/common/common.c +4 -0
@@ -295,11 +295,14 @@ int ivm_analyze_eeprom (unsigned char *buf, int len)int ivm_read_eeprom (void ) { +#if defined(CONFIG_I2C_MUX )I2C_MUX_DEVICE *dev =NULL ; +#endif uchar i2c_buffer[CONFIG_SYS_IVM_EEPROM_MAX_LEN ];uchar *buf;unsigned dev_addr =CONFIG_SYS_IVM_EEPROM_ADR ; +#if defined(CONFIG_I2C_MUX )/* First init the Bus, select the Bus */ #if defined(CONFIG_SYS_I2C_IVM_BUS ) dev =i2c_mux_ident_muxstring ((uchar *)CONFIG_SYS_I2C_IVM_BUS );
@@ -313,6 +316,7 @@ int ivm_read_eeprom (void) return -1; }i2c_set_bus_num (dev->busid); +#endif buf = (unsigned char *)getenv ("EEprom_ivm_addr" );if (buf !=NULL )
board/keymile/km8xx/km8xx.c +6 -1
@@ -61,7 +61,12 @@ const uint sdram_table[] =int checkboard (void ) { -puts ("Board: Keymile mgsuvd" ); +puts ("Board: Keymile " ); +#if defined(CONFIG_KMSUPX4 ) +puts ("kmsupx4" ); +#else +puts ("mgsuvd" ); +#endif if (ethernet_present ())puts (" with PIGGY." );puts ("\n" );
drivers/i2c/soft_i2c.c +1 -1
@@ -40,7 +40,7 @@#ifdef CONFIG_LPC2292 #include <asm/arch/hardware.h> #endif -#ifdef CONFIG_MPC866 /* only valid for MPC866 */ +#if defined(CONFIG_MPC852T ) || defined(CONFIG_MPC866 )#include <asm/io.h> #endif #include <i2c.h>
include/configs/km8xx.h +36 -10
103 lines not on this page · raw message
include/configs/kmsupx4.h new file +41 -0
41 lines not on this page · raw message
Signature · 5 lines
1.6.0.6 -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Wolfgang Denk
AppliedPATCH v2 6/6 8xx: add support for new keymile kmsupx4 board.
Dear Heiko Schocher,
Quoted 10 lines · In message <[email protected]> you wrote:
This patch adds support for the kmsupx4 board from Keymile, based on a Freescale MPC852T CPU
- serial console on SMC1
- 32 MB SDRAM
- 32 MB NOR Flash
- Ethernet over SCC3
- I2C BitbangSigned-off-by Heiko Schocher <[email protected]>
Quoted 11 lines
--- MAINTAINERS | 1 + MAKEALL | 1 + Makefile | 3 ++ board/keymile/common/common.c | 4 +++ board/keymile/km8xx/km8xx.c | 7 +++++- drivers/i2c/soft_i2c.c | 2 +- include/configs/km8xx.h | 46 ++++++++++++++++++++++++++++++++--------- include/configs/kmsupx4.h | 41 ++++++++++++++++++++++++++++++++++++ 8 files changed, 93 insertions(+), 12 deletions(-) create mode 100644 include/configs/kmsupx4.h
Applied, thanks.
Best regards,
Wolfgang Denk
Signature · 5 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de "To IBM, 'open' means there is a modicum of interoperability among some of their equipment." - Harv Masterson