Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
jk.kernel@gmail.com | 7a614ac | 2016-07-26 18:28:30 +0800 | [diff] [blame] | 2 | /* |
| 3 | * (C) Copyright 2016 Rockchip Electronics Co., Ltd |
jk.kernel@gmail.com | 7a614ac | 2016-07-26 18:28:30 +0800 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | #include <common.h> |
Simon Glass | a7b5130 | 2019-11-14 12:57:46 -0700 | [diff] [blame] | 7 | #include <init.h> |
Kever Yang | 4879609 | 2016-11-24 15:29:50 +0800 | [diff] [blame] | 8 | #include <asm/gpio.h> |
jk.kernel@gmail.com | 7a614ac | 2016-07-26 18:28:30 +0800 | [diff] [blame] | 9 | |
Kever Yang | 4879609 | 2016-11-24 15:29:50 +0800 | [diff] [blame] | 10 | #define GPIO7A3_HUB_RST 227 |
| 11 | |
Kever Yang | b7da271 | 2019-07-22 20:02:14 +0800 | [diff] [blame] | 12 | int rk3288_board_late_init(void) |
Kever Yang | 4879609 | 2016-11-24 15:29:50 +0800 | [diff] [blame] | 13 | { |
| 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 | } |