summaryrefslogtreecommitdiffstats
path: root/arch/sandbox/cpu
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-07-06 12:54:29 -0600
committerSimon Glass <sjg@chromium.org>2015-07-21 17:39:31 -0600
commit5010d98f02d9714f83c507e12ade0c52d214d157 (patch)
tree2d27c1859a3595f236a27a885657fdf599806825 /arch/sandbox/cpu
parentb9d33fa06c174e7fb4c8cd4bfec5cfff87f301e8 (diff)
downloadtalos-obmc-uboot-5010d98f02d9714f83c507e12ade0c52d214d157.tar.gz
talos-obmc-uboot-5010d98f02d9714f83c507e12ade0c52d214d157.zip
sandbox: Use the reset driver to handle reset
Move sandbox over to use the reset uclass for reset, instead of a direct call to do_reset(). This allows us to add tests. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/sandbox/cpu')
-rw-r--r--arch/sandbox/cpu/cpu.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/arch/sandbox/cpu/cpu.c b/arch/sandbox/cpu/cpu.c
index e6ddb17a14..3a7f5a004b 100644
--- a/arch/sandbox/cpu/cpu.c
+++ b/arch/sandbox/cpu/cpu.c
@@ -20,7 +20,7 @@ static struct udevice *map_dev;
unsigned long map_len;
#endif
-void reset_cpu(ulong ignored)
+void sandbox_exit(void)
{
/* Do this here while it still has an effect */
os_fd_restore();
@@ -34,13 +34,6 @@ void reset_cpu(ulong ignored)
os_exit(0);
}
-int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
-{
- reset_cpu(0);
-
- return 0;
-}
-
/* delay x useconds */
void __udelay(unsigned long usec)
{
OpenPOWER on IntegriCloud