]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
ram: Remove <common.h> and add needed includes
authorTom Rini <trini@konsulko.com>
Thu, 2 May 2024 01:31:11 +0000 (19:31 -0600)
committerTom Rini <trini@konsulko.com>
Tue, 7 May 2024 14:00:56 +0000 (08:00 -0600)
Remove <common.h> from this driver directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
41 files changed:
drivers/ram/aspeed/sdram_ast2500.c
drivers/ram/aspeed/sdram_ast2600.c
drivers/ram/bmips_ram.c
drivers/ram/cadence/ddr_ctrl.c
drivers/ram/imxrt_sdram.c
drivers/ram/k3-am654-ddrss.c
drivers/ram/k3-ddrss/k3-ddrss.c
drivers/ram/mediatek/ddr3-mt7629.c
drivers/ram/mpc83xx_sdram.c
drivers/ram/ram-uclass.c
drivers/ram/renesas/rzn1/ddr_async.c
drivers/ram/rockchip/dmc-rk3368.c
drivers/ram/rockchip/sdram_common.c
drivers/ram/rockchip/sdram_pctl_px30.c
drivers/ram/rockchip/sdram_phy_px30.c
drivers/ram/rockchip/sdram_px30.c
drivers/ram/rockchip/sdram_rk3066.c
drivers/ram/rockchip/sdram_rk3128.c
drivers/ram/rockchip/sdram_rk3188.c
drivers/ram/rockchip/sdram_rk322x.c
drivers/ram/rockchip/sdram_rk3288.c
drivers/ram/rockchip/sdram_rk3308.c
drivers/ram/rockchip/sdram_rk3328.c
drivers/ram/rockchip/sdram_rk3399.c
drivers/ram/rockchip/sdram_rk3568.c
drivers/ram/rockchip/sdram_rk3588.c
drivers/ram/rockchip/sdram_rv1126.c
drivers/ram/sandbox_ram.c
drivers/ram/sifive/sifive_ddr.c
drivers/ram/starfive/ddrcsr_boot.c
drivers/ram/starfive/ddrphy_start.c
drivers/ram/starfive/ddrphy_train.c
drivers/ram/starfive/ddrphy_utils.c
drivers/ram/starfive/starfive_ddr.c
drivers/ram/starfive/starfive_ddr.h
drivers/ram/stm32_sdram.c
drivers/ram/stm32mp1/stm32mp1_ddr.c
drivers/ram/stm32mp1/stm32mp1_interactive.c
drivers/ram/stm32mp1/stm32mp1_ram.c
drivers/ram/stm32mp1/stm32mp1_tests.c
drivers/ram/sunxi/dram_sun20i_d1.c

index dc466a88e71232f55ccde1c2ac73f53d99b9e55d..0d6ab79f96fc0535afefc96aec382cf6132cf2ce 100644 (file)
@@ -5,7 +5,7 @@
  * Copyright 2016 Google, Inc
  */
 
-#include <common.h>
+#include <config.h>
 #include <clk.h>
 #include <dm.h>
 #include <errno.h>
index d463933363ee4494e2261db37a20f13b829726b3..55e80fba3dc0beced1b7129310fd574ea1e626e4 100644 (file)
@@ -2,7 +2,7 @@
 /*
  * Copyright (C) ASPEED Technology Inc.
  */
-#include <common.h>
+#include <config.h>
 #include <clk.h>
 #include <dm.h>
 #include <errno.h>
index 98045248ecfb12403fc90afddd40cafe5fc6bb73..760bebdbba04111f2a795dfac11a898bc535e531 100644 (file)
@@ -7,7 +7,6 @@
  *     Copyright (C) 2009 Florian Fainelli <florian@openwrt.org>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <init.h>
index 3e5959a84a37061fb7291beba6580bcf1d5131eb..0fa60e766a7e611734aeccf0c4292fcd69a35184 100644 (file)
@@ -24,7 +24,6 @@
  * bandwidth allocated to each AXI slave can be set.
  */
 
-#include <common.h>
 #include <linux/delay.h>
 #include <linux/sizes.h>
 #include <asm/io.h>
index 6a15242c20cc5327d9afb67845a7aa4736303837..3df106c9b79ad76055cb67fefa601d67767c9878 100644 (file)
@@ -4,7 +4,6 @@
  * Author(s): Giulio Benetti <giulio.benetti@benettiengineering.com>
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <dm/device_compat.h>
index cff8ffc89295d23c494fa0070fb64e3f17943b40..21ff9d761e1bb17a34fd2c6446c78a7c7a0bc75a 100644 (file)
@@ -6,7 +6,6 @@
  *     Lokesh Vutla <lokeshvutla@ti.com>
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <log.h>
index a5c9b82cf1dae59a5518c0f719d4169ad2838bdb..525b6d5b79fce18819946e1714e98290057ccccf 100644 (file)
@@ -5,7 +5,6 @@
  * Copyright (C) 2020-2021 Texas Instruments Incorporated - https://www.ti.com/
  */
 
