]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
m68k: Remove common.h usage
authorTom Rini <trini@konsulko.com>
Thu, 12 Oct 2023 23:03:56 +0000 (19:03 -0400)
committerTom Rini <trini@konsulko.com>
Tue, 24 Oct 2023 20:34:45 +0000 (16:34 -0400)
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>
Acked-by: Angelo Dureghello <angelo@kernel-space.org>
39 files changed:
arch/m68k/cpu/mcf523x/cpu.c
arch/m68k/cpu/mcf523x/cpu_init.c
arch/m68k/cpu/mcf523x/interrupts.c
arch/m68k/cpu/mcf523x/speed.c
arch/m68k/cpu/mcf52x2/cpu.c
arch/m68k/cpu/mcf52x2/cpu_init.c
arch/m68k/cpu/mcf52x2/interrupts.c
arch/m68k/cpu/mcf52x2/speed.c
arch/m68k/cpu/mcf530x/cpu.c
arch/m68k/cpu/mcf530x/cpu_init.c
arch/m68k/cpu/mcf530x/interrupts.c
arch/m68k/cpu/mcf530x/speed.c
arch/m68k/cpu/mcf532x/cpu.c
arch/m68k/cpu/mcf532x/cpu_init.c
arch/m68k/cpu/mcf532x/interrupts.c
arch/m68k/cpu/mcf532x/speed.c
arch/m68k/cpu/mcf5445x/cpu.c
arch/m68k/cpu/mcf5445x/cpu_init.c
arch/m68k/cpu/mcf5445x/dspi.c
arch/m68k/cpu/mcf5445x/interrupts.c
arch/m68k/cpu/mcf5445x/speed.c
arch/m68k/cpu/mcf5445x/start.S
arch/m68k/include/asm/immap.h
arch/m68k/include/asm/immap_520x.h
arch/m68k/include/asm/immap_5235.h
arch/m68k/include/asm/immap_5272.h
arch/m68k/include/asm/immap_5275.h
arch/m68k/include/asm/immap_5282.h
arch/m68k/include/asm/immap_5301x.h
arch/m68k/include/asm/immap_5307.h
arch/m68k/include/asm/immap_5329.h
arch/m68k/include/asm/immap_5441x.h
arch/m68k/lib/bdinfo.c
arch/m68k/lib/bootm.c
arch/m68k/lib/cache.c
arch/m68k/lib/fec.c
arch/m68k/lib/interrupts.c
arch/m68k/lib/time.c
arch/m68k/lib/traps.c

index bef67767b425d90074039ebee1ca0dbb988acf79..c843a381ea1f68b80b97b3a9532ab9c427f1f4a8 100644 (file)
@@ -8,7 +8,6 @@
  * TsiChung Liew (Tsi-Chung.Liew@freescale.com)
  */
 
-#include <common.h>
 #include <init.h>
 #include <net.h>
 #include <vsprintf.h>
index 10be73822fa5f28a4d08029467a0e5585d22f433..a05cbdcb3852c248af3d0289354b958d33c92bee 100644 (file)
@@ -8,7 +8,6 @@
  * TsiChung Liew (Tsi-Chung.Liew@freescale.com)
  */
 
-#include <common.h>
 #include <cpu_func.h>
 #include <init.h>
 #include <watchdog.h>
index 09c7f9e67cc79f0acd60773c48767c3fdc11f383..46c9207a93bb54559e37cf79e4457234eca7c601 100644 (file)
@@ -6,7 +6,6 @@
  */
 
 /* CPU specific interrupt routine */
-#include <common.h>
 #include <irq_func.h>
 #include <asm/immap.h>
 #include <asm/io.h>
index 6b08a12af0b69f1aa52da4cd53ddac041aa922d1..2eb43cc7eb9a34294a9fa8f4bb6d1d9a673b4469 100644 (file)
@@ -8,7 +8,6 @@
  * TsiChung Liew (Tsi-Chung.Liew@freescale.com)
  */
 
-#include <common.h>
 #include <clock_legacy.h>
 #include <asm/global_data.h>
 #include <asm/processor.h>
index 5042a38b3e9e16c8a46bf345bd29878e499decc8..6bfde5e9bd70369d539602829c70dfa4b932948e 100644 (file)
@@ -13,7 +13,6 @@
  * Copyright (C) 2012 Freescale Semiconductor, Inc. All Rights Reserved.
  */
 
-#include <common.h>
 #include <init.h>
 #include <net.h>
 #include <vsprintf.h>
index 99eb61f16758dbcef1fd21af8940d815b526fc93..4506eb39edfcb1fdb7622d98de8bfcf8acd7982c 100644 (file)
@@ -17,7 +17,7 @@
  * Copyright (C) 2008 Arthur Shipkowski (art@videon-central.com)
  */
 
