* [PATCH] sh: Export sh7343 VPU and VEU using uio_pdrv_genirq
@ 2008-07-15 12:51 Magnus Damm
2008-07-17 5:54 ` Paul Mundt
0 siblings, 1 reply; 2+ messages in thread
From: Magnus Damm @ 2008-07-15 12:51 UTC (permalink / raw)
To: linux-sh
From: Magnus Damm <damm@igel.co.jp>
This patch exports the VPU and VEU blocks of the sh7343 to user space
using the uio_pdrv_genirq platform driver.
Signed-off-by: Magnus Damm <damm@igel.co.jp>
---
Applies on top of current sh-2.6 git plus Shimoda-sans sh7343 changes.
arch/sh/kernel/cpu/sh4a/setup-sh7343.c | 53 ++++++++++++++++++++++++++++++++
1 file changed, 53 insertions(+)
--- 0002/arch/sh/kernel/cpu/sh4a/setup-sh7343.c
+++ work/arch/sh/kernel/cpu/sh4a/setup-sh7343.c 2008-07-15 21:05:44.000000000 +0900
@@ -11,6 +11,7 @@
#include <linux/init.h>
#include <linux/serial.h>
#include <linux/serial_sci.h>
+#include <linux/uio_driver.h>
static struct resource iic0_resources[] = {
[0] = {
@@ -52,6 +53,56 @@ static struct platform_device iic1_devic
.resource = iic1_resources,
};
+static struct uio_info vpu_platform_data = {
+ .name = "VPU4",
+ .version = "0",
+ .irq = 60,
+};
+
+static struct resource vpu_resources[] = {
+ [0] = {
+ .name = "VPU",
+ .start = 0xfe900000,
+ .end = 0xfe9022eb,
+ .flags = IORESOURCE_MEM,
+ },
+};
+
+static struct platform_device vpu_device = {
+ .name = "uio_pdrv_genirq",
+ .id = 0,
+ .dev = {
+ .platform_data = &vpu_platform_data,
+ },
+ .resource = vpu_resources,
+ .num_resources = ARRAY_SIZE(vpu_resources),
+};
+
+static struct uio_info veu_platform_data = {
+ .name = "VEU",
+ .version = "0",
+ .irq = 54,
+};
+
+static struct resource veu_resources[] = {
+ [0] = {
+ .name = "VEU",
+ .start = 0xfe920000,
+ .end = 0xfe9200b7,
+ .flags = IORESOURCE_MEM,
+ },
+};
+
+static struct platform_device veu_device = {
+ .name = "uio_pdrv_genirq",
+ .id = 1,
+ .dev = {
+ .platform_data = &veu_platform_data,
+ },
+ .resource = veu_resources,
+ .num_resources = ARRAY_SIZE(veu_resources),
+};
+
static struct plat_sci_port sci_platform_data[] = {
{
.mapbase = 0xffe00000,
@@ -75,6 +126,8 @@ static struct platform_device *sh7343_de
&iic0_device,
&iic1_device,
&sci_device,
+ &vpu_device,
+ &veu_device,
};
static int __init sh7343_devices_setup(void)
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] sh: Export sh7343 VPU and VEU using uio_pdrv_genirq
2008-07-15 12:51 [PATCH] sh: Export sh7343 VPU and VEU using uio_pdrv_genirq Magnus Damm
@ 2008-07-17 5:54 ` Paul Mundt
0 siblings, 0 replies; 2+ messages in thread
From: Paul Mundt @ 2008-07-17 5:54 UTC (permalink / raw)
To: linux-sh
On Tue, Jul 15, 2008 at 09:51:39PM +0900, Magnus Damm wrote:
> This patch exports the VPU and VEU blocks of the sh7343 to user space
> using the uio_pdrv_genirq platform driver.
>
> Signed-off-by: Magnus Damm <damm@igel.co.jp>
On Tue, Jul 15, 2008 at 09:52:19PM +0900, Magnus Damm wrote:
> This patch exports the VPU and VEU blocks of the sh7722 to user space
> using the uio_pdrv_genirq platform driver.
>
> Signed-off-by: Magnus Damm <damm@igel.co.jp>
On Tue, Jul 15, 2008 at 09:53:33PM +0900, Magnus Damm wrote:
> This patch exports the VPU, VEU2H0 and VEU2H1 blocks of the sh7723
> to user space using the uio_pdrv_genirq platform driver.
>
> Signed-off-by: Magnus Damm <damm@igel.co.jp>
On Tue, Jul 15, 2008 at 09:55:03PM +0900, Magnus Damm wrote:
> This patch exports the VPU, VEU(1) and VEU(2) blocks of the sh7366
> to user space using the uio_pdrv_genirq platform driver.
>
> While at it, fix up the VEU(2) interrupt vector.
>
> Signed-off-by: Magnus Damm <damm@igel.co.jp>
On Wed, Jul 16, 2008 at 07:02:54PM +0900, Magnus Damm wrote:
> This patch adds physically contiguous memory chunks to the UIO devices.
> The same strategy can be used in the future for the CEU as well.
>
> Signed-off-by: Magnus Damm <damm@igel.co.jp>
Applied, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-07-17 5:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-15 12:51 [PATCH] sh: Export sh7343 VPU and VEU using uio_pdrv_genirq Magnus Damm
2008-07-17 5:54 ` Paul Mundt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox