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>
*/
#include <common.h>
#include <command.h>
#include <init.h>
#include <linux/compiler.h>

View File

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

View File

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

View File

@ -11,6 +11,7 @@
#include <asm/cache.h>
#ifndef __ASSEMBLY__
#include <linux/types.h>
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>
*/
#include <common.h>
#include <command.h>
#include <cpu_func.h>
#include <asm/global_data.h>

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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