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