Skip to content

Commit

Permalink
ram: Remove <common.h> and add needed includes
Browse files Browse the repository at this point in the history
Remove <common.h> from this driver directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
  • Loading branch information
trini committed May 7, 2024
1 parent 37de718 commit 41b7743
Show file tree
Hide file tree
Showing 41 changed files with 22 additions and 40 deletions.
2 changes: 1 addition & 1 deletion drivers/ram/aspeed/sdram_ast2500.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Copyright 2016 Google, Inc
*/

#include <common.h>
#include <config.h>
#include <clk.h>
#include <dm.h>
#include <errno.h>
Expand Down
2 changes: 1 addition & 1 deletion drivers/ram/aspeed/sdram_ast2600.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/*
* Copyright (C) ASPEED Technology Inc.
*/
#include <common.h>
#include <config.h>
#include <clk.h>
#include <dm.h>
#include <errno.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/ram/bmips_ram.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
* Copyright (C) 2009 Florian Fainelli <florian@openwrt.org>
*/

#include <common.h>
#include <dm.h>
#include <errno.h>
#include <init.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/ram/cadence/ddr_ctrl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
1 change: 0 additions & 1 deletion drivers/ram/imxrt_sdram.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
1 change: 0 additions & 1 deletion drivers/ram/k3-am654-ddrss.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
* Lokesh Vutla <lokeshvutla@ti.com>
*/

#include <common.h>
#include <clk.h>
#include <dm.h>
#include <log.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/ram/k3-ddrss/k3-ddrss.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion drivers/ram/mediatek/ddr3-mt7629.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/

#include <clk.h>
#include <common.h>
#include <config.h>
#include <dm.h>
#include <ram.h>
#include <asm/io.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/ram/mpc83xx_sdram.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
1 change: 0 additions & 1 deletion drivers/ram/ram-uclass.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

#define LOG_CATEGORY UCLASS_RAM

#include <common.h>
#include <ram.h>
#include <dm.h>
#include <errno.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/ram/renesas/rzn1/ddr_async.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion drivers/ram/rockchip/dmc-rk3368.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion drivers/ram/rockchip/sdram_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
1 change: 0 additions & 1 deletion drivers/ram/rockchip/sdram_pctl_px30.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
1 change: 0 additions & 1 deletion drivers/ram/rockchip/sdram_phy_px30.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion drivers/ram/rockchip/sdram_px30.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion drivers/ram/rockchip/sdram_rk3066.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion drivers/ram/rockchip/sdram_rk3128.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion drivers/ram/rockchip/sdram_rk3188.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion drivers/ram/rockchip/sdram_rk322x.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion drivers/ram/rockchip/sdram_rk3288.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Adapted from coreboot.
*/

#include <common.h>
#include <config.h>
#include <clk.h>
#include <dm.h>
#include <dt-structs.h>
Expand Down
2 changes: 1 addition & 1 deletion drivers/ram/rockchip/sdram_rk3308.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion drivers/ram/rockchip/sdram_rk3328.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion drivers/ram/rockchip/sdram_rk3399.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Adapted from coreboot.
*/

#include <common.h>
#include <config.h>
#include <clk.h>
#include <dm.h>
#include <dt-structs.h>
Expand Down
2 changes: 1 addition & 1 deletion drivers/ram/rockchip/sdram_rk3568.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion drivers/ram/rockchip/sdram_rk3588.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion drivers/ram/rockchip/sdram_rv1126.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
1 change: 0 additions & 1 deletion drivers/ram/sandbox_ram.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
* Written by Simon Glass <sjg@chromium.org>
*/

#include <common.h>
#include <dm.h>
#include <errno.h>
#include <ram.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/ram/sifive/sifive_ddr.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
* Pragnesh Patel <pragnesh.patel@sifive.com>
*/

#include <common.h>
#include <dm.h>
#include <fdtdec.h>
#include <init.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/ram/starfive/ddrcsr_boot.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
1 change: 0 additions & 1 deletion drivers/ram/starfive/ddrphy_start.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
* Author: Yanhong Wang<yanhong.wang@starfivetech.com>
*/

#include <common.h>
#include <asm/io.h>

#include "starfive_ddr.h"
Expand Down
2 changes: 1 addition & 1 deletion drivers/ram/starfive/ddrphy_train.c
Original file line number Diff line number Diff line change
Expand Up @@ -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[] = {
Expand Down
2 changes: 1 addition & 1 deletion drivers/ram/starfive/ddrphy_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -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[] = {
Expand Down
1 change: 0 additions & 1 deletion drivers/ram/starfive/starfive_ddr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 2 additions & 0 deletions drivers/ram/starfive/starfive_ddr.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion drivers/ram/stm32_sdram.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

#define LOG_CATEGORY UCLASS_RAM

#include <common.h>
#include <clk.h>
#include <dm.h>
#include <init.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/ram/stm32mp1/stm32mp1_ddr.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

#define LOG_CATEGORY UCLASS_RAM

#include <common.h>
#include <clk.h>
#include <log.h>
#include <ram.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/ram/stm32mp1/stm32mp1_interactive.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

#define LOG_CATEGORY UCLASS_RAM

#include <common.h>
#include <command.h>
#include <console.h>
#include <cli.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/ram/stm32mp1/stm32mp1_ram.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

#define LOG_CATEGORY UCLASS_RAM

#include <common.h>
#include <clk.h>
#include <dm.h>
#include <init.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/ram/stm32mp1/stm32mp1_tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

#define LOG_CATEGORY UCLASS_RAM

#include <common.h>
#include <console.h>
#include <init.h>
#include <log.h>
Expand Down
2 changes: 1 addition & 1 deletion drivers/ram/sunxi/dram_sun20i_d1.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
*/

#include <asm/io.h>
#include <common.h>
#include <config.h>
#ifdef CONFIG_RAM
#include <dm.h>
#include <ram.h>
Expand Down

0 comments on commit 41b7743

Please sign in to comment.