1 // SPDX-License-Identifier: GPL-2.0+ 2 /* 3 * (C) Copyright 2016 Rockchip Electronics Co., Ltd 4 */ 5 6 #include <common.h> 7 #include <spl.h> 8 #include <asm/gpio.h> 9 10 void board_boot_order(u32 *spl_boot_list) 11 { 12 /* eMMC prior to sdcard */ 13 spl_boot_list[0] = BOOT_DEVICE_MMC2; 14 spl_boot_list[1] = BOOT_DEVICE_MMC1; 15 } 16 17 #define GPIO7A3_HUB_RST 227 18 19 int rk_board_late_init(void) 20 { 21 int ret; 22 23 ret = gpio_request(GPIO7A3_HUB_RST, "hub_rst"); 24 if (ret) 25 return ret; 26 ret = gpio_direction_output(GPIO7A3_HUB_RST, 1); 27 if (ret) 28 return ret; 29 30 return 0; 31 } 32