blob: 47b921a7486280a496bd632e89c9dd46e92e352d [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
jk.kernel@gmail.com7a614ac2016-07-26 18:28:30 +08002/*
3 * (C) Copyright 2016 Rockchip Electronics Co., Ltd
jk.kernel@gmail.com7a614ac2016-07-26 18:28:30 +08004 */
5
6#include <common.h>
Kever Yang48796092016-11-24 15:29:50 +08007#include <asm/gpio.h>
jk.kernel@gmail.com7a614ac2016-07-26 18:28:30 +08008
Kever Yang48796092016-11-24 15:29:50 +08009#define GPIO7A3_HUB_RST 227
10
Kever Yangb7da2712019-07-22 20:02:14 +080011int rk3288_board_late_init(void)
Kever Yang48796092016-11-24 15:29:50 +080012{
13 int ret;
14
15 ret = gpio_request(GPIO7A3_HUB_RST, "hub_rst");
16 if (ret)
17 return ret;
18 ret = gpio_direction_output(GPIO7A3_HUB_RST, 1);
19 if (ret)
20 return ret;
21
22 return 0;
23}