blob: e6909b3b1c5330f4de947e7025d73e7db9c73a65 [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>
Simon Glassa7b51302019-11-14 12:57:46 -07007#include <init.h>
Kever Yang48796092016-11-24 15:29:50 +08008#include <asm/gpio.h>
jk.kernel@gmail.com7a614ac2016-07-26 18:28:30 +08009
Kever Yang48796092016-11-24 15:29:50 +080010#define GPIO7A3_HUB_RST 227
11
Kever Yangb7da2712019-07-22 20:02:14 +080012int rk3288_board_late_init(void)
Kever Yang48796092016-11-24 15:29:50 +080013{
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}