Skip to content

Commit ef6f4b1

Browse files
Linus WalleijRussell King
authored andcommitted
ARM: 6228/1: PL022 SSP platform data for the Versatile
This adds platform data for the PL022 to the ARM Versatile reference design, and adds the necessary clock definition. Signed-off-by: Linus Walleij <linus.walleij@stericsson.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
1 parent d6ada86 commit ef6f4b1

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

‎arch/arm/mach-versatile/core.c‎

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#include <linux/amba/clcd.h>
2929
#include <linux/amba/pl061.h>
3030
#include <linux/amba/mmci.h>
31+
#include <linux/amba/pl022.h>
3132
#include <linux/io.h>
3233
#include <linux/gfp.h>
3334

@@ -425,6 +426,9 @@ static struct clk_lookup lookups[] = {
425426
}, { /* MMC1 */
426427
.dev_id = "fpga:0b",
427428
.clk = &ref24_clk,
429+
}, { /* SSP */
430+
.dev_id = "dev:f4",
431+
.clk = &ref24_clk,
428432
}, { /* CLCD */
429433
.dev_id = "dev:20",
430434
.clk = &osc4_clk,
@@ -703,6 +707,12 @@ static struct pl061_platform_data gpio1_plat_data = {
703707
.irq_base = IRQ_GPIO1_START,
704708
};
705709

710+
static struct pl022_ssp_controller ssp0_plat_data = {
711+
.bus_id = 0,
712+
.enable_dma = 0,
713+
.num_chipselect = 1,
714+
};
715+
706716
#define AACI_IRQ { IRQ_AACI, NO_IRQ }
707717
#define AACI_DMA { 0x80, 0x81 }
708718
#define MMCI0_IRQ { IRQ_MMCI0A,IRQ_SIC_MMCI0B }
@@ -772,7 +782,7 @@ AMBA_DEVICE(sci0, "dev:f0", SCI, NULL);
772782
AMBA_DEVICE(uart0, "dev:f1", UART0, NULL);
773783
AMBA_DEVICE(uart1, "dev:f2", UART1, NULL);
774784
AMBA_DEVICE(uart2, "dev:f3", UART2, NULL);
775-
AMBA_DEVICE(ssp0, "dev:f4", SSP, NULL);
785+
AMBA_DEVICE(ssp0, "dev:f4", SSP, &ssp0_plat_data);
776786

777787
static struct amba_device *amba_devs[] __initdata = {
778788
&dmac_device,

0 commit comments

Comments
 (0)