blob: a7fc38d42f8f2af7c1095ab6e3ceeb170c634ca8 [file] [log] [blame]
Manivannan Sadhasivam1bad5e12018-09-28 00:32:59 +05301// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Copyright (C) 2018 Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
4 */
Jagan Teki0672e982020-05-09 22:26:24 +05305
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
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