Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 123777
b: refs/heads/master
c: 01f71a3
h: refs/heads/master
i:
  123775: 5d9459e
v: v3
  • Loading branch information
Sascha Hauer committed Dec 16, 2008
1 parent bd2666b commit 1d5dc55
Show file tree
Hide file tree
Showing 2 changed files with 9 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: 02870978ea4b0a1bcae201f1b5f3a07344070398
refs/heads/master: 01f71a371969c753add171991d8f5ecce3b368d4
8 changes: 8 additions & 0 deletions trunk/arch/arm/mach-mx2/pcm038.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
#include <asm/mach/time.h>
#include <mach/imx-uart.h>
#include <mach/board-pcm038.h>
#include <mach/mxc_nand.h>

#include "devices.h"

Expand Down Expand Up @@ -187,6 +188,11 @@ static void gpio_fec_inactive(void)
ARRAY_SIZE(mxc_fec_pins));
}

static struct mxc_nand_platform_data pcm038_nand_board_info = {
.width = 1,
.hw_ecc = 1,
};

static struct platform_device *platform_devices[] __initdata = {
&pcm038_nor_mtd_device,
&mxc_w1_master_device,
Expand All @@ -210,7 +216,9 @@ 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 */
mxc_register_device(&mxc_nand_device, &pcm038_nand_board_info);

platform_add_devices(platform_devices, ARRAY_SIZE(platform_devices));

Expand Down

0 comments on commit 1d5dc55

Please sign in to comment.