ram: Remove <common.h> and add needed includes

Remove <common.h> from this driver directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
Tom Rini
2024-05-01 19:31:11 -06:00
parent 37de71874d
commit 41b7743e68
41 changed files with 22 additions and 40 deletions

View File

@@ -5,7 +5,7 @@
* Copyright 2016 Google, Inc * Copyright 2016 Google, Inc
*/ */
#include <common.h> #include <config.h>
#include <clk.h> #include <clk.h>
#include <dm.h> #include <dm.h>
#include <errno.h> #include <errno.h>

View File

@@ -2,7 +2,7 @@
/* /*
* Copyright (C) ASPEED Technology Inc. * Copyright (C) ASPEED Technology Inc.
*/ */
#include <common.h> #include <config.h>
#include <clk.h> #include <clk.h>
#include <dm.h> #include <dm.h>
#include <errno.h> #include <errno.h>

View File

@@ -7,7 +7,6 @@
* Copyright (C) 2009 Florian Fainelli <florian@openwrt.org> * Copyright (C) 2009 Florian Fainelli <florian@openwrt.org>
*/ */
#include <common.h>
#include <dm.h> #include <dm.h>
#include <errno.h> #include <errno.h>
#include <init.h> #include <init.h>

View File

@@ -24,7 +24,6 @@
* bandwidth allocated to each AXI slave can be set. * bandwidth allocated to each AXI slave can be set.
*/ */
#include <common.h>
#include <linux/delay.h> #include <linux/delay.h>
#include <linux/sizes.h> #include <linux/sizes.h>
#include <asm/io.h> #include <asm/io.h>

View File

@@ -4,7 +4,6 @@
* Author(s): Giulio Benetti <giulio.benetti@benettiengineering.com> * Author(s): Giulio Benetti <giulio.benetti@benettiengineering.com>
*/ */
#include <common.h>
#include <clk.h> #include <clk.h>
#include <dm.h> #include <dm.h>
#include <dm/device_compat.h> #include <dm/device_compat.h>

View File

@@ -6,7 +6,6 @@
* Lokesh Vutla <lokeshvutla@ti.com> * Lokesh Vutla <lokeshvutla@ti.com>
*/ */
#include <common.h>
#include <clk.h> #include <clk.h>
#include <dm.h> #include <dm.h>
#include <log.h> #include <log.h>

View File

@@ -5,7 +5,6 @@
* Copyright (C) 2020-2021 Texas Instruments Incorporated - https://www.ti.com/ * Copyright (C) 2020-2021 Texas Instruments Incorporated - https://www.ti.com/
*/ */
#include <common.h>
#include <config.h> #include <config.h>
#include <clk.h> #include <clk.h>
#include <div64.h> #include <div64.h>

View File

@@ -8,7 +8,7 @@
*/ */
#include <clk.h> #include <clk.h>
#include <common.h> #include <config.h>
#include <dm.h> #include <dm.h>
#include <ram.h> #include <ram.h>
#include <asm/io.h> #include <asm/io.h>

View File

@@ -4,7 +4,6 @@
* Mario Six, Guntermann & Drunck GmbH, mario.six@gdsys.cc * Mario Six, Guntermann & Drunck GmbH, mario.six@gdsys.cc
*/ */
#include <common.h>
#include <dm.h> #include <dm.h>
#include <init.h> #include <init.h>
#include <log.h> #include <log.h>

View File

@@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_RAM #define LOG_CATEGORY UCLASS_RAM
#include <common.h>
#include <ram.h> #include <ram.h>
#include <dm.h> #include <dm.h>
#include <errno.h> #include <errno.h>

View File

@@ -7,7 +7,6 @@
* *
* Copyright (C) 2015 Renesas Electronics Europe Ltd * Copyright (C) 2015 Renesas Electronics Europe Ltd
*/ */
#include <common.h>
#include <clk.h> #include <clk.h>
#include <dm.h> #include <dm.h>
#include <dm/device_compat.h> #include <dm/device_compat.h>

View File

@@ -3,7 +3,7 @@
* (C) Copyright 2017 Theobroma Systems Design und Consulting GmbH * (C) Copyright 2017 Theobroma Systems Design und Consulting GmbH
*/ */
#include <common.h> #include <config.h>
#include <clk.h> #include <clk.h>
#include <dm.h> #include <dm.h>
#include <hang.h> #include <hang.h>

View File

@@ -3,7 +3,7 @@
* (C) Copyright 2018 Rockchip Electronics Co., Ltd. * (C) Copyright 2018 Rockchip Electronics Co., Ltd.
*/ */
#include <common.h> #include <config.h>
#include <debug_uart.h> #include <debug_uart.h>
#include <ram.h> #include <ram.h>
#include <asm/io.h> #include <asm/io.h>

View File

