t132: Replace use of clk_rst with CLK_RST_REG

Also, get rid of unused clk_rst variables.

BUG=None
BRANCH=None
TEST=Compiles successfully

Change-Id: I880ae5c396c33006f6b184cca7f171e4373f4016
Signed-off-by: Furquan Shaikh <furquan@google.com>
Reviewed-on: https://chromium-review.googlesource.com/220720
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Tested-by: Furquan Shaikh <furquan@chromium.org>
Commit-Queue: Furquan Shaikh <furquan@chromium.org>
This commit is contained in:
Furquan Shaikh 2014-09-30 19:49:01 -07:00 committed by chrome-internal-fetch
commit 030081fe85
3 changed files with 1 additions and 4 deletions

View file

@ -34,8 +34,6 @@ void __attribute__((weak)) bootblock_mainboard_early_init(void)
/* Empty default implementation. */
}
static struct clk_rst_ctlr *clk_rst = (void *)TEGRA_CLK_RST_BASE;
void main(void)
{
void *entry;

View file

@ -30,7 +30,6 @@
#define DPAUX_HYBRID_PADCTL 0x545C0124
static struct tegra_pmc_regs * const pmc = (void *)TEGRA_PMC_BASE;
static struct clk_rst_ctlr *clk_rst = (void *)TEGRA_CLK_RST_BASE;
static int partition_clamp_on(int id)
{

View file

@ -290,7 +290,7 @@ static inline void _clock_set_div(u32 *reg, const char *name, u32 div,
#define CLK_DIV_MASK_I2C 0xffff
#define clock_configure_source(device, src, freq) \
_clock_set_div(&clk_rst->clk_src_##device, #device, \
_clock_set_div(CLK_RST_REG(clk_src_##device), #device, \
get_clk_div(TEGRA_##src##_KHZ, freq), CLK_DIV_MASK, \
CLK_SRC_DEV_ID(device, src))