summaryrefslogtreecommitdiffstats
path: root/common/bootm.c
diff options
context:
space:
mode:
authorRaptor Engineering Development Team <support@raptorengineering.com>2018-01-17 16:14:24 -0600
committerRaptor Engineering Development Team <support@raptorengineering.com>2018-04-12 16:08:58 -0500
commit1ac52fc09eb9b954c900acf230818765597164cb (patch)
tree6a4f293850c94b6ac6424c3e7bdc3f43b57ffcbd /common/bootm.c
parente4c85cd4de96bfdff7b614731a044db11815ff0c (diff)
downloadtalos-obmc-uboot-1ac52fc09eb9b954c900acf230818765597164cb.tar.gz
talos-obmc-uboot-1ac52fc09eb9b954c900acf230818765597164cb.zip
Signal U-Boot control transfer to kernel on Talos™ II systems
Diffstat (limited to 'common/bootm.c')
-rw-r--r--common/bootm.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/common/bootm.c b/common/bootm.c
index 2431019b3f..24f117c86d 100644
--- a/common/bootm.c
+++ b/common/bootm.c
@@ -704,6 +704,18 @@ int do_bootm_states(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[],
return ret;
}
+ /* HACK
+ * For Talos™ II systems ONLY
+ * Set U-Boot complete GPIO
+ */
+ {
+ uint32_t* gpio_ctl_reg = 0x1e78007c;
+ uint32_t* gpio_data_reg = 0x1e780078;
+
+ *gpio_ctl_reg |= 0x00400000;
+ *gpio_data_reg &= ~0x00400000;
+ }
+
/* Now run the OS! We hope this doesn't return */
if (!ret && (states & BOOTM_STATE_OS_GO))
ret = boot_selected_os(argc, argv, BOOTM_STATE_OS_GO,
OpenPOWER on IntegriCloud