diff options
author | Benoit Cousson <b-cousson@ti.com> | 2010-09-27 04:50:33 -0400 |
---|---|---|
committer | Benoit Cousson <b-cousson@ti.com> | 2010-11-17 06:01:53 -0500 |
commit | 6fea7b0a7ad9b79aca09df4c42773927db6934ed (patch) | |
tree | a0a8338d556dc2f89da2cf920fadc03f1a726624 /arch/arm/mach-omap2 | |
parent | a7722d8796c3431163943c30af7a90d87c43180a (diff) |
OMAP4: sdp4430: Select CBS package for ES2
Select the CBS package if SDP4430 is enabled during config.
Use the proper package (CBL or CBS) based on chip revision.
Signed-off-by: Benoit Cousson <b-cousson@ti.com>
Cc: Tony Lindgren <tony@atomide.com>
Cc: Paul Walmsley <paul@pwsan.com>
Cc: Santosh Shilimkar <santosh.shilimkar@ti.com>
Cc: Anand Gadiyar <gadiyar@ti.com>
Diffstat (limited to 'arch/arm/mach-omap2')
-rw-r--r-- | arch/arm/mach-omap2/Kconfig | 1 | ||||
-rw-r--r-- | arch/arm/mach-omap2/board-4430sdp.c | 6 |
2 files changed, 6 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/Kconfig b/arch/arm/mach-omap2/Kconfig index 92fea6395d58..39229cf72c4b 100644 --- a/arch/arm/mach-omap2/Kconfig +++ b/arch/arm/mach-omap2/Kconfig | |||
@@ -284,6 +284,7 @@ config MACH_OMAP_4430SDP | |||
284 | default y | 284 | default y |
285 | depends on ARCH_OMAP4 | 285 | depends on ARCH_OMAP4 |
286 | select OMAP_PACKAGE_CBL | 286 | select OMAP_PACKAGE_CBL |
287 | select OMAP_PACKAGE_CBS | ||
287 | 288 | ||
288 | config MACH_OMAP4_PANDA | 289 | config MACH_OMAP4_PANDA |
289 | bool "OMAP4 Panda Board" | 290 | bool "OMAP4 Panda Board" |
diff --git a/arch/arm/mach-omap2/board-4430sdp.c b/arch/arm/mach-omap2/board-4430sdp.c index e4f1726e6669..94d989bee8ad 100644 --- a/arch/arm/mach-omap2/board-4430sdp.c +++ b/arch/arm/mach-omap2/board-4430sdp.c | |||
@@ -517,8 +517,12 @@ static struct omap_board_mux board_mux[] __initdata = { | |||
517 | static void __init omap_4430sdp_init(void) | 517 | static void __init omap_4430sdp_init(void) |
518 | { | 518 | { |
519 | int status; | 519 | int status; |
520 | int package = OMAP_PACKAGE_CBS; | ||
521 | |||
522 | if (omap_rev() == OMAP4430_REV_ES1_0) | ||
523 | package = OMAP_PACKAGE_CBL; | ||
524 | omap4_mux_init(board_mux, package); | ||
520 | 525 | ||
521 | omap4_mux_init(board_mux, OMAP_PACKAGE_CBL); | ||
522 | omap4_i2c_init(); | 526 | omap4_i2c_init(); |
523 | omap_sfh7741prox_init(); | 527 | omap_sfh7741prox_init(); |
524 | platform_add_devices(sdp4430_devices, ARRAY_SIZE(sdp4430_devices)); | 528 | platform_add_devices(sdp4430_devices, ARRAY_SIZE(sdp4430_devices)); |