summaryrefslogtreecommitdiff
path: root/src/soc/rockchip/rk3288/pmu.h
diff options
context:
space:
mode:
authorhuang lin <hl@rock-chips.com>2014-10-14 10:04:16 -0700
committerPatrick Georgi <pgeorgi@google.com>2015-04-08 09:28:46 +0200
commita97bd5a4c80faac0ea47eced594c8184a3f3fdcc (patch)
treec1a0d69e749cf601ff462bb47b890445fc4129a9 /src/soc/rockchip/rk3288/pmu.h
parent2d3d452d521db352b9f9a978314a997d3dee5bd6 (diff)
rk3288: support tsadc
check the cpu and gpu temperature in romstage, if over 120 degrees celsius,shut down the device. BUG=None Test=Boot on veyron_pinky rev2, write value 3421(125 celsius) to grf_tsadc_testbitl register, the device will be shut down Change-Id: I275d643ce8560444a9b42ee566d5fd63ebcda35e Signed-off-by: Patrick Georgi <pgeorgi@chromium.org> Original-Commit-Id: e0c597489dc0637ffa66ee9db0c4f60757f8889f Original-Change-Id: If406d6a4f6201150f52ea7fc64cd50b45778d7aa Original-Signed-off-by: huang lin <hl@rock-chips.com> Original-Reviewed-on: https://chromium-review.googlesource.com/223259 Original-Reviewed-by: Julius Werner <jwerner@chromium.org> Original-Commit-Queue: Julius Werner <jwerner@chromium.org> Reviewed-on: http://review.coreboot.org/9348 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'src/soc/rockchip/rk3288/pmu.h')
-rw-r--r--src/soc/rockchip/rk3288/pmu.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/soc/rockchip/rk3288/pmu.h b/src/soc/rockchip/rk3288/pmu.h
index 44e5989a4e..23ca8b11d5 100644
--- a/src/soc/rockchip/rk3288/pmu.h
+++ b/src/soc/rockchip/rk3288/pmu.h
@@ -54,6 +54,7 @@ struct rk3288_pmu_regs {
union {
u32 gpio0b_iomux;
u32 iomux_i2c0sda;
+ u32 iomux_tsadc_int;
};
union {
u32 gpio0c_iomux;
@@ -69,7 +70,8 @@ check_member(rk3288_pmu_regs, sys_reg[3], 0x00a0);
static struct rk3288_pmu_regs * const rk3288_pmu = (void *)PMU_BASE;
-#define IOMUX_I2C0SDA 1 << 14
-#define IOMUX_I2C0SCL 1 << 0
+#define IOMUX_I2C0SDA (1 << 14)
+#define IOMUX_I2C0SCL (1 << 0)
+#define IOMUX_TSADC_INT (1 << 4)
#endif