/* * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. * * Copyright (C) 2011 by Kevin Cernekee (cernekee@gmail.com) * * Definitions for BMIPS processors */ #ifndef _ASM_BMIPS_H #define _ASM_BMIPS_H #include <linux/compiler.h> #include <linux/linkage.h> #include <asm/addrspace.h> #include <asm/mipsregs.h> #include <asm/hazards.h> /* NOTE: the CBR register returns a PA, and it can be above 0xff00_0000 */ #define BMIPS_GET_CBR() ((void __iomem *)(CKSEG1 | \ (unsigned long) \ ((read_c0_brcm_cbr() >> 18) << 18))) #define BMIPS_RAC_CONFIG 0x00000000 #define BMIPS_RAC_ADDRESS_RANGE 0x00000004 #define BMIPS_RAC_CONFIG_1 0x00000008 #define BMIPS_L2_CONFIG 0x0000000c #define BMIPS_LMB_CONTROL 0x0000001c #define BMIPS_SYSTEM_BASE 0x00000020 #define BMIPS_PERF_GLOBAL_CONTROL 0x00020000 #define BMIPS_PERF_CONTROL_0 0x00020004 #define BMIPS_PERF_CONTROL_1 0x00020008 #define BMIPS_PERF_COUNTER_0 0x00020010 #define BMIPS_PERF_COUNTER_1 0x00020014 #define BMIPS_PERF_COUNTER_2 0x00020018 #define BMIPS_PERF_COUNTER_3 0x0002001c #define BMIPS_RELO_VECTOR_CONTROL_0 0x00030000 #define BMIPS_RELO_VECTOR_CONTROL_1 0x00038000 #define BMIPS_NMI_RESET_VEC 0x80000000 #define BMIPS_WARM_RESTART_VEC 0x80000380 #define ZSCM_REG_BASE 0x97000000 #if !defined(__ASSEMBLY__) #include <linux/cpumask.h> #include <asm/r4kcache.h> #include <asm/smp-ops.h> extern const struct plat_smp_ops bmips43xx_smp_ops; extern const struct plat_smp_ops bmips5000_smp_ops;
static inline int register_bmips_smp_ops(void) { #if IS_ENABLED(CONFIG_CPU_BMIPS) && IS_ENABLED(CONFIG_SMP) switch (current_cpu_type()) { case CPU_BMIPS32: case CPU_BMIPS3300: return register_up_smp_ops(); case CPU_BMIPS4350: case CPU_BMIPS4380: register_smp_ops(&bmips43xx_smp_ops); break; case CPU_BMIPS5000: register_smp_ops(&bmips5000_smp_ops); break; default: return -ENODEV; } return 0; #else return -ENODEV; #endif }Contributors
Person | Tokens | Prop | Commits | CommitProp |
Jonas Gorski | 76 | 100.00% | 1 | 100.00% |
Total | 76 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Ralf Bächle | 44 | 69.84% | 1 | 50.00% |
Kevin Cernekee | 19 | 30.16% | 1 | 50.00% |
Total | 63 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Ralf Bächle | 35 | 70.00% | 1 | 50.00% |
Kevin Cernekee | 15 | 30.00% | 1 | 50.00% |
Total | 50 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Florian Fainelli | 69 | 100.00% | 1 | 100.00% |
Total | 69 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Kevin Cernekee | 209 | 46.34% | 2 | 25.00% |
Jonas Gorski | 85 | 18.85% | 2 | 25.00% |
Ralf Bächle | 79 | 17.52% | 1 | 12.50% |
Florian Fainelli | 76 | 16.85% | 2 | 25.00% |
Matt Redfearn | 2 | 0.44% | 1 | 12.50% |
Total | 451 | 100.00% | 8 | 100.00% |