File tree Expand file tree Collapse file tree 7 files changed +21
-21
lines changed Expand file tree Collapse file tree 7 files changed +21
-21
lines changed Original file line number Diff line number Diff line change 22
22
23
23
/***************************************************************************/
24
24
25
- #ifdef CONFIG_SPI_COLDFIRE_QSPI
25
+ #if IS_ENABLED ( CONFIG_SPI_COLDFIRE_QSPI )
26
26
27
27
static void __init m520x_qspi_init (void )
28
28
{
@@ -35,7 +35,7 @@ static void __init m520x_qspi_init(void)
35
35
writew (par , MCF_GPIO_PAR_UART );
36
36
}
37
37
38
- #endif /* CONFIG_SPI_COLDFIRE_QSPI */
38
+ #endif /* IS_ENABLED( CONFIG_SPI_COLDFIRE_QSPI) */
39
39
40
40
/***************************************************************************/
41
41
@@ -79,7 +79,7 @@ void __init config_BSP(char *commandp, int size)
79
79
mach_sched_init = hw_timer_init ;
80
80
m520x_uarts_init ();
81
81
m520x_fec_init ();
82
- #ifdef CONFIG_SPI_COLDFIRE_QSPI
82
+ #if IS_ENABLED ( CONFIG_SPI_COLDFIRE_QSPI )
83
83
m520x_qspi_init ();
84
84
#endif
85
85
}
Original file line number Diff line number Diff line change 22
22
23
23
/***************************************************************************/
24
24
25
- #ifdef CONFIG_SPI_COLDFIRE_QSPI
25
+ #if IS_ENABLED ( CONFIG_SPI_COLDFIRE_QSPI )
26
26
27
27
static void __init m523x_qspi_init (void )
28
28
{
@@ -36,7 +36,7 @@ static void __init m523x_qspi_init(void)
36
36
writew (par , MCFGPIO_PAR_TIMER );
37
37
}
38
38
39
- #endif /* CONFIG_SPI_COLDFIRE_QSPI */
39
+ #endif /* IS_ENABLED( CONFIG_SPI_COLDFIRE_QSPI) */
40
40
41
41
/***************************************************************************/
42
42
@@ -58,7 +58,7 @@ void __init config_BSP(char *commandp, int size)
58
58
{
59
59
mach_sched_init = hw_timer_init ;
60
60
m523x_fec_init ();
61
- #ifdef CONFIG_SPI_COLDFIRE_QSPI
61
+ #if IS_ENABLED ( CONFIG_SPI_COLDFIRE_QSPI )
62
62
m523x_qspi_init ();
63
63
#endif
64
64
}
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ static struct platform_device *m5249_devices[] __initdata = {
51
51
52
52
/***************************************************************************/
53
53
54
- #ifdef CONFIG_SPI_COLDFIRE_QSPI
54
+ #if IS_ENABLED ( CONFIG_SPI_COLDFIRE_QSPI )
55
55
56
56
static void __init m5249_qspi_init (void )
57
57
{
@@ -61,7 +61,7 @@ static void __init m5249_qspi_init(void)
61
61
mcf_mapirq2imr (MCF_IRQ_QSPI , MCFINTC_QSPI );
62
62
}
63
63
64
- #endif /* CONFIG_SPI_COLDFIRE_QSPI */
64
+ #endif /* IS_ENABLED( CONFIG_SPI_COLDFIRE_QSPI) */
65
65
66
66
/***************************************************************************/
67
67
@@ -90,7 +90,7 @@ void __init config_BSP(char *commandp, int size)
90
90
#ifdef CONFIG_M5249C3
91
91
m5249_smc91x_init ();
92
92
#endif
93
- #ifdef CONFIG_SPI_COLDFIRE_QSPI
93
+ #if IS_ENABLED ( CONFIG_SPI_COLDFIRE_QSPI )
94
94
m5249_qspi_init ();
95
95
#endif
96
96
}
Original file line number Diff line number Diff line change 23
23
24
24
/***************************************************************************/
25
25
26
- #ifdef CONFIG_SPI_COLDFIRE_QSPI
26
+ #if IS_ENABLED ( CONFIG_SPI_COLDFIRE_QSPI )
27
27
28
28
static void __init m527x_qspi_init (void )
29
29
{
@@ -42,7 +42,7 @@ static void __init m527x_qspi_init(void)
42
42
#endif
43
43
}
44
44
45
- #endif /* CONFIG_SPI_COLDFIRE_QSPI */
45
+ #endif /* IS_ENABLED( CONFIG_SPI_COLDFIRE_QSPI) */
46
46
47
47
/***************************************************************************/
48
48
@@ -90,7 +90,7 @@ void __init config_BSP(char *commandp, int size)
90
90
mach_sched_init = hw_timer_init ;
91
91
m527x_uarts_init ();
92
92
m527x_fec_init ();
93
- #ifdef CONFIG_SPI_COLDFIRE_QSPI
93
+ #if IS_ENABLED ( CONFIG_SPI_COLDFIRE_QSPI )
94
94
m527x_qspi_init ();
95
95
#endif
96
96
}
Original file line number Diff line number Diff line change 24
24
25
25
/***************************************************************************/
26
26
27
- #ifdef CONFIG_SPI_COLDFIRE_QSPI
27
+ #if IS_ENABLED ( CONFIG_SPI_COLDFIRE_QSPI )
28
28
29
29
static void __init m528x_qspi_init (void )
30
30
{
31
31
/* setup Port QS for QSPI with gpio CS control */
32
32
__raw_writeb (0x07 , MCFGPIO_PQSPAR );
33
33
}
34
34
35
- #endif /* CONFIG_SPI_COLDFIRE_QSPI */
35
+ #endif /* IS_ENABLED( CONFIG_SPI_COLDFIRE_QSPI) */
36
36
37
37
/***************************************************************************/
38
38
@@ -98,7 +98,7 @@ void __init config_BSP(char *commandp, int size)
98
98
mach_sched_init = hw_timer_init ;
99
99
m528x_uarts_init ();
100
100
m528x_fec_init ();
101
- #ifdef CONFIG_SPI_COLDFIRE_QSPI
101
+ #if IS_ENABLED ( CONFIG_SPI_COLDFIRE_QSPI )
102
102
m528x_qspi_init ();
103
103
#endif
104
104
}
Original file line number Diff line number Diff line change 30
30
31
31
/***************************************************************************/
32
32
33
- #ifdef CONFIG_SPI_COLDFIRE_QSPI
33
+ #if IS_ENABLED ( CONFIG_SPI_COLDFIRE_QSPI )
34
34
35
35
static void __init m532x_qspi_init (void )
36
36
{
37
37
/* setup QSPS pins for QSPI with gpio CS control */
38
38
writew (0x01f0 , MCF_GPIO_PAR_QSPI );
39
39
}
40
40
41
- #endif /* CONFIG_SPI_COLDFIRE_QSPI */
41
+ #endif /* IS_ENABLED( CONFIG_SPI_COLDFIRE_QSPI) */
42
42
43
43
/***************************************************************************/
44
44
@@ -77,7 +77,7 @@ void __init config_BSP(char *commandp, int size)
77
77
mach_sched_init = hw_timer_init ;
78
78
m532x_uarts_init ();
79
79
m532x_fec_init ();
80
- #ifdef CONFIG_SPI_COLDFIRE_QSPI
80
+ #if IS_ENABLED ( CONFIG_SPI_COLDFIRE_QSPI )
81
81
m532x_qspi_init ();
82
82
#endif
83
83
Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ static struct platform_device mcf_fec1 = {
121
121
#endif /* MCFFEC_BASE1 */
122
122
#endif /* CONFIG_FEC */
123
123
124
- #ifdef CONFIG_SPI_COLDFIRE_QSPI
124
+ #if IS_ENABLED ( CONFIG_SPI_COLDFIRE_QSPI )
125
125
/*
126
126
* The ColdFire QSPI module is an SPI protocol hardware block used
127
127
* on a number of different ColdFire CPUs.
@@ -274,7 +274,7 @@ static struct platform_device mcf_qspi = {
274
274
.resource = mcf_qspi_resources ,
275
275
.dev .platform_data = & mcf_qspi_data ,
276
276
};
277
- #endif /* CONFIG_SPI_COLDFIRE_QSPI */
277
+ #endif /* IS_ENABLED( CONFIG_SPI_COLDFIRE_QSPI) */
278
278
279
279
static struct platform_device * mcf_devices [] __initdata = {
280
280
& mcf_uart ,
@@ -284,7 +284,7 @@ static struct platform_device *mcf_devices[] __initdata = {
284
284
& mcf_fec1 ,
285
285
#endif
286
286
#endif
287
- #ifdef CONFIG_SPI_COLDFIRE_QSPI
287
+ #if IS_ENABLED ( CONFIG_SPI_COLDFIRE_QSPI )
288
288
& mcf_qspi ,
289
289
#endif
290
290
};
You can’t perform that action at this time.
0 commit comments