summaryrefslogtreecommitdiffstats
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>2019-04-19 11:17:36 +0000
commitc28537189afe91f9d0035b464bee3822bb6e3651 (patch)
tree9a97b7a3fcc6a27fc7970b30da33eaf841ececf0
parent3c33d1e84ebb8d2305725c509a7c6df1125afa62 (diff)
downloadtalos-obmc-uboot-c28537189afe91f9d0035b464bee3822bb6e3651.tar.gz
talos-obmc-uboot-c28537189afe91f9d0035b464bee3822bb6e3651.zip
Signal U-Boot control transfer to kernel on Talos™ II systems
-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