diff options
author | Tom Rini <trini@konsulko.com> | 2020-05-13 15:03:16 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-05-13 15:03:16 -0400 |
commit | cae802924e423900df24dc58f382896ceb42a54b (patch) | |
tree | 1c345ed694faf210c39ff73eacef36578af82b3c /board | |
parent | 10bca13ea6d9d4b85f80f02c8795227f63240f59 (diff) | |
parent | bed6481940b1b9a2f3b48afeeced550dd84e2932 (diff) |
Merge tag 'arc-fixes-for-2020.07-rc3' of https://gitlab.denx.de/u-boot/custodians/u-boot-arc
Here we improve clock support for recently introduced HSDK-4xD
board as well as finally enable external reset for the USB controller,
which is needed to recover USB functionality after "usb reset".
Diffstat (limited to 'board')
-rw-r--r-- | board/synopsys/hsdk/hsdk.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/board/synopsys/hsdk/hsdk.c b/board/synopsys/hsdk/hsdk.c index a3e0563ff4..8ccd84ca60 100644 --- a/board/synopsys/hsdk/hsdk.c +++ b/board/synopsys/hsdk/hsdk.c @@ -42,6 +42,8 @@ DECLARE_GLOBAL_DATA_PTR; #define CREG_CPU_START_MASK 0xF #define CREG_CPU_START_POL BIT(4) +#define CREG_CORE_BOOT_IMAGE GENMASK(5, 4) + #define CREG_CPU_0_ENTRY (CREG_BASE + 0x404) #define SDIO_BASE (ARC_PERIPHERAL_BASE + 0xA000) @@ -1241,11 +1243,16 @@ int board_late_init(void) int checkboard(void) { + u32 reg; + printf("Board: Synopsys %s\n", board_name(get_board_type_runtime())); if (board_mismatch()) printf("WARN: U-boot is configured NOT for this board but for %s!\n", board_name(get_board_type_config())); + reg = readl(CREG_AXI_M_HS_CORE_BOOT) & CREG_CORE_BOOT_IMAGE; + printf("U-boot autostart: %s\n", reg ? "enabled" : "disabled"); + return 0; }; |