@@ -3,7 +3,6 @@
* (C) Copyright 2018 Rockchip Electronics Co., Ltd. * (C) Copyright 2018 Rockchip Electronics Co., Ltd.
*/ */
#include <common.h>
#include <ram.h> #include <ram.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/arch-rockchip/sdram.h> #include <asm/arch-rockchip/sdram.h>

View File

@@ -3,7 +3,6 @@
* (C) Copyright 2018 Rockchip Electronics Co., Ltd. * (C) Copyright 2018 Rockchip Electronics Co., Ltd.
*/ */
#include <common.h>
#include <ram.h> #include <ram.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/arch-rockchip/sdram.h> #include <asm/arch-rockchip/sdram.h>

View File

@@ -3,7 +3,7 @@
* (C) Copyright 2018 Rockchip Electronics Co., Ltd. * (C) Copyright 2018 Rockchip Electronics Co., Ltd.
*/ */
#include <common.h> #include <config.h>
#include <debug_uart.h> #include <debug_uart.h>
#include <dm.h> #include <dm.h>
#include <init.h> #include <init.h>

View File

@@ -6,7 +6,7 @@
* Adapted from the very similar rk3188 ddr init. * Adapted from the very similar rk3188 ddr init.
*/ */
#include <common.h> #include <config.h>
#include <clk.h> #include <clk.h>
#include <dm.h> #include <dm.h>
#include <dt-structs.h> #include <dt-structs.h>

View File

@@ -3,7 +3,7 @@
* (C) Copyright 2017 Rockchip Electronics Co., Ltd. * (C) Copyright 2017 Rockchip Electronics Co., Ltd.
*/ */
#include <common.h> #include <config.h>
#include <dm.h> #include <dm.h>
#include <log.h> #include <log.h>
#include <ram.h> #include <ram.h>

View File

@@ -6,7 +6,7 @@
* Adapted from the very similar rk3288 ddr init. * Adapted from the very similar rk3288 ddr init.
*/ */
#include <common.h> #include <config.h>
#include <clk.h> #include <clk.h>
#include <dm.h> #include <dm.h>
#include <dt-structs.h> #include <dt-structs.h>

View File

@@ -2,7 +2,7 @@
/* /*
* (C) Copyright 2017 Rockchip Electronics Co., Ltd * (C) Copyright 2017 Rockchip Electronics Co., Ltd
*/ */
#include <common.h> #include <config.h>
#include <clk.h> #include <clk.h>
#include <dm.h> #include <dm.h>
#include <dt-structs.h> #include <dt-structs.h>

View File

@@ -6,7 +6,7 @@
* Adapted from coreboot. * Adapted from coreboot.
*/ */
#include <common.h> #include <config.h>
#include <clk.h> #include <clk.h>
#include <dm.h> #include <dm.h>
#include <dt-structs.h> #include <dt-structs.h>

View File

@@ -3,7 +3,7 @@
* (C) Copyright 2019 Rockchip Electronics Co., Ltd. * (C) Copyright 2019 Rockchip Electronics Co., Ltd.
*/ */
#include <common.h> #include <config.h>
#include <dm.h> #include <dm.h>
#include <ram.h> #include <ram.h>
#include <syscon.h> #include <syscon.h>

View File

@@ -2,7 +2,7 @@
/* /*
* (C) Copyright 2017 Rockchip Electronics Co., Ltd. * (C) Copyright 2017 Rockchip Electronics Co., Ltd.
*/ */
#include <common.h> #include <config.h>
#include <clk.h> #include <clk.h>
#include <debug_uart.h> #include <debug_uart.h>
#include <dm.h> #include <dm.h>

View File

@@ -5,7 +5,7 @@
* Adapted from coreboot. * Adapted from coreboot.
*/ */
#include <common.h> #include <config.h>
#include <clk.h> #include <clk.h>
#include <dm.h> #include <dm.h>
#include <dt-structs.h> #include <dt-structs.h>

View File

@@ -3,7 +3,7 @@
* (C) Copyright 2021 Rockchip Electronics Co., Ltd. * (C) Copyright 2021 Rockchip Electronics Co., Ltd.
*/ */
#include <common.h> #include <config.h>
#include <dm.h> #include <dm.h>
#include <ram.h> #include <ram.h>
#include <syscon.h> #include <syscon.h>

View File

@@ -3,7 +3,7 @@
* (C) Copyright 2021 Rockchip Electronics Co., Ltd. * (C) Copyright 2021 Rockchip Electronics Co., Ltd.
*/ */
#include <common.h> #include <config.h>
#include <dm.h> #include <dm.h>
#include <ram.h> #include <ram.h>
#include <syscon.h> #include <syscon.h>

View File

