Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 90934
b: refs/heads/master
c: 0c6111e
h: refs/heads/master
v: v3
  • Loading branch information
Magnus Damm authored and Paul Mundt committed Apr 18, 2008
1 parent b35a991 commit 568d42e
Show file tree
Hide file tree
Showing 2 changed files with 11 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: ef1b2327d27901596d896820722bb2cefa2d1f64
refs/heads/master: 0c6111ecccb33b1a7d79b6daf64c0cc4391ff3fa
10 changes: 10 additions & 0 deletions trunk/arch/sh/boards/renesas/migor/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include <linux/input.h>
#include <linux/mtd/physmap.h>
#include <linux/mtd/nand.h>
#include <linux/i2c.h>
#include <asm/machvec.h>
#include <asm/io.h>
#include <asm/sh_keysc.h>
Expand Down Expand Up @@ -196,8 +197,14 @@ static struct platform_device *migor_devices[] __initdata = {
&migor_nand_flash_device,
};

static struct i2c_board_info __initdata migor_i2c_devices[] = {
};

static int __init migor_devices_setup(void)
{
i2c_register_board_info(0, migor_i2c_devices,
ARRAY_SIZE(migor_i2c_devices));

return platform_add_devices(migor_devices, ARRAY_SIZE(migor_devices));
}
__initcall(migor_devices_setup);
Expand All @@ -219,6 +226,9 @@ static void __init migor_setup(char **cmdline_p)
ctrl_outw(ctrl_inw(PORT_PXCR) & 0x0fff, PORT_PXCR);
ctrl_outl((ctrl_inl(BSC_CS6ABCR) & ~0x00000600) | 0x00000200,
BSC_CS6ABCR);

/* I2C */
ctrl_outl(ctrl_inl(MSTPCR1) & ~0x00000200, MSTPCR1);
}

static struct sh_machine_vector mv_migor __initmv = {
Expand Down

0 comments on commit 568d42e

Please sign in to comment.