From: "Steven J. Hill" <Steven.Hill@xxxxxxxxxx> In preparation for new hotplug CPU, some housekeeping: * Clean-up header file dependencies, specifically move inclusion of some headers to only the files that need them. * Clean-ups from checkpatch in arch/mips/cavium-octeon/setup.c * Add defining of NR_IRQS_LEGACY for completeness. * Move CVMX_TMP_STR macros from top level to cvmx-asm.h * Update some copyright dates. * Add some missing register include files to top level. Signed-off-by: Steven J. Hill <steven.hill@xxxxxxxxxx> --- .../cavium-octeon/executive/cvmx-helper-board.c | 2 +- .../cavium-octeon/executive/cvmx-helper-jtag.c | 1 + .../cavium-octeon/executive/cvmx-helper-rgmii.c | 1 + .../cavium-octeon/executive/cvmx-helper-sgmii.c | 1 + .../mips/cavium-octeon/executive/cvmx-helper-spi.c | 1 + .../cavium-octeon/executive/cvmx-helper-xaui.c | 1 + arch/mips/cavium-octeon/executive/cvmx-helper.c | 1 + arch/mips/cavium-octeon/executive/cvmx-pko.c | 1 + arch/mips/cavium-octeon/executive/cvmx-spi.c | 1 + arch/mips/cavium-octeon/octeon-platform.c | 1 + arch/mips/cavium-octeon/setup.c | 10 +- arch/mips/cavium-octeon/smp.c | 1 + arch/mips/include/asm/mach-cavium-octeon/irq.h | 8 ++ arch/mips/include/asm/octeon/cvmx-asm.h | 6 +- arch/mips/include/asm/octeon/cvmx-ciu-defs.h | 141 +++++++-------------- arch/mips/include/asm/octeon/cvmx-sysinfo.h | 4 +- arch/mips/include/asm/octeon/cvmx.h | 10 +- 17 files changed, 81 insertions(+), 110 deletions(-) diff --git a/arch/mips/cavium-octeon/executive/cvmx-helper-board.c b/arch/mips/cavium-octeon/executive/cvmx-helper-board.c index ab8362e..22d46fe 100644 --- a/arch/mips/cavium-octeon/executive/cvmx-helper-board.c +++ b/arch/mips/cavium-octeon/executive/cvmx-helper-board.c @@ -32,7 +32,7 @@ */ #include <asm/octeon/octeon.h> -#include <asm/octeon/cvmx-bootinfo.h> +#include <asm/octeon/cvmx-sysinfo.h> #include <asm/octeon/cvmx-config.h> diff --git a/arch/mips/cavium-octeon/executive/cvmx-helper-jtag.c b/arch/mips/cavium-octeon/executive/cvmx-helper-jtag.c index 607b4e6..e417037 100644 --- a/arch/mips/cavium-octeon/executive/cvmx-helper-jtag.c +++ b/arch/mips/cavium-octeon/executive/cvmx-helper-jtag.c @@ -33,6 +33,7 @@ */ #include <asm/octeon/octeon.h> +#include <asm/octeon/cvmx-sysinfo.h> #include <asm/octeon/cvmx-helper-jtag.h> diff --git a/arch/mips/cavium-octeon/executive/cvmx-helper-rgmii.c b/arch/mips/cavium-octeon/executive/cvmx-helper-rgmii.c index d18ed5a..2d84490 100644 --- a/arch/mips/cavium-octeon/executive/cvmx-helper-rgmii.c +++ b/arch/mips/cavium-octeon/executive/cvmx-helper-rgmii.c @@ -30,6 +30,7 @@ * and monitoring. */ #include <asm/octeon/octeon.h> +#include <asm/octeon/cvmx-sysinfo.h> #include <asm/octeon/cvmx-config.h> diff --git a/arch/mips/cavium-octeon/executive/cvmx-helper-sgmii.c b/arch/mips/cavium-octeon/executive/cvmx-helper-sgmii.c index 5782833..a25275d 100644 --- a/arch/mips/cavium-octeon/executive/cvmx-helper-sgmii.c +++ b/arch/mips/cavium-octeon/executive/cvmx-helper-sgmii.c @@ -31,6 +31,7 @@ */ #include <asm/octeon/octeon.h> +#include <asm/octeon/cvmx-sysinfo.h> #include <asm/octeon/cvmx-config.h> diff --git a/arch/mips/cavium-octeon/executive/cvmx-helper-spi.c b/arch/mips/cavium-octeon/executive/cvmx-helper-spi.c index ef16aa0..d9dac21 100644 --- a/arch/mips/cavium-octeon/executive/cvmx-helper-spi.c +++ b/arch/mips/cavium-octeon/executive/cvmx-helper-spi.c @@ -34,6 +34,7 @@ void __cvmx_interrupt_stxx_int_msk_enable(int index); * and monitoring. */ #include <asm/octeon/octeon.h> +#include <asm/octeon/cvmx-sysinfo.h> #include <asm/octeon/cvmx-config.h> #include <asm/octeon/cvmx-spi.h> diff --git a/arch/mips/cavium-octeon/executive/cvmx-helper-xaui.c b/arch/mips/cavium-octeon/executive/cvmx-helper-xaui.c index 19d54e0..d692638 100644 --- a/arch/mips/cavium-octeon/executive/cvmx-helper-xaui.c +++ b/arch/mips/cavium-octeon/executive/cvmx-helper-xaui.c @@ -32,6 +32,7 @@ */ #include <asm/octeon/octeon.h> +#include <asm/octeon/cvmx-sysinfo.h> #include <asm/octeon/cvmx-config.h> diff --git a/arch/mips/cavium-octeon/executive/cvmx-helper.c b/arch/mips/cavium-octeon/executive/cvmx-helper.c index 75108ec..1e807f8 100644 --- a/arch/mips/cavium-octeon/executive/cvmx-helper.c +++ b/arch/mips/cavium-octeon/executive/cvmx-helper.c @@ -31,6 +31,7 @@ * */ #include <asm/octeon/octeon.h> +#include <asm/octeon/cvmx-sysinfo.h> #include <asm/octeon/cvmx-config.h> diff --git a/arch/mips/cavium-octeon/executive/cvmx-pko.c b/arch/mips/cavium-octeon/executive/cvmx-pko.c index 676fab5..ec5b013 100644 --- a/arch/mips/cavium-octeon/executive/cvmx-pko.c +++ b/arch/mips/cavium-octeon/executive/cvmx-pko.c @@ -30,6 +30,7 @@ */ #include <asm/octeon/octeon.h> +#include <asm/octeon/cvmx-sysinfo.h> #include <asm/octeon/cvmx-config.h> #include <asm/octeon/cvmx-pko.h> diff --git a/arch/mips/cavium-octeon/executive/cvmx-spi.c b/arch/mips/cavium-octeon/executive/cvmx-spi.c index f51957a..d346ea7 100644 --- a/arch/mips/cavium-octeon/executive/cvmx-spi.c +++ b/arch/mips/cavium-octeon/executive/cvmx-spi.c @@ -30,6 +30,7 @@ * Support library for the SPI */ #include <asm/octeon/octeon.h> +#include <asm/octeon/cvmx-sysinfo.h> #include <asm/octeon/cvmx-config.h> diff --git a/arch/mips/cavium-octeon/octeon-platform.c b/arch/mips/cavium-octeon/octeon-platform.c index 8505db4..a605191 100644 --- a/arch/mips/cavium-octeon/octeon-platform.c +++ b/arch/mips/cavium-octeon/octeon-platform.c @@ -13,6 +13,7 @@ #include <linux/libfdt.h> #include <asm/octeon/octeon.h> +#include <asm/octeon/cvmx-bootinfo.h> #include <asm/octeon/cvmx-helper-board.h> #ifdef CONFIG_USB diff --git a/arch/mips/cavium-octeon/setup.c b/arch/mips/cavium-octeon/setup.c index a8034d0..2085138 100644 --- a/arch/mips/cavium-octeon/setup.c +++ b/arch/mips/cavium-octeon/setup.c @@ -39,6 +39,7 @@ #include <asm/time.h> #include <asm/octeon/octeon.h> +#include <asm/octeon/cvmx-sysinfo.h> #include <asm/octeon/pci-octeon.h> #include <asm/octeon/cvmx-rst-defs.h> @@ -165,6 +166,7 @@ static int octeon_kexec_prepare(struct kimage *image) int argc = 0, offt; char *str = (char *)image->segment[i].buf; char *ptr = strchr(str, ' '); + while (ptr && (OCTEON_ARGV_MAX_ARGS > argc)) { *ptr = '\0'; if (ptr[1] != ' ') { @@ -357,6 +359,7 @@ void octeon_write_lcd(const char *s) ioremap_nocache(octeon_bootinfo->led_display_base_addr, 8); int i; + for (i = 0; i < 8; i++, s++) { if (*s) iowrite8(*s, lcd_address + i); @@ -429,6 +432,7 @@ static void octeon_restart(char *command) /* Disable all watchdogs before soft reset. They don't get cleared */ #ifdef CONFIG_SMP int cpu; + for_each_online_cpu(cpu) cvmx_write_csr(CVMX_CIU_WDOGX(cpu_logical_map(cpu)), 0); #else @@ -715,11 +719,13 @@ void __init prom_init(void) if (OCTEON_IS_OCTEON2()) { /* I/O clock runs at a different rate than the CPU. */ union cvmx_mio_rst_boot rst_boot; + rst_boot.u64 = cvmx_read_csr(CVMX_MIO_RST_BOOT); octeon_io_clock_rate = 50000000 * rst_boot.s.pnr_mul; } else if (OCTEON_IS_OCTEON3()) { /* I/O clock runs at a different rate than the CPU. */ union cvmx_rst_boot rst_boot; + rst_boot.u64 = cvmx_read_csr(CVMX_RST_BOOT); octeon_io_clock_rate = 50000000 * rst_boot.s.pnr_mul; } else { @@ -927,6 +933,7 @@ static __init void memory_exclude_page(u64 addr, u64 *mem, u64 *size) { if (addr > *mem && addr < *mem + *size) { u64 inc = addr - *mem; + add_memory_region(*mem, inc, BOOT_MEM_RAM); *mem += inc; *size -= inc; @@ -947,6 +954,7 @@ void __init fw_init_cmdline(void) for (i = 0; i < octeon_boot_desc_ptr->argc; i++) { const char *arg = cvmx_phys_to_ptr(octeon_boot_desc_ptr->argv[i]); + if (strlen(arcs_cmdline) + strlen(arg) + 1 < sizeof(arcs_cmdline) - 1) { strcat(arcs_cmdline, " "); @@ -1202,7 +1210,7 @@ void __init device_tree_init(void) init_octeon_system_type(); } -static int __initdata disable_octeon_edac_p; +static int disable_octeon_edac_p __initdata; static int __init disable_octeon_edac(char *str) { diff --git a/arch/mips/cavium-octeon/smp.c b/arch/mips/cavium-octeon/smp.c index 75e7c86..f08f175 100644 --- a/arch/mips/cavium-octeon/smp.c +++ b/arch/mips/cavium-octeon/smp.c @@ -21,6 +21,7 @@ #include <asm/setup.h> #include <asm/octeon/octeon.h> +#include <asm/octeon/cvmx-sysinfo.h> #include "octeon_boot.h" diff --git a/arch/mips/include/asm/mach-cavium-octeon/irq.h b/arch/mips/include/asm/mach-cavium-octeon/irq.h index 64b86b9..7c2bf76 100644 --- a/arch/mips/include/asm/mach-cavium-octeon/irq.h +++ b/arch/mips/include/asm/mach-cavium-octeon/irq.h @@ -11,6 +11,14 @@ #define NR_IRQS OCTEON_IRQ_LAST #define MIPS_CPU_IRQ_BASE OCTEON_IRQ_SW0 +/* + * 0 - unused. + * 1..8 - MIPS + * + * For a total of 9 + */ +#define NR_IRQS_LEGACY 9 + enum octeon_irq { /* 1 - 8 represent the 8 MIPS standard interrupt sources */ OCTEON_IRQ_SW0 = 1, diff --git a/arch/mips/include/asm/octeon/cvmx-asm.h b/arch/mips/include/asm/octeon/cvmx-asm.h index 31eacc2..0c6ae93 100644 --- a/arch/mips/include/asm/octeon/cvmx-asm.h +++ b/arch/mips/include/asm/octeon/cvmx-asm.h @@ -4,7 +4,7 @@ * Contact: support@xxxxxxxxxxxxxxxxxx * This file is part of the OCTEON SDK * - * Copyright (c) 2003-2008 Cavium Networks + * Copyright (c) 2003-2017 Cavium, Inc. * * This file is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License, Version 2, as @@ -32,7 +32,9 @@ #ifndef __CVMX_ASM_H__ #define __CVMX_ASM_H__ -#include <asm/octeon/octeon-model.h> +/* turn the variable name into a string */ +#define CVMX_TMP_STR(x) CVMX_TMP_STR2(x) +#define CVMX_TMP_STR2(x) #x /* other useful stuff */ #define CVMX_SYNC asm volatile ("sync" : : : "memory") diff --git a/arch/mips/include/asm/octeon/cvmx-ciu-defs.h b/arch/mips/include/asm/octeon/cvmx-ciu-defs.h index 6e61792..af9164b 100644 --- a/arch/mips/include/asm/octeon/cvmx-ciu-defs.h +++ b/arch/mips/include/asm/octeon/cvmx-ciu-defs.h @@ -64,94 +64,47 @@ #define CVMX_CIU_INT_SUM1 (CVMX_ADD_IO_SEG(0x0001070000000108ull)) static inline uint64_t CVMX_CIU_MBOX_CLRX(unsigned long offset) { - switch (cvmx_get_octeon_family()) { - case OCTEON_CN30XX & OCTEON_FAMILY_MASK: - return CVMX_ADD_IO_SEG(0x0001070000000680ull) + (offset) * 8; - case OCTEON_CN52XX & OCTEON_FAMILY_MASK: - case OCTEON_CNF71XX & OCTEON_FAMILY_MASK: - case OCTEON_CN61XX & OCTEON_FAMILY_MASK: - return CVMX_ADD_IO_SEG(0x0001070000000680ull) + (offset) * 8; - case OCTEON_CN31XX & OCTEON_FAMILY_MASK: - case OCTEON_CN50XX & OCTEON_FAMILY_MASK: - return CVMX_ADD_IO_SEG(0x0001070000000680ull) + (offset) * 8; - case OCTEON_CN38XX & OCTEON_FAMILY_MASK: - case OCTEON_CN58XX & OCTEON_FAMILY_MASK: - return CVMX_ADD_IO_SEG(0x0001070000000680ull) + (offset) * 8; - case OCTEON_CN56XX & OCTEON_FAMILY_MASK: - return CVMX_ADD_IO_SEG(0x0001070000000680ull) + (offset) * 8; - case OCTEON_CN66XX & OCTEON_FAMILY_MASK: - return CVMX_ADD_IO_SEG(0x0001070000000680ull) + (offset) * 8; - case OCTEON_CN63XX & OCTEON_FAMILY_MASK: - return CVMX_ADD_IO_SEG(0x0001070000000680ull) + (offset) * 8; - case OCTEON_CN68XX & OCTEON_FAMILY_MASK: + if ((cvmx_get_octeon_family() & OCTEON_FAMILY_MASK) == OCTEON_CN68XX) return CVMX_ADD_IO_SEG(0x0001070100100600ull) + (offset) * 8; - } - return CVMX_ADD_IO_SEG(0x0001070000000680ull) + (offset) * 8; + else + return CVMX_ADD_IO_SEG(0x0001070000000680ull) + (offset) * 8; } - static inline uint64_t CVMX_CIU_MBOX_SETX(unsigned long offset) { - switch (cvmx_get_octeon_family()) { - case OCTEON_CN30XX & OCTEON_FAMILY_MASK: - return CVMX_ADD_IO_SEG(0x0001070000000600ull) + (offset) * 8; - case OCTEON_CN52XX & OCTEON_FAMILY_MASK: - case OCTEON_CNF71XX & OCTEON_FAMILY_MASK: - case OCTEON_CN61XX & OCTEON_FAMILY_MASK: - return CVMX_ADD_IO_SEG(0x0001070000000600ull) + (offset) * 8; - case OCTEON_CN31XX & OCTEON_FAMILY_MASK: - case OCTEON_CN50XX & OCTEON_FAMILY_MASK: - return CVMX_ADD_IO_SEG(0x0001070000000600ull) + (offset) * 8; - case OCTEON_CN38XX & OCTEON_FAMILY_MASK: - case OCTEON_CN58XX & OCTEON_FAMILY_MASK: - return CVMX_ADD_IO_SEG(0x0001070000000600ull) + (offset) * 8; - case OCTEON_CN56XX & OCTEON_FAMILY_MASK: - return CVMX_ADD_IO_SEG(0x0001070000000600ull) + (offset) * 8; - case OCTEON_CN66XX & OCTEON_FAMILY_MASK: - return CVMX_ADD_IO_SEG(0x0001070000000600ull) + (offset) * 8; - case OCTEON_CN63XX & OCTEON_FAMILY_MASK: - return CVMX_ADD_IO_SEG(0x0001070000000600ull) + (offset) * 8; - case OCTEON_CN68XX & OCTEON_FAMILY_MASK: + if ((cvmx_get_octeon_family() & OCTEON_FAMILY_MASK) == OCTEON_CN68XX) return CVMX_ADD_IO_SEG(0x0001070100100400ull) + (offset) * 8; - } - return CVMX_ADD_IO_SEG(0x0001070000000600ull) + (offset) * 8; + else + return CVMX_ADD_IO_SEG(0x0001070000000600ull) + (offset) * 8; } - #define CVMX_CIU_NMI (CVMX_ADD_IO_SEG(0x0001070000000718ull)) #define CVMX_CIU_PCI_INTA (CVMX_ADD_IO_SEG(0x0001070000000750ull)) #define CVMX_CIU_PP_BIST_STAT (CVMX_ADD_IO_SEG(0x00010700000007E0ull)) #define CVMX_CIU_PP_DBG (CVMX_ADD_IO_SEG(0x0001070000000708ull)) static inline uint64_t CVMX_CIU_PP_POKEX(unsigned long offset) { - switch (cvmx_get_octeon_family()) { - case OCTEON_CN30XX & OCTEON_FAMILY_MASK: - return CVMX_ADD_IO_SEG(0x0001070000000580ull) + (offset) * 8; - case OCTEON_CN52XX & OCTEON_FAMILY_MASK: - case OCTEON_CNF71XX & OCTEON_FAMILY_MASK: - case OCTEON_CN61XX & OCTEON_FAMILY_MASK: - case OCTEON_CN70XX & OCTEON_FAMILY_MASK: - return CVMX_ADD_IO_SEG(0x0001070000000580ull) + (offset) * 8; - case OCTEON_CN31XX & OCTEON_FAMILY_MASK: - case OCTEON_CN50XX & OCTEON_FAMILY_MASK: - return CVMX_ADD_IO_SEG(0x0001070000000580ull) + (offset) * 8; - case OCTEON_CN38XX & OCTEON_FAMILY_MASK: - case OCTEON_CN58XX & OCTEON_FAMILY_MASK: - return CVMX_ADD_IO_SEG(0x0001070000000580ull) + (offset) * 8; - case OCTEON_CN56XX & OCTEON_FAMILY_MASK: + switch(cvmx_get_octeon_family() & OCTEON_FAMILY_MASK) { + case OCTEON_CN30XX: + case OCTEON_CN31XX: + case OCTEON_CN38XX: + case OCTEON_CN50XX: + case OCTEON_CN52XX: + case OCTEON_CN56XX: + case OCTEON_CN58XX: + case OCTEON_CN61XX: + case OCTEON_CN63XX: + case OCTEON_CN66XX: + case OCTEON_CN70XX: + case OCTEON_CNF71XX: return CVMX_ADD_IO_SEG(0x0001070000000580ull) + (offset) * 8; - case OCTEON_CN66XX & OCTEON_FAMILY_MASK: - return CVMX_ADD_IO_SEG(0x0001070000000580ull) + (offset) * 8; - case OCTEON_CN63XX & OCTEON_FAMILY_MASK: - return CVMX_ADD_IO_SEG(0x0001070000000580ull) + (offset) * 8; - case OCTEON_CN68XX & OCTEON_FAMILY_MASK: - return CVMX_ADD_IO_SEG(0x0001070100100200ull) + (offset) * 8; - case OCTEON_CNF75XX & OCTEON_FAMILY_MASK: - case OCTEON_CN73XX & OCTEON_FAMILY_MASK: - case OCTEON_CN78XX & OCTEON_FAMILY_MASK: + case OCTEON_CN73XX: + case OCTEON_CN78XX: + case OCTEON_CNF75XX: + default: return CVMX_ADD_IO_SEG(0x0001010000030000ull) + (offset) * 8; + case OCTEON_CN68XX: + return CVMX_ADD_IO_SEG(0x0001070100100200ull) + (offset) * 8; } - return CVMX_ADD_IO_SEG(0x0001070000000580ull) + (offset) * 8; } - #define CVMX_CIU_PP_RST (CVMX_ADD_IO_SEG(0x0001070000000700ull)) #define CVMX_CIU_QLM0 (CVMX_ADD_IO_SEG(0x0001070000000780ull)) #define CVMX_CIU_QLM1 (CVMX_ADD_IO_SEG(0x0001070000000788ull)) @@ -179,34 +132,28 @@ static inline uint64_t CVMX_CIU_PP_POKEX(unsigned long offset) #define CVMX_CIU_TIM_MULTI_CAST (CVMX_ADD_IO_SEG(0x000107000000C200ull)) static inline uint64_t CVMX_CIU_WDOGX(unsigned long offset) { - switch (cvmx_get_octeon_family()) { - case OCTEON_CN30XX & OCTEON_FAMILY_MASK: - return CVMX_ADD_IO_SEG(0x0001070000000500ull) + (offset) * 8; - case OCTEON_CN52XX & OCTEON_FAMILY_MASK: - case OCTEON_CNF71XX & OCTEON_FAMILY_MASK: - case OCTEON_CN61XX & OCTEON_FAMILY_MASK: - case OCTEON_CN70XX & OCTEON_FAMILY_MASK: - return CVMX_ADD_IO_SEG(0x0001070000000500ull) + (offset) * 8; - case OCTEON_CN31XX & OCTEON_FAMILY_MASK: - case OCTEON_CN50XX & OCTEON_FAMILY_MASK: - return CVMX_ADD_IO_SEG(0x0001070000000500ull) + (offset) * 8; - case OCTEON_CN38XX & OCTEON_FAMILY_MASK: - case OCTEON_CN58XX & OCTEON_FAMILY_MASK: - return CVMX_ADD_IO_SEG(0x0001070000000500ull) + (offset) * 8; - case OCTEON_CN56XX & OCTEON_FAMILY_MASK: + switch(cvmx_get_octeon_family() & OCTEON_FAMILY_MASK) { + case OCTEON_CN30XX: + case OCTEON_CN31XX: + case OCTEON_CN38XX: + case OCTEON_CN50XX: + case OCTEON_CN52XX: + case OCTEON_CN56XX: + case OCTEON_CN58XX: + case OCTEON_CN61XX: + case OCTEON_CN63XX: + case OCTEON_CN66XX: + case OCTEON_CN70XX: + case OCTEON_CNF71XX: return CVMX_ADD_IO_SEG(0x0001070000000500ull) + (offset) * 8; - case OCTEON_CN66XX & OCTEON_FAMILY_MASK: - return CVMX_ADD_IO_SEG(0x0001070000000500ull) + (offset) * 8; - case OCTEON_CN63XX & OCTEON_FAMILY_MASK: - return CVMX_ADD_IO_SEG(0x0001070000000500ull) + (offset) * 8; - case OCTEON_CN68XX & OCTEON_FAMILY_MASK: - return CVMX_ADD_IO_SEG(0x0001070100100000ull) + (offset) * 8; - case OCTEON_CNF75XX & OCTEON_FAMILY_MASK: - case OCTEON_CN73XX & OCTEON_FAMILY_MASK: - case OCTEON_CN78XX & OCTEON_FAMILY_MASK: + case OCTEON_CN73XX: + case OCTEON_CN78XX: + case OCTEON_CNF75XX: + default: return CVMX_ADD_IO_SEG(0x0001010000020000ull) + (offset) * 8; + case OCTEON_CN68XX: + return CVMX_ADD_IO_SEG(0x0001070100100000ull) + (offset) * 8; } - return CVMX_ADD_IO_SEG(0x0001070000000500ull) + (offset) * 8; } union cvmx_ciu_bist { diff --git a/arch/mips/include/asm/octeon/cvmx-sysinfo.h b/arch/mips/include/asm/octeon/cvmx-sysinfo.h index c6c3ee3..ea1381a 100644 --- a/arch/mips/include/asm/octeon/cvmx-sysinfo.h +++ b/arch/mips/include/asm/octeon/cvmx-sysinfo.h @@ -4,7 +4,7 @@ * Contact: support@xxxxxxxxxxxxxxxxxx * This file is part of the OCTEON SDK * - * Copyright (c) 2003-2016 Cavium, Inc. + * Copyright (c) 2003-2017 Cavium, Inc. * * This file is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License, Version 2, as @@ -32,7 +32,7 @@ #ifndef __CVMX_SYSINFO_H__ #define __CVMX_SYSINFO_H__ -#include "cvmx-coremask.h" +#include <asm/octeon/cvmx-bootinfo.h> #define OCTEON_SERIAL_LEN 20 /** diff --git a/arch/mips/include/asm/octeon/cvmx.h b/arch/mips/include/asm/octeon/cvmx.h index 25854ab..392556a 100644 --- a/arch/mips/include/asm/octeon/cvmx.h +++ b/arch/mips/include/asm/octeon/cvmx.h @@ -54,8 +54,7 @@ enum cvmx_mips_space { #endif #include <asm/octeon/cvmx-asm.h> -#include <asm/octeon/cvmx-packet.h> -#include <asm/octeon/cvmx-sysinfo.h> +#include <asm/octeon/octeon-model.h> #include <asm/octeon/cvmx-ciu-defs.h> #include <asm/octeon/cvmx-ciu3-defs.h> @@ -68,8 +67,9 @@ enum cvmx_mips_space { #include <asm/octeon/cvmx-led-defs.h> #include <asm/octeon/cvmx-mio-defs.h> #include <asm/octeon/cvmx-pow-defs.h> +#include <asm/octeon/cvmx-rst-defs.h> +#include <asm/octeon/cvmx-rnm-defs.h> -#include <asm/octeon/cvmx-bootinfo.h> #include <asm/octeon/cvmx-bootmem.h> #include <asm/octeon/cvmx-l2c.h> @@ -102,10 +102,6 @@ static inline uint32_t cvmx_get_proc_id(void) return id; } -/* turn the variable name into a string */ -#define CVMX_TMP_STR(x) CVMX_TMP_STR2(x) -#define CVMX_TMP_STR2(x) #x - /** * Builds a bit mask given the required size in bits. * -- 2.1.4