-#include <common.h>
+#include <config.h>
 #include <cpu_func.h>
 #include <init.h>
 #include <watchdog.h>
@@ -25,7 +25,6 @@
 #include <asm/io.h>
 
 #if defined(CONFIG_CMD_NET)
-#include <config.h>
 #include <net.h>
 #include <asm/fec.h>
 #endif
index c5ed06007369710317b028a9030acbe019456e36..264bdc7d6c7ef5e42b16678fd9b6c42b745bbe8a 100644 (file)
@@ -7,7 +7,6 @@
  * TsiChung Liew (Tsi-Chung.Liew@freescale.com)
  */
 
-#include <common.h>
 #include <irq_func.h>
 #include <watchdog.h>
 #include <asm/processor.h>
index 6c7628252b5945046f292b9df67eb2d07ba568d7..538e4c623d42557332614602b665287d01e480af 100644 (file)
@@ -7,7 +7,6 @@
  * Hayden Fraser (Hayden.Fraser@freescale.com)
  */
 
-#include <common.h>
 #include <clock_legacy.h>
 #include <asm/global_data.h>
 #include <asm/processor.h>
index 53a25d8362cd33e0994bb28ebba3f1bab8c9bc90..92a0ef76895ce5185aaba18fb7d3ae48c973a255 100644 (file)
@@ -4,7 +4,6 @@
  *
  */
 
-#include <common.h>
 #include <command.h>
 #include <init.h>
 #include <vsprintf.h>
index dad47d87ab31ad8d4ab3359770f093a598be0a7d..8f6e668d103a96a501f530950ca300002ba9a4fe 100644 (file)
@@ -4,7 +4,6 @@
  *
  */
 
-#include <common.h>
 #include <cpu_func.h>
 #include <init.h>
 #include <watchdog.h>
index 11686202dc730df28924e8c75425f7d95fc995b6..99cf86385037c5bb6ff27432a922cd7adc4a242c 100644 (file)
@@ -4,7 +4,6 @@
  *
  */
 
-#include <common.h>
 #include <irq_func.h>
 #include <asm/immap.h>
 #include <asm/io.h>
index c8d079016f2e2a9da933547ada0609b02bfb4d0a..6542fc43ab10eefa6bb008c8529c85e1bd143121 100644 (file)
@@ -4,7 +4,6 @@
  *
  */
 
-#include <common.h>
 #include <clock_legacy.h>
 #include <asm/global_data.h>
 #include <asm/processor.h>
index 18d20a8926552134703cc02da7dee26f40cdd5a9..6973af9d045d3531cf4f4520370aadc825db529f 100644 (file)
@@ -8,7 +8,6 @@
  * TsiChung Liew (Tsi-Chung.Liew@freescale.com)
  */
 
-#include <common.h>
 #include <init.h>
 #include <net.h>
 #include <vsprintf.h>
index 844d2cd7600fd62f4060ecae1a0416013905f24e..62a45f96314d210886f08bf9228fb776b64d51a3 100644 (file)
@@ -8,7 +8,6 @@
  * TsiChung Liew (Tsi-Chung.Liew@freescale.com)
  */
 
-#include <common.h>
 #include <cpu_func.h>
 #include <init.h>
 #include <watchdog.h>
index 4f72fa88e58c3a5aacebb9f050dd70ba0df74259..e37893c3e5351f7adf9af5e6306a048ca27d1db7 100644 (file)
@@ -6,7 +6,6 @@
  */
 
 /* CPU specific interrupt routine */
-#include <common.h>
 #include <irq_func.h>
 #include <asm/immap.h>
 #include <asm/io.h>
index 32ffac08135d39f7577840b857b1ad22ba1f52b5..166916526eb930cc47fcbf337b69d2e0055d50e8 100644 (file)
@@ -8,7 +8,6 @@
  * TsiChung Liew (Tsi-Chung.Liew@freescale.com)
  */
 
-#include <common.h>
 #include <clock_legacy.h>
 #include <asm/global_data.h>
 #include <asm/processor.h>
index d9a71c6b920d849384245aea00a8d7fa1534e3e3..b811ac355e4d1c934c08f571244b37615f74e080 100644 (file)
@@ -8,7 +8,6 @@
  * TsiChung Liew (Tsi-Chung.Liew@freescale.com)
  */
 
-#include <common.h>
 #include <init.h>
 #include <net.h>
 #include <vsprintf.h>
index bc3a2f3aed631592db7bfa28d274f4fca56f30e4..3277617120c7edde0024cb4b4e0b92127b80078f 100644 (file)
@@ -8,7 +8,6 @@
  * TsiChung Liew (Tsi-Chung.Liew@freescale.com)
  */
 
