diff options
author | Tony Lindgren <tony@atomide.com> | 2007-12-18 23:58:32 -0500 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2008-02-08 13:38:02 -0500 |
commit | e27a93a944a5ba6a0112750c8243abba86d56e94 (patch) | |
tree | 2b7e895acd757783501c8689aac34a2b13ac0269 /arch/arm/mach-omap1/board-sx1.c | |
parent | 80dbfde54bfc40c1e39ace7dbb371f095e74665f (diff) |
ARM: OMAP1: Misc clean-up
This patch cleans up omap1 files to sync up with linux-omap tree:
- Remove omap-generic MMC config as it should be defined in board-*.c files
instead of using board-generic.c
- New style I2C board_info from David Brownell <dbrownell@users.sourceforge.net>
- Init section fixes from Dirk Behme <dirk.behme@googlemail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap1/board-sx1.c')
-rw-r--r-- | arch/arm/mach-omap1/board-sx1.c | 24 |
1 files changed, 4 insertions, 20 deletions
diff --git a/arch/arm/mach-omap1/board-sx1.c b/arch/arm/mach-omap1/board-sx1.c index faa99b54c1ec..1c7f09aedf07 100644 --- a/arch/arm/mach-omap1/board-sx1.c +++ b/arch/arm/mach-omap1/board-sx1.c | |||
@@ -268,21 +268,6 @@ static struct omap_mcbsp_reg_cfg mcbsp1_regs = { | |||
268 | /* PCR0 =0f0f */ | 268 | /* PCR0 =0f0f */ |
269 | }; | 269 | }; |
270 | 270 | ||
271 | /* TODO: PCM interface - McBSP2 */ | ||
272 | static struct omap_mcbsp_reg_cfg mcbsp2_regs = { | ||
273 | .spcr2 = FRST | GRST | XRST | XINTM(3), /* SPCR2=F1 */ | ||
274 | .spcr1 = RINTM(3) | RRST, /* SPCR1=30 */ | ||
275 | .rcr2 = 0, /* RCR2 =00 */ | ||
276 | .rcr1 = RFRLEN1(1) | RWDLEN1(OMAP_MCBSP_WORD_16), /* RCR1 = 140 */ | ||
277 | .xcr2 = 0, /* XCR2 = 0 */ | ||
278 | .xcr1 = XFRLEN1(1) | XWDLEN1(OMAP_MCBSP_WORD_16), /* XCR1 = 140 */ | ||
279 | .srgr1 = FWID(15) | CLKGDV(12), /* SRGR1=0f0c */ | ||
280 | .srgr2 = FSGM | FPER(31), /* SRGR2=101f */ | ||
281 | .pcr0 = FSXM | FSRM | CLKXM | CLKRM | FSXP | FSRP | CLKXP | CLKRP, | ||
282 | /* PCR0=0f0f */ | ||
283 | /* mcbsp: slave */ | ||
284 | }; | ||
285 | |||
286 | static struct omap_alsa_codec_config sx1_alsa_config = { | 271 | static struct omap_alsa_codec_config sx1_alsa_config = { |
287 | .name = "SX1 EGold", | 272 | .name = "SX1 EGold", |
288 | .mcbsp_regs_alsa = &mcbsp1_regs, | 273 | .mcbsp_regs_alsa = &mcbsp1_regs, |
@@ -395,11 +380,8 @@ static struct omap_usb_config sx1_usb_config __initdata = { | |||
395 | 380 | ||
396 | static struct omap_mmc_config sx1_mmc_config __initdata = { | 381 | static struct omap_mmc_config sx1_mmc_config __initdata = { |
397 | .mmc [0] = { | 382 | .mmc [0] = { |
398 | .enabled = 1, | 383 | .enabled = 1, |
399 | .wire4 = 0, | 384 | .wire4 = 0, |
400 | .wp_pin = -1, | ||
401 | .power_pin = -1, /* power is in Sofia */ | ||
402 | .switch_pin = OMAP_MPUIO(3), | ||
403 | }, | 385 | }, |
404 | }; | 386 | }; |
405 | 387 | ||
@@ -428,13 +410,15 @@ static struct omap_uart_config sx1_uart_config __initdata = { | |||
428 | .enabled_uarts = ((1 << 0) | (1 << 1) | (1 << 2)), | 410 | .enabled_uarts = ((1 << 0) | (1 << 1) | (1 << 2)), |
429 | }; | 411 | }; |
430 | 412 | ||
431 | static struct omap_board_config_kernel sx1_config[] = { | 413 | static struct omap_board_config_kernel sx1_config[] __initdata = { |
432 | { OMAP_TAG_USB, &sx1_usb_config }, | 414 | { OMAP_TAG_USB, &sx1_usb_config }, |
433 | { OMAP_TAG_MMC, &sx1_mmc_config }, | 415 | { OMAP_TAG_MMC, &sx1_mmc_config }, |
434 | { OMAP_TAG_LCD, &sx1_lcd_config }, | 416 | { OMAP_TAG_LCD, &sx1_lcd_config }, |
435 | { OMAP_TAG_UART, &sx1_uart_config }, | 417 | { OMAP_TAG_UART, &sx1_uart_config }, |
436 | }; | 418 | }; |
419 | |||
437 | /*-----------------------------------------*/ | 420 | /*-----------------------------------------*/ |
421 | |||
438 | static void __init omap_sx1_init(void) | 422 | static void __init omap_sx1_init(void) |
439 | { | 423 | { |
440 | platform_add_devices(sx1_devices, ARRAY_SIZE(sx1_devices)); | 424 | platform_add_devices(sx1_devices, ARRAY_SIZE(sx1_devices)); |