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