diff options
author | Aaron Durbin <adurbin@chromium.org> | 2014-08-13 15:09:36 -0500 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2015-03-26 00:27:16 +0100 |
commit | 08e36c94ce42d4beb29f03d09208331d8704bca7 (patch) | |
tree | cb8d4a6a156d09bbe77084a5eef322c99b3efa2d /src/soc | |
parent | b95988cf2f9662e4e7148e4ee524dee92e08cdab (diff) |
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 <pgeorgi@chromium.org>
Original-Commit-Id: c8f09e61e3dbfbc96980b98ad25e09554fd49a8d
Original-Change-Id: Iff5564b250dcf2038252d54a4caec3df5f7f3de7
Original-Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Original-Reviewed-on: https://chromium-review.googlesource.com/212169
Original-Reviewed-by: Furquan Shaikh <furquan@chromium.org>
Reviewed-on: http://review.coreboot.org/8934
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'src/soc')
-rw-r--r-- | src/soc/nvidia/tegra132/funitcfg.c | 2 |
1 files changed, 2 insertions, 0 deletions
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_, \ |