aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mmp
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2014-04-05 16:44:27 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2014-04-05 16:44:27 -0400
commit9f800363bb0ea459e15bef0928a72c88d374e489 (patch)
tree13a6b4165d3e2ba18e88e5103437f74e84e0838d /arch/arm/mach-mmp
parent2d1eb87ae1e6f3999e77989fd2f831b134270787 (diff)
parentcb46a256a78225817945cd52068d61d5126c236e (diff)
Merge tag 'fixes-non-critical-3.15' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
Pull ARM SoC non-critical bug fixes from Arnd Bergmann: "Lots of isolated bug fixes that were not found to be important enough to be submitted before the merge window or backported into stable kernels. The vast majority of these came out of Arnd's randconfig testing and just prevents running into build-time bugs in configurations that we do not care about in practice" * tag 'fixes-non-critical-3.15' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (75 commits) ARM: at91: fix a typo ARM: moxart: fix CPU selection ARM: tegra: fix board DT pinmux setup ARM: nspire: Fix compiler warning IXP4xx: Fix DMA masks. Revert "ARM: ixp4xx: Make dma_set_coherent_mask common, correct implementation" IXP4xx: Fix Goramo Multilink GPIO conversion. Revert "ARM: ixp4xx: fix gpio rework" ARM: tegra: make debug_ll code build for ARMv6 ARM: sunxi: fix build for THUMB2_KERNEL ARM: exynos: add missing include of linux/module.h ARM: exynos: fix l2x0 saved regs handling ARM: samsung: select CRC32 for SAMSUNG_PM_CHECK ARM: samsung: select ATAGS where necessary ARM: samsung: fix SAMSUNG_PM_DEBUG Kconfig logic ARM: samsung: allow serial driver to be disabled ARM: s5pv210: enable IDE support in MACH_TORBRECK ARM: s5p64x0: fix building with only one soc type ARM: s3c64xx: select power domains only when used ARM: s3c64xx: MACH_SMDK6400 needs HSMMC1 ...
Diffstat (limited to 'arch/arm/mach-mmp')
-rw-r--r--arch/arm/mach-mmp/aspenite.c4
-rw-r--r--arch/arm/mach-mmp/devices.c14
-rw-r--r--arch/arm/mach-mmp/ttc_dkb.c18
3 files changed, 18 insertions, 18 deletions
diff --git a/arch/arm/mach-mmp/aspenite.c b/arch/arm/mach-mmp/aspenite.c
index 0c002099c3a3..7e0248582efd 100644
--- a/arch/arm/mach-mmp/aspenite.c
+++ b/arch/arm/mach-mmp/aspenite.c
@@ -231,7 +231,7 @@ static struct pxa27x_keypad_platform_data aspenite_keypad_info __initdata = {
231 .debounce_interval = 30, 231 .debounce_interval = 30,
232}; 232};
233 233
234#if defined(CONFIG_USB_EHCI_MV) 234#if IS_ENABLED(CONFIG_USB_EHCI_MV)
235static struct mv_usb_platform_data pxa168_sph_pdata = { 235static struct mv_usb_platform_data pxa168_sph_pdata = {
236 .mode = MV_USB_MODE_HOST, 236 .mode = MV_USB_MODE_HOST,
237 .phy_init = pxa_usb_phy_init, 237 .phy_init = pxa_usb_phy_init,
@@ -258,7 +258,7 @@ static void __init common_init(void)
258 /* off-chip devices */ 258 /* off-chip devices */
259 platform_device_register(&smc91x_device); 259 platform_device_register(&smc91x_device);
260 260
261#if defined(CONFIG_USB_EHCI_MV) 261#if IS_ENABLED(CONFIG_USB_EHCI_MV)
262 pxa168_add_usb_host(&pxa168_sph_pdata); 262 pxa168_add_usb_host(&pxa168_sph_pdata);
263#endif 263#endif
264} 264}
diff --git a/arch/arm/mach-mmp/devices.c b/arch/arm/mach-mmp/devices.c
index dd2d8b103cc8..2bcb766af05d 100644
--- a/arch/arm/mach-mmp/devices.c
+++ b/arch/arm/mach-mmp/devices.c
@@ -72,7 +72,7 @@ int __init pxa_register_device(struct pxa_device_desc *desc,
72 return platform_device_add(pdev); 72 return platform_device_add(pdev);
73} 73}
74 74
75#if defined(CONFIG_USB) || defined(CONFIG_USB_GADGET) 75#if IS_ENABLED(CONFIG_USB) || IS_ENABLED(CONFIG_USB_GADGET)
76 76
77/***************************************************************************** 77/*****************************************************************************
78 * The registers read/write routines 78 * The registers read/write routines
@@ -112,9 +112,9 @@ static void u2o_write(void __iomem *base, unsigned int offset,
112 readl_relaxed(base + offset); 112 readl_relaxed(base + offset);
113} 113}
114 114
115#if defined(CONFIG_USB_MV_UDC) || defined(CONFIG_USB_EHCI_MV) 115#if IS_ENABLED(CONFIG_USB_MV_UDC) || IS_ENABLED(CONFIG_USB_EHCI_MV)
116 116
117#if defined(CONFIG_CPU_PXA910) || defined(CONFIG_CPU_PXA168) 117#if IS_ENABLED(CONFIG_CPU_PXA910) || IS_ENABLED(CONFIG_CPU_PXA168)
118 118
119static DEFINE_MUTEX(phy_lock); 119static DEFINE_MUTEX(phy_lock);
120static int phy_init_cnt; 120static int phy_init_cnt;
@@ -238,10 +238,10 @@ void pxa_usb_phy_deinit(void __iomem *phy_reg)
238#endif 238#endif
239#endif 239#endif
240 240
241#ifdef CONFIG_USB_SUPPORT 241#if IS_ENABLED(CONFIG_USB_SUPPORT)
242static u64 usb_dma_mask = ~(u32)0; 242static u64 usb_dma_mask = ~(u32)0;
243 243
244#ifdef CONFIG_USB_MV_UDC 244#if IS_ENABLED(CONFIG_USB_MV_UDC)
245struct resource pxa168_u2o_resources[] = { 245struct resource pxa168_u2o_resources[] = {
246 /* regbase */ 246 /* regbase */
247 [0] = { 247 [0] = {
@@ -276,7 +276,7 @@ struct platform_device pxa168_device_u2o = {
276}; 276};
277#endif /* CONFIG_USB_MV_UDC */ 277#endif /* CONFIG_USB_MV_UDC */
278 278
279#ifdef CONFIG_USB_EHCI_MV_U2O 279#if IS_ENABLED(CONFIG_USB_EHCI_MV_U2O)
280struct resource pxa168_u2oehci_resources[] = { 280struct resource pxa168_u2oehci_resources[] = {
281 /* regbase */ 281 /* regbase */
282 [0] = { 282 [0] = {
@@ -312,7 +312,7 @@ struct platform_device pxa168_device_u2oehci = {
312}; 312};
313#endif 313#endif
314 314
315#if defined(CONFIG_USB_MV_OTG) 315#if IS_ENABLED(CONFIG_USB_MV_OTG)
316struct resource pxa168_u2ootg_resources[] = { 316struct resource pxa168_u2ootg_resources[] = {
317 /* regbase */ 317 /* regbase */
318 [0] = { 318 [0] = {
diff --git a/arch/arm/mach-mmp/ttc_dkb.c b/arch/arm/mach-mmp/ttc_dkb.c
index cfadd974f5ce..ac4af81de3ea 100644
--- a/arch/arm/mach-mmp/ttc_dkb.c
+++ b/arch/arm/mach-mmp/ttc_dkb.c
@@ -164,8 +164,8 @@ static struct i2c_board_info ttc_dkb_i2c_info[] = {
164 }, 164 },
165}; 165};
166 166
167#ifdef CONFIG_USB_SUPPORT 167#if IS_ENABLED(CONFIG_USB_SUPPORT)
168#if defined(CONFIG_USB_MV_UDC) || defined(CONFIG_USB_EHCI_MV_U2O) 168#if IS_ENABLED(CONFIG_USB_MV_UDC) || IS_ENABLED(CONFIG_USB_EHCI_MV_U2O)
169 169
170static struct mv_usb_platform_data ttc_usb_pdata = { 170static struct mv_usb_platform_data ttc_usb_pdata = {
171 .vbus = NULL, 171 .vbus = NULL,
@@ -178,14 +178,14 @@ static struct mv_usb_platform_data ttc_usb_pdata = {
178#endif 178#endif
179#endif 179#endif
180 180
181#ifdef CONFIG_MTD_NAND_PXA3xx 181#if IS_ENABLED(CONFIG_MTD_NAND_PXA3xx)
182static struct pxa3xx_nand_platform_data dkb_nand_info = { 182static struct pxa3xx_nand_platform_data dkb_nand_info = {
183 .enable_arbiter = 1, 183 .enable_arbiter = 1,
184 .num_cs = 1, 184 .num_cs = 1,
185}; 185};
186#endif 186#endif
187 187
188#ifdef CONFIG_MMP_DISP 188#if IS_ENABLED(CONFIG_MMP_DISP)
189/* path config */ 189/* path config */
190#define CFG_IOPADMODE(iopad) (iopad) /* 0x0 ~ 0xd */ 190#define CFG_IOPADMODE(iopad) (iopad) /* 0x0 ~ 0xd */
191#define SCLK_SOURCE_SELECT(x) (x << 30) /* 0x0 ~ 0x3 */ 191#define SCLK_SOURCE_SELECT(x) (x << 30) /* 0x0 ~ 0x3 */
@@ -275,7 +275,7 @@ static void __init ttc_dkb_init(void)
275 275
276 /* on-chip devices */ 276 /* on-chip devices */
277 pxa910_add_uart(1); 277 pxa910_add_uart(1);
278#ifdef CONFIG_MTD_NAND_PXA3xx 278#if IS_ENABLED(CONFIG_MTD_NAND_PXA3xx)
279 pxa910_add_nand(&dkb_nand_info); 279 pxa910_add_nand(&dkb_nand_info);
280#endif 280#endif
281 281
@@ -285,22 +285,22 @@ static void __init ttc_dkb_init(void)
285 sizeof(struct pxa_gpio_platform_data)); 285 sizeof(struct pxa_gpio_platform_data));
286 platform_add_devices(ARRAY_AND_SIZE(ttc_dkb_devices)); 286 platform_add_devices(ARRAY_AND_SIZE(ttc_dkb_devices));
287 287
288#ifdef CONFIG_USB_MV_UDC 288#if IS_ENABLED(CONFIG_USB_MV_UDC)
289 pxa168_device_u2o.dev.platform_data = &ttc_usb_pdata; 289 pxa168_device_u2o.dev.platform_data = &ttc_usb_pdata;
290 platform_device_register(&pxa168_device_u2o); 290 platform_device_register(&pxa168_device_u2o);
291#endif 291#endif
292 292
293#ifdef CONFIG_USB_EHCI_MV_U2O 293#if IS_ENABLED(CONFIG_USB_EHCI_MV_U2O)
294 pxa168_device_u2oehci.dev.platform_data = &ttc_usb_pdata; 294 pxa168_device_u2oehci.dev.platform_data = &ttc_usb_pdata;
295 platform_device_register(&pxa168_device_u2oehci); 295 platform_device_register(&pxa168_device_u2oehci);
296#endif 296#endif
297 297
298#ifdef CONFIG_USB_MV_OTG 298#if IS_ENABLED(CONFIG_USB_MV_OTG)
299 pxa168_device_u2ootg.dev.platform_data = &ttc_usb_pdata; 299 pxa168_device_u2ootg.dev.platform_data = &ttc_usb_pdata;
300 platform_device_register(&pxa168_device_u2ootg); 300 platform_device_register(&pxa168_device_u2ootg);
301#endif 301#endif
302 302
303#ifdef CONFIG_MMP_DISP 303#if IS_ENABLED(CONFIG_MMP_DISP)
304 add_disp(); 304 add_disp();
305#endif 305#endif
306} 306}