diff options
| author | Olof Johansson <olof@lixom.net> | 2013-01-28 01:36:59 -0500 |
|---|---|---|
| committer | Olof Johansson <olof@lixom.net> | 2013-01-28 01:36:59 -0500 |
| commit | 4b3c3be024cc4a9f0cfdc97a068e6dd46da12e74 (patch) | |
| tree | d202fe8ed90fce02b6a71cfed4cd8b2476f35e18 | |
| parent | b297d9cd1a23e98298d1f5fff18a7e4a5aa5d145 (diff) | |
| parent | 495b21dc0e488b784ab1d4007d00db1ca2a95c98 (diff) | |
Merge branch 'armsoc/board' of git://github.com/hzhuang1/linux into next/boards
A couple of board updates for PXA, from Haojian Zhuang.
* 'armsoc/board' of git://github.com/hzhuang1/linux:
ARM: pxa: pxa27x.c: add dummy SA1100 rtc clock
ARM: palmtreo: replace #if defined with IF_ENABLED
ARM: palmtreo: add docg4 device initialization
Signed-off-by: Olof Johansson <olof@lixom.net>
| -rw-r--r-- | arch/arm/mach-pxa/palmtreo.c | 35 | ||||
| -rw-r--r-- | arch/arm/mach-pxa/pxa27x.c | 1 |
2 files changed, 34 insertions, 2 deletions
diff --git a/arch/arm/mach-pxa/palmtreo.c b/arch/arm/mach-pxa/palmtreo.c index 3f3c48f2f7ce..c181a60a23f4 100644 --- a/arch/arm/mach-pxa/palmtreo.c +++ b/arch/arm/mach-pxa/palmtreo.c | |||
| @@ -161,7 +161,7 @@ static unsigned long centro685_pin_config[] __initdata = { | |||
| 161 | /****************************************************************************** | 161 | /****************************************************************************** |
| 162 | * GPIO keyboard | 162 | * GPIO keyboard |
| 163 | ******************************************************************************/ | 163 | ******************************************************************************/ |
| 164 | #if defined(CONFIG_KEYBOARD_PXA27x) || defined(CONFIG_KEYBOARD_PXA27x_MODULE) | 164 | #if IS_ENABLED(CONFIG_KEYBOARD_PXA27x) |
| 165 | static unsigned int treo680_matrix_keys[] = { | 165 | static unsigned int treo680_matrix_keys[] = { |
| 166 | KEY(0, 0, KEY_F8), /* Red/Off/Power */ | 166 | KEY(0, 0, KEY_F8), /* Red/Off/Power */ |
| 167 | KEY(0, 1, KEY_LEFT), | 167 | KEY(0, 1, KEY_LEFT), |
| @@ -309,7 +309,7 @@ static inline void palmtreo_kpc_init(void) {} | |||
| 309 | /****************************************************************************** | 309 | /****************************************************************************** |
| 310 | * USB host | 310 | * USB host |
| 311 | ******************************************************************************/ | 311 | ******************************************************************************/ |
| 312 | #if defined(CONFIG_USB_OHCI_HCD) || defined(CONFIG_USB_OHCI_HCD_MODULE) | 312 | #if IS_ENABLED(CONFIG_USB_OHCI_HCD) |
| 313 | static struct pxaohci_platform_data treo680_ohci_info = { | 313 | static struct pxaohci_platform_data treo680_ohci_info = { |
| 314 | .port_mode = PMM_PERPORT_MODE, | 314 | .port_mode = PMM_PERPORT_MODE, |
| 315 | .flags = ENABLE_PORT1 | ENABLE_PORT3, | 315 | .flags = ENABLE_PORT1 | ENABLE_PORT3, |
| @@ -396,6 +396,36 @@ static inline void palmtreo_leds_init(void) {} | |||
| 396 | #endif | 396 | #endif |
| 397 | 397 | ||
| 398 | /****************************************************************************** | 398 | /****************************************************************************** |
| 399 | * diskonchip docg4 flash | ||
| 400 | ******************************************************************************/ | ||
| 401 | #if defined(CONFIG_MACH_TREO680) | ||
| 402 | /* REVISIT: does the centro have this device also? */ | ||
| 403 | #if IS_ENABLED(CONFIG_MTD_NAND_DOCG4) | ||
| 404 | static struct resource docg4_resources[] = { | ||
| 405 | { | ||
| 406 | .start = 0x00000000, | ||
| 407 | .end = 0x00001FFF, | ||
| 408 | .flags = IORESOURCE_MEM, | ||
| 409 | }, | ||
| 410 | }; | ||
| 411 | |||
| 412 | static struct platform_device treo680_docg4_flash = { | ||
| 413 | .name = "docg4", | ||
| 414 | .id = -1, | ||
| 415 | .resource = docg4_resources, | ||
| 416 | .num_resources = ARRAY_SIZE(docg4_resources), | ||
| 417 | }; | ||
| 418 | |||
| 419 | static void __init treo680_docg4_flash_init(void) | ||
| 420 | { | ||
| 421 | platform_device_register(&treo680_docg4_flash); | ||
| 422 | } | ||
| 423 | #else | ||
| 424 | static inline void treo680_docg4_flash_init(void) {} | ||
| 425 | #endif | ||
| 426 | #endif | ||
| 427 | |||
| 428 | /****************************************************************************** | ||
| 399 | * Machine init | 429 | * Machine init |
| 400 | ******************************************************************************/ | 430 | ******************************************************************************/ |
| 401 | static void __init treo_reserve(void) | 431 | static void __init treo_reserve(void) |
| @@ -430,6 +460,7 @@ static void __init treo680_init(void) | |||
| 430 | palmphone_common_init(); | 460 | palmphone_common_init(); |
| 431 | palm27x_mmc_init(GPIO_NR_TREO_SD_DETECT_N, GPIO_NR_TREO680_SD_READONLY, | 461 | palm27x_mmc_init(GPIO_NR_TREO_SD_DETECT_N, GPIO_NR_TREO680_SD_READONLY, |
| 432 | GPIO_NR_TREO680_SD_POWER, 0); | 462 | GPIO_NR_TREO680_SD_POWER, 0); |
| 463 | treo680_docg4_flash_init(); | ||
| 433 | } | 464 | } |
| 434 | #endif | 465 | #endif |
| 435 | 466 | ||
diff --git a/arch/arm/mach-pxa/pxa27x.c b/arch/arm/mach-pxa/pxa27x.c index 616cb87b6179..07f1bdb9cd8e 100644 --- a/arch/arm/mach-pxa/pxa27x.c +++ b/arch/arm/mach-pxa/pxa27x.c | |||
| @@ -230,6 +230,7 @@ static struct clk_lookup pxa27x_clkregs[] = { | |||
| 230 | INIT_CLKREG(&clk_pxa27x_memc, NULL, "MEMCLK"), | 230 | INIT_CLKREG(&clk_pxa27x_memc, NULL, "MEMCLK"), |
| 231 | INIT_CLKREG(&clk_pxa27x_mem, "pxa2xx-pcmcia", NULL), | 231 | INIT_CLKREG(&clk_pxa27x_mem, "pxa2xx-pcmcia", NULL), |
| 232 | INIT_CLKREG(&clk_dummy, "pxa-gpio", NULL), | 232 | INIT_CLKREG(&clk_dummy, "pxa-gpio", NULL), |
| 233 | INIT_CLKREG(&clk_dummy, "sa1100-rtc", NULL), | ||
| 233 | }; | 234 | }; |
| 234 | 235 | ||
| 235 | #ifdef CONFIG_PM | 236 | #ifdef CONFIG_PM |