-#include <common.h>
 #include <config.h>
 #include <clk.h>
 #include <div64.h>
index f65fcf179cf65b4fd58647e6df482ee3aeabbb2f..c27c4593b9d90894d6864b51566da49c0cb22e93 100644 (file)
@@ -8,7 +8,7 @@
  */
 
 #include <clk.h>
-#include <common.h>
+#include <config.h>
 #include <dm.h>
 #include <ram.h>
 #include <asm/io.h>
index 11676d4fae7e1d44de1ff495230bfd02ea7b4080..28a663289a23d0ecadaa2ff14987d6132e6f4569 100644 (file)
@@ -4,7 +4,6 @@
  * Mario Six, Guntermann & Drunck GmbH, mario.six@gdsys.cc
  */
 
-#include <common.h>
 #include <dm.h>
 #include <init.h>
 #include <log.h>
index 4e21240fd4cb8f95415320afad68e8c5faf7f482..a33d583cc4486dd5bcd7e8edc826e8693a6c6add 100644 (file)
@@ -6,7 +6,6 @@
 
 #define LOG_CATEGORY UCLASS_RAM
 
-#include <common.h>
 #include <ram.h>
 #include <dm.h>
 #include <errno.h>
index 7a81497bc92b1c2e2fdb5bb8b29d3b7bf60e0c7f..4d470aae1914c104f117107a45fa70bb32add21c 100644 (file)
@@ -7,7 +7,6 @@
  *
  * Copyright (C) 2015 Renesas Electronics Europe Ltd
  */
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <dm/device_compat.h>
index 5279bf0a15485d7f4d612b77abbfa065dd35af61..42114a5aa917118f0978d8cf30da0afce86c2ba7 100644 (file)
@@ -3,7 +3,7 @@
  * (C) Copyright 2017 Theobroma Systems Design und Consulting GmbH
  */
 
-#include <common.h>
+#include <config.h>
 #include <clk.h>
 #include <dm.h>
 #include <hang.h>
index 60fc90d0a5c02c0f9e68cb693fabcc055d18ed99..b7a8fce607c8d9afb2ddbbbdfc9bfc7c0f3d0e8a 100644 (file)
@@ -3,7 +3,7 @@
  * (C) Copyright 2018 Rockchip Electronics Co., Ltd.
  */
 
-#include <common.h>
+#include <config.h>
 #include <debug_uart.h>
 #include <ram.h>
 #include <asm/io.h>
index e5c80fb83b3f3019c8222287fde1a686e9e008b7..3ec98af536e8bd588ca34694e5611924aad7c1ca 100644 (file)
@@ -3,7 +3,6 @@
  * (C) Copyright 2018 Rockchip Electronics Co., Ltd.
  */
 
-#include <common.h>
 #include <ram.h>
 #include <asm/io.h>
 #include <asm/arch-rockchip/sdram.h>
index f7f6de1ba98bb322a377e5db9008f5a74da83556..5416eef387888401108eb2328d8d5d41c085c233 100644 (file)
@@ -3,7 +3,6 @@
  * (C) Copyright 2018 Rockchip Electronics Co., Ltd.
  */
 
-#include <common.h>
 #include <ram.h>
 #include <asm/io.h>
 #include <asm/arch-rockchip/sdram.h>
index 21498e89570f666b3fa0e1d0ce70158168028f3b..37e621205047404729b6742d0873e8443c83beb3 100644 (file)
@@ -3,7 +3,7 @@
  * (C) Copyright 2018 Rockchip Electronics Co., Ltd.
  */
 
-#include <common.h>
+#include <config.h>
 #include <debug_uart.h>
 #include <dm.h>
 #include <init.h>
index 562cf544c909e800fb6478fae7bd0292a94f08d3..a280e2d9fa1d585da7154db23f429167e8f8c0b2 100644 (file)
@@ -6,7 +6,7 @@
  * Adapted from the very similar rk3188 ddr init.
  */
 
-#include <common.h>
+#include <config.h>
 #include <clk.h>
 #include <dm.h>
 #include <dt-structs.h>
