You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
sh: Add SDHI DMA support to kfr2r09
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
This commit is contained in:
committed by
Paul Mundt
parent
470ef1a718
commit
9e526bc70a
@@ -10,6 +10,7 @@
|
|||||||
#include <linux/init.h>
|
#include <linux/init.h>
|
||||||
#include <linux/platform_device.h>
|
#include <linux/platform_device.h>
|
||||||
#include <linux/interrupt.h>
|
#include <linux/interrupt.h>
|
||||||
|
#include <linux/mfd/sh_mobile_sdhi.h>
|
||||||
#include <linux/mtd/physmap.h>
|
#include <linux/mtd/physmap.h>
|
||||||
#include <linux/mtd/onenand.h>
|
#include <linux/mtd/onenand.h>
|
||||||
#include <linux/delay.h>
|
#include <linux/delay.h>
|
||||||
@@ -356,10 +357,18 @@ static struct resource kfr2r09_sh_sdhi0_resources[] = {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static struct sh_mobile_sdhi_info sh7724_sdhi0_data = {
|
||||||
|
.dma_slave_tx = SHDMA_SLAVE_SDHI0_TX,
|
||||||
|
.dma_slave_rx = SHDMA_SLAVE_SDHI0_RX,
|
||||||
|
};
|
||||||
|
|
||||||
static struct platform_device kfr2r09_sh_sdhi0_device = {
|
static struct platform_device kfr2r09_sh_sdhi0_device = {
|
||||||
.name = "sh_mobile_sdhi",
|
.name = "sh_mobile_sdhi",
|
||||||
.num_resources = ARRAY_SIZE(kfr2r09_sh_sdhi0_resources),
|
.num_resources = ARRAY_SIZE(kfr2r09_sh_sdhi0_resources),
|
||||||
.resource = kfr2r09_sh_sdhi0_resources,
|
.resource = kfr2r09_sh_sdhi0_resources,
|
||||||
|
.dev = {
|
||||||
|
.platform_data = &sh7724_sdhi0_data,
|
||||||
|
},
|
||||||
.archdata = {
|
.archdata = {
|
||||||
.hwblk_id = HWBLK_SDHI0,
|
.hwblk_id = HWBLK_SDHI0,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user