Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Feb 2019 13:17:09 +0000 (UTC)
From:      Emmanuel Vadot <manu@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r344579 - head/sys/arm64/rockchip
Message-ID:  <201902261317.x1QDH9w1017859@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: manu
Date: Tue Feb 26 13:17:09 2019
New Revision: 344579
URL: https://svnweb.freebsd.org/changeset/base/344579

Log:
  arm64: rockchip: rk805: Add LDO regulators
  
  Add the 3 LDO regulator found in the RK805 Power Management IC.
  
  MFC after:	1 week

Modified:
  head/sys/arm64/rockchip/rk805.c

Modified: head/sys/arm64/rockchip/rk805.c
==============================================================================
--- head/sys/arm64/rockchip/rk805.c	Tue Feb 26 13:16:05 2019	(r344578)
+++ head/sys/arm64/rockchip/rk805.c	Tue Feb 26 13:17:09 2019	(r344579)
@@ -138,6 +138,42 @@ static struct rk805_regdef rk805_regdefs[] = {
 		.voltage_step = 100000,
 		.voltage_nstep = 28,
 	},
+	{
+		.id = RK805_LDO1,
+		.name = "LDO_REG1",
+		.enable_reg = RK805_LDO_EN,
+		.enable_mask = 0x11,
+		.voltage_reg = RK805_LDO1_ON_VSEL,
+		.voltage_mask = 0x1F,
+		.voltage_min = 800000,
+		.voltage_max = 3400000,
+		.voltage_step = 100000,
+		.voltage_nstep = 27,
+	},
+	{
+		.id = RK805_LDO2,
+		.name = "LDO_REG2",
+		.enable_reg = RK805_LDO_EN,
+		.enable_mask = 0x22,
+		.voltage_reg = RK805_LDO2_ON_VSEL,
+		.voltage_mask = 0x1F,
+		.voltage_min = 800000,
+		.voltage_max = 3400000,
+		.voltage_step = 100000,
+		.voltage_nstep = 27,
+	},
+	{
+		.id = RK805_LDO3,
+		.name = "LDO_REG3",
+		.enable_reg = RK805_LDO_EN,
+		.enable_mask = 0x44,
+		.voltage_reg = RK805_LDO3_ON_VSEL,
+		.voltage_mask = 0x1F,
+		.voltage_min = 800000,
+		.voltage_max = 3400000,
+		.voltage_step = 100000,
+		.voltage_nstep = 27,
+	},
 };
 
 static struct rk805_regdef rk808_regdefs[] = {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201902261317.x1QDH9w1017859>