drivers: renesas: ddr: Move to common
Move ddr driver code to common directory, so that the same code can be re-used by both R-Car Gen3 and RZ/G2 platforms. Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com> Reviewed-by: Biju Das <biju.das.jz@bp.renesas.com> Change-Id: I9aef73d3e9a027a127ce7483b72d339559866727
This commit is contained in:
parent
404bcbd70a
commit
faf5587cfd
|
@ -0,0 +1,17 @@
|
||||||
|
#
|
||||||
|
# Copyright (c) 2015-2021, Renesas Electronics Corporation. All rights reserved.
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
#
|
||||||
|
|
||||||
|
ifeq (${RCAR_LSI},${RCAR_E3})
|
||||||
|
include drivers/renesas/common/ddr/ddr_a/ddr_a.mk
|
||||||
|
BL2_SOURCES += drivers/renesas/common/ddr/dram_sub_func.c
|
||||||
|
else ifeq (${RCAR_LSI},${RCAR_D3})
|
||||||
|
include drivers/renesas/common/ddr/ddr_a/ddr_a.mk
|
||||||
|
else ifeq (${RCAR_LSI},${RCAR_V3M})
|
||||||
|
include drivers/renesas/common/ddr/ddr_a/ddr_a.mk
|
||||||
|
else
|
||||||
|
include drivers/renesas/common/ddr/ddr_b/ddr_b.mk
|
||||||
|
BL2_SOURCES += drivers/renesas/common/ddr/dram_sub_func.c
|
||||||
|
endif
|
|
@ -0,0 +1,13 @@
|
||||||
|
#
|
||||||
|
# Copyright (c) 2015-2021, Renesas Electronics Corporation. All rights reserved.
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
#
|
||||||
|
|
||||||
|
ifeq (${RCAR_LSI},${RCAR_E3})
|
||||||
|
BL2_SOURCES += drivers/renesas/common/ddr/ddr_a/ddr_init_e3.c
|
||||||
|
else ifeq (${RCAR_LSI},${RCAR_D3})
|
||||||
|
BL2_SOURCES += drivers/renesas/common/ddr/ddr_a/ddr_init_d3.c
|
||||||
|
else
|
||||||
|
BL2_SOURCES += drivers/renesas/common/ddr/ddr_a/ddr_init_v3m.c
|
||||||
|
endif
|
|
@ -0,0 +1,7 @@
|
||||||
|
#
|
||||||
|
# Copyright (c) 2015-2021, Renesas Electronics Corporation. All rights reserved.
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
#
|
||||||
|
|
||||||
|
BL2_SOURCES += drivers/renesas/common/ddr/ddr_b/boot_init_dram.c
|
|
@ -1,17 +0,0 @@
|
||||||
#
|
|
||||||
# Copyright (c) 2015-2018, Renesas Electronics Corporation. All rights reserved.
|
|
||||||
#
|
|
||||||
# SPDX-License-Identifier: BSD-3-Clause
|
|
||||||
#
|
|
||||||
|
|
||||||
ifeq (${RCAR_LSI},${RCAR_E3})
|
|
||||||
include drivers/renesas/rcar/ddr/ddr_a/ddr_a.mk
|
|
||||||
BL2_SOURCES += drivers/renesas/rcar/ddr/dram_sub_func.c
|
|
||||||
else ifeq (${RCAR_LSI},${RCAR_D3})
|
|
||||||
include drivers/renesas/rcar/ddr/ddr_a/ddr_a.mk
|
|
||||||
else ifeq (${RCAR_LSI},${RCAR_V3M})
|
|
||||||
include drivers/renesas/rcar/ddr/ddr_a/ddr_a.mk
|
|
||||||
else
|
|
||||||
include drivers/renesas/rcar/ddr/ddr_b/ddr_b.mk
|
|
||||||
BL2_SOURCES += drivers/renesas/rcar/ddr/dram_sub_func.c
|
|
||||||
endif
|
|
|
@ -1,13 +0,0 @@
|
||||||
#
|
|
||||||
# Copyright (c) 2015-2018, Renesas Electronics Corporation. All rights reserved.
|
|
||||||
#
|
|
||||||
# SPDX-License-Identifier: BSD-3-Clause
|
|
||||||
#
|
|
||||||
|
|
||||||
ifeq (${RCAR_LSI},${RCAR_E3})
|
|
||||||
BL2_SOURCES += drivers/renesas/rcar/ddr/ddr_a/ddr_init_e3.c
|
|
||||||
else ifeq (${RCAR_LSI},${RCAR_D3})
|
|
||||||
BL2_SOURCES += drivers/renesas/rcar/ddr/ddr_a/ddr_init_d3.c
|
|
||||||
else
|
|
||||||
BL2_SOURCES += drivers/renesas/rcar/ddr/ddr_a/ddr_init_v3m.c
|
|
||||||
endif
|
|
|
@ -1,7 +0,0 @@
|
||||||
#
|
|
||||||
# Copyright (c) 2015-2018, Renesas Electronics Corporation. All rights reserved.
|
|
||||||
#
|
|
||||||
# SPDX-License-Identifier: BSD-3-Clause
|
|
||||||
#
|
|
||||||
|
|
||||||
BL2_SOURCES += drivers/renesas/rcar/ddr/ddr_b/boot_init_dram.c
|
|
|
@ -1,5 +1,5 @@
|
||||||
#
|
#
|
||||||
# Copyright (c) 2018-2020, Renesas Electronics Corporation. All rights reserved.
|
# Copyright (c) 2018-2021, Renesas Electronics Corporation. All rights reserved.
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: BSD-3-Clause
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
#
|
#
|
||||||
|
@ -293,12 +293,12 @@ ifeq (${RCAR_SYSTEM_RESET_KEEPON_DDR},1)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
include drivers/renesas/rcar/ddr/ddr.mk
|
include drivers/renesas/common/ddr/ddr.mk
|
||||||
include drivers/renesas/rcar/qos/qos.mk
|
include drivers/renesas/rcar/qos/qos.mk
|
||||||
include drivers/renesas/rcar/pfc/pfc.mk
|
include drivers/renesas/rcar/pfc/pfc.mk
|
||||||
include lib/libfdt/libfdt.mk
|
include lib/libfdt/libfdt.mk
|
||||||
|
|
||||||
PLAT_INCLUDES += -Idrivers/renesas/rcar/ddr \
|
PLAT_INCLUDES += -Idrivers/renesas/common/ddr \
|
||||||
-Idrivers/renesas/rcar/qos \
|
-Idrivers/renesas/rcar/qos \
|
||||||
-Idrivers/renesas/rcar/board \
|
-Idrivers/renesas/rcar/board \
|
||||||
-Idrivers/renesas/rcar/cpld/ \
|
-Idrivers/renesas/rcar/cpld/ \
|
||||||
|
|
Loading…
Reference in New Issue