2016-05-24 12:14:01 +00:00
|
|
|
/*
|
2017-01-15 05:59:03 +00:00
|
|
|
* Copyright (C) 2016-2017 Socionext Inc.
|
2016-05-24 12:14:01 +00:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <linux/io.h>
|
|
|
|
|
|
|
|
#include "../init.h"
|
|
|
|
#include "../sc64-regs.h"
|
|
|
|
|
2017-01-15 05:59:03 +00:00
|
|
|
void uniphier_ld11_dram_clk_init(void)
|
2016-05-24 12:14:01 +00:00
|
|
|
{
|
|
|
|
u32 tmp;
|
|
|
|
|
|
|
|
/* deassert reset */
|
|
|
|
tmp = readl(SC_RSTCTRL7);
|
|
|
|
tmp |= SC_RSTCTRL7_UMC31 | SC_RSTCTRL7_UMC30;
|
|
|
|
writel(tmp, SC_RSTCTRL7);
|
|
|
|
|
|
|
|
/* provide clocks */
|
|
|
|
tmp = readl(SC_CLKCTRL7);
|
|
|
|
tmp |= SC_CLKCTRL7_UMC31 | SC_CLKCTRL7_UMC30;
|
|
|
|
writel(tmp, SC_CLKCTRL7);
|
|
|
|
}
|