diff options
author | Yangbo Lu <yangbo.lu@nxp.com> | 2020-08-03 11:59:55 +0800 |
---|---|---|
committer | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2021-02-19 20:09:29 +0100 |
commit | 727279333022ad2154e92f38c0b07547587e8239 (patch) | |
tree | ed5372aaaf33b1b84d8f97432f9f4353d3a62a3e /package/firmware | |
parent | 7f933db1086fb0470ba8db7916202ec711102b82 (diff) | |
download | upstream-727279333022ad2154e92f38c0b07547587e8239.tar.gz upstream-727279333022ad2154e92f38c0b07547587e8239.tar.bz2 upstream-727279333022ad2154e92f38c0b07547587e8239.zip |
layerscape: add ddr-phy package
Add ddr-phy package for layerscape. Currently only LX2160ARDB
requires the package.
Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
[use AUTORELEASE]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
(cherry picked from commit f59d7aab2a374d27abfdc50348d855db5560db8f)
Diffstat (limited to 'package/firmware')
-rw-r--r-- | package/firmware/layerscape/ls-ddr-phy/Makefile | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/package/firmware/layerscape/ls-ddr-phy/Makefile b/package/firmware/layerscape/ls-ddr-phy/Makefile new file mode 100644 index 0000000000..ea2ec311b8 --- /dev/null +++ b/package/firmware/layerscape/ls-ddr-phy/Makefile @@ -0,0 +1,50 @@ +# SPDX-License-Identifier: GPL-2.0-or-later +# +# Copyright 2020 NXP +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=ls-ddr-phy +PKG_VERSION:=LSDK-20.04-update-290520 +PKG_RELEASE:=$(AUTORELEASE) + +PKG_SOURCE_PROTO:=git +PKG_SOURCE_URL:=https://github.com/NXP/ddr-phy-binary.git +PKG_SOURCE_VERSION:=fbc036b88acb6c06ffed02c898cbae9856ec75ba +PKG_MIRROR_HASH:=84e2bdea99384211971bb23ba9ed18b5839628ff2aa0738d2978bbdf841638cb +PKG_BUILD_DEPENDS:=tfa-layerscape/host + +PKG_LICENSE:=EULA +PKG_LICENSE_FILES:=NXP-Binary-EULA.txt + +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/ && \ + tfa-fiptool create \ + --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)) |