From 08e36c94ce42d4beb29f03d09208331d8704bca7 Mon Sep 17 00:00:00 2001 From: Aaron Durbin Date: Wed, 13 Aug 2014 15:09:36 -0500 Subject: tegra132: add base addresses to funit structures To provide easier access to the base addresses of the controllers by funit identifier add the base addresses to the data structure. BUG=chrome-os-partner:31251 BUG=chrome-os-partner:31106 BRANCH=None TEST=Built. Change-Id: I427d432beef36e6342c188d607c0e33b3845c0e1 Signed-off-by: Patrick Georgi Original-Commit-Id: c8f09e61e3dbfbc96980b98ad25e09554fd49a8d Original-Change-Id: Iff5564b250dcf2038252d54a4caec3df5f7f3de7 Original-Signed-off-by: Aaron Durbin Original-Reviewed-on: https://chromium-review.googlesource.com/212169 Original-Reviewed-by: Furquan Shaikh Reviewed-on: http://review.coreboot.org/8934 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer --- src/soc/nvidia/tegra132/funitcfg.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/soc/nvidia') diff --git a/src/soc/nvidia/tegra132/funitcfg.c b/src/soc/nvidia/tegra132/funitcfg.c index 616e5d67a9..6d4cd2b6fd 100644 --- a/src/soc/nvidia/tegra132/funitcfg.c +++ b/src/soc/nvidia/tegra132/funitcfg.c @@ -31,6 +31,7 @@ struct clk_dev_control { struct funit_cfg_data { const char *name; + void *ctlr_base; uint32_t *clk_src_reg; const struct clk_dev_control * const dev_control; uint32_t clk_enb_val; @@ -66,6 +67,7 @@ static const struct clk_dev_control clk_data_arr[] = { #define FUNIT_DATA(funit_, loname_, clk_set_) \ [FUNIT_INDEX(funit_)] = { \ .name = STRINGIFY(loname_), \ + .ctlr_base = (void *)(uintptr_t)TEGRA_##funit_##_BASE, \ .clk_src_reg = CLK_RST_REG(clk_src_##loname_), \ .dev_control = &clk_data_arr[CLK_##clk_set_##_SET], \ .clk_enb_val = CLK_##clk_set_##_##funit_, \ -- cgit v1.2.3