diff options
author | Furquan Shaikh <furquan@google.com> | 2014-09-20 15:07:52 -0700 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2015-03-28 08:44:55 +0100 |
commit | 68a672c2c268295136e1ca186cab390494088490 (patch) | |
tree | ba8afb65f303196b2cefc1640695c0feb371393c /src/soc/nvidia/tegra132/funitcfg.c | |
parent | cd72103021a318741cd6bb51efe585ef09f0ce2b (diff) | |
download | coreboot-68a672c2c268295136e1ca186cab390494088490.tar.xz |
tegra132: Clean up clock register writes
Clean up functions to write to clk_enb and rst_dev registers and add
clock_disable and clock_set_reset functions to provide a complete API for
updating the registers.
BUG=chrome-os-partner:31821
BRANCH=None
TEST=Compiles successfully and boots to kernel prompt on ryu. Compiles
successfully on rush
Change-Id: Ib0b7e3fc322f18be396ecf3b02b2399d4ba33e9b
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Original-Commit-Id: 1bb222adc22c7e26077dfb2ba6e4d41a4965d183
Original-Change-Id: Icb8081fe3d80174c920eaaecf5cbb0aa912d5b19
Original-Signed-off-by: Furquan Shaikh <furquan@google.com>
Original-Reviewed-on: https://chromium-review.googlesource.com/219191
Original-Tested-by: Furquan Shaikh <furquan@chromium.org>
Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Original-Commit-Queue: Furquan Shaikh <furquan@chromium.org>
Reviewed-on: http://review.coreboot.org/9099
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Tested-by: build bot (Jenkins)
Diffstat (limited to 'src/soc/nvidia/tegra132/funitcfg.c')
-rw-r--r-- | src/soc/nvidia/tegra132/funitcfg.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/soc/nvidia/tegra132/funitcfg.c b/src/soc/nvidia/tegra132/funitcfg.c index 41bbc4ad8a..662849fd51 100644 --- a/src/soc/nvidia/tegra132/funitcfg.c +++ b/src/soc/nvidia/tegra132/funitcfg.c @@ -47,9 +47,6 @@ enum { CLK_X_SET = 5, }; -#define CLK_RST_REG(field_) \ - &(((struct clk_rst_ctlr *)TEGRA_CLK_RST_BASE)->field_) - #define CLK_SET_REGS(x) \ { \ CLK_RST_REG(clk_enb_##x##_set), \ |