11 #include <linux/kernel.h>
17 #include <asm/traps.h>
89 .dev.platform_data = mcf_uart_platform_data,
95 #define FEC_NAME "enet-fec"
99 #define FEC_PDATA (&fec_pdata)
101 #define FEC_NAME "fec"
102 #define FEC_PDATA NULL
110 static struct resource mcf_fec0_resources[] = {
136 .num_resources =
ARRAY_SIZE(mcf_fec0_resources),
137 .resource = mcf_fec0_resources,
138 .dev.platform_data = FEC_PDATA,
142 static struct resource mcf_fec1_resources[] = {
168 .num_resources =
ARRAY_SIZE(mcf_fec1_resources),
169 .resource = mcf_fec1_resources,
170 .dev.platform_data = FEC_PDATA,
175 #if IS_ENABLED(CONFIG_SPI_COLDFIRE_QSPI)
180 static struct resource mcf_qspi_resources[] = {
199 pr_debug(
"gpio_request for MCFQSPI_CS0 failed\n");
204 pr_debug(
"gpio_direction_output for MCFQSPI_CS0 failed\n");
210 pr_debug(
"gpio_request for MCFQSPI_CS1 failed\n");
215 pr_debug(
"gpio_direction_output for MCFQSPI_CS1 failed\n");
221 pr_debug(
"gpio_request for MCFQSPI_CS2 failed\n");
226 pr_debug(
"gpio_direction_output for MCFQSPI_CS2 failed\n");
233 pr_debug(
"gpio_request for MCFQSPI_CS3 failed\n");
238 pr_debug(
"gpio_direction_output for MCFQSPI_CS3 failed\n");
269 switch (chip_select) {
288 u8 chip_select,
bool cs_high)
290 switch (chip_select) {
309 .
setup = mcf_cs_setup,
310 .teardown = mcf_cs_teardown,
311 .select = mcf_cs_select,
312 .deselect = mcf_cs_deselect,
318 .cs_control = &mcf_cs_control,
324 .num_resources =
ARRAY_SIZE(mcf_qspi_resources),
325 .resource = mcf_qspi_resources,
326 .dev.platform_data = &mcf_qspi_data,
338 #if IS_ENABLED(CONFIG_SPI_COLDFIRE_QSPI)
346 static void __init mcf_uart_set_irq(
void)
361 static int __init mcf_init_devices(
void)