Merge tag 'video-for-2019.10-rc1' of https://gitlab.denx.de/u-boot/custodians/u-boot...
[oweals/u-boot.git] / board / chipspark / popmetal_rk3288 / popmetal-rk3288.c
1 // SPDX-License-Identifier: GPL-2.0+
2 /*
3  * (C) Copyright 2016 Rockchip Electronics Co., Ltd
4  */
5
6 #include <common.h>
7 #include <asm/gpio.h>
8
9 #define GPIO7A3_HUB_RST 227
10
11 int rk3288_board_late_init(void)
12 {
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 }