@@ -4,7 +4,7 @@
* Copyright (c) 2022 Edgeble AI Technologies Pvt. Ltd. * Copyright (c) 2022 Edgeble AI Technologies Pvt. Ltd.
*/ */
#include <common.h> #include <config.h>
#include <debug_uart.h> #include <debug_uart.h>
#include <dm.h> #include <dm.h>
#include <ram.h> #include <ram.h>

View File

@@ -4,7 +4,6 @@
* Written by Simon Glass <sjg@chromium.org> * Written by Simon Glass <sjg@chromium.org>
*/ */
#include <common.h>
#include <dm.h> #include <dm.h>
#include <errno.h> #include <errno.h>
#include <ram.h> #include <ram.h>

View File

@@ -6,7 +6,6 @@
* Pragnesh Patel <pragnesh.patel@sifive.com> * Pragnesh Patel <pragnesh.patel@sifive.com>
*/ */
#include <common.h>
#include <dm.h> #include <dm.h>
#include <fdtdec.h> #include <fdtdec.h>
#include <init.h> #include <init.h>

View File

@@ -4,7 +4,6 @@
* Author: Yanhong Wang<yanhong.wang@starfivetech.com> * Author: Yanhong Wang<yanhong.wang@starfivetech.com>
*/ */
#include <common.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/arch/regs.h> #include <asm/arch/regs.h>
#include <linux/delay.h> #include <linux/delay.h>

View File

@@ -4,7 +4,6 @@
* Author: Yanhong Wang<yanhong.wang@starfivetech.com> * Author: Yanhong Wang<yanhong.wang@starfivetech.com>
*/ */
#include <common.h>
#include <asm/io.h> #include <asm/io.h>
#include "starfive_ddr.h" #include "starfive_ddr.h"

View File

@@ -4,7 +4,7 @@
* Author: Yanhong Wang<yanhong.wang@starfivetech.com> * Author: Yanhong Wang<yanhong.wang@starfivetech.com>
*/ */
#include <common.h> #include <linux/kernel.h>
#include <asm/io.h> #include <asm/io.h>
static const u32 ddr_train_data[] = { static const u32 ddr_train_data[] = {

View File

@@ -4,7 +4,7 @@
* Author: Yanhong Wang<yanhong.wang@starfivetech.com> * Author: Yanhong Wang<yanhong.wang@starfivetech.com>
*/ */
#include <common.h> #include <linux/kernel.h>
#include <asm/io.h> #include <asm/io.h>
static const u32 ddr_phy_data[] = { static const u32 ddr_phy_data[] = {

View File

@@ -4,7 +4,6 @@
* Author: Yanhong Wang<yanhong.wang@starfivetech.com> * Author: Yanhong Wang<yanhong.wang@starfivetech.com>
*/ */
#include <common.h>
#include <asm/arch/regs.h> #include <asm/arch/regs.h>
#include <asm/io.h> #include <asm/io.h>
#include <clk.h> #include <clk.h>

View File

@@ -7,6 +7,8 @@
#ifndef __STARFIVE_DDR_H__ #ifndef __STARFIVE_DDR_H__
#define __STARFIVE_DDR_H__ #define __STARFIVE_DDR_H__
#include <linux/kernel.h>
#define SEC_CTRL_ADDR 0x1000 #define SEC_CTRL_ADDR 0x1000
#define PHY_BASE_ADDR 0x800 #define PHY_BASE_ADDR 0x800
#define PHY_AC_BASE_ADDR 0x1000 #define PHY_AC_BASE_ADDR 0x1000

View File

@@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_RAM #define LOG_CATEGORY UCLASS_RAM
#include <common.h>
#include <clk.h> #include <clk.h>
#include <dm.h> #include <dm.h>
#include <init.h> #include <init.h>

View File

@@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_RAM #define LOG_CATEGORY UCLASS_RAM
#include <common.h>
#include <clk.h> #include <clk.h>
#include <log.h> #include <log.h>
#include <ram.h> #include <ram.h>

View File

@@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_RAM #define LOG_CATEGORY UCLASS_RAM
#include <common.h>
#include <command.h> #include <command.h>
#include <console.h> #include <console.h>
#include <cli.h> #include <cli.h>

View File

@@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_RAM #define LOG_CATEGORY UCLASS_RAM
#include <common.h>
#include <clk.h> #include <clk.h>
#include <dm.h> #include <dm.h>
#include <init.h> #include <init.h>

View File

@@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_RAM #define LOG_CATEGORY UCLASS_RAM
#include <common.h>
#include <console.h> #include <console.h>
#include <init.h> #include <init.h>
#include <log.h> #include <log.h>

View File

@@ -13,7 +13,7 @@
*/ */
#include <asm/io.h> #include <asm/io.h>
#include <common.h> #include <config.h>
#ifdef CONFIG_RAM #ifdef CONFIG_RAM
#include <dm.h> #include <dm.h>
#include <ram.h> #include <ram.h>