index ded65393806e00d6a5497af3b522dd474fbcc98c..66611f80b2dad90a374733eefa8f82eca9608794 100644 (file)
@@ -3,7 +3,7 @@
  * (C) Copyright 2017 Rockchip Electronics Co., Ltd.
  */
 
-#include <common.h>
+#include <config.h>
 #include <dm.h>
 #include <log.h>
 #include <ram.h>
index e1b28c6e5933431a4d4d263fc092e36a708e2d94..618bce5c9f49ce7fda4434439f73292ebe48f384 100644 (file)
@@ -6,7 +6,7 @@
  * Adapted from the very similar rk3288 ddr init.
  */
 
-#include <common.h>
+#include <config.h>
 #include <clk.h>
 #include <dm.h>
 #include <dt-structs.h>
index 5fc23c11193ffac5ed51bc390fe80dded4ee57a3..a48a50911844d9c14e06a8bf8c50e3d58ab75a2e 100644 (file)
@@ -2,7 +2,7 @@
 /*
  * (C) Copyright 2017 Rockchip Electronics Co., Ltd
  */
-#include <common.h>
+#include <config.h>
 #include <clk.h>
 #include <dm.h>
 #include <dt-structs.h>
index 242d564a7d2663c6cc620a897624e5663c3f6aa2..c9f61e933e9a45bb157d474ea29a2554bf556fe0 100644 (file)
@@ -6,7 +6,7 @@
  * Adapted from coreboot.
  */
 
-#include <common.h>
+#include <config.h>
 #include <clk.h>
 #include <dm.h>
 #include <dt-structs.h>
index 264366291cf8b1ef1a237b888ce32013840b7c7c..8071997f8d86abc13eaefbee0ada8cd2ab05f8fd 100644 (file)
@@ -3,7 +3,7 @@
  * (C) Copyright 2019 Rockchip Electronics Co., Ltd.
  */
 
-#include <common.h>
+#include <config.h>
 #include <dm.h>
 #include <ram.h>
 #include <syscon.h>
index b5ca8ca436f57990e5aa290b64e7732c57d595e3..99690d67a501160fe3717f00e54860cb1714bbc2 100644 (file)
@@ -2,7 +2,7 @@
 /*
  * (C) Copyright 2017 Rockchip Electronics Co., Ltd.
  */
-#include <common.h>
+#include <config.h>
 #include <clk.h>
 #include <debug_uart.h>
 #include <dm.h>
index 02cc4a38cf0bd1152595a63059e1bed83c053cdc..ef9a1824b2b338862266e0abc66da816bcc1bb64 100644 (file)
@@ -5,7 +5,7 @@
  * Adapted from coreboot.
  */
 
-#include <common.h>
+#include <config.h>
 #include <clk.h>
 #include <dm.h>
 #include <dt-structs.h>
index f661615c1b91efada8ab7e02dff4d36043dd71ac..a252d5c7010616ee88ecab2f60f23e09c5a39689 100644 (file)
@@ -3,7 +3,7 @@
  * (C) Copyright 2021 Rockchip Electronics Co., Ltd.
  */
 
-#include <common.h>
+#include <config.h>
 #include <dm.h>
 #include <ram.h>
 #include <syscon.h>
index cf56e2a941218518ee0c8bd580540e6e559c44cf..a144b432d76ff5065af12b98b2561696d77603da 100644 (file)
@@ -3,7 +3,7 @@
  * (C) Copyright 2021 Rockchip Electronics Co., Ltd.
  */
 
-#include <common.h>
+#include <config.h>
 #include <dm.h>
 #include <ram.h>
 #include <syscon.h>
index 849e15a91932f527088e8392caf455560a68c27b..4fbb088a8d98cf8983231903e57d1766feaf6045 100644 (file)
@@ -4,7 +4,7 @@
  * Copyright (c) 2022 Edgeble AI Technologies Pvt. Ltd.
  */
 
-#include <common.h>
+#include <config.h>
 #include <debug_uart.h>
 #include <dm.h>
 #include <ram.h>
index 910dce623e90d75b6342973ee91c983abe9c9cd1..2097da565322c56c1153a456c13923223f51e407 100644 (file)
@@ -4,7 +4,6 @@
  * Written by Simon Glass <sjg@chromium.org>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <ram.h>
index 4bd69a62be2b690c0e0db3f9f2b203ca76416e5a..bd2f438d7271be2a2eb98af8142a2d4f40b2ca94 100644 (file)
@@ -6,7 +6,6 @@
  *   Pragnesh Patel <pragnesh.patel@sifive.com>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <fdtdec.h>
 #include <init.h>
