Skip to content

Commit

Permalink
[ARM] MX2: Add W1 device/resources
Browse files Browse the repository at this point in the history
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Evgeniy Polyakov <zbr@ioremap.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Sascha Hauer authored and Russell King committed Dec 14, 2008
1 parent 7180d86 commit 3d89baa
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions arch/arm/mach-mx2/devices.c
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,21 @@ struct platform_device mxc_wdt = {
.resource = mxc_wdt_resources,
};

static struct resource mxc_w1_master_resources[] = {
{
.start = OWIRE_BASE_ADDR,
.end = OWIRE_BASE_ADDR + SZ_4K - 1,
.flags = IORESOURCE_MEM,
},
};

struct platform_device mxc_w1_master_device = {
.name = "mxc_w1",
.id = 0,
.num_resources = ARRAY_SIZE(mxc_w1_master_resources),
.resource = mxc_w1_master_resources,
};

/* GPIO port description */
static struct mxc_gpio_port imx_gpio_ports[] = {
[0] = {
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-mx2/devices.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ extern struct platform_device mxc_uart_device2;
extern struct platform_device mxc_uart_device3;
extern struct platform_device mxc_uart_device4;
extern struct platform_device mxc_uart_device5;

extern struct platform_device mxc_w1_master_device;

0 comments on commit 3d89baa

Please sign in to comment.