1 /* 2 * (C) Copyright 2016 Rockchip Electronics Co., Ltd 3 * 4 * SPDX-License-Identifier: GPL-2.0+ 5 */ 6 7 #include <common.h> 8 #include <spl.h> 9 #include <asm/gpio.h> 10 11 #define GPIO7A3_HUB_RST 227 12 rk3288_board_late_init(void)13int rk3288_board_late_init(void) 14 { 15 int ret; 16 17 ret = gpio_request(GPIO7A3_HUB_RST, "hub_rst"); 18 if (ret) 19 return ret; 20 ret = gpio_direction_output(GPIO7A3_HUB_RST, 1); 21 if (ret) 22 return ret; 23 24 return 0; 25 } 26