/* * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 as published * by the Free Software Foundation. * * Copyright (C) 2012 Thomas Langer <thomas.langer@lantiq.com> * Copyright (C) 2012 John Crispin <john@phrozen.org> */ #include <linux/kernel.h> #include <asm/cacheflush.h> #include <asm/traps.h> #include <asm/io.h> #include <lantiq_soc.h> #include "../prom.h" #define SOC_FALCON "Falcon" #define SOC_FALCON_D "Falcon-D" #define SOC_FALCON_V "Falcon-V" #define SOC_FALCON_M "Falcon-M" #define COMP_FALCON "lantiq,falcon" #define PART_SHIFT 12 #define PART_MASK 0x0FFFF000 #define REV_SHIFT 28 #define REV_MASK 0xF0000000 #define SREV_SHIFT 22 #define SREV_MASK 0x03C00000 #define TYPE_SHIFT 26 #define TYPE_MASK 0x3C000000 /* reset, nmi and ejtag exception vectors */ #define BOOT_REG_BASE (KSEG1 | 0x1F200000) #define BOOT_RVEC (BOOT_REG_BASE | 0x00) #define BOOT_NVEC (BOOT_REG_BASE | 0x04) #define BOOT_EVEC (BOOT_REG_BASE | 0x08)
void __init ltq_soc_nmi_setup(void) { extern void (*nmi_handler)(void); ltq_w32((unsigned long)&nmi_handler, (void *)BOOT_NVEC); }Contributors
Person | Tokens | Prop | Commits | CommitProp |
John Crispin | 34 | 100.00% | 1 | 100.00% |
Total | 34 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
John Crispin | 34 | 100.00% | 1 | 100.00% |
Total | 34 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
John Crispin | 196 | 100.00% | 2 | 100.00% |
Total | 196 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
John Crispin | 352 | 100.00% | 3 | 100.00% |
Total | 352 | 100.00% | 3 | 100.00% |