diff options
author | Raptor Engineering Development Team <support@raptorengineering.com> | 2018-01-17 16:14:24 -0600 |
---|---|---|
committer | Raptor Engineering Development Team <support@raptorengineering.com> | 2018-01-17 16:30:04 -0600 |
commit | 6cd98b6c54a3254c42155d633cc3aa97546fea79 (patch) | |
tree | f768bf2ce76bec18eaef87160f02fdbc177e39e1 | |
parent | 16f997c564f873b4fdf12fc90ee8a9f6f6080961 (diff) | |
download | talos-obmc-uboot-6cd98b6c54a3254c42155d633cc3aa97546fea79.tar.gz talos-obmc-uboot-6cd98b6c54a3254c42155d633cc3aa97546fea79.zip |
Signal U-Boot control transfer to kernel on Talos™ II systems
-rw-r--r-- | common/bootm.c | 12 |
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, |