Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 181133
b: refs/heads/master
c: b51989b
h: refs/heads/master
i:
  181131: f31e22d
v: v3
  • Loading branch information
Paul Mundt committed Jan 20, 2010
1 parent 42ef0af commit 85c7661
Show file tree
Hide file tree
Showing 2 changed files with 9 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: fbb82b03653cdb7fd1863b911e7540011259d2ce
refs/heads/master: b51989b8afe9409ee68c67ce2a5de4390693bd2b
8 changes: 8 additions & 0 deletions trunk/arch/sh/boards/mach-sdk7786/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include <asm/machvec.h>
#include <asm/heartbeat.h>
#include <asm/sizes.h>
#include <asm/reboot.h>

static struct resource heartbeat_resource = {
.start = 0x07fff8b0,
Expand Down Expand Up @@ -159,6 +160,11 @@ static int sdk7786_clk_init(void)
return ret;
}

static void sdk7786_restart(char *cmd)
{
fpga_write_reg(0xa5a5, SRSTR);
}

/* Initialize the board */
static void __init sdk7786_setup(char **cmdline_p)
{
Expand All @@ -167,6 +173,8 @@ static void __init sdk7786_setup(char **cmdline_p)
sdk7786_fpga_init();

pr_info("\tPCB revision:\t%d\n", fpga_read_reg(PCBRR) & 0xf);

machine_ops.restart = sdk7786_restart;
}

/*
Expand Down

0 comments on commit 85c7661

Please sign in to comment.