diff options
author | Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com> | 2009-05-11 02:51:28 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-05-11 03:56:16 -0400 |
commit | 7bce6c2740fab36708233e998a9e53115649b193 (patch) | |
tree | 2ae13ce123f6d72ee7bdf51de6efde521abf3fe4 | |
parent | 780f98ff1fa9cfcab177f6b5ab09b11321f1e5c8 (diff) |
sh: sh7785lcr: fix I2C device address map for 32-bit mode
This fixes up the broken I2C offset in 32-bit mode.
The cause is because the board datasheet had a mistake.
Signed-off-by: Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
-rw-r--r-- | arch/sh/include/mach-common/mach/sh7785lcr.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/sh/include/mach-common/mach/sh7785lcr.h b/arch/sh/include/mach-common/mach/sh7785lcr.h index 1ce27d5c7491..90011d435f30 100644 --- a/arch/sh/include/mach-common/mach/sh7785lcr.h +++ b/arch/sh/include/mach-common/mach/sh7785lcr.h | |||
@@ -9,11 +9,11 @@ | |||
9 | * -----------------------------+---------------+--------------- | 9 | * -----------------------------+---------------+--------------- |
10 | * 0x00000000 - 0x03ffffff(CS0) | NOR Flash | NOR Flash | 10 | * 0x00000000 - 0x03ffffff(CS0) | NOR Flash | NOR Flash |
11 | * 0x04000000 - 0x05ffffff(CS1) | PLD | PLD | 11 | * 0x04000000 - 0x05ffffff(CS1) | PLD | PLD |
12 | * 0x06000000 - 0x07ffffff(CS1) | reserved | I2C | 12 | * 0x06000000 - 0x07ffffff(CS1) | I2C | I2C |
13 | * 0x08000000 - 0x0bffffff(CS2) | USB | DDR SDRAM | 13 | * 0x08000000 - 0x0bffffff(CS2) | USB | DDR SDRAM |
14 | * 0x0c000000 - 0x0fffffff(CS3) | SD | DDR SDRAM | 14 | * 0x0c000000 - 0x0fffffff(CS3) | SD | DDR SDRAM |
15 | * 0x10000000 - 0x13ffffff(CS4) | SM107 | SM107 | 15 | * 0x10000000 - 0x13ffffff(CS4) | SM107 | SM107 |
16 | * 0x14000000 - 0x17ffffff(CS5) | I2C | USB | 16 | * 0x14000000 - 0x17ffffff(CS5) | reserved | USB |
17 | * 0x18000000 - 0x1bffffff(CS6) | reserved | SD | 17 | * 0x18000000 - 0x1bffffff(CS6) | reserved | SD |
18 | * 0x40000000 - 0x5fffffff | DDR SDRAM | (cannot use) | 18 | * 0x40000000 - 0x5fffffff | DDR SDRAM | (cannot use) |
19 | * | 19 | * |
@@ -32,6 +32,9 @@ | |||
32 | #define PLD_VERSR (PLD_BASE_ADDR + 0x0c) | 32 | #define PLD_VERSR (PLD_BASE_ADDR + 0x0c) |
33 | #define PLD_MMSR (PLD_BASE_ADDR + 0x0e) | 33 | #define PLD_MMSR (PLD_BASE_ADDR + 0x0e) |
34 | 34 | ||
35 | #define PCA9564_ADDR 0x06000000 /* I2C */ | ||
36 | #define PCA9564_SIZE 0x00000100 | ||
37 | |||
35 | #define SM107_MEM_ADDR 0x10000000 | 38 | #define SM107_MEM_ADDR 0x10000000 |
36 | #define SM107_MEM_SIZE 0x00e00000 | 39 | #define SM107_MEM_SIZE 0x00e00000 |
37 | #define SM107_REG_ADDR 0x13e00000 | 40 | #define SM107_REG_ADDR 0x13e00000 |
@@ -40,16 +43,13 @@ | |||
40 | #if defined(CONFIG_SH_SH7785LCR_29BIT_PHYSMAPS) | 43 | #if defined(CONFIG_SH_SH7785LCR_29BIT_PHYSMAPS) |
41 | #define R8A66597_ADDR 0x14000000 /* USB */ | 44 | #define R8A66597_ADDR 0x14000000 /* USB */ |
42 | #define CG200_ADDR 0x18000000 /* SD */ | 45 | #define CG200_ADDR 0x18000000 /* SD */ |
43 | #define PCA9564_ADDR 0x06000000 /* I2C */ | ||
44 | #else | 46 | #else |
45 | #define R8A66597_ADDR 0x08000000 | 47 | #define R8A66597_ADDR 0x08000000 |
46 | #define CG200_ADDR 0x0c000000 | 48 | #define CG200_ADDR 0x0c000000 |
47 | #define PCA9564_ADDR 0x14000000 | ||
48 | #endif | 49 | #endif |
49 | 50 | ||
50 | #define R8A66597_SIZE 0x00000100 | 51 | #define R8A66597_SIZE 0x00000100 |
51 | #define CG200_SIZE 0x00010000 | 52 | #define CG200_SIZE 0x00010000 |
52 | #define PCA9564_SIZE 0x00000100 | ||
53 | 53 | ||
54 | #endif /* __ASM_SH_RENESAS_SH7785LCR_H */ | 54 | #endif /* __ASM_SH_RENESAS_SH7785LCR_H */ |
55 | 55 | ||