summaryrefslogtreecommitdiff
path: root/drivers/ram
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ram')
-rw-r--r--drivers/ram/bmips_ram.c2
-rw-r--r--drivers/ram/imxrt_sdram.c1
-rw-r--r--drivers/ram/k3-am654-ddrss.c2
-rw-r--r--drivers/ram/k3-am654-ddrss.h1
-rw-r--r--drivers/ram/k3-j721e/cps_drv_lpddr4.h1
-rw-r--r--drivers/ram/k3-j721e/k3-j721e-ddrss.c2
-rw-r--r--drivers/ram/k3-j721e/lpddr4_private.h1
-rw-r--r--drivers/ram/mediatek/ddr3-mt7629.c1
-rw-r--r--drivers/ram/mpc83xx_sdram.c1
-rw-r--r--drivers/ram/rockchip/dmc-rk3368.c2
-rw-r--r--drivers/ram/rockchip/sdram_common.c2
-rw-r--r--drivers/ram/rockchip/sdram_pctl_px30.c2
-rw-r--r--drivers/ram/rockchip/sdram_phy_px30.c2
-rw-r--r--drivers/ram/rockchip/sdram_px30.c2
-rw-r--r--drivers/ram/rockchip/sdram_rk3128.c1
-rw-r--r--drivers/ram/rockchip/sdram_rk3188.c2
-rw-r--r--drivers/ram/rockchip/sdram_rk3288.c2
-rw-r--r--drivers/ram/rockchip/sdram_rk3308.c1
-rw-r--r--drivers/ram/rockchip/sdram_rk3328.c2
-rw-r--r--drivers/ram/rockchip/sdram_rk3399.c3
-rw-r--r--drivers/ram/sifive/fu540_ddr.c1
-rw-r--r--drivers/ram/stm32_sdram.c1
-rw-r--r--drivers/ram/stm32mp1/stm32mp1_ddr.c3
-rw-r--r--drivers/ram/stm32mp1/stm32mp1_ddr.h1
-rw-r--r--drivers/ram/stm32mp1/stm32mp1_ddr_regs.h1
-rw-r--r--drivers/ram/stm32mp1/stm32mp1_interactive.c2
-rw-r--r--drivers/ram/stm32mp1/stm32mp1_ram.c3
-rw-r--r--drivers/ram/stm32mp1/stm32mp1_tests.c2
-rw-r--r--drivers/ram/stm32mp1/stm32mp1_tuning.c2
29 files changed, 49 insertions, 0 deletions
diff --git a/drivers/ram/bmips_ram.c b/drivers/ram/bmips_ram.c
index 0746d677a4..c1775d6079 100644
--- a/drivers/ram/bmips_ram.c
+++ b/drivers/ram/bmips_ram.c
@@ -8,12 +8,14 @@
*/
#include <common.h>
+#include <compiler.h>
#include <dm.h>
#include <errno.h>
#include <init.h>
#include <ram.h>
#include <asm/io.h>
#include <linux/errno.h>
+#include <linux/types.h>
#define SDRAM_CFG_REG 0x0
#define SDRAM_CFG_COL_SHIFT 4
diff --git a/drivers/ram/imxrt_sdram.c b/drivers/ram/imxrt_sdram.c
index bfdf666cc4..c0b57178c0 100644
--- a/drivers/ram/imxrt_sdram.c
+++ b/drivers/ram/imxrt_sdram.c
@@ -12,6 +12,7 @@
#include <ram.h>
#include <vsprintf.h>
#include <asm/io.h>
+#include <asm/types.h>
#include <linux/bitops.h>
#include <linux/delay.h>
#include <linux/err.h>
diff --git a/drivers/ram/k3-am654-ddrss.c b/drivers/ram/k3-am654-ddrss.c
index 1f282ec751..5dff7c20b8 100644
--- a/drivers/ram/k3-am654-ddrss.c
+++ b/drivers/ram/k3-am654-ddrss.c
@@ -8,6 +8,7 @@
#include <common.h>
#include <clk.h>
+#include <compiler.h>
#include <dm.h>
#include <log.h>
#include <ram.h>
@@ -15,6 +16,7 @@
#include <asm/io.h>
#include <power-domain.h>
#include <asm/arch/sys_proto.h>
+#include <asm/types.h>
#include <dm/device_compat.h>
#include <linux/errno.h>
#include <power/regulator.h>
diff --git a/drivers/ram/k3-am654-ddrss.h b/drivers/ram/k3-am654-ddrss.h
index c87f186291..9f2ee87b5a 100644
--- a/drivers/ram/k3-am654-ddrss.h
+++ b/drivers/ram/k3-am654-ddrss.h
@@ -1,5 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0+ */
/*
+#include <asm/types.h>
* AM654: DDRSS Register definitions and structures.
*
* Copyright (C) 2018 Texas Instruments Incorporated - http://www.ti.com/
diff --git a/drivers/ram/k3-j721e/cps_drv_lpddr4.h b/drivers/ram/k3-j721e/cps_drv_lpddr4.h
index 706a5cde01..9da9d71206 100644
--- a/drivers/ram/k3-j721e/cps_drv_lpddr4.h
+++ b/drivers/ram/k3-j721e/cps_drv_lpddr4.h
@@ -15,6 +15,7 @@
#include <stddef.h>
#include <inttypes.h>
#include <asm/io.h>
+#include <linux/types.h>
/**
* \brief Read a 32-bit value from memory.
diff --git a/drivers/ram/k3-j721e/k3-j721e-ddrss.c b/drivers/ram/k3-j721e/k3-j721e-ddrss.c
index bccf5a65c9..637abc4c6d 100644
--- a/drivers/ram/k3-j721e/k3-j721e-ddrss.c
+++ b/drivers/ram/k3-j721e/k3-j721e-ddrss.c
@@ -7,6 +7,7 @@
#include <common.h>
#include <clk.h>
+#include <compiler.h>
#include <dm.h>
#include <hang.h>
#include <log.h>
@@ -17,6 +18,7 @@
#include <wait_bit.h>
#include <dm/device_compat.h>
#include <linux/errno.h>
+#include <linux/types.h>
#include "lpddr4_obj_if.h"
#include "lpddr4_if.h"
diff --git a/drivers/ram/k3-j721e/lpddr4_private.h b/drivers/ram/k3-j721e/lpddr4_private.h
index 42c923464a..e3aa360b6c 100644
--- a/drivers/ram/k3-j721e/lpddr4_private.h
+++ b/drivers/ram/k3-j721e/lpddr4_private.h
@@ -10,6 +10,7 @@
#ifndef LPDDR4_PRIV_H
#define LPDDR4_PRIV_H
+#include <linux/types.h>
#define PRODUCT_ID (0x1046U)
#define VERSION_0 (0x54d5da40U)
#define VERSION_1 (0xc1865a1U)
diff --git a/drivers/ram/mediatek/ddr3-mt7629.c b/drivers/ram/mediatek/ddr3-mt7629.c
index a2f72b7047..f25334a042 100644
--- a/drivers/ram/mediatek/ddr3-mt7629.c
+++ b/drivers/ram/mediatek/ddr3-mt7629.c
@@ -12,6 +12,7 @@
#include <dm.h>
#include <ram.h>
#include <asm/io.h>
+#include <asm/types.h>
#include <linux/bitops.h>
#include <linux/delay.h>
#include <linux/errno.h>
diff --git a/drivers/ram/mpc83xx_sdram.c b/drivers/ram/mpc83xx_sdram.c
index 568867e8aa..427758e369 100644
--- a/drivers/ram/mpc83xx_sdram.c
+++ b/drivers/ram/mpc83xx_sdram.c
@@ -14,6 +14,7 @@
#include <asm/ppc.h>
#include <dt-bindings/memory/mpc83xx-sdram.h>
#include <linux/errno.h>
+#include <linux/types.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/drivers/ram/rockchip/dmc-rk3368.c b/drivers/ram/rockchip/dmc-rk3368.c
index 9f13363e63..c2030101aa 100644
--- a/drivers/ram/rockchip/dmc-rk3368.c
+++ b/drivers/ram/rockchip/dmc-rk3368.c
@@ -8,6 +8,7 @@
#include <dm.h>
#include <hang.h>
#include <log.h>
+#include <stdbool.h>
#include <stdio.h>
#include <time.h>
#include <dt-bindings/memory/rk3368-dmc.h>
@@ -28,6 +29,7 @@
#include <linux/errno.h>
#include <linux/kernel.h>
#include <linux/printk.h>
+#include <linux/types.h>
struct dram_info {
struct ram_info info;
diff --git a/drivers/ram/rockchip/sdram_common.c b/drivers/ram/rockchip/sdram_common.c
index 5dd68c9768..04f5e52223 100644
--- a/drivers/ram/rockchip/sdram_common.c
+++ b/drivers/ram/rockchip/sdram_common.c
@@ -4,12 +4,14 @@
*/
#include <common.h>
+#include <compiler.h>
#include <debug_uart.h>
#include <ram.h>
#include <stdio.h>
#include <asm/io.h>
#include <asm/arch-rockchip/sdram.h>
#include <asm/arch-rockchip/sdram_common.h>
+#include <linux/types.h>
#ifdef CONFIG_RAM_ROCKCHIP_DEBUG
void sdram_print_dram_type(unsigned char dramtype)
diff --git a/drivers/ram/rockchip/sdram_pctl_px30.c b/drivers/ram/rockchip/sdram_pctl_px30.c
index 331d85fba2..5256ff0a6c 100644
--- a/drivers/ram/rockchip/sdram_pctl_px30.c
+++ b/drivers/ram/rockchip/sdram_pctl_px30.c
@@ -4,10 +4,12 @@
*/
#include <common.h>
+#include <compiler.h>
#include <ram.h>
#include <asm/io.h>
#include <asm/arch-rockchip/sdram.h>
#include <asm/arch-rockchip/sdram_pctl_px30.h>
+#include <asm/types.h>
#include <linux/delay.h>
/*
diff --git a/drivers/ram/rockchip/sdram_phy_px30.c b/drivers/ram/rockchip/sdram_phy_px30.c
index f7f6de1ba9..c81a8b8bab 100644
--- a/drivers/ram/rockchip/sdram_phy_px30.c
+++ b/drivers/ram/rockchip/sdram_phy_px30.c
@@ -4,11 +4,13 @@
*/
#include <common.h>
+#include <compiler.h>
#include <ram.h>
#include <asm/io.h>
#include <asm/arch-rockchip/sdram.h>
#include <asm/arch-rockchip/sdram_common.h>
#include <asm/arch-rockchip/sdram_phy_px30.h>
+#include <asm/types.h>
#include <linux/delay.h>
static void sdram_phy_dll_bypass_set(void __iomem *phy_base, u32 freq)
diff --git a/drivers/ram/rockchip/sdram_px30.c b/drivers/ram/rockchip/sdram_px30.c
index a4f8980bfd..65587df88b 100644
--- a/drivers/ram/rockchip/sdram_px30.c
+++ b/drivers/ram/rockchip/sdram_px30.c
@@ -4,6 +4,7 @@
*/
#include <common.h>
+#include <compiler.h>
#include <debug_uart.h>
#include <dm.h>
#include <init.h>
@@ -17,6 +18,7 @@
#include <asm/arch-rockchip/hardware.h>
#include <asm/arch-rockchip/sdram.h>
#include <asm/arch-rockchip/sdram_px30.h>
+#include <asm/types.h>
#include <linux/delay.h>
#include <linux/kernel.h>
diff --git a/drivers/ram/rockchip/sdram_rk3128.c b/drivers/ram/rockchip/sdram_rk3128.c
index 0162955aae..265d128479 100644
--- a/drivers/ram/rockchip/sdram_rk3128.c
+++ b/drivers/ram/rockchip/sdram_rk3128.c
@@ -11,6 +11,7 @@
#include <asm/arch-rockchip/clock.h>
#include <asm/arch-rockchip/grf_rk3128.h>
#include <asm/arch-rockchip/sdram.h>
+#include <asm/types.h>
struct dram_info {
struct ram_info info;
diff --git a/drivers/ram/rockchip/sdram_rk3188.c b/drivers/ram/rockchip/sdram_rk3188.c
index cfa6d0ebf1..3523e69ad3 100644
--- a/drivers/ram/rockchip/sdram_rk3188.c
+++ b/drivers/ram/rockchip/sdram_rk3188.c
@@ -16,6 +16,7 @@
#include <log.h>
#include <ram.h>
#include <regmap.h>
+#include <stdbool.h>
#include <stdio.h>
#include <syscon.h>
#include <asm/io.h>
@@ -31,6 +32,7 @@
#include <linux/errno.h>
#include <linux/kernel.h>
#include <linux/string.h>
+#include <linux/types.h>
struct chan_info {
struct rk3288_ddr_pctl *pctl;
diff --git a/drivers/ram/rockchip/sdram_rk3288.c b/drivers/ram/rockchip/sdram_rk3288.c
index 80abe9c9b2..5d931dcf75 100644
--- a/drivers/ram/rockchip/sdram_rk3288.c
+++ b/drivers/ram/rockchip/sdram_rk3288.c
@@ -16,6 +16,7 @@
#include <log.h>
#include <ram.h>
#include <regmap.h>
+#include <stdbool.h>
#include <stdio.h>
#include <syscon.h>
#include <asm/io.h>
@@ -31,6 +32,7 @@
#include <linux/errno.h>
#include <linux/kernel.h>
#include <linux/string.h>
+#include <linux/types.h>
#include <power/regulator.h>
#include <power/rk8xx_pmic.h>
diff --git a/drivers/ram/rockchip/sdram_rk3308.c b/drivers/ram/rockchip/sdram_rk3308.c
index 310df79123..4b37aa1a18 100644
--- a/drivers/ram/rockchip/sdram_rk3308.c
+++ b/drivers/ram/rockchip/sdram_rk3308.c
@@ -10,6 +10,7 @@
#include <asm/arch/grf_rk3308.h>
#include <asm/arch-rockchip/clock.h>
#include <asm/arch-rockchip/sdram.h>
+#include <asm/types.h>
struct dram_info {
struct ram_info info;
diff --git a/drivers/ram/rockchip/sdram_rk3328.c b/drivers/ram/rockchip/sdram_rk3328.c
index 827d52e7a5..404abeba3f 100644
--- a/drivers/ram/rockchip/sdram_rk3328.c
+++ b/drivers/ram/rockchip/sdram_rk3328.c
@@ -4,6 +4,7 @@
*/
#include <common.h>
#include <clk.h>
+#include <compiler.h>
#include <debug_uart.h>
#include <dm.h>
#include <dt-structs.h>
@@ -20,6 +21,7 @@
#include <asm/arch-rockchip/sdram.h>
#include <asm/arch-rockchip/sdram_rk3328.h>
#include <asm/arch-rockchip/uart.h>
+#include <asm/types.h>
#include <linux/delay.h>
#include <linux/kernel.h>
#include <linux/string.h>
diff --git a/drivers/ram/rockchip/sdram_rk3399.c b/drivers/ram/rockchip/sdram_rk3399.c
index 690b8c3f3b..0a4b3a1050 100644
--- a/drivers/ram/rockchip/sdram_rk3399.c
+++ b/drivers/ram/rockchip/sdram_rk3399.c
@@ -7,12 +7,14 @@
#include <common.h>
#include <clk.h>
+#include <compiler.h>
#include <dm.h>
#include <dt-structs.h>
#include <init.h>
#include <log.h>
#include <ram.h>
#include <regmap.h>
+#include <stdbool.h>
#include <stdio.h>
#include <syscon.h>
#include <asm/io.h>
@@ -23,6 +25,7 @@
#include <asm/arch-rockchip/hardware.h>
#include <asm/arch-rockchip/sdram.h>
#include <asm/arch-rockchip/sdram_rk3399.h>
+#include <asm/types.h>
#include <linux/delay.h>
#include <linux/err.h>
#include <time.h>
diff --git a/drivers/ram/sifive/fu540_ddr.c b/drivers/ram/sifive/fu540_ddr.c
index 0270dd088d..ec05dc7f93 100644
--- a/drivers/ram/sifive/fu540_ddr.c
+++ b/drivers/ram/sifive/fu540_ddr.c
@@ -20,6 +20,7 @@
#include <wait_bit.h>
#include <linux/bitops.h>
#include <linux/errno.h>
+#include <linux/types.h>
#define DENALI_CTL_0 0
#define DENALI_CTL_21 21
diff --git a/drivers/ram/stm32_sdram.c b/drivers/ram/stm32_sdram.c
index 04fb730525..31e410ae8a 100644
--- a/drivers/ram/stm32_sdram.c
+++ b/drivers/ram/stm32_sdram.c
@@ -12,6 +12,7 @@
#include <ram.h>
#include <vsprintf.h>
#include <asm/io.h>
+#include <asm/types.h>
#include <dm/device_compat.h>
#include <linux/bitops.h>
#include <linux/delay.h>
diff --git a/drivers/ram/stm32mp1/stm32mp1_ddr.c b/drivers/ram/stm32mp1/stm32mp1_ddr.c
index d122dadd6d..329284c6d9 100644
--- a/drivers/ram/stm32mp1/stm32mp1_ddr.c
+++ b/drivers/ram/stm32mp1/stm32mp1_ddr.c
@@ -5,14 +5,17 @@
#include <common.h>
#include <clk.h>
+#include <compiler.h>
#include <log.h>
#include <ram.h>
#include <reset.h>
+#include <stdbool.h>
#include <stdio.h>
#include <timer.h>
#include <vsprintf.h>
#include <asm/io.h>
#include <asm/arch/ddr.h>
+#include <asm/types.h>
#include <linux/bitops.h>
#include <linux/delay.h>
#include <linux/errno.h>
diff --git a/drivers/ram/stm32mp1/stm32mp1_ddr.h b/drivers/ram/stm32mp1/stm32mp1_ddr.h
index 5f15196b2d..7353112494 100644
--- a/drivers/ram/stm32mp1/stm32mp1_ddr.h
+++ b/drivers/ram/stm32mp1/stm32mp1_ddr.h
@@ -7,6 +7,7 @@
#define _RAM_STM32MP1_DDR_H
#include <stdbool.h>
+#include <asm/types.h>
enum stm32mp1_ddr_interact_step {
STEP_DDR_RESET,
STEP_CTL_INIT,
diff --git a/drivers/ram/stm32mp1/stm32mp1_ddr_regs.h b/drivers/ram/stm32mp1/stm32mp1_ddr_regs.h
index 3c8885a965..6deae23815 100644
--- a/drivers/ram/stm32mp1/stm32mp1_ddr_regs.h
+++ b/drivers/ram/stm32mp1/stm32mp1_ddr_regs.h
@@ -7,6 +7,7 @@
#define _RAM_STM32MP1_DDR_REGS_H
/* DDR3/LPDDR2/LPDDR3 Controller (DDRCTRL) registers */
+#include <asm/types.h>
#include <linux/bitops.h>
struct stm32mp1_ddrctl {
u32 mstr ; /* 0x0 Master*/
diff --git a/drivers/ram/stm32mp1/stm32mp1_interactive.c b/drivers/ram/stm32mp1/stm32mp1_interactive.c
index d45071d3ed..e49257b395 100644
--- a/drivers/ram/stm32mp1/stm32mp1_interactive.c
+++ b/drivers/ram/stm32mp1/stm32mp1_interactive.c
@@ -12,10 +12,12 @@
#include <malloc.h>
#include <ram.h>
#include <reset.h>
+#include <stdbool.h>
#include <stdio.h>
#include <time.h>
#include <vsprintf.h>
#include <asm/global_data.h>
+#include <asm/types.h>
#include <linux/kernel.h>
#include <linux/string.h>
#include "stm32mp1_ddr.h"
diff --git a/drivers/ram/stm32mp1/stm32mp1_ram.c b/drivers/ram/stm32mp1/stm32mp1_ram.c
index 8b49730e63..35d6b0fef2 100644
--- a/drivers/ram/stm32mp1/stm32mp1_ram.c
+++ b/drivers/ram/stm32mp1/stm32mp1_ram.c
@@ -5,11 +5,13 @@
#include <common.h>
#include <clk.h>
+#include <compiler.h>
#include <dm.h>
#include <init.h>
#include <log.h>
#include <ram.h>
#include <regmap.h>
+#include <stdbool.h>
#include <stdio.h>
#include <syscon.h>
#include <asm/io.h>
@@ -17,6 +19,7 @@
#include <linux/kernel.h>
#include <linux/printk.h>
#include <linux/string.h>
+#include <linux/types.h>
#include "stm32mp1_ddr.h"
static const char *const clkname[] = {
diff --git a/drivers/ram/stm32mp1/stm32mp1_tests.c b/drivers/ram/stm32mp1/stm32mp1_tests.c
index 00bdbe6762..e960bc833c 100644
--- a/drivers/ram/stm32mp1/stm32mp1_tests.c
+++ b/drivers/ram/stm32mp1/stm32mp1_tests.c
@@ -7,6 +7,7 @@
#include <init.h>
#include <log.h>
#include <rand.h>
+#include <stdbool.h>
#include <stdio.h>
#include <vsprintf.h>
#include <watchdog.h>
@@ -15,6 +16,7 @@
#include <linux/kernel.h>
#include <linux/log2.h>
#include <linux/string.h>
+#include <linux/types.h>
#include "stm32mp1_tests.h"
#define ADDR_INVALID 0xFFFFFFFF
diff --git a/drivers/ram/stm32mp1/stm32mp1_tuning.c b/drivers/ram/stm32mp1/stm32mp1_tuning.c
index 8da11d0629..0ff63bca66 100644
--- a/drivers/ram/stm32mp1/stm32mp1_tuning.c
+++ b/drivers/ram/stm32mp1/stm32mp1_tuning.c
@@ -9,9 +9,11 @@
#include <ram.h>
#include <rand.h>
#include <reset.h>
+#include <stdbool.h>
#include <stdio.h>
#include <vsprintf.h>
#include <asm/io.h>
+#include <asm/types.h>
#include <linux/bitops.h>
#include <linux/delay.h>
#include <linux/iopoll.h>