summaryrefslogtreecommitdiff
path: root/board/chipspark/popmetal_rk3288/popmetal-rk3288.c
blob: 9ba1fbd0e274030bd96d197d554c0ed82288df57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// SPDX-License-Identifier: GPL-2.0+
/*
 * (C) Copyright 2016 Rockchip Electronics Co., Ltd
 */

#include <common.h>
#include <asm/gpio.h>

#define GPIO7A3_HUB_RST	227

int rk_board_late_init(void)
{
	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;
}