Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 146846
b: refs/heads/master
c: 63d12e2
h: refs/heads/master
v: v3
  • Loading branch information
Magnus Damm authored and Paul Mundt committed Jun 1, 2009
1 parent 44a9638 commit 2091124
Show file tree
Hide file tree
Showing 2 changed files with 23 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: 4a44b32969bfc29140b9f21a1ec924c796d6ac43
refs/heads/master: 63d12e23235d982d8f55696e09b2ff91e3ba0042
22 changes: 22 additions & 0 deletions trunk/arch/sh/boards/board-sh7785lcr.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include <mach/sh7785lcr.h>
#include <asm/heartbeat.h>
#include <asm/clock.h>
#include <cpu/sh7785.h>

/*
* NOTE: This board has 2 physical memory maps.
Expand Down Expand Up @@ -320,6 +321,26 @@ static void __init sh7785lcr_setup(char **cmdline_p)
writel(0x000307c2, sm501_reg);
}

/* Return the board specific boot mode pin configuration */
static int sh7785lcr_mode_pins(void)
{
int value = 0;

/* These are the factory default settings of S1 and S2.
* If you change these dip switches then you will need to
* adjust the values below as well.
*/
value |= 1 << MODE_PIN_MODE4; /* Clock Mode 16 */
value |= 1 << MODE_PIN_MODE5; /* 32-bit Area0 bus width */
value |= 1 << MODE_PIN_MODE6; /* 32-bit Area0 bus width */
value |= 1 << MODE_PIN_MODE7; /* Area 0 SRAM interface [fixed] */
value |= 1 << MODE_PIN_MODE8; /* Little Endian */
value |= 1 << MODE_PIN_MODE9; /* Master Mode */
value |= 1 << MODE_PIN_MODE14; /* No PLL step-up */

return value;
}

/*
* The Machine Vector
*/
Expand All @@ -328,5 +349,6 @@ static struct sh_machine_vector mv_sh7785lcr __initmv = {
.mv_setup = sh7785lcr_setup,
.mv_clk_init = sh7785lcr_clk_init,
.mv_init_irq = init_sh7785lcr_IRQ,
.mv_mode_pins = sh7785lcr_mode_pins,
};

0 comments on commit 2091124

Please sign in to comment.