Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 160859
b: refs/heads/master
c: 61b032e
h: refs/heads/master
i:
  160857: ecf535c
  160855: 51a8e16
v: v3
  • Loading branch information
Sascha Hauer committed Aug 7, 2009
1 parent 2a02a8a commit 93bcdee
Show file tree
Hide file tree
Showing 2 changed files with 30 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: 91bf9a2566a6f507f45ad2fb59802e528f5a9c3f
refs/heads/master: 61b032ef263c17bb733cfb3f87a811be52adbe22
29 changes: 29 additions & 0 deletions trunk/arch/arm/mach-mx2/pcm970-baseboard.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include <linux/gpio.h>
#include <linux/irq.h>
#include <linux/platform_device.h>
#include <linux/can/platform/sja1000.h>

#include <asm/mach/arch.h>

Expand Down Expand Up @@ -188,6 +189,33 @@ static struct imx_fb_platform_data pcm038_fb_data = {
.dmacr = 0x00020010,
};

static struct resource pcm970_sja1000_resources[] = {
{
.start = CS4_BASE_ADDR,
.end = CS4_BASE_ADDR + 0x100 - 1,
.flags = IORESOURCE_MEM,
}, {
.start = IRQ_GPIOE(19),
.end = IRQ_GPIOE(19),
.flags = IORESOURCE_IRQ | IORESOURCE_IRQ_LOWEDGE,
},
};

struct sja1000_platform_data pcm970_sja1000_platform_data = {
.clock = 16000000 / 2,
.ocr = 0x40 | 0x18,
.cdr = 0x40,
};

static struct platform_device pcm970_sja1000 = {
.name = "sja1000_platform",
.dev = {
.platform_data = &pcm970_sja1000_platform_data,
},
.resource = pcm970_sja1000_resources,
.num_resources = ARRAY_SIZE(pcm970_sja1000_resources),
};

/*
* system init for baseboard usage. Will be called by pcm038 init.
*
Expand All @@ -201,4 +229,5 @@ void __init pcm970_baseboard_init(void)

mxc_register_device(&mxc_fb_device, &pcm038_fb_data);
mxc_register_device(&mxc_sdhc_device1, &sdhc_pdata);
platform_device_register(&pcm970_sja1000);
}

0 comments on commit 93bcdee

Please sign in to comment.