2018-05-06 21:58:06 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0+
|
2016-07-26 10:28:30 +00:00
|
|
|
/*
|
|
|
|
* (C) Copyright 2016 Rockchip Electronics Co., Ltd
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <common.h>
|
2019-11-14 19:57:46 +00:00
|
|
|
#include <init.h>
|
2016-11-24 07:29:50 +00:00
|
|
|
#include <asm/gpio.h>
|
2016-07-26 10:28:30 +00:00
|
|
|
|
2016-11-24 07:29:50 +00:00
|
|
|
#define GPIO7A3_HUB_RST 227
|
|
|
|
|
2019-07-22 12:02:14 +00:00
|
|
|
int rk3288_board_late_init(void)
|
2016-11-24 07:29:50 +00:00
|
|
|
{
|
|
|
|
int ret;
|
|
|
|
|
|
|
|
ret = gpio_request(GPIO7A3_HUB_RST, "hub_rst");
|
|
|
|
if (ret)
|
|
|
|
return ret;
|
|
|
|
ret = gpio_direction_output(GPIO7A3_HUB_RST, 1);
|
|
|
|
if (ret)
|
|
|
|
return ret;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|