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 | |
Simon Glass | a7b5130 | 2019-11-14 12:57:46 -0700 | [diff] [blame] | 6 | #include <init.h> |
Kever Yang | 4879609 | 2016-11-24 15:29:50 +0800 | [diff] [blame] | 7 | #include <asm/gpio.h> |
jk.kernel@gmail.com | 7a614ac | 2016-07-26 18:28:30 +0800 | [diff] [blame] | 8 | |
Kever Yang | 4879609 | 2016-11-24 15:29:50 +0800 | [diff] [blame] | 9 | #define GPIO7A3_HUB_RST 227 |
| 10 | |
Kever Yang | b7da271 | 2019-07-22 20:02:14 +0800 | [diff] [blame] | 11 | int rk3288_board_late_init(void) |
Kever Yang | 4879609 | 2016-11-24 15:29:50 +0800 | [diff] [blame] | 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 | } |