Release 4.11 arch/arm/mach-shmobile/setup-r8a7740.c
/*
* R8A7740 processor support
*
* Copyright (C) 2011 Renesas Solutions Corp.
* Copyright (C) 2011 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/io.h>
#include <linux/irqchip.h>
#include <linux/irqchip/arm-gic.h>
#include <asm/mach/map.h>
#include <asm/mach/arch.h>
#include <asm/mach/time.h>
#include "common.h"
/*
* r8a7740 chip has lasting errata on MERAM buffer.
* this is work-around for it.
* see
* "Media RAM (MERAM)" on r8a7740 documentation
*/
#define MEBUFCNTR 0xFE950098
static void __init r8a7740_meram_workaround(void)
{
void __iomem *reg;
reg = ioremap_nocache(MEBUFCNTR, 4);
if (reg) {
iowrite32(0x01600164, reg);
iounmap(reg);
}
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Kuninori Morimoto | 39 | 95.12% | 1 | 33.33% |
Geert Uytterhoeven | 2 | 4.88% | 2 | 66.67% |
Total | 41 | 100.00% | 3 | 100.00% |
static void __init r8a7740_init_irq_of(void)
{
void __iomem *intc_prio_base = ioremap_nocache(0xe6900010, 0x10);
void __iomem *intc_msk_base = ioremap_nocache(0xe6900040, 0x10);
void __iomem *pfc_inta_ctrl = ioremap_nocache(0xe605807c, 0x4);
irqchip_init();
/* route signals to GIC */
iowrite32(0x0, pfc_inta_ctrl);
/*
* To mask the shared interrupt to SPI 149 we must ensure to set
* PRIO *and* MASK. Else we run into IRQ floods when registering
* the intc_irqpin devices
*/
iowrite32(0x0, intc_prio_base + 0x0);
iowrite32(0x0, intc_prio_base + 0x4);
iowrite32(0x0, intc_prio_base + 0x8);
iowrite32(0x0, intc_prio_base + 0xc);
iowrite8(0xff, intc_msk_base + 0x0);
iowrite8(0xff, intc_msk_base + 0x4);
iowrite8(0xff, intc_msk_base + 0x8);
iowrite8(0xff, intc_msk_base + 0xc);
iounmap(intc_prio_base);
iounmap(intc_msk_base);
iounmap(pfc_inta_ctrl);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Kuninori Morimoto | 143 | 99.31% | 1 | 50.00% |
Geert Uytterhoeven | 1 | 0.69% | 1 | 50.00% |
Total | 144 | 100.00% | 2 | 100.00% |
static void __init r8a7740_generic_init(void)
{
r8a7740_meram_workaround();
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Bastian Hecht | 9 | 75.00% | 1 | 50.00% |
Magnus Damm | 3 | 25.00% | 1 | 50.00% |
Total | 12 | 100.00% | 2 | 100.00% |
static const char *const r8a7740_boards_compat_dt[] __initconst = {
"renesas,r8a7740",
NULL,
};
DT_MACHINE_START(R8A7740_DT, "Generic R8A7740 (Flattened Device Tree)")
.l2c_aux_val = 0,
.l2c_aux_mask = ~0,
.init_early = shmobile_init_delay,
.init_irq = r8a7740_init_irq_of,
.init_machine = r8a7740_generic_init,
.init_late = shmobile_init_late,
.dt_compat = r8a7740_boards_compat_dt,
MACHINE_END
Overall Contributors
Person | Tokens | Prop | Commits | CommitProp |
Kuninori Morimoto | 206 | 71.53% | 5 | 26.32% |
Magnus Damm | 52 | 18.06% | 8 | 42.11% |
Geert Uytterhoeven | 14 | 4.86% | 3 | 15.79% |
Bastian Hecht | 13 | 4.51% | 1 | 5.26% |
Nico Pitre | 2 | 0.69% | 1 | 5.26% |
Laurent Pinchart | 1 | 0.35% | 1 | 5.26% |
Total | 288 | 100.00% | 19 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.