diff options
author | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-17 16:15:55 -0500 |
---|---|---|
committer | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-17 16:15:55 -0500 |
commit | 8dea78da5cee153b8af9c07a2745f6c55057fe12 (patch) | |
tree | a8f4d49d63b1ecc92f2fddceba0655b2472c5bd9 /arch/arm/plat-pxa | |
parent | 406089d01562f1e2bf9f089fd7637009ebaad589 (diff) |
Patched in Tegra support.
Diffstat (limited to 'arch/arm/plat-pxa')
-rw-r--r-- | arch/arm/plat-pxa/Makefile | 3 | ||||
-rw-r--r-- | arch/arm/plat-pxa/dma.c | 1 | ||||
-rw-r--r-- | arch/arm/plat-pxa/include/plat/mfp.h | 6 | ||||
-rw-r--r-- | arch/arm/plat-pxa/mfp.c | 4 | ||||
-rw-r--r-- | arch/arm/plat-pxa/ssp.c | 7 |
5 files changed, 12 insertions, 9 deletions
diff --git a/arch/arm/plat-pxa/Makefile b/arch/arm/plat-pxa/Makefile index 1fc94194491..3aca5ba0f87 100644 --- a/arch/arm/plat-pxa/Makefile +++ b/arch/arm/plat-pxa/Makefile | |||
@@ -4,7 +4,10 @@ | |||
4 | 4 | ||
5 | obj-y := dma.o | 5 | obj-y := dma.o |
6 | 6 | ||
7 | obj-$(CONFIG_GENERIC_GPIO) += gpio.o | ||
7 | obj-$(CONFIG_PXA3xx) += mfp.o | 8 | obj-$(CONFIG_PXA3xx) += mfp.o |
9 | obj-$(CONFIG_PXA95x) += mfp.o | ||
8 | obj-$(CONFIG_ARCH_MMP) += mfp.o | 10 | obj-$(CONFIG_ARCH_MMP) += mfp.o |
9 | 11 | ||
12 | obj-$(CONFIG_HAVE_PWM) += pwm.o | ||
10 | obj-$(CONFIG_PXA_SSP) += ssp.o | 13 | obj-$(CONFIG_PXA_SSP) += ssp.o |
diff --git a/arch/arm/plat-pxa/dma.c b/arch/arm/plat-pxa/dma.c index 79ef102e3b2..2d3c19d7c7b 100644 --- a/arch/arm/plat-pxa/dma.c +++ b/arch/arm/plat-pxa/dma.c | |||
@@ -20,6 +20,7 @@ | |||
20 | #include <linux/errno.h> | 20 | #include <linux/errno.h> |
21 | #include <linux/dma-mapping.h> | 21 | #include <linux/dma-mapping.h> |
22 | 22 | ||
23 | #include <asm/system.h> | ||
23 | #include <asm/irq.h> | 24 | #include <asm/irq.h> |
24 | #include <asm/memory.h> | 25 | #include <asm/memory.h> |
25 | #include <mach/hardware.h> | 26 | #include <mach/hardware.h> |
diff --git a/arch/arm/plat-pxa/include/plat/mfp.h b/arch/arm/plat-pxa/include/plat/mfp.h index 10bc4f3757d..89e68e07b0a 100644 --- a/arch/arm/plat-pxa/include/plat/mfp.h +++ b/arch/arm/plat-pxa/include/plat/mfp.h | |||
@@ -423,7 +423,7 @@ typedef unsigned long mfp_cfg_t; | |||
423 | ((MFP_CFG_DEFAULT & ~(MFP_AF_MASK | MFP_DS_MASK | MFP_LPM_STATE_MASK)) |\ | 423 | ((MFP_CFG_DEFAULT & ~(MFP_AF_MASK | MFP_DS_MASK | MFP_LPM_STATE_MASK)) |\ |
424 | (MFP_PIN(MFP_PIN_##pin) | MFP_##af | MFP_##drv | MFP_LPM_##lpm)) | 424 | (MFP_PIN(MFP_PIN_##pin) | MFP_##af | MFP_##drv | MFP_LPM_##lpm)) |
425 | 425 | ||
426 | #if defined(CONFIG_PXA3xx) || defined(CONFIG_ARCH_MMP) | 426 | #if defined(CONFIG_PXA3xx) || defined(CONFIG_PXA95x) || defined(CONFIG_ARCH_MMP) |
427 | /* | 427 | /* |
428 | * each MFP pin will have a MFPR register, since the offset of the | 428 | * each MFP pin will have a MFPR register, since the offset of the |
429 | * register varies between processors, the processor specific code | 429 | * register varies between processors, the processor specific code |
@@ -456,7 +456,7 @@ struct mfp_addr_map { | |||
456 | 456 | ||
457 | #define MFP_ADDR_END { MFP_PIN_INVALID, 0 } | 457 | #define MFP_ADDR_END { MFP_PIN_INVALID, 0 } |
458 | 458 | ||
459 | void __init mfp_init_base(void __iomem *mfpr_base); | 459 | void __init mfp_init_base(unsigned long mfpr_base); |
460 | void __init mfp_init_addr(struct mfp_addr_map *map); | 460 | void __init mfp_init_addr(struct mfp_addr_map *map); |
461 | 461 | ||
462 | /* | 462 | /* |
@@ -470,6 +470,6 @@ void mfp_write(int mfp, unsigned long mfpr_val); | |||
470 | void mfp_config(unsigned long *mfp_cfgs, int num); | 470 | void mfp_config(unsigned long *mfp_cfgs, int num); |
471 | void mfp_config_run(void); | 471 | void mfp_config_run(void); |
472 | void mfp_config_lpm(void); | 472 | void mfp_config_lpm(void); |
473 | #endif /* CONFIG_PXA3xx || CONFIG_ARCH_MMP */ | 473 | #endif /* CONFIG_PXA3xx || CONFIG_PXA95x || CONFIG_ARCH_MMP */ |
474 | 474 | ||
475 | #endif /* __ASM_PLAT_MFP_H */ | 475 | #endif /* __ASM_PLAT_MFP_H */ |
diff --git a/arch/arm/plat-pxa/mfp.c b/arch/arm/plat-pxa/mfp.c index 2c4dbb1f423..be12eadcce2 100644 --- a/arch/arm/plat-pxa/mfp.c +++ b/arch/arm/plat-pxa/mfp.c | |||
@@ -229,7 +229,7 @@ void mfp_write(int mfp, unsigned long val) | |||
229 | spin_unlock_irqrestore(&mfp_spin_lock, flags); | 229 | spin_unlock_irqrestore(&mfp_spin_lock, flags); |
230 | } | 230 | } |
231 | 231 | ||
232 | void __init mfp_init_base(void __iomem *mfpr_base) | 232 | void __init mfp_init_base(unsigned long mfpr_base) |
233 | { | 233 | { |
234 | int i; | 234 | int i; |
235 | 235 | ||
@@ -237,7 +237,7 @@ void __init mfp_init_base(void __iomem *mfpr_base) | |||
237 | for (i = 0; i < ARRAY_SIZE(mfp_table); i++) | 237 | for (i = 0; i < ARRAY_SIZE(mfp_table); i++) |
238 | mfp_table[i].config = -1; | 238 | mfp_table[i].config = -1; |
239 | 239 | ||
240 | mfpr_mmio_base = mfpr_base; | 240 | mfpr_mmio_base = (void __iomem *)mfpr_base; |
241 | } | 241 | } |
242 | 242 | ||
243 | void __init mfp_init_addr(struct mfp_addr_map *map) | 243 | void __init mfp_init_addr(struct mfp_addr_map *map) |
diff --git a/arch/arm/plat-pxa/ssp.c b/arch/arm/plat-pxa/ssp.c index 8e11e96eab5..58b79809d20 100644 --- a/arch/arm/plat-pxa/ssp.c +++ b/arch/arm/plat-pxa/ssp.c | |||
@@ -72,7 +72,7 @@ void pxa_ssp_free(struct ssp_device *ssp) | |||
72 | } | 72 | } |
73 | EXPORT_SYMBOL(pxa_ssp_free); | 73 | EXPORT_SYMBOL(pxa_ssp_free); |
74 | 74 | ||
75 | static int pxa_ssp_probe(struct platform_device *pdev) | 75 | static int __devinit pxa_ssp_probe(struct platform_device *pdev) |
76 | { | 76 | { |
77 | const struct platform_device_id *id = platform_get_device_id(pdev); | 77 | const struct platform_device_id *id = platform_get_device_id(pdev); |
78 | struct resource *res; | 78 | struct resource *res; |
@@ -164,7 +164,7 @@ err_free: | |||
164 | return ret; | 164 | return ret; |
165 | } | 165 | } |
166 | 166 | ||
167 | static int pxa_ssp_remove(struct platform_device *pdev) | 167 | static int __devexit pxa_ssp_remove(struct platform_device *pdev) |
168 | { | 168 | { |
169 | struct resource *res; | 169 | struct resource *res; |
170 | struct ssp_device *ssp; | 170 | struct ssp_device *ssp; |
@@ -193,13 +193,12 @@ static const struct platform_device_id ssp_id_table[] = { | |||
193 | { "pxa25x-nssp", PXA25x_NSSP }, | 193 | { "pxa25x-nssp", PXA25x_NSSP }, |
194 | { "pxa27x-ssp", PXA27x_SSP }, | 194 | { "pxa27x-ssp", PXA27x_SSP }, |
195 | { "pxa168-ssp", PXA168_SSP }, | 195 | { "pxa168-ssp", PXA168_SSP }, |
196 | { "pxa910-ssp", PXA910_SSP }, | ||
197 | { }, | 196 | { }, |
198 | }; | 197 | }; |
199 | 198 | ||
200 | static struct platform_driver pxa_ssp_driver = { | 199 | static struct platform_driver pxa_ssp_driver = { |
201 | .probe = pxa_ssp_probe, | 200 | .probe = pxa_ssp_probe, |
202 | .remove = pxa_ssp_remove, | 201 | .remove = __devexit_p(pxa_ssp_remove), |
203 | .driver = { | 202 | .driver = { |
204 | .owner = THIS_MODULE, | 203 | .owner = THIS_MODULE, |
205 | .name = "pxa2xx-ssp", | 204 | .name = "pxa2xx-ssp", |