io-domain.c (28b05a64e47cbceebb8a5f3f643033148d5c06c3) | io-domain.c (9e5747c57807ad8a04c356340190cfdd0bd54111) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Rockchip IO Voltage Domain driver 4 * 5 * Copyright 2014 MundoReader S.L. 6 * Copyright 2014 Google, Inc. 7 */ 8 --- 101 unchanged lines hidden (view full) --- 110 val0 = BIT(16 + b) | (is_3v3 ? 0 : BIT(b)); 111 val1 = BIT(16 + b) | (is_3v3 ? BIT(b) : 0); 112 113 regmap_write(iod->grf, RK3568_PMU_GRF_IO_VSEL0, val0); 114 regmap_write(iod->grf, RK3568_PMU_GRF_IO_VSEL1, val1); 115 break; 116 default: 117 return -EINVAL; | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Rockchip IO Voltage Domain driver 4 * 5 * Copyright 2014 MundoReader S.L. 6 * Copyright 2014 Google, Inc. 7 */ 8 --- 101 unchanged lines hidden (view full) --- 110 val0 = BIT(16 + b) | (is_3v3 ? 0 : BIT(b)); 111 val1 = BIT(16 + b) | (is_3v3 ? BIT(b) : 0); 112 113 regmap_write(iod->grf, RK3568_PMU_GRF_IO_VSEL0, val0); 114 regmap_write(iod->grf, RK3568_PMU_GRF_IO_VSEL1, val1); 115 break; 116 default: 117 return -EINVAL; |
118 }; | 118 } |
119 120 return 0; 121} 122 123static int rockchip_iodomain_write(struct rockchip_iodomain_supply *supply, 124 int uV) 125{ 126 struct rockchip_iodomain *iod = supply->iod; --- 574 unchanged lines hidden --- | 119 120 return 0; 121} 122 123static int rockchip_iodomain_write(struct rockchip_iodomain_supply *supply, 124 int uV) 125{ 126 struct rockchip_iodomain *iod = supply->iod; --- 574 unchanged lines hidden --- |