Skip to content

Commit

Permalink
[ARM] MX2 pcm038: add 1-wire master support
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 a840592 commit d40a099
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/arm/mach-mx2/pcm038.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ static void gpio_fec_inactive(void)

static struct platform_device *platform_devices[] __initdata = {
&pcm038_nor_mtd_device,
&mxc_w1_master_device,
};

static void __init pcm038_init(void)
Expand All @@ -177,6 +178,7 @@ static void __init pcm038_init(void)
mxc_register_device(&mxc_uart_device0, &uart_pdata[0]);
mxc_register_device(&mxc_uart_device1, &uart_pdata[1]);
mxc_register_device(&mxc_uart_device2, &uart_pdata[2]);
mxc_gpio_mode(PE16_AF_RTCK); /* OWIRE */

platform_add_devices(platform_devices, ARRAY_SIZE(platform_devices));

Expand Down

0 comments on commit d40a099

Please sign in to comment.