mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-21 04:14:34 +00:00
ddr: 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:
parent
dcd59134c6
commit
7be5c4cb40
41 changed files with 25 additions and 41 deletions
|
@ -4,7 +4,6 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <common.h>
|
|
||||||
#include <dm.h>
|
#include <dm.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <div64.h>
|
#include <div64.h>
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
* Copyright (C) 2017 Intel Corporation <www.intel.com>
|
* Copyright (C) 2017 Intel Corporation <www.intel.com>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <common.h>
|
|
||||||
#include <cpu_func.h>
|
#include <cpu_func.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <fdtdec.h>
|
#include <fdtdec.h>
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
/*
|
/*
|
||||||
* Copyright Altera Corporation (C) 2014-2015
|
* Copyright Altera Corporation (C) 2014-2015
|
||||||
*/
|
*/
|
||||||
#include <common.h>
|
|
||||||
#include <dm.h>
|
#include <dm.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <div64.h>
|
#include <div64.h>
|
||||||
|
|
|
@ -4,7 +4,6 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <common.h>
|
|
||||||
#include <clk.h>
|
#include <clk.h>
|
||||||
#include <div64.h>
|
#include <div64.h>
|
||||||
#include <dm.h>
|
#include <dm.h>
|
||||||
|
|
|
@ -4,7 +4,6 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <common.h>
|
|
||||||
#include <cpu_func.h>
|
#include <cpu_func.h>
|
||||||
#include <dm.h>
|
#include <dm.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
|
@ -4,7 +4,6 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <common.h>
|
|
||||||
#include <cpu_func.h>
|
#include <cpu_func.h>
|
||||||
#include <dm.h>
|
#include <dm.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
|
@ -3,8 +3,8 @@
|
||||||
* Copyright Altera Corporation (C) 2012-2015
|
* Copyright Altera Corporation (C) 2012-2015
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <common.h>
|
|
||||||
#include <log.h>
|
#include <log.h>
|
||||||
|
#include <linux/string.h>
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
#include <asm/arch/sdram.h>
|
#include <asm/arch/sdram.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
|
@ -6,6 +6,8 @@
|
||||||
#ifndef _SEQUENCER_H_
|
#ifndef _SEQUENCER_H_
|
||||||
#define _SEQUENCER_H_
|
#define _SEQUENCER_H_
|
||||||
|
|
||||||
|
#include <config.h>
|
||||||
|
|
||||||
#define RW_MGR_NUM_DM_PER_WRITE_GROUP (seq->rwcfg->mem_data_mask_width \
|
#define RW_MGR_NUM_DM_PER_WRITE_GROUP (seq->rwcfg->mem_data_mask_width \
|
||||||
/ seq->rwcfg->mem_if_write_dqs_width)
|
/ seq->rwcfg->mem_if_write_dqs_width)
|
||||||
#define RW_MGR_NUM_TRUE_DM_PER_WRITE_GROUP ( \
|
#define RW_MGR_NUM_TRUE_DM_PER_WRITE_GROUP ( \
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* Derived from mpc85xx_ddr_gen3.c, removed all workarounds
|
* Derived from mpc85xx_ddr_gen3.c, removed all workarounds
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <common.h>
|
#include <config.h>
|
||||||
#include <log.h>
|
#include <log.h>
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
#include <fsl_ddr_sdram.h>
|
#include <fsl_ddr_sdram.h>
|
||||||
|
|
|
@ -10,12 +10,13 @@
|
||||||
* Author: James Yang [at freescale.com]
|
* Author: James Yang [at freescale.com]
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <common.h>
|
#include <config.h>
|
||||||
#include <fsl_ddr_sdram.h>
|
#include <fsl_ddr_sdram.h>
|
||||||
#include <fsl_errata.h>
|
#include <fsl_errata.h>
|
||||||
#include <fsl_ddr.h>
|
#include <fsl_ddr.h>
|
||||||
#include <fsl_immap.h>
|
#include <fsl_immap.h>
|
||||||
#include <log.h>
|
#include <log.h>
|
||||||
|
#include <linux/string.h>
|
||||||
#include <asm/bitops.h>
|
#include <asm/bitops.h>
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
#if defined(CONFIG_FSL_LSCH2) || defined(CONFIG_FSL_LSCH3) || \
|
#if defined(CONFIG_FSL_LSCH2) || defined(CONFIG_FSL_LSCH3) || \
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
* Copyright 2008 Freescale Semiconductor, Inc.
|
* Copyright 2008 Freescale Semiconductor, Inc.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <common.h>
|
|
||||||
#include <fsl_ddr_sdram.h>
|
#include <fsl_ddr_sdram.h>
|
||||||
#include <log.h>
|
#include <log.h>
|
||||||
#include <asm/bitops.h>
|
#include <asm/bitops.h>
|
||||||
|
|
|
@ -3,9 +3,9 @@
|
||||||
* Copyright 2008 Freescale Semiconductor, Inc.
|
* Copyright 2008 Freescale Semiconductor, Inc.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <common.h>
|
|
||||||
#include <fsl_ddr_sdram.h>
|
#include <fsl_ddr_sdram.h>
|
||||||
#include <log.h>
|
#include <log.h>
|
||||||
|
#include <linux/string.h>
|
||||||
#include <asm/bitops.h>
|
#include <asm/bitops.h>
|
||||||
|
|
||||||
#include <fsl_ddr.h>
|
#include <fsl_ddr.h>
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
* JEDEC standard No.21-C 4_01_02_11R18.pdf
|
* JEDEC standard No.21-C 4_01_02_11R18.pdf
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <common.h>
|
#include <linux/string.h>
|
||||||
#include <fsl_ddr_sdram.h>
|
#include <fsl_ddr_sdram.h>
|
||||||
#include <log.h>
|
#include <log.h>
|
||||||
|
|
||||||
|
|
|
@ -10,10 +10,10 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <common.h>
|
|
||||||
#include <fsl_ddr_sdram.h>
|
#include <fsl_ddr_sdram.h>
|
||||||
#include <log.h>
|
#include <log.h>
|
||||||
#include <linux/bug.h>
|
#include <linux/bug.h>
|
||||||
|
#include <linux/string.h>
|
||||||
|
|
||||||
#include <fsl_ddr.h>
|
#include <fsl_ddr.h>
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
* Copyright 2021 NXP
|
* Copyright 2021 NXP
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <common.h>
|
#include <config.h>
|
||||||
#include <env.h>
|
#include <env.h>
|
||||||
#include <log.h>
|
#include <log.h>
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
* Generic driver for Freescale MMDC(Multi Mode DDR Controller).
|
* Generic driver for Freescale MMDC(Multi Mode DDR Controller).
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <common.h>
|
#include <config.h>
|
||||||
#include <fsl_mmdc.h>
|
#include <fsl_mmdc.h>
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
#include <linux/delay.h>
|
#include <linux/delay.h>
|
||||||
|
|
|
@ -11,11 +11,11 @@
|
||||||
* York Sun [at freescale.com]
|
* York Sun [at freescale.com]
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <common.h>
|
|
||||||
#include <cli.h>
|
#include <cli.h>
|
||||||
#include <command.h>
|
#include <command.h>
|
||||||
#include <env.h>
|
#include <env.h>
|
||||||
#include <log.h>
|
#include <log.h>
|
||||||
|
#include <vsprintf.h>
|
||||||
#include <asm/bitops.h>
|
#include <asm/bitops.h>
|
||||||
#include <linux/ctype.h>
|
#include <linux/ctype.h>
|
||||||
#include <asm/types.h>
|
#include <asm/types.h>
|
||||||
|
|
|
@ -4,7 +4,6 @@
|
||||||
* Copyright 2017-2021 NXP Semiconductor
|
* Copyright 2017-2021 NXP Semiconductor
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <common.h>
|
|
||||||
#include <fsl_ddr_sdram.h>
|
#include <fsl_ddr_sdram.h>
|
||||||
#include <log.h>
|
#include <log.h>
|
||||||
#include <asm/bitops.h>
|
#include <asm/bitops.h>
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
* Author: James Yang [at freescale.com]
|
* Author: James Yang [at freescale.com]
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <common.h>
|
#include <config.h>
|
||||||
#include <display_options.h>
|
#include <display_options.h>
|
||||||
#include <dm.h>
|
#include <dm.h>
|
||||||
#include <i2c.h>
|
#include <i2c.h>
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
* Copyright 2008 Freescale Semiconductor, Inc.
|
* Copyright 2008 Freescale Semiconductor, Inc.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <common.h>
|
#include <config.h>
|
||||||
#include <log.h>
|
#include <log.h>
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
#include <fsl_ddr_sdram.h>
|
#include <fsl_ddr_sdram.h>
|
||||||
|
|
|
@ -3,9 +3,9 @@
|
||||||
* Copyright 2008-2011 Freescale Semiconductor, Inc.
|
* Copyright 2008-2011 Freescale Semiconductor, Inc.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <common.h>
|
#include <config.h>
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
#include <asm/processor.h>
|
#include <asm/ppc.h>
|
||||||
#include <fsl_ddr_sdram.h>
|
#include <fsl_ddr_sdram.h>
|
||||||
#include <linux/delay.h>
|
#include <linux/delay.h>
|
||||||
|
|
||||||
|
|
|
@ -3,9 +3,10 @@
|
||||||
* Copyright 2008-2020 Freescale Semiconductor, Inc.
|
* Copyright 2008-2020 Freescale Semiconductor, Inc.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <common.h>
|
#include <config.h>
|
||||||
#include <log.h>
|
#include <log.h>
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
|
#include <asm/ppc.h>
|
||||||
#include <fsl_ddr_sdram.h>
|
#include <fsl_ddr_sdram.h>
|
||||||
#include <asm/processor.h>
|
#include <asm/processor.h>
|
||||||
#include <linux/delay.h>
|
#include <linux/delay.h>
|
||||||
|
|
|
@ -4,16 +4,19 @@
|
||||||
* Copyright 2017-2018 NXP Semiconductor
|
* Copyright 2017-2018 NXP Semiconductor
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <common.h>
|
#include <config.h>
|
||||||
#include <env.h>
|
#include <env.h>
|
||||||
#include <hwconfig.h>
|
#include <hwconfig.h>
|
||||||
#include <fsl_ddr_sdram.h>
|
#include <fsl_ddr_sdram.h>
|
||||||
#include <log.h>
|
#include <log.h>
|
||||||
|
#include <vsprintf.h>
|
||||||
|
|
||||||
#include <fsl_ddr.h>
|
#include <fsl_ddr.h>
|
||||||
#if defined(CONFIG_FSL_LSCH2) || defined(CONFIG_FSL_LSCH3) || \
|
#if defined(CONFIG_FSL_LSCH2) || defined(CONFIG_FSL_LSCH3) || \
|
||||||
defined(CONFIG_ARM)
|
defined(CONFIG_ARM)
|
||||||
#include <asm/arch/clock.h>
|
#include <asm/arch/clock.h>
|
||||||
|
#else
|
||||||
|
#include <asm/ppc.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -4,9 +4,10 @@
|
||||||
* Copyright 2021 NXP
|
* Copyright 2021 NXP
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <common.h>
|
#include <config.h>
|
||||||
#ifdef CONFIG_PPC
|
#ifdef CONFIG_PPC
|
||||||
#include <asm/fsl_law.h>
|
#include <asm/fsl_law.h>
|
||||||
|
#include <asm/ppc.h>
|
||||||
#endif
|
#endif
|
||||||
#include <div64.h>
|
#include <div64.h>
|
||||||
#include <linux/delay.h>
|
#include <linux/delay.h>
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
* Copyright 2018-2019 NXP
|
* Copyright 2018-2019 NXP
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <common.h>
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <log.h>
|
#include <log.h>
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2021 NXP
|
* Copyright 2021 NXP
|
||||||
*/
|
*/
|
||||||
#include <common.h>
|
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
#include <asm/arch/clock.h>
|
#include <asm/arch/clock.h>
|
||||||
#include <asm/arch/ddr.h>
|
#include <asm/arch/ddr.h>
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
* Copyright 2022 NXP
|
* Copyright 2022 NXP
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <common.h>
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <log.h>
|
#include <log.h>
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
|
@ -11,6 +10,7 @@
|
||||||
#include <asm/arch/clock.h>
|
#include <asm/arch/clock.h>
|
||||||
#include <asm/arch/sys_proto.h>
|
#include <asm/arch/sys_proto.h>
|
||||||
#include <linux/delay.h>
|
#include <linux/delay.h>
|
||||||
|
#include <linux/string.h>
|
||||||
|
|
||||||
static unsigned int g_cdd_rr_max[4];
|
static unsigned int g_cdd_rr_max[4];
|
||||||
static unsigned int g_cdd_rw_max[4];
|
static unsigned int g_cdd_rw_max[4];
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
* Copyright 2018 NXP
|
* Copyright 2018 NXP
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <common.h>
|
|
||||||
#include <log.h>
|
#include <log.h>
|
||||||
#include <linux/kernel.h>
|
#include <linux/kernel.h>
|
||||||
#include <asm/arch/ddr.h>
|
#include <asm/arch/ddr.h>
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
* Copyright 2018 NXP
|
* Copyright 2018 NXP
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <common.h>
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <log.h>
|
#include <log.h>
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
* Copyright 2018 NXP
|
* Copyright 2018 NXP
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <common.h>
|
|
||||||
#include <binman_sym.h>
|
#include <binman_sym.h>
|
||||||
#include <log.h>
|
#include <log.h>
|
||||||
#include <spl.h>
|
#include <spl.h>
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
* Copyright (C) Marvell International Ltd. and its affiliates
|
* Copyright (C) Marvell International Ltd. and its affiliates
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <common.h>
|
|
||||||
#include <i2c.h>
|
#include <i2c.h>
|
||||||
#include <spl.h>
|
#include <spl.h>
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
* Copyright (C) Marvell International Ltd. and its affiliates
|
* Copyright (C) Marvell International Ltd. and its affiliates
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <common.h>
|
|
||||||
#include <i2c.h>
|
#include <i2c.h>
|
||||||
#include <log.h>
|
#include <log.h>
|
||||||
#include <spl.h>
|
#include <spl.h>
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
* Copyright (C) Marvell International Ltd. and its affiliates
|
* Copyright (C) Marvell International Ltd. and its affiliates
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <common.h>
|
|
||||||
#include <i2c.h>
|
#include <i2c.h>
|
||||||
#include <log.h>
|
#include <log.h>
|
||||||
#include <spl.h>
|
#include <spl.h>
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
* Copyright (C) Marvell International Ltd. and its affiliates
|
* Copyright (C) Marvell International Ltd. and its affiliates
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <common.h>
|
|
||||||
#include <i2c.h>
|
#include <i2c.h>
|
||||||
#include <log.h>
|
#include <log.h>
|
||||||
#include <spl.h>
|
#include <spl.h>
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
* Copyright (C) Marvell International Ltd. and its affiliates
|
* Copyright (C) Marvell International Ltd. and its affiliates
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <common.h>
|
|
||||||
#include <i2c.h>
|
#include <i2c.h>
|
||||||
#include <spl.h>
|
#include <spl.h>
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
* Copyright (C) Marvell International Ltd. and its affiliates
|
* Copyright (C) Marvell International Ltd. and its affiliates
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <common.h>
|
|
||||||
#include <i2c.h>
|
#include <i2c.h>
|
||||||
#include <log.h>
|
#include <log.h>
|
||||||
#include <spl.h>
|
#include <spl.h>
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
* Copyright (C) Marvell International Ltd. and its affiliates
|
* Copyright (C) Marvell International Ltd. and its affiliates
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <common.h>
|
|
||||||
#include <i2c.h>
|
#include <i2c.h>
|
||||||
#include <spl.h>
|
#include <spl.h>
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
* Copyright (C) Marvell International Ltd. and its affiliates
|
* Copyright (C) Marvell International Ltd. and its affiliates
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <common.h>
|
|
||||||
#include <i2c.h>
|
#include <i2c.h>
|
||||||
#include <spl.h>
|
#include <spl.h>
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
* Copyright (C) Marvell International Ltd. and its affiliates
|
* Copyright (C) Marvell International Ltd. and its affiliates
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <common.h>
|
|
||||||
#include <i2c.h>
|
#include <i2c.h>
|
||||||
#include <log.h>
|
#include <log.h>
|
||||||
#include <spl.h>
|
#include <spl.h>
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
* Copyright (C) Marvell International Ltd. and its affiliates
|
* Copyright (C) Marvell International Ltd. and its affiliates
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <common.h>
|
|
||||||
#include <i2c.h>
|
#include <i2c.h>
|
||||||
#include <log.h>
|
#include <log.h>
|
||||||
#include <spl.h>
|
#include <spl.h>
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
* (c) 2015 Paul Thacker <paul.thacker@microchip.com>
|
* (c) 2015 Paul Thacker <paul.thacker@microchip.com>
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
#include <common.h>
|
|
||||||
#include <wait_bit.h>
|
#include <wait_bit.h>
|
||||||
#include <linux/kernel.h>
|
#include <linux/kernel.h>
|
||||||
#include <linux/bitops.h>
|
#include <linux/bitops.h>
|
||||||
|
|
Loading…
Add table
Reference in a new issue