From c28537189afe91f9d0035b464bee3822bb6e3651 Mon Sep 17 00:00:00 2001 From: Raptor Engineering Development Team Date: Wed, 17 Jan 2018 16:14:24 -0600 Subject: =?UTF-8?q?Signal=20U-Boot=20control=20transfer=20to=20kernel=20on?= =?UTF-8?q?=20Talos=E2=84=A2=20II=20systems?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/bootm.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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, -- cgit v1.2.1