Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 166328
b: refs/heads/master
c: ecb6fd5
h: refs/heads/master
v: v3
  • Loading branch information
Nobuhiro Iwamatsu authored and Paul Mundt committed Sep 25, 2009
1 parent a37c856 commit 5ad2e33
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8255fff45b2a9b53f8bf39147157ddaf9c72a585
refs/heads/master: ecb6fd529942c143c8837dfb11262009c77e9c77
14 changes: 14 additions & 0 deletions trunk/arch/sh/kernel/cpu/sh4a/setup-sh7780.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include <linux/io.h>
#include <linux/serial_sci.h>
#include <linux/sh_timer.h>
#include <asm/dma-sh.h>

static struct sh_timer_config tmu0_platform_data = {
.name = "TMU0",
Expand Down Expand Up @@ -240,6 +241,18 @@ static struct platform_device sci_device = {
},
};

static struct sh_dmae_pdata dma_platform_data = {
.mode = (SHDMA_MIX_IRQ | SHDMA_DMAOR1),
};

static struct platform_device dma_device = {
.name = "sh-dma-engine",
.id = -1,
.dev = {
.platform_data = &dma_platform_data,
},
};

static struct platform_device *sh7780_devices[] __initdata = {
&tmu0_device,
&tmu1_device,
Expand All @@ -249,6 +262,7 @@ static struct platform_device *sh7780_devices[] __initdata = {
&tmu5_device,
&rtc_device,
&sci_device,
&dma_device,
};

static int __init sh7780_devices_setup(void)
Expand Down

0 comments on commit 5ad2e33

Please sign in to comment.