rock960-rk3399.c 639 B

12345678910111213141516171819202122232425262728
  1. // SPDX-License-Identifier: GPL-2.0+
  2. /*
  3. * Copyright (C) 2018 Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
  4. */
  5. #include <common.h>
  6. #include <syscon.h>
  7. #include <asm/io.h>
  8. #include <asm/arch-rockchip/clock.h>
  9. #include <asm/arch-rockchip/grf_rk3399.h>
  10. #include <asm/arch-rockchip/hardware.h>
  11. #include <linux/bitops.h>
  12. #ifdef CONFIG_MISC_INIT_R
  13. int misc_init_r(void)
  14. {
  15. struct rk3399_grf_regs *grf =
  16. syscon_get_first_range(ROCKCHIP_SYSCON_GRF);
  17. /**
  18. * Some SSD's to work on rock960 would require explicit
  19. * domain voltage change, so BT565 is in 1.8v domain
  20. */
  21. rk_setreg(&grf->io_vsel, BIT(0));
  22. return 0;
  23. }
  24. #endif