diff options
author | Nicolas Ferre <nicolas.ferre@atmel.com> | 2009-06-26 10:37:01 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2009-07-02 10:59:56 -0400 |
commit | b319ff80852e823c3a18778c839151784990f80b (patch) | |
tree | 584b8317df2d93d9dd65b9d92bc835b1e53f816a /arch/arm/mach-at91/board-sam9261ek.c | |
parent | b784b7c03723891876c9053c589150a4062f9455 (diff) |
[ARM] 5570/1: at91: Support for at91sam9g10: core chip & board support
From: Hong Xu <hong.xu@atmel.com>
Here are the modification to at91sam9261 files dedicated to the support of
at91sam9g10. This direction has been adopted to minimize code duplication.
All at91sam9261 drivers are enabled in _devices and board- files. Modificaton
to peripherals that support at91sam9g10 will be added in future patches.
Signed-off-by: Hong Xu <hong.xu@atmel.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Acked-by: Andrew Victor <linux@maxim.org.za>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-at91/board-sam9261ek.c')
-rw-r--r-- | arch/arm/mach-at91/board-sam9261ek.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/arm/mach-at91/board-sam9261ek.c b/arch/arm/mach-at91/board-sam9261ek.c index d5266da55311..f9b19993a7a9 100644 --- a/arch/arm/mach-at91/board-sam9261ek.c +++ b/arch/arm/mach-at91/board-sam9261ek.c | |||
@@ -287,7 +287,11 @@ static void __init ek_add_device_ts(void) {} | |||
287 | */ | 287 | */ |
288 | static struct at73c213_board_info at73c213_data = { | 288 | static struct at73c213_board_info at73c213_data = { |
289 | .ssc_id = 1, | 289 | .ssc_id = 1, |
290 | #if defined(CONFIG_MACH_AT91SAM9261EK) | ||
290 | .shortname = "AT91SAM9261-EK external DAC", | 291 | .shortname = "AT91SAM9261-EK external DAC", |
292 | #else | ||
293 | .shortname = "AT91SAM9G10-EK external DAC", | ||
294 | #endif | ||
291 | }; | 295 | }; |
292 | 296 | ||
293 | #if defined(CONFIG_SND_AT73C213) || defined(CONFIG_SND_AT73C213_MODULE) | 297 | #if defined(CONFIG_SND_AT73C213) || defined(CONFIG_SND_AT73C213_MODULE) |
@@ -414,6 +418,9 @@ static struct atmel_lcdfb_info __initdata ek_lcdc_data = { | |||
414 | .default_monspecs = &at91fb_default_stn_monspecs, | 418 | .default_monspecs = &at91fb_default_stn_monspecs, |
415 | .atmel_lcdfb_power_control = at91_lcdc_stn_power_control, | 419 | .atmel_lcdfb_power_control = at91_lcdc_stn_power_control, |
416 | .guard_time = 1, | 420 | .guard_time = 1, |
421 | #if defined(CONFIG_MACH_AT91SAM9G10EK) | ||
422 | .lcd_wiring_mode = ATMEL_LCDC_WIRING_RGB, | ||
423 | #endif | ||
417 | }; | 424 | }; |
418 | 425 | ||
419 | #else | 426 | #else |
@@ -467,6 +474,9 @@ static struct atmel_lcdfb_info __initdata ek_lcdc_data = { | |||
467 | .default_monspecs = &at91fb_default_tft_monspecs, | 474 | .default_monspecs = &at91fb_default_tft_monspecs, |
468 | .atmel_lcdfb_power_control = at91_lcdc_tft_power_control, | 475 | .atmel_lcdfb_power_control = at91_lcdc_tft_power_control, |
469 | .guard_time = 1, | 476 | .guard_time = 1, |
477 | #if defined(CONFIG_MACH_AT91SAM9G10EK) | ||
478 | .lcd_wiring_mode = ATMEL_LCDC_WIRING_RGB, | ||
479 | #endif | ||
470 | }; | 480 | }; |
471 | #endif | 481 | #endif |
472 | 482 | ||
@@ -600,7 +610,11 @@ static void __init ek_board_init(void) | |||
600 | at91_gpio_leds(ek_leds, ARRAY_SIZE(ek_leds)); | 610 | at91_gpio_leds(ek_leds, ARRAY_SIZE(ek_leds)); |
601 | } | 611 | } |
602 | 612 | ||
613 | #if defined(CONFIG_MACH_AT91SAM9261EK) | ||
603 | MACHINE_START(AT91SAM9261EK, "Atmel AT91SAM9261-EK") | 614 | MACHINE_START(AT91SAM9261EK, "Atmel AT91SAM9261-EK") |
615 | #else | ||
616 | MACHINE_START(AT91SAM9G10EK, "Atmel AT91SAM9G10-EK") | ||
617 | #endif | ||
604 | /* Maintainer: Atmel */ | 618 | /* Maintainer: Atmel */ |
605 | .phys_io = AT91_BASE_SYS, | 619 | .phys_io = AT91_BASE_SYS, |
606 | .io_pg_offst = (AT91_VA_BASE_SYS >> 18) & 0xfffc, | 620 | .io_pg_offst = (AT91_VA_BASE_SYS >> 18) & 0xfffc, |