blob: 876be8ed9e10d081ce6b6543d7106c6db711ec5b [file] [log] [blame]
Manivannan Sadhasivam6f219a12018-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 Tekidfe0a3d2020-05-09 22:26:24 +05305
6#include <common.h>
7#include <syscon.h>
Jagan Tekidfe0a3d2020-05-09 22:26:24 +05308#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
13#ifdef CONFIG_MISC_INIT_R
14int misc_init_r(void)
15{
16 struct rk3399_grf_regs *grf =
17 syscon_get_first_range(ROCKCHIP_SYSCON_GRF);
18
19 /**
20 * Some SSD's to work on rock960 would require explicit
21 * domain voltage change, so BT565 is in 1.8v domain
22 */
23 rk_setreg(&grf->io_vsel, BIT(0));
24
25 return 0;
26}
27#endif