Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 181091
b: refs/heads/master
c: 6f832e8
h: refs/heads/master
i:
  181089: 0b10801
  181087: ccde265
v: v3
  • Loading branch information
Paul Mundt committed Jan 15, 2010
1 parent ae45ac7 commit 34b557d
Show file tree
Hide file tree
Showing 2 changed files with 19 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: f0cb77372c3cf8c0cb17bbfb30a62506ea119286
refs/heads/master: 6f832e8aab8c4c6d28629e970e4a85e74a8d0be6
18 changes: 18 additions & 0 deletions trunk/arch/sh/boards/mach-sdk7786/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,23 @@ static void __init init_sdk7786_IRQ(void)
plat_irq_setup_pins(IRQ_MODE_IRL3210_MASK);
}

#define MODSWR_REGS 0x07fff830

static int sdk7786_mode_pins(void)
{
void __iomem *modswr;
int pin_states;

modswr = ioremap_nocache(MODSWR_REGS, SZ_16);
if (!modswr)
return -ENXIO;

pin_states = ioread16(modswr);
iounmap(modswr);

return pin_states;
}

/* Initialize the board */
static void __init sdk7786_setup(char **cmdline_p)
{
Expand All @@ -230,5 +247,6 @@ static void __init sdk7786_setup(char **cmdline_p)
static struct sh_machine_vector mv_sdk7786 __initmv = {
.mv_name = "SDK7786",
.mv_setup = sdk7786_setup,
.mv_mode_pins = sdk7786_mode_pins,
.mv_init_irq = init_sdk7786_IRQ,
};

0 comments on commit 34b557d

Please sign in to comment.