popmetal-rk3288.c 394 B

123456789101112131415161718192021222324
  1. // SPDX-License-Identifier: GPL-2.0+
  2. /*
  3. * (C) Copyright 2016 Rockchip Electronics Co., Ltd
  4. */
  5. #include <common.h>
  6. #include <init.h>
  7. #include <asm/gpio.h>
  8. #define GPIO7A3_HUB_RST 227
  9. int rk3288_board_late_init(void)
  10. {
  11. int ret;
  12. ret = gpio_request(GPIO7A3_HUB_RST, "hub_rst");
  13. if (ret)
  14. return ret;
  15. ret = gpio_direction_output(GPIO7A3_HUB_RST, 1);
  16. if (ret)
  17. return ret;
  18. return 0;
  19. }