ARM: shmobile: r8a7779: Stop passing mode pins state to clock driver
Now the R-Car H1 CPG clock driver obtains the state of the mode pins from the R-Car RST driver, there's no longer a need to pass this state explicitly. Hence we can just remove the .init_time() callback, the generic ARM code will take care of calling of_clk_init() and clocksource_probe(). Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Acked-by: Dirk Behme <dirk.behme@de.bosch.com>
This commit is contained in:
parent
f3519926ba
commit
eae339264f
|
@ -14,8 +14,6 @@
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
* GNU General Public License for more details.
|
* GNU General Public License for more details.
|
||||||
*/
|
*/
|
||||||
#include <linux/clk/renesas.h>
|
|
||||||
#include <linux/clocksource.h>
|
|
||||||
#include <linux/init.h>
|
#include <linux/init.h>
|
||||||
#include <linux/irq.h>
|
#include <linux/irq.h>
|
||||||
#include <linux/irqchip.h>
|
#include <linux/irqchip.h>
|
||||||
|
@ -76,30 +74,6 @@ static void __init r8a7779_init_irq_dt(void)
|
||||||
__raw_writel(0x003fee3f, INT2SMSKCR4);
|
__raw_writel(0x003fee3f, INT2SMSKCR4);
|
||||||
}
|
}
|
||||||
|
|
||||||
#define MODEMR 0xffcc0020
|
|
||||||
|
|
||||||
static u32 __init r8a7779_read_mode_pins(void)
|
|
||||||
{
|
|
||||||
static u32 mode;
|
|
||||||
static bool mode_valid;
|
|
||||||
|
|
||||||
if (!mode_valid) {
|
|
||||||
void __iomem *modemr = ioremap_nocache(MODEMR, PAGE_SIZE);
|
|
||||||
BUG_ON(!modemr);
|
|
||||||
mode = ioread32(modemr);
|
|
||||||
iounmap(modemr);
|
|
||||||
mode_valid = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
return mode;
|
|
||||||
}
|
|
||||||
|
|
||||||
static void __init r8a7779_init_time(void)
|
|
||||||
{
|
|
||||||
r8a7779_clocks_init(r8a7779_read_mode_pins());
|
|
||||||
clocksource_probe();
|
|
||||||
}
|
|
||||||
|
|
||||||
static const char *const r8a7779_compat_dt[] __initconst = {
|
static const char *const r8a7779_compat_dt[] __initconst = {
|
||||||
"renesas,r8a7779",
|
"renesas,r8a7779",
|
||||||
NULL,
|
NULL,
|
||||||
|
@ -109,7 +83,6 @@ DT_MACHINE_START(R8A7779_DT, "Generic R8A7779 (Flattened Device Tree)")
|
||||||
.smp = smp_ops(r8a7779_smp_ops),
|
.smp = smp_ops(r8a7779_smp_ops),
|
||||||
.map_io = r8a7779_map_io,
|
.map_io = r8a7779_map_io,
|
||||||
.init_early = shmobile_init_delay,
|
.init_early = shmobile_init_delay,
|
||||||
.init_time = r8a7779_init_time,
|
|
||||||
.init_irq = r8a7779_init_irq_dt,
|
.init_irq = r8a7779_init_irq_dt,
|
||||||
.init_late = shmobile_init_late,
|
.init_late = shmobile_init_late,
|
||||||
.dt_compat = r8a7779_compat_dt,
|
.dt_compat = r8a7779_compat_dt,
|
||||||
|
|
Loading…
Reference in New Issue