|
@@ -1333,3 +1333,113 @@ const struct coh_dma_channel chan_config[U300_DMA_CHANNELS] = {
|
|
|
{
|
|
|
.number = U300_DMA_GENERAL_PURPOSE_3,
|
|
|
.name = "GENERAL 03",
|
|
|
+ .priority_high = 0,
|
|
|
+
|
|
|
+ .param.config = flags_memcpy_config,
|
|
|
+ .param.ctrl_lli_chained = flags_memcpy_lli_chained,
|
|
|
+ .param.ctrl_lli = flags_memcpy_lli,
|
|
|
+ .param.ctrl_lli_last = flags_memcpy_lli_last,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ .number = U300_DMA_GENERAL_PURPOSE_4,
|
|
|
+ .name = "GENERAL 04",
|
|
|
+ .priority_high = 0,
|
|
|
+
|
|
|
+ .param.config = flags_memcpy_config,
|
|
|
+ .param.ctrl_lli_chained = flags_memcpy_lli_chained,
|
|
|
+ .param.ctrl_lli = flags_memcpy_lli,
|
|
|
+ .param.ctrl_lli_last = flags_memcpy_lli_last,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ .number = U300_DMA_GENERAL_PURPOSE_5,
|
|
|
+ .name = "GENERAL 05",
|
|
|
+ .priority_high = 0,
|
|
|
+
|
|
|
+ .param.config = flags_memcpy_config,
|
|
|
+ .param.ctrl_lli_chained = flags_memcpy_lli_chained,
|
|
|
+ .param.ctrl_lli = flags_memcpy_lli,
|
|
|
+ .param.ctrl_lli_last = flags_memcpy_lli_last,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ .number = U300_DMA_GENERAL_PURPOSE_6,
|
|
|
+ .name = "GENERAL 06",
|
|
|
+ .priority_high = 0,
|
|
|
+
|
|
|
+ .param.config = flags_memcpy_config,
|
|
|
+ .param.ctrl_lli_chained = flags_memcpy_lli_chained,
|
|
|
+ .param.ctrl_lli = flags_memcpy_lli,
|
|
|
+ .param.ctrl_lli_last = flags_memcpy_lli_last,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ .number = U300_DMA_GENERAL_PURPOSE_7,
|
|
|
+ .name = "GENERAL 07",
|
|
|
+ .priority_high = 0,
|
|
|
+
|
|
|
+ .param.config = flags_memcpy_config,
|
|
|
+ .param.ctrl_lli_chained = flags_memcpy_lli_chained,
|
|
|
+ .param.ctrl_lli = flags_memcpy_lli,
|
|
|
+ .param.ctrl_lli_last = flags_memcpy_lli_last,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ .number = U300_DMA_GENERAL_PURPOSE_8,
|
|
|
+ .name = "GENERAL 08",
|
|
|
+ .priority_high = 0,
|
|
|
+
|
|
|
+ .param.config = flags_memcpy_config,
|
|
|
+ .param.ctrl_lli_chained = flags_memcpy_lli_chained,
|
|
|
+ .param.ctrl_lli = flags_memcpy_lli,
|
|
|
+ .param.ctrl_lli_last = flags_memcpy_lli_last,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ .number = U300_DMA_UART1_TX,
|
|
|
+ .name = "UART1 TX",
|
|
|
+ .priority_high = 0,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ .number = U300_DMA_UART1_RX,
|
|
|
+ .name = "UART1 RX",
|
|
|
+ .priority_high = 0,
|
|
|
+ }
|
|
|
+};
|
|
|
+
|
|
|
+
|
|
|
+static struct coh901318_platform coh901318_platform = {
|
|
|
+ .chans_slave = dma_slave_channels,
|
|
|
+ .chans_memcpy = dma_memcpy_channels,
|
|
|
+ .access_memory_state = coh901318_access_memory_state,
|
|
|
+ .chan_conf = chan_config,
|
|
|
+ .max_channels = U300_DMA_CHANNELS,
|
|
|
+};
|
|
|
+
|
|
|
+static struct resource pinctrl_resources[] = {
|
|
|
+ {
|
|
|
+ .start = U300_SYSCON_BASE,
|
|
|
+ .end = U300_SYSCON_BASE + SZ_4K - 1,
|
|
|
+ .flags = IORESOURCE_MEM,
|
|
|
+ },
|
|
|
+};
|
|
|
+
|
|
|
+static struct platform_device wdog_device = {
|
|
|
+ .name = "coh901327_wdog",
|
|
|
+ .id = -1,
|
|
|
+ .num_resources = ARRAY_SIZE(wdog_resources),
|
|
|
+ .resource = wdog_resources,
|
|
|
+};
|
|
|
+
|
|
|
+static struct platform_device i2c0_device = {
|
|
|
+ .name = "stu300",
|
|
|
+ .id = 0,
|
|
|
+ .num_resources = ARRAY_SIZE(i2c0_resources),
|
|
|
+ .resource = i2c0_resources,
|
|
|
+};
|
|
|
+
|
|
|
+static struct platform_device i2c1_device = {
|
|
|
+ .name = "stu300",
|
|
|
+ .id = 1,
|
|
|
+ .num_resources = ARRAY_SIZE(i2c1_resources),
|
|
|
+ .resource = i2c1_resources,
|
|
|
+};
|
|
|
+
|
|
|
+static struct platform_device pinctrl_device = {
|
|
|
+ .name = "pinctrl-u300",
|
|
|
+ .id = -1,
|