diff options
Diffstat (limited to 'arch/arm/mach-pxa/hx4700.c')
-rw-r--r-- | arch/arm/mach-pxa/hx4700.c | 44 |
1 files changed, 23 insertions, 21 deletions
diff --git a/arch/arm/mach-pxa/hx4700.c b/arch/arm/mach-pxa/hx4700.c index 208eef1c0485..f309bf975202 100644 --- a/arch/arm/mach-pxa/hx4700.c +++ b/arch/arm/mach-pxa/hx4700.c | |||
@@ -97,9 +97,9 @@ static unsigned long hx4700_pin_config[] __initdata = { | |||
97 | 97 | ||
98 | /* BTUART */ | 98 | /* BTUART */ |
99 | GPIO42_BTUART_RXD, | 99 | GPIO42_BTUART_RXD, |
100 | GPIO43_BTUART_TXD, | 100 | GPIO43_BTUART_TXD_LPM_LOW, |
101 | GPIO44_BTUART_CTS, | 101 | GPIO44_BTUART_CTS, |
102 | GPIO45_BTUART_RTS, | 102 | GPIO45_BTUART_RTS_LPM_LOW, |
103 | 103 | ||
104 | /* PWM 1 (Backlight) */ | 104 | /* PWM 1 (Backlight) */ |
105 | GPIO17_PWM1_OUT, | 105 | GPIO17_PWM1_OUT, |
@@ -245,6 +245,21 @@ static u16 asic3_gpio_config[] = { | |||
245 | ASIC3_GPIOD15_nPIOW, | 245 | ASIC3_GPIOD15_nPIOW, |
246 | }; | 246 | }; |
247 | 247 | ||
248 | static struct asic3_led asic3_leds[ASIC3_NUM_LEDS] = { | ||
249 | [0] = { | ||
250 | .name = "hx4700:amber", | ||
251 | .default_trigger = "ds2760-battery.0-charging-blink-full-solid", | ||
252 | }, | ||
253 | [1] = { | ||
254 | .name = "hx4700:green", | ||
255 | .default_trigger = "unused", | ||
256 | }, | ||
257 | [2] = { | ||
258 | .name = "hx4700:blue", | ||
259 | .default_trigger = "hx4700-radio", | ||
260 | }, | ||
261 | }; | ||
262 | |||
248 | static struct resource asic3_resources[] = { | 263 | static struct resource asic3_resources[] = { |
249 | /* GPIO part */ | 264 | /* GPIO part */ |
250 | [0] = { | 265 | [0] = { |
@@ -275,6 +290,7 @@ static struct asic3_platform_data asic3_platform_data = { | |||
275 | .gpio_config_num = ARRAY_SIZE(asic3_gpio_config), | 290 | .gpio_config_num = ARRAY_SIZE(asic3_gpio_config), |
276 | .irq_base = IRQ_BOARD_START, | 291 | .irq_base = IRQ_BOARD_START, |
277 | .gpio_base = HX4700_ASIC3_GPIO_BASE, | 292 | .gpio_base = HX4700_ASIC3_GPIO_BASE, |
293 | .leds = asic3_leds, | ||
278 | }; | 294 | }; |
279 | 295 | ||
280 | static struct platform_device asic3 = { | 296 | static struct platform_device asic3 = { |
@@ -705,10 +721,9 @@ static void hx4700_set_vpp(struct platform_device *pdev, int vpp) | |||
705 | gpio_set_value(GPIO91_HX4700_FLASH_VPEN, vpp); | 721 | gpio_set_value(GPIO91_HX4700_FLASH_VPEN, vpp); |
706 | } | 722 | } |
707 | 723 | ||
708 | static struct resource strataflash_resource = { | 724 | static struct resource strataflash_resource[] = { |
709 | .start = PXA_CS0_PHYS, | 725 | [0] = DEFINE_RES_MEM(PXA_CS0_PHYS, SZ_64M), |
710 | .end = PXA_CS0_PHYS + SZ_128M - 1, | 726 | [1] = DEFINE_RES_MEM(PXA_CS0_PHYS + SZ_64M, SZ_64M), |
711 | .flags = IORESOURCE_MEM, | ||
712 | }; | 727 | }; |
713 | 728 | ||
714 | static struct physmap_flash_data strataflash_data = { | 729 | static struct physmap_flash_data strataflash_data = { |
@@ -719,8 +734,8 @@ static struct physmap_flash_data strataflash_data = { | |||
719 | static struct platform_device strataflash = { | 734 | static struct platform_device strataflash = { |
720 | .name = "physmap-flash", | 735 | .name = "physmap-flash", |
721 | .id = -1, | 736 | .id = -1, |
722 | .resource = &strataflash_resource, | 737 | .resource = strataflash_resource, |
723 | .num_resources = 1, | 738 | .num_resources = ARRAY_SIZE(strataflash_resource), |
724 | .dev = { | 739 | .dev = { |
725 | .platform_data = &strataflash_data, | 740 | .platform_data = &strataflash_data, |
726 | }, | 741 | }, |
@@ -788,17 +803,6 @@ static struct platform_device audio = { | |||
788 | 803 | ||
789 | 804 | ||
790 | /* | 805 | /* |
791 | * PCMCIA | ||
792 | */ | ||
793 | |||
794 | static struct platform_device pcmcia = { | ||
795 | .name = "hx4700-pcmcia", | ||
796 | .dev = { | ||
797 | .parent = &asic3.dev, | ||
798 | }, | ||
799 | }; | ||
800 | |||
801 | /* | ||
802 | * Platform devices | 806 | * Platform devices |
803 | */ | 807 | */ |
804 | 808 | ||
@@ -814,7 +818,6 @@ static struct platform_device *devices[] __initdata = { | |||
814 | &power_supply, | 818 | &power_supply, |
815 | &strataflash, | 819 | &strataflash, |
816 | &audio, | 820 | &audio, |
817 | &pcmcia, | ||
818 | }; | 821 | }; |
819 | 822 | ||
820 | static struct gpio global_gpios[] = { | 823 | static struct gpio global_gpios[] = { |
@@ -830,7 +833,6 @@ static struct gpio global_gpios[] = { | |||
830 | { GPIO32_HX4700_RS232_ON, GPIOF_OUT_INIT_HIGH, "RS232_ON" }, | 833 | { GPIO32_HX4700_RS232_ON, GPIOF_OUT_INIT_HIGH, "RS232_ON" }, |
831 | { GPIO71_HX4700_ASIC3_nRESET, GPIOF_OUT_INIT_HIGH, "ASIC3_nRESET" }, | 834 | { GPIO71_HX4700_ASIC3_nRESET, GPIOF_OUT_INIT_HIGH, "ASIC3_nRESET" }, |
832 | { GPIO82_HX4700_EUART_RESET, GPIOF_OUT_INIT_HIGH, "EUART_RESET" }, | 835 | { GPIO82_HX4700_EUART_RESET, GPIOF_OUT_INIT_HIGH, "EUART_RESET" }, |
833 | { GPIO105_HX4700_nIR_ON, GPIOF_OUT_INIT_HIGH, "nIR_EN" }, | ||
834 | }; | 836 | }; |
835 | 837 | ||
836 | static void __init hx4700_init(void) | 838 | static void __init hx4700_init(void) |