Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 163548
b: refs/heads/master
c: e79d574
h: refs/heads/master
v: v3
  • Loading branch information
Yoshihiro Shimoda authored and Paul Mundt committed Aug 28, 2009
1 parent c0d29b4 commit a400ae5
Show file tree
Hide file tree
Showing 5 changed files with 29 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: f840dd5e7424a0c8a7166fc3e87798d0e44d3ce7
refs/heads/master: e79d57479c86e388051244e1f17851a0e63d1ff0
7 changes: 7 additions & 0 deletions trunk/arch/sh/boards/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,13 @@ config SH_SH7785LCR_29BIT_PHYSMAPS
DIP switch(S2-5). If you set the DIP switch for S2-5 = ON,
you can access all on-board device in 29bit address mode.

config SH_SH7785LCR_PT
bool "SH7785LCR prototype board on 32-bit MMU mode"
depends on SH_SH7785LCR && 32BIT
default n
help
If you use prototype board, this option is enabled.

config SH_URQUELL
bool "Urquell"
depends on CPU_SUBTYPE_SH7786
Expand Down
18 changes: 18 additions & 0 deletions trunk/arch/sh/boards/board-sh7785lcr.c
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,19 @@ static struct platform_device sm501_device = {
.resource = sm501_resources,
};

static struct resource i2c_proto_resources[] = {
[0] = {
.start = PCA9564_PROTO_32BIT_ADDR,
.end = PCA9564_PROTO_32BIT_ADDR + PCA9564_SIZE - 1,
.flags = IORESOURCE_MEM | IORESOURCE_MEM_8BIT,
},
[1] = {
.start = 12,
.end = 12,
.flags = IORESOURCE_IRQ,
},
};

static struct resource i2c_resources[] = {
[0] = {
.start = PCA9564_ADDR,
Expand Down Expand Up @@ -271,6 +284,11 @@ static int __init sh7785lcr_devices_setup(void)
i2c_register_board_info(0, sh7785lcr_i2c_devices,
ARRAY_SIZE(sh7785lcr_i2c_devices));

if (mach_is_sh7785lcr_pt()) {
i2c_device.resource = &i2c_proto_resources;
i2c_device.num_resources = ARRAY_SIZE(i2c_proto_resources);
}

return platform_add_devices(sh7785lcr_devices,
ARRAY_SIZE(sh7785lcr_devices));
}
Expand Down
2 changes: 2 additions & 0 deletions trunk/arch/sh/include/mach-common/mach/sh7785lcr.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
#define PCA9564_ADDR 0x06000000 /* I2C */
#define PCA9564_SIZE 0x00000100

#define PCA9564_PROTO_32BIT_ADDR 0x14000000

#define SM107_MEM_ADDR 0x10000000
#define SM107_MEM_SIZE 0x00e00000
#define SM107_REG_ADDR 0x13e00000
Expand Down
1 change: 1 addition & 0 deletions trunk/arch/sh/tools/mach-types
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ RSK7203 SH_RSK7203
AP325RXA SH_AP325RXA
SH7763RDP SH_SH7763RDP
SH7785LCR SH_SH7785LCR
SH7785LCR_PT SH_SH7785LCR_PT
URQUELL SH_URQUELL
ESPT SH_ESPT
POLARIS SH_POLARIS
Expand Down

0 comments on commit a400ae5

Please sign in to comment.