diff options
-rw-r--r-- | arch/arm/mach-mx3/clock-imx35.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-mx3/devices.c | 42 | ||||
-rw-r--r-- | arch/arm/mach-mx3/devices.h | 2 |
3 files changed, 46 insertions, 2 deletions
diff --git a/arch/arm/mach-mx3/clock-imx35.c b/arch/arm/mach-mx3/clock-imx35.c index 33a23e7c7e92..93a172da5910 100644 --- a/arch/arm/mach-mx3/clock-imx35.c +++ b/arch/arm/mach-mx3/clock-imx35.c | |||
@@ -463,8 +463,8 @@ static struct clk_lookup lookups[] = { | |||
463 | _REGISTER_CLOCK(NULL, "sdma", sdma_clk) | 463 | _REGISTER_CLOCK(NULL, "sdma", sdma_clk) |
464 | _REGISTER_CLOCK(NULL, "spba", spba_clk) | 464 | _REGISTER_CLOCK(NULL, "spba", spba_clk) |
465 | _REGISTER_CLOCK(NULL, "spdif", spdif_clk) | 465 | _REGISTER_CLOCK(NULL, "spdif", spdif_clk) |
466 | _REGISTER_CLOCK(NULL, "ssi", ssi1_clk) | 466 | _REGISTER_CLOCK("imx-ssi.0", NULL, ssi1_clk) |
467 | _REGISTER_CLOCK(NULL, "ssi", ssi2_clk) | 467 | _REGISTER_CLOCK("imx-ssi.1", NULL, ssi2_clk) |
468 | _REGISTER_CLOCK("imx-uart.0", NULL, uart1_clk) | 468 | _REGISTER_CLOCK("imx-uart.0", NULL, uart1_clk) |
469 | _REGISTER_CLOCK("imx-uart.1", NULL, uart2_clk) | 469 | _REGISTER_CLOCK("imx-uart.1", NULL, uart2_clk) |
470 | _REGISTER_CLOCK("imx-uart.2", NULL, uart3_clk) | 470 | _REGISTER_CLOCK("imx-uart.2", NULL, uart3_clk) |
diff --git a/arch/arm/mach-mx3/devices.c b/arch/arm/mach-mx3/devices.c index e04920ed21bd..6adb586515ea 100644 --- a/arch/arm/mach-mx3/devices.c +++ b/arch/arm/mach-mx3/devices.c | |||
@@ -537,6 +537,44 @@ struct platform_device mxc_fec_device = { | |||
537 | }; | 537 | }; |
538 | #endif | 538 | #endif |
539 | 539 | ||
540 | static struct resource imx_ssi_resources0[] = { | ||
541 | { | ||
542 | .start = SSI1_BASE_ADDR, | ||
543 | .end = SSI1_BASE_ADDR + 0xfff, | ||
544 | .flags = IORESOURCE_MEM, | ||
545 | }, { | ||
546 | .start = MX31_INT_SSI1, | ||
547 | .end = MX31_INT_SSI1, | ||
548 | .flags = IORESOURCE_IRQ, | ||
549 | }, | ||
550 | }; | ||
551 | |||
552 | static struct resource imx_ssi_resources1[] = { | ||
553 | { | ||
554 | .start = SSI2_BASE_ADDR, | ||
555 | .end = SSI2_BASE_ADDR + 0xfff, | ||
556 | .flags = IORESOURCE_MEM | ||
557 | }, { | ||
558 | .start = MX31_INT_SSI2, | ||
559 | .end = MX31_INT_SSI2, | ||
560 | .flags = IORESOURCE_IRQ, | ||
561 | }, | ||
562 | }; | ||
563 | |||
564 | struct platform_device imx_ssi_device0 = { | ||
565 | .name = "imx-ssi", | ||
566 | .id = 0, | ||
567 | .num_resources = ARRAY_SIZE(imx_ssi_resources0), | ||
568 | .resource = imx_ssi_resources0, | ||
569 | }; | ||
570 | |||
571 | struct platform_device imx_ssi_device1 = { | ||
572 | .name = "imx-ssi", | ||
573 | .id = 1, | ||
574 | .num_resources = ARRAY_SIZE(imx_ssi_resources1), | ||
575 | .resource = imx_ssi_resources1, | ||
576 | }; | ||
577 | |||
540 | static int mx3_devices_init(void) | 578 | static int mx3_devices_init(void) |
541 | { | 579 | { |
542 | if (cpu_is_mx31()) { | 580 | if (cpu_is_mx31()) { |
@@ -555,6 +593,10 @@ static int mx3_devices_init(void) | |||
555 | mxc_usbh1_resources[0].end = MX35_OTG_BASE_ADDR + 0x5ff; | 593 | mxc_usbh1_resources[0].end = MX35_OTG_BASE_ADDR + 0x5ff; |
556 | mxc_usbh1_resources[1].start = MXC_INT_USBHS; | 594 | mxc_usbh1_resources[1].start = MXC_INT_USBHS; |
557 | mxc_usbh1_resources[1].end = MXC_INT_USBHS; | 595 | mxc_usbh1_resources[1].end = MXC_INT_USBHS; |
596 | imx_ssi_resources0[1].start = MX35_INT_SSI1; | ||
597 | imx_ssi_resources0[1].end = MX35_INT_SSI1; | ||
598 | imx_ssi_resources1[1].start = MX35_INT_SSI2; | ||
599 | imx_ssi_resources1[1].end = MX35_INT_SSI2; | ||
558 | } | 600 | } |
559 | 601 | ||
560 | return 0; | 602 | return 0; |
diff --git a/arch/arm/mach-mx3/devices.h b/arch/arm/mach-mx3/devices.h index ab87419dc9a0..42cf175eac6b 100644 --- a/arch/arm/mach-mx3/devices.h +++ b/arch/arm/mach-mx3/devices.h | |||
@@ -23,4 +23,6 @@ extern struct platform_device mxc_rnga_device; | |||
23 | extern struct platform_device mxc_spi_device0; | 23 | extern struct platform_device mxc_spi_device0; |
24 | extern struct platform_device mxc_spi_device1; | 24 | extern struct platform_device mxc_spi_device1; |
25 | extern struct platform_device mxc_spi_device2; | 25 | extern struct platform_device mxc_spi_device2; |
26 | extern struct platform_device imx_ssi_device0; | ||
27 | extern struct platform_device imx_ssi_device1; | ||
26 | 28 | ||