[U-Boot] [PATCH 13/23] x86: Make CAR and DRAM FSP code common

Bin Meng bmeng.cn at gmail.com
Tue Jan 27 13:27:19 CET 2015


On Tue, Jan 27, 2015 at 9:23 AM, Simon Glass <sjg at chromium.org> wrote:
> For now this code seems to be the same for all FSP platforms. Make it
> common until we see what differences are required.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
>
>  arch/x86/cpu/queensbay/Makefile                           | 2 +-
>  arch/x86/lib/fsp/Makefile                                 | 2 ++
>  arch/x86/{cpu/queensbay/tnc_car.S => lib/fsp/fsp_car.S}   | 0
>  arch/x86/{cpu/queensbay/tnc_dram.c => lib/fsp/fsp_dram.c} | 0
>  4 files changed, 3 insertions(+), 1 deletion(-)
>  rename arch/x86/{cpu/queensbay/tnc_car.S => lib/fsp/fsp_car.S} (100%)
>  rename arch/x86/{cpu/queensbay/tnc_dram.c => lib/fsp/fsp_dram.c} (100%)
>
> diff --git a/arch/x86/cpu/queensbay/Makefile b/arch/x86/cpu/queensbay/Makefile
> index b3e7d87..d8761fd 100644
> --- a/arch/x86/cpu/queensbay/Makefile
> +++ b/arch/x86/cpu/queensbay/Makefile
> @@ -4,6 +4,6 @@
>  # SPDX-License-Identifier:     GPL-2.0+
>  #
>
> -obj-y += tnc_car.o tnc_dram.o tnc.o topcliff.o
>  obj-y += fsp_configs.o
> +obj-y += tnc.o topcliff.o
>  obj-$(CONFIG_PCI) += tnc_pci.o
> diff --git a/arch/x86/lib/fsp/Makefile b/arch/x86/lib/fsp/Makefile
> index 1b9b0e2..3a2bac0 100644
> --- a/arch/x86/lib/fsp/Makefile
> +++ b/arch/x86/lib/fsp/Makefile
> @@ -4,4 +4,6 @@
>  # SPDX-License-Identifier:     GPL-2.0+
>  #
>
> +obj-y += fsp_car.o
> +obj-y += fsp_dram.o
>  obj-y += fsp_support.o
> diff --git a/arch/x86/cpu/queensbay/tnc_car.S b/arch/x86/lib/fsp/fsp_car.S
> similarity index 100%
> rename from arch/x86/cpu/queensbay/tnc_car.S
> rename to arch/x86/lib/fsp/fsp_car.S
> diff --git a/arch/x86/cpu/queensbay/tnc_dram.c b/arch/x86/lib/fsp/fsp_dram.c
> similarity index 100%
> rename from arch/x86/cpu/queensbay/tnc_dram.c
> rename to arch/x86/lib/fsp/fsp_dram.c
> --

Reviewed-by: Bin Meng <bmeng.cn at gmail.com>
Tested-by: Bin Meng <bmeng.cn at gmail.com>


More information about the U-Boot mailing list