index f2dd55f74a08ceef18df7083f988e76f28cd99da..6764b3ed5cc918a56979c85d34c85f1a998ebd61 100644 (file)
@@ -4,7 +4,6 @@
  * Author: Yanhong Wang<yanhong.wang@starfivetech.com>
  */
 
-#include <common.h>
 #include <asm/io.h>
 #include <asm/arch/regs.h>
 #include <linux/delay.h>
index 479b6ef10418d250031030d59a926a8fad65ce91..efe3f8a181a54f0671efadbf0ea5eda78d761d83 100644 (file)
@@ -4,7 +4,6 @@
  * Author: Yanhong Wang<yanhong.wang@starfivetech.com>
  */
 
-#include <common.h>
 #include <asm/io.h>
 
 #include "starfive_ddr.h"
index 0740f49be5bbcd124d18cd1dfc727cf029024924..0aff1e8727efc26934034c60c23de52c95c1e20c 100644 (file)
@@ -4,7 +4,7 @@
  * Author: Yanhong Wang<yanhong.wang@starfivetech.com>
  */
 
-#include <common.h>
+#include <linux/kernel.h>
 #include <asm/io.h>
 
 static const u32 ddr_train_data[] = {
index 1c9fe0a78465635cb4715b45259b5f9e463ea55d..d6dd6ee7a859af770da5c3ecf5cbad4beaa4adc2 100644 (file)
@@ -4,7 +4,7 @@
  * Author: Yanhong Wang<yanhong.wang@starfivetech.com>
  */
 
-#include <common.h>
+#include <linux/kernel.h>
 #include <asm/io.h>
 
 static const  u32 ddr_phy_data[] = {
index a0a3d6b33dc236a596013a677656f9a29c336ae7..b31ed3bcf617326436e88440238c805ae0669b73 100644 (file)
@@ -4,7 +4,6 @@
  * Author: Yanhong Wang<yanhong.wang@starfivetech.com>
  */
 
-#include <common.h>
 #include <asm/arch/regs.h>
 #include <asm/io.h>
 #include <clk.h>
index d0ec1c1da807195357349da40ed7d68f333807a6..c29d26b510c9c436cf7d4c0da8183cc4b569ea89 100644 (file)
@@ -7,6 +7,8 @@
 #ifndef __STARFIVE_DDR_H__
 #define __STARFIVE_DDR_H__
 
+#include <linux/kernel.h>
+
 #define SEC_CTRL_ADDR          0x1000
 #define PHY_BASE_ADDR          0x800
 #define PHY_AC_BASE_ADDR       0x1000
index 891f4137813ee08383a950ba5d61c3f61bd7be98..10dc05dd640418dfda9304afdc62577a13fa44dc 100644 (file)
@@ -6,7 +6,6 @@
 
 #define LOG_CATEGORY UCLASS_RAM
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <init.h>
index 8ee4e24f39df232d9517bfa05481007eabc3bdd7..d7834b3229929e44bd55781d1f6a0d214b8d4b8c 100644 (file)
@@ -5,7 +5,6 @@
 
 #define LOG_CATEGORY UCLASS_RAM
 
-#include <common.h>
 #include <clk.h>
 #include <log.h>
 #include <ram.h>
index 2c19847c663343f8ce5c25d7fdb2cab6edc89f5c..6340afbb87093313ef0e05ebad1cd36cd0d55d3d 100644 (file)
@@ -5,7 +5,6 @@
 
 #define LOG_CATEGORY UCLASS_RAM
 
-#include <common.h>
 #include <command.h>
 #include <console.h>
 #include <cli.h>
index a82b1db7592df7fbd39ebd9f6c639a305f1982f6..debc458c0e2e9454a2552793ff3691527323798c 100644 (file)
@@ -5,7 +5,6 @@
 
 #define LOG_CATEGORY UCLASS_RAM
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <init.h>
index c5f33544144f1c1f80108cee02c39aa47255216f..6108faa70730cea425568a331503c38fe7baad40 100644 (file)
@@ -5,7 +5,6 @@
 
 #define LOG_CATEGORY UCLASS_RAM
 
-#include <common.h>
 #include <console.h>
 #include <init.h>
 #include <log.h>
index 38379281d73954973b9d7c5a02bbd4ea684935aa..a1794032f3b8b8b1938168a93a9684b629ac8eca 100644 (file)
@@ -13,7 +13,7 @@
  */
 
 #include <asm/io.h>
-#include <common.h>
+#include <config.h>
 #ifdef CONFIG_RAM
   #include <dm.h>
   #include <ram.h>