2020-08-03 03:59:55 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#
|
|
|
|
# Copyright 2020 NXP
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=ls-ddr-phy
|
2022-02-17 17:14:37 +00:00
|
|
|
PKG_VERSION:=21.08
|
2023-05-17 13:08:40 +00:00
|
|
|
PKG_RELEASE:=3
|
2020-08-03 03:59:55 +00:00
|
|
|
|
|
|
|
PKG_SOURCE_PROTO:=git
|
|
|
|
PKG_SOURCE_URL:=https://github.com/NXP/ddr-phy-binary.git
|
2021-10-11 10:54:48 +00:00
|
|
|
PKG_SOURCE_VERSION:=LSDK-21.08
|
2022-07-19 18:11:02 +00:00
|
|
|
PKG_MIRROR_HASH:=0fb35c697f4b4274577cce63223198f5c7715164a2c5d09a55c46ef17639ed4b
|
2020-08-03 03:59:55 +00:00
|
|
|
PKG_BUILD_DEPENDS:=tfa-layerscape/host
|
|
|
|
|
|
|
|
PKG_LICENSE:=EULA
|
|
|
|
PKG_LICENSE_FILES:=NXP-Binary-EULA.txt
|
|
|
|
|
2021-05-02 22:35:38 +00:00
|
|
|
PKG_FLAGS:=nonshared
|
|
|
|
|
2020-08-03 03:59:55 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/layerscape-ddr-phy
|
|
|
|
SECTION:=firmware
|
|
|
|
CATEGORY:=Firmware
|
|
|
|
TITLE:=NXP Layerscape DDR PHY firmware
|
|
|
|
DEPENDS:=@TARGET_layerscape
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
cd $(PKG_BUILD_DIR)/lx2160a/ && \
|
2021-02-20 18:18:12 +00:00
|
|
|
fiptool-layerscape create \
|
2020-08-03 03:59:55 +00:00
|
|
|
--ddr-immem-udimm-1d ddr4_pmu_train_imem.bin \
|
|
|
|
--ddr-immem-udimm-2d ddr4_2d_pmu_train_imem.bin \
|
|
|
|
--ddr-dmmem-udimm-1d ddr4_pmu_train_dmem.bin \
|
|
|
|
--ddr-dmmem-udimm-2d ddr4_2d_pmu_train_dmem.bin \
|
|
|
|
--ddr-immem-rdimm-1d ddr4_rdimm_pmu_train_imem.bin \
|
|
|
|
--ddr-immem-rdimm-2d ddr4_rdimm2d_pmu_train_imem.bin \
|
|
|
|
--ddr-dmmem-rdimm-1d ddr4_rdimm_pmu_train_dmem.bin \
|
|
|
|
--ddr-dmmem-rdimm-2d ddr4_rdimm2d_pmu_train_dmem.bin \
|
|
|
|
fip_ddr_all.bin
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/InstallDev
|
|
|
|
$(INSTALL_DIR) $(STAGING_DIR_IMAGE)
|
|
|
|
$(CP) $(PKG_BUILD_DIR)/lx2160a/fip_ddr_all.bin \
|
|
|
|
$(STAGING_DIR_IMAGE)/fsl_lx2160a-rdb-fip_ddr_all.bin
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,layerscape-ddr-phy))
|