Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 137229
b: refs/heads/master
c: 824b16e
h: refs/heads/master
i:
  137227: 69161ba
v: v3
  • Loading branch information
Sascha Hauer committed Mar 13, 2009
1 parent 1f94abe commit 70df57e
Show file tree
Hide file tree
Showing 3 changed files with 22 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: 166091b1894df3de736f43c649f2e6639f4a31ac
refs/heads/master: 824b16e66b70f5df61345f5708c149f6886eef30
20 changes: 20 additions & 0 deletions trunk/arch/arm/mach-mx2/devices.c
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,26 @@ struct platform_device mxc_fec_device = {
};
#endif

static struct resource mxc_pwm_resources[] = {
[0] = {
.start = PWM_BASE_ADDR,
.end = PWM_BASE_ADDR + 0x0fff,
.flags = IORESOURCE_MEM
},
[1] = {
.start = MXC_INT_PWM,
.end = MXC_INT_PWM,
.flags = IORESOURCE_IRQ,
}
};

struct platform_device mxc_pwm_device = {
.name = "mxc_pwm",
.id = 0,
.num_resources = ARRAY_SIZE(mxc_pwm_resources),
.resource = mxc_pwm_resources
};

/* GPIO port description */
static struct mxc_gpio_port imx_gpio_ports[] = {
[0] = {
Expand Down
1 change: 1 addition & 0 deletions trunk/arch/arm/mach-mx2/devices.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ extern struct platform_device mxc_w1_master_device;
extern struct platform_device mxc_nand_device;
extern struct platform_device mxc_fb_device;
extern struct platform_device mxc_fec_device;
extern struct platform_device mxc_pwm_device;

0 comments on commit 70df57e

Please sign in to comment.