-#include <common.h>
 #include <cpu_func.h>
 #include <init.h>
 #include <watchdog.h>
index 456af171a4e23b3e19a5b19c6614860a91ff8db4..13eb6ecee101ad200a1ff0deb2eb27b780fbaeff 100644 (file)
@@ -6,7 +6,6 @@
  * CPU specific dspi routines
  */
 
-#include <common.h>
 #include <asm/immap.h>
 #include <asm/io.h>
 
index 400f3dee879e0096838c6452316dbb333823e617..913290086dca0a0cff08a0a3569998db380645f0 100644 (file)
@@ -9,7 +9,6 @@
  */
 
 /* CPU specific interrupt routine */
-#include <common.h>
 #include <irq_func.h>
 #include <asm/immap.h>
 #include <asm/io.h>
index 5c78eb983496acd8cdf217825c6fcd6783d48a81..41cb9e999adc65e3fb0b52e59ee77705547f6b14 100644 (file)
@@ -5,7 +5,6 @@
  * TsiChung Liew (Tsi-Chung.Liew@freescale.com)
  */
 
-#include <common.h>
 #include <clock_legacy.h>
 #include <asm/global_data.h>
 #include <asm/processor.h>
index 5c3bfff791836b6d7eedda2896101099138daacd..f0264671d386f63cc04c2f4a139bf0dff87f00ba 100644 (file)
@@ -7,7 +7,6 @@
  * TsiChung Liew (Tsi-Chung.Liew@freescale.com)
  */
 
-#include <common.h>
 #include <asm-offsets.h>
 #include <config.h>
 #include <asm/cache.h>
index aafa4f40cb35bde075d8d0169c6dfeb8a20b855f..411b00899c25813e3721ee5adfdef68d21e806c7 100644 (file)
@@ -9,6 +9,7 @@
 #ifndef __IMMAP_H
 #define __IMMAP_H
 
+#include <config.h>
 #if defined(CONFIG_MCF520x)
 #include <asm/immap_520x.h>
 #include <asm/m520x.h>
index 7c7443b96885c7118771529b068ed86813956e62..d3c2f4a4091d6795bf126c342e7d9682f029ac77 100644 (file)
@@ -36,6 +36,7 @@
 #define MMAP_GPIO      (CFG_SYS_MBAR + 0x000A4000)
 #define MMAP_SDRAM     (CFG_SYS_MBAR + 0x000A8000)
 
+#include <linux/types.h>
 #include <asm/coldfire/crossbar.h>
 #include <asm/coldfire/edma.h>
 #include <asm/coldfire/eport.h>
index a1825c2a944fa0dc66b871f201bff1c9f3fa1a29..d9b0be1d7d41ecf4bb7c18acc71d19c82ae9850f 100644 (file)
@@ -46,6 +46,7 @@
 #define MMAP_ETPU      (CFG_SYS_MBAR + 0x001D0000)
 #define MMAP_CAN2      (CFG_SYS_MBAR + 0x001F0000)
 
+#include <linux/types.h>
 #include <asm/coldfire/eport.h>
 #include <asm/coldfire/flexbus.h>
 #include <asm/coldfire/flexcan.h>
index c5c3cc751258c97879484ae5402cb5113a36c55f..5378ed1aac16b73acf4f7aefc4a64c01d516ffc6 100644 (file)
@@ -27,6 +27,7 @@
 #define MMAP_FEC       (CFG_SYS_MBAR + 0x00000840)
 #define MMAP_USB       (CFG_SYS_MBAR + 0x00001000)
 
+#include <linux/types.h>
 #include <asm/coldfire/pwm.h>
 
 /* System configuration registers */
index 9b8d71d30d44cd15f60bf1f2ddb6f2157c9d3952..c4cce3f94f14d0721c5bdf00c63a7e84e2a86d44 100644 (file)
@@ -49,6 +49,7 @@
 #define MMAP_USB       (CFG_SYS_MBAR + 0x001C0000)
 #define MMAP_PWM0      (CFG_SYS_MBAR + 0x001D0000)
 
+#include <linux/types.h>
 #include <asm/coldfire/eport.h>
 #include <asm/coldfire/flexbus.h>
 #include <asm/coldfire/intctrl.h>
index f810a4dd5cb544b0992bdbb60b89ee2b8e073aaf..e5f400e6ae321696b2b400945e5a5c74979f924d 100644 (file)
@@ -45,6 +45,7 @@
 #define MMAP_CFMC      (CFG_SYS_MBAR + 0x001D0000)
 #define MMAP_CFMMEM    (CFG_SYS_MBAR + 0x04000000)
 
+#include <linux/types.h>
 #include <asm/coldfire/eport.h>
 #include <asm/coldfire/flexbus.h>
 #include <asm/coldfire/flexcan.h>
index e1f7858b100762c90451cab521d84cc80f0fab9e..3ade4f04756c3a15b2e9b04ee677a936f327e59a 100644 (file)
@@ -50,6 +50,7 @@
 #define MMAP_IIM       (CFG_SYS_MBAR + 0x000C8000)
 #define MMAP_ESDHC     (CFG_SYS_MBAR + 0x000CC000)
 
+#include <linux/types.h>
 #include <asm/coldfire/crossbar.h>
 #include <asm/coldfire/dspi.h>
 #include <asm/coldfire/edma.h>
index d6442d95b4ba6b4e9c1c2aa8c41171254731d3f2..d96dd146efb0ade5e454814bfdaabcc45047e004 100644 (file)
@@ -17,6 +17,8 @@
 #define MMAP_UART1     (CFG_SYS_MBAR + 0x00000200)
 #define MMAP_GPIO      (CFG_SYS_MBAR + 0x00000244)
 
+#include <linux/types.h>
+
 typedef struct sim {
        u8  rsr;
        u8  sypcr;
index dbf3a2260eed8c2308e9057e7fbb1336a60f74c3..6f1795a207a16adb0f642cbee0c5c4a52e2d37b3 100644 (file)
@@ -51,6 +51,7 @@
 #define MMAP_SSI       0xFC0BC000
 #define MMAP_PLL       0xFC0C0000
 
+#include <linux/types.h>
 #include <asm/coldfire/crossbar.h>
 #include <asm/coldfire/edma.h>
 #include <asm/coldfire/eport.h>
index 708d0db755a847e5175534e12f8d641326056212..c8f3effe2407bae7a8917aa4f38b9c6a2a82ea1f 100644 (file)
@@ -76,6 +76,7 @@
 #define MMAP_CCM       0xEC090000
 #define MMAP_GPIO      0xEC094000
 
+#include <linux/types.h>
 #include <asm/coldfire/crossbar.h>
 #include <asm/coldfire/dspi.h>
 #include <asm/coldfire/edma.h>
index 0b4629f1c8a777c05d7b499c07b35f1ad6b26a78..3719f11c03c6d1a64cb470f407e391902c9481d5 100644 (file)
@@ -6,8 +6,9 @@
  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  */
 
-#include <common.h>
+#include <config.h>
 #include <init.h>
+#include <asm/u-boot.h>
 #include <asm/global_data.h>
 
 DECLARE_GLOBAL_DATA_PTR;
index f18bed235d45a416967822c41260457bc105774c..79d8b34c0d562cb5c11e384fbbdea59948cd80f3 100644 (file)
@@ -4,7 +4,6 @@
  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  */
 
-#include <common.h>
 #include <bootstage.h>
 #include <command.h>
 #include <env.h>
index 57e5632fdb5b81fb3c9425e953c67f372777ae8b..de04124404cf139ecf1e185b389c01e4fe43284d 100644 (file)
@@ -4,7 +4,7 @@
  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  */
 
-#include <common.h>
+#include <config.h>
 #include <cpu_func.h>
 #include <asm/immap.h>
 #include <asm/cache.h>
index eecea7a0235494e977a91c6c80b47ba1de993b66..d6f238e4b347de5f8aed5565b94dfb77376369b2 100644 (file)
@@ -3,8 +3,8 @@
  * (C) 2019 Angelo Dureghello <angelo.dureghello@timesys.com>
  */
 
-#include <common.h>
 #include <asm/global_data.h>
+#include <linux/errno.h>
 #include <linux/libfdt.h>
 #include <fdt_support.h>
 
index 799daab5612d725670caa7ee9a4f7891a4a573db..175ec689533e2a0f5c6f8c9ba098e6b437fce299 100644 (file)
@@ -7,7 +7,7 @@
  * TsiChung Liew (Tsi-Chung.Liew@freescale.com)
  */
 
-#include <common.h>
+#include <stdio.h>
 #include <irq_func.h>
 #include <watchdog.h>
 #include <asm/processor.h>
index 61db1e6c5002deca349e3d258a707a67fe42d0e3..4249488c01d1ab0b65004820971af4403c13f935 100644 (file)
@@ -6,7 +6,6 @@
  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  */
 
-#include <common.h>
 #include <init.h>
 #include <irq_func.h>
 #include <time.h>
index 28fe803928ea71713b8db6b793b160b1c55ad3c8..c283351181d8ea3027b5fc388c5c86f9c3a8cb92 100644 (file)
@@ -7,7 +7,6 @@
  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  */
 
-#include <common.h>
 #include <init.h>
 #include <watchdog.h>
 #include <command.h>