Release 4.9 arch/arm/mach-shmobile/setup-r8a7778.c
/*
* r8a7778 processor support
*
* Copyright (C) 2013 Renesas Solutions Corp.
* Copyright (C) 2013 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
* Copyright (C) 2013 Cogent Embedded, Inc.
*
* 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/clk/renesas.h>
#include <linux/io.h>
#include <linux/irqchip.h>
#include <asm/mach/arch.h>
#include "common.h"
#define MODEMR 0xffcc0020
static void __init r8a7778_timer_init(void)
{
u32 mode;
void __iomem *modemr = ioremap_nocache(MODEMR, 4);
BUG_ON(!modemr);
mode = ioread32(modemr);
iounmap(modemr);
r8a7778_clocks_init(mode);
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
kuninori morimoto | kuninori morimoto | 26 | 55.32% | 2 | 40.00% |
ulrich hecht | ulrich hecht | 14 | 29.79% | 1 | 20.00% |
sergei shtylyov | sergei shtylyov | 4 | 8.51% | 1 | 20.00% |
max filippov | max filippov | 3 | 6.38% | 1 | 20.00% |
| Total | 47 | 100.00% | 5 | 100.00% |
#define INT2SMSKCR0 0x82288
/* 0xfe782288 */
#define INT2SMSKCR1 0x8228c
/* 0xfe78228c */
#define INT2NTSR0 0x00018
/* 0xfe700018 */
#define INT2NTSR1 0x0002c
/* 0xfe70002c */
static void __init r8a7778_init_irq_dt(void)
{
void __iomem *base = ioremap_nocache(0xfe700000, 0x00100000);
BUG_ON(!base);
irqchip_init();
/* route all interrupts to ARM */
__raw_writel(0x73ffffff, base + INT2NTSR0);
__raw_writel(0xffffffff, base + INT2NTSR1);
/* unmask all known interrupts in INTCS2 */
__raw_writel(0x08330773, base + INT2SMSKCR0);
__raw_writel(0x00311110, base + INT2SMSKCR1);
iounmap(base);
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
kuninori morimoto | kuninori morimoto | 72 | 98.63% | 2 | 66.67% |
geert uytterhoeven | geert uytterhoeven | 1 | 1.37% | 1 | 33.33% |
| Total | 73 | 100.00% | 3 | 100.00% |
static const char *const r8a7778_compat_dt[] __initconst = {
"renesas,r8a7778",
NULL,
};
DT_MACHINE_START(R8A7778_DT, "Generic R8A7778 (Flattened Device Tree)")
.init_early = shmobile_init_delay,
.init_irq = r8a7778_init_irq_dt,
.init_late = shmobile_init_late,
.init_time = r8a7778_timer_init,
.dt_compat = r8a7778_compat_dt,
MACHINE_END
Overall Contributors
| Person | Tokens | Prop | Commits | CommitProp |
kuninori morimoto | kuninori morimoto | 157 | 75.85% | 4 | 28.57% |
ulrich hecht | ulrich hecht | 30 | 14.49% | 2 | 14.29% |
sergei shtylyov | sergei shtylyov | 7 | 3.38% | 1 | 7.14% |
magnus damm | magnus damm | 4 | 1.93% | 1 | 7.14% |
max filippov | max filippov | 3 | 1.45% | 1 | 7.14% |
nicolas pitre | nicolas pitre | 2 | 0.97% | 1 | 7.14% |
geert uytterhoeven | geert uytterhoeven | 2 | 0.97% | 2 | 14.29% |
simon horman | simon horman | 1 | 0.48% | 1 | 7.14% |
laurent pinchart | laurent pinchart | 1 | 0.48% | 1 | 7.14% |
| Total | 207 | 100.00% | 14 | 100.00% |