mips: Remove common.h usage

We can remove common.h from most cases of the code here, and only a few
places need an additional header instead.

Signed-off-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
Tom Rini 2023-10-12 19:03:58 -04:00
parent 577dddb5b7
commit 8991fed97d
46 changed files with 4 additions and 47 deletions

View file

@ -4,7 +4,6 @@
* Wolfgang Denk, DENX Software Engineering, <wd@denx.de> * Wolfgang Denk, DENX Software Engineering, <wd@denx.de>
*/ */
#include <common.h>
#include <command.h> #include <command.h>
#include <init.h> #include <init.h>
#include <linux/compiler.h> #include <linux/compiler.h>

View file

@ -4,7 +4,6 @@
* Wolfgang Denk, DENX Software Engineering, <wd@denx.de> * Wolfgang Denk, DENX Software Engineering, <wd@denx.de>
*/ */
#include <common.h>
#include <irq_func.h> #include <irq_func.h>
int interrupt_init(void) int interrupt_init(void)

View file

@ -4,7 +4,6 @@
* Wolfgang Denk, DENX Software Engineering, wd@denx.de. * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/ */
#include <common.h>
#include <time.h> #include <time.h>
#include <asm/mipsregs.h> #include <asm/mipsregs.h>

View file

@ -11,6 +11,7 @@
#include <asm/cache.h> #include <asm/cache.h>
#ifndef __ASSEMBLY__ #ifndef __ASSEMBLY__
#include <linux/types.h>
static inline void mips_cache(int op, const volatile void *addr) static inline void mips_cache(int op, const volatile void *addr)
{ {

View file

@ -3,7 +3,6 @@
* Copyright (C) 2020 Stefan Roese <sr@denx.de> * Copyright (C) 2020 Stefan Roese <sr@denx.de>
*/ */
#include <common.h>
#include <command.h> #include <command.h>
#include <cpu_func.h> #include <cpu_func.h>
#include <asm/global_data.h> #include <asm/global_data.h>

View file

@ -4,7 +4,6 @@
* Wolfgang Denk, DENX Software Engineering, wd@denx.de. * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/ */
#include <common.h>
#include <bootstage.h> #include <bootstage.h>
#include <env.h> #include <env.h>
#include <image.h> #include <image.h>

View file

@ -4,7 +4,6 @@
* Wolfgang Denk, DENX Software Engineering, <wd@denx.de> * Wolfgang Denk, DENX Software Engineering, <wd@denx.de>
*/ */
#include <common.h>
#include <cpu_func.h> #include <cpu_func.h>
#include <malloc.h> #include <malloc.h>
#include <asm/cache.h> #include <asm/cache.h>

View file

@ -26,7 +26,6 @@
* terminating R_MIPS_NONE reloc includes no offset. * terminating R_MIPS_NONE reloc includes no offset.
*/ */
#include <common.h>
#include <cpu_func.h> #include <cpu_func.h>
#include <init.h> #include <init.h>
#include <asm/relocs.h> #include <asm/relocs.h>

View file

@ -3,7 +3,6 @@
* Copyright (C) 2020 Stefan Roese <sr@denx.de> * Copyright (C) 2020 Stefan Roese <sr@denx.de>
*/ */
#include <common.h>
#include <cpu_func.h> #include <cpu_func.h>
#include <log.h> #include <log.h>
#include <spl.h> #include <spl.h>

View file

@ -1,6 +1,5 @@
// SPDX-License-Identifier: GPL-2.0+ // SPDX-License-Identifier: GPL-2.0+
#include <common.h>
#include <init.h> #include <init.h>
#include <log.h> #include <log.h>
#include <asm/global_data.h> #include <asm/global_data.h>

View file

@ -10,9 +10,9 @@
* Copyright (C) 2014, Imagination Technologies Ltd. * Copyright (C) 2014, Imagination Technologies Ltd.
*/ */
#include <common.h>
#include <asm/global_data.h> #include <asm/global_data.h>
#include <asm/ptrace.h> #include <asm/ptrace.h>
#include <config.h>
#include <cpu_func.h> #include <cpu_func.h>
#include <hang.h> #include <hang.h>
#include <init.h> #include <init.h>
@ -20,6 +20,7 @@
#include <asm/mipsregs.h> #include <asm/mipsregs.h>
#include <asm/addrspace.h> #include <asm/addrspace.h>
#include <asm/system.h> #include <asm/system.h>
#include <asm/u-boot.h>
DECLARE_GLOBAL_DATA_PTR; DECLARE_GLOBAL_DATA_PTR;

View file

@ -3,7 +3,6 @@
* Copyright (C) 2015-2016 Wills Wang <wills.wang@live.com> * Copyright (C) 2015-2016 Wills Wang <wills.wang@live.com>
*/ */
#include <common.h>
#include <clock_legacy.h> #include <clock_legacy.h>
#include <asm/global_data.h> #include <asm/global_data.h>
#include <asm/io.h> #include <asm/io.h>

View file

@ -4,7 +4,6 @@
* Based on Atheros LSDK/QSDK * Based on Atheros LSDK/QSDK
*/ */
#include <common.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/addrspace.h> #include <asm/addrspace.h>
#include <asm/types.h> #include <asm/types.h>

View file

@ -3,7 +3,6 @@
* Copyright (C) 2016 Marek Vasut <marex@denx.de> * Copyright (C) 2016 Marek Vasut <marex@denx.de>
*/ */
#include <common.h>
#include <clock_legacy.h> #include <clock_legacy.h>
#include <command.h> #include <command.h>
#include <hang.h> #include <hang.h>

View file

@ -3,7 +3,5 @@
* Copyright (C) 2016 Marek Vasut <marex@denx.de> * Copyright (C) 2016 Marek Vasut <marex@denx.de>
*/ */
#include <common.h>
/* The lowlevel_init() is not needed on AR934x */ /* The lowlevel_init() is not needed on AR934x */
void lowlevel_init(void) {} void lowlevel_init(void) {}

View file

@ -5,7 +5,6 @@
* Based on RAM init sequence by Piotr Dymacz <pepe2k@gmail.com> * Based on RAM init sequence by Piotr Dymacz <pepe2k@gmail.com>
*/ */
#include <common.h>
#include <asm/global_data.h> #include <asm/global_data.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/addrspace.h> #include <asm/addrspace.h>

View file

@ -3,7 +3,6 @@
* Copyright (C) 2015-2016 Wills Wang <wills.wang@live.com> * Copyright (C) 2015-2016 Wills Wang <wills.wang@live.com>
*/ */
#include <common.h>
#include <init.h> #include <init.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/addrspace.h> #include <asm/addrspace.h>

View file

@ -3,7 +3,6 @@
* Copyright (C) 2015-2016 Wills Wang <wills.wang@live.com> * Copyright (C) 2015-2016 Wills Wang <wills.wang@live.com>
*/ */
#include <common.h>
#include <init.h> #include <init.h>
#include <asm/global_data.h> #include <asm/global_data.h>
#include <linux/sizes.h> #include <linux/sizes.h>

View file

@ -3,7 +3,6 @@
* Copyright (C) 2015-2016 Wills Wang <wills.wang@live.com> * Copyright (C) 2015-2016 Wills Wang <wills.wang@live.com>
*/ */
#include <common.h>
#include <clock_legacy.h> #include <clock_legacy.h>
#include <asm/global_data.h> #include <asm/global_data.h>
#include <asm/io.h> #include <asm/io.h>

View file

@ -4,7 +4,6 @@
* Based on Atheros LSDK/QSDK * Based on Atheros LSDK/QSDK
*/ */
#include <common.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/addrspace.h> #include <asm/addrspace.h>
#include <asm/types.h> #include <asm/types.h>

View file

@ -3,7 +3,6 @@
* Copyright (C) 2019 Rosy Song <rosysong@rosinson.com> * Copyright (C) 2019 Rosy Song <rosysong@rosinson.com>
*/ */
#include <common.h>
#include <clock_legacy.h> #include <clock_legacy.h>
#include <log.h> #include <log.h>
#include <asm/global_data.h> #include <asm/global_data.h>

View file

@ -3,7 +3,5 @@
* Copyright (C) 2019 Rosy Song <rosysong@rosinson.com> * Copyright (C) 2019 Rosy Song <rosysong@rosinson.com>
*/ */
#include <common.h>
/* The lowlevel_init() is not needed on QCA956X */ /* The lowlevel_init() is not needed on QCA956X */
void lowlevel_init(void) {} void lowlevel_init(void) {}

View file

@ -5,7 +5,6 @@
* Based on QSDK * Based on QSDK
*/ */
#include <common.h>
#include <asm/global_data.h> #include <asm/global_data.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/addrspace.h> #include <asm/addrspace.h>

View file

@ -4,7 +4,6 @@
* Copyright (C) 2018-2019 Rosy Song <rosysong@rosinson.com> * Copyright (C) 2018-2019 Rosy Song <rosysong@rosinson.com>
*/ */
#include <common.h>
#include <linux/bitops.h> #include <linux/bitops.h>
#include <linux/delay.h> #include <linux/delay.h>
#include <linux/errno.h> #include <linux/errno.h>

View file

@ -4,7 +4,6 @@
* Copyright (C) 2017 Álvaro Fernández Rojas <noltari@gmail.com> * Copyright (C) 2017 Álvaro Fernández Rojas <noltari@gmail.com>
*/ */
#include <common.h>
#include <init.h> #include <init.h>
#include <log.h> #include <log.h>
#include <ram.h> #include <ram.h>

View file

@ -1,7 +1,6 @@
// SPDX-License-Identifier: GPL-2.0+ // SPDX-License-Identifier: GPL-2.0+
#include <config.h> #include <config.h>
#include <common.h>
#include <asm/io.h> #include <asm/io.h>
#include <linux/bitops.h> #include <linux/bitops.h>
#include <mach/jz4780.h> #include <mach/jz4780.h>

View file

@ -7,7 +7,6 @@
*/ */
#include <config.h> #include <config.h>
#include <common.h>
#include <cpu_func.h> #include <cpu_func.h>
#include <hang.h> #include <hang.h>
#include <image.h> #include <image.h>

View file

@ -7,7 +7,6 @@
*/ */
#include <config.h> #include <config.h>
#include <common.h>
#include <asm/io.h> #include <asm/io.h>
#include <linux/bitops.h> #include <linux/bitops.h>
#include <linux/delay.h> #include <linux/delay.h>

View file

@ -7,7 +7,6 @@
*/ */
#include <config.h> #include <config.h>
#include <common.h>
#include <asm/io.h> #include <asm/io.h>
#include <linux/bitops.h> #include <linux/bitops.h>
#include <mach/jz4780.h> #include <mach/jz4780.h>

View file

@ -9,7 +9,6 @@
* Copyright (c) 2006-2013 Ingenic Semiconductor * Copyright (c) 2006-2013 Ingenic Semiconductor
*/ */
#include <common.h>
#include <hang.h> #include <hang.h>
#include <init.h> #include <init.h>
#include <asm/io.h> #include <asm/io.h>

View file

@ -7,7 +7,6 @@
*/ */
#include <config.h> #include <config.h>
#include <common.h>
#include <div64.h> #include <div64.h>
#include <init.h> #include <init.h>
#include <irq_func.h> #include <irq_func.h>

View file

@ -3,7 +3,6 @@
* Copyright (c) 2018 Microsemi Corporation * Copyright (c) 2018 Microsemi Corporation
*/ */
#include <common.h>
#include <init.h> #include <init.h>
#include <asm/global_data.h> #include <asm/global_data.h>
#include <linux/bitops.h> #include <linux/bitops.h>

View file

@ -3,7 +3,6 @@
* Copyright (c) 2018 Microsemi Corporation * Copyright (c) 2018 Microsemi Corporation
*/ */
#include <common.h>
#include <init.h> #include <init.h>
#include <asm/global_data.h> #include <asm/global_data.h>

View file

@ -3,7 +3,6 @@
* Copyright (c) 2018 Microsemi Corporation * Copyright (c) 2018 Microsemi Corporation
*/ */
#include <common.h>
#include <asm/io.h> #include <asm/io.h>
#include <linux/bitops.h> #include <linux/bitops.h>

View file

@ -6,6 +6,7 @@
#ifndef __ASM_MACH_DDR_H #ifndef __ASM_MACH_DDR_H
#define __ASM_MACH_DDR_H #define __ASM_MACH_DDR_H
#include <config.h>
#include <asm/cacheops.h> #include <asm/cacheops.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/reboot.h> #include <asm/reboot.h>

View file

@ -3,7 +3,6 @@
* Copyright (c) 2018 Microsemi Corporation * Copyright (c) 2018 Microsemi Corporation
*/ */
#include <common.h>
#include <log.h> #include <log.h>
#include <asm/io.h> #include <asm/io.h>

View file

@ -3,8 +3,6 @@
* Copyright (c) 2018 Microsemi Corporation * Copyright (c) 2018 Microsemi Corporation
*/ */
#include <common.h>
#include <asm/sections.h> #include <asm/sections.h>
#include <asm/io.h> #include <asm/io.h>

View file

@ -3,7 +3,6 @@
* Copyright (C) 2018 Stefan Roese <sr@denx.de> * Copyright (C) 2018 Stefan Roese <sr@denx.de>
*/ */
#include <common.h>
#include <event.h> #include <event.h>
#include <init.h> #include <init.h>
#include <malloc.h> #include <malloc.h>

View file

@ -5,7 +5,6 @@
* Author: Weijie Gao <weijie.gao@mediatek.com> * Author: Weijie Gao <weijie.gao@mediatek.com>
*/ */
#include <common.h>
#include <asm/addrspace.h> #include <asm/addrspace.h>
#include <asm/cacheops.h> #include <asm/cacheops.h>
#include <asm/global_data.h> #include <asm/global_data.h>

View file

@ -5,7 +5,6 @@
* Author: Weijie Gao <weijie.gao@mediatek.com> * Author: Weijie Gao <weijie.gao@mediatek.com>
*/ */
#include <common.h>
#include <linux/bitops.h> #include <linux/bitops.h>
#include <linux/delay.h> #include <linux/delay.h>
#include <linux/io.h> #include <linux/io.h>

View file

@ -5,7 +5,6 @@
* Author: Weijie Gao <weijie.gao@mediatek.com> * Author: Weijie Gao <weijie.gao@mediatek.com>
*/ */
#include <common.h>
#include <asm/addrspace.h> #include <asm/addrspace.h>
#include <asm/global_data.h> #include <asm/global_data.h>
#include <linux/bitops.h> #include <linux/bitops.h>

View file

@ -5,7 +5,6 @@
* Author: Weijie Gao <weijie.gao@mediatek.com> * Author: Weijie Gao <weijie.gao@mediatek.com>
*/ */
#include <common.h>
#include <clk.h> #include <clk.h>
#include <dm.h> #include <dm.h>
#include <asm/global_data.h> #include <asm/global_data.h>

View file

@ -5,7 +5,6 @@
* Author: Weijie Gao <weijie.gao@mediatek.com> * Author: Weijie Gao <weijie.gao@mediatek.com>
*/ */
#include <common.h>
#include <asm/io.h> #include <asm/io.h>
#include "mt7628.h" #include "mt7628.h"

View file

@ -5,7 +5,6 @@
* Author: Weijie Gao <weijie.gao@mediatek.com> * Author: Weijie Gao <weijie.gao@mediatek.com>
*/ */
#include <common.h>
#include <init.h> #include <init.h>
#include <spl.h> #include <spl.h>
#include <asm/sections.h> #include <asm/sections.h>

View file

@ -4,7 +4,6 @@
* Purna Chandra Mandal <purna.mandal@microchip.com> * Purna Chandra Mandal <purna.mandal@microchip.com>
* *
*/ */
#include <common.h>
#include <clk.h> #include <clk.h>
#include <dm.h> #include <dm.h>
#include <event.h> #include <event.h>

View file

@ -4,7 +4,6 @@
* *
*/ */
#include <common.h>
#include <asm/io.h> #include <asm/io.h>
#include <mach/pic32.h> #include <mach/pic32.h>