aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/boards/board-sh7785lcr.c
diff options
context:
space:
mode:
authorMagnus Damm <damm@igel.co.jp>2009-06-02 05:22:02 -0400
committerPaul Mundt <lethal@linux-sh.org>2009-06-11 02:08:53 -0400
commit0d4fdbb64f472ef31195714993f1263f77cf85ca (patch)
tree2cfa619828ac2430919b3d716635e9ebf6f00a47 /arch/sh/boards/board-sh7785lcr.c
parent2693e2740ddae364a80e6083043ba760b6366b69 (diff)
sh: rework mode pin code
This patch reworks the mode pin code to keep the pin definitions in one place. The mode pins values are now the value of the bit instead of bit number. With this patch in place the sh7785 header file contains mode pin comments. The sh7785 clock code and the sh7785lcr board code are updated to reflect the new shared mode pins. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/boards/board-sh7785lcr.c')
-rw-r--r--arch/sh/boards/board-sh7785lcr.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/arch/sh/boards/board-sh7785lcr.c b/arch/sh/boards/board-sh7785lcr.c
index c2894c5b71ea..7be56fb06c1f 100644
--- a/arch/sh/boards/board-sh7785lcr.c
+++ b/arch/sh/boards/board-sh7785lcr.c
@@ -330,13 +330,13 @@ static int sh7785lcr_mode_pins(void)
330 * If you change these dip switches then you will need to 330 * If you change these dip switches then you will need to
331 * adjust the values below as well. 331 * adjust the values below as well.
332 */ 332 */
333 value |= 1 << MODE_PIN_MODE4; /* Clock Mode 16 */ 333 value |= MODE_PIN4; /* Clock Mode 16 */
334 value |= 1 << MODE_PIN_MODE5; /* 32-bit Area0 bus width */ 334 value |= MODE_PIN5; /* 32-bit Area0 bus width */
335 value |= 1 << MODE_PIN_MODE6; /* 32-bit Area0 bus width */ 335 value |= MODE_PIN6; /* 32-bit Area0 bus width */
336 value |= 1 << MODE_PIN_MODE7; /* Area 0 SRAM interface [fixed] */ 336 value |= MODE_PIN7; /* Area 0 SRAM interface [fixed] */
337 value |= 1 << MODE_PIN_MODE8; /* Little Endian */ 337 value |= MODE_PIN8; /* Little Endian */
338 value |= 1 << MODE_PIN_MODE9; /* Master Mode */ 338 value |= MODE_PIN9; /* Master Mode */
339 value |= 1 << MODE_PIN_MODE14; /* No PLL step-up */ 339 value |= MODE_PIN14; /* No PLL step-up */
340 340
341 return value; 341 return value;
342} 342}