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>
This commit is contained in:
parent
b95988cf2f
commit
08e36c94ce
|
@ -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_, \
|
||||
|
|
Loading…
Reference in New Issue