From b53ab08479dfef66f98f2a29ac6f9a5cc47b1433 Mon Sep 17 00:00:00 2001 From: Thuy Tran Date: Tue, 26 Dec 2017 09:47:51 +0700 Subject: rcar-gen3: linux-renesas: Update to enable USB 3.0 This commit modifies recipe to install USB 3.0 firmware to kernel source and to enable USB 3.0 in kernel image. Signed-off-by: Khang Nguyen Signed-off-by: Thuy Tran Signed-off-by: Takamitsu Honda --- .../recipes-kernel/linux/linux-renesas/usb3.cfg | 4 ++++ meta-rcar-gen3/recipes-kernel/linux/linux-renesas_4.14.bb | 15 +++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 meta-rcar-gen3/recipes-kernel/linux/linux-renesas/usb3.cfg (limited to 'meta-rcar-gen3') diff --git a/meta-rcar-gen3/recipes-kernel/linux/linux-renesas/usb3.cfg b/meta-rcar-gen3/recipes-kernel/linux/linux-renesas/usb3.cfg new file mode 100644 index 0000000..f58b942 --- /dev/null +++ b/meta-rcar-gen3/recipes-kernel/linux/linux-renesas/usb3.cfg @@ -0,0 +1,4 @@ +CONFIG_FW_LOADER=y +CONFIG_FIRMWARE_IN_KERNEL=y +CONFIG_EXTRA_FIRMWARE="r8a779x_usb3_v2.dlmem r8a779x_usb3_v3.dlmem" +CONFIG_EXTRA_FIRMWARE_DIR="firmware" diff --git a/meta-rcar-gen3/recipes-kernel/linux/linux-renesas_4.14.bb b/meta-rcar-gen3/recipes-kernel/linux/linux-renesas_4.14.bb index 9e33ba4..31695e0 100644 --- a/meta-rcar-gen3/recipes-kernel/linux/linux-renesas_4.14.bb +++ b/meta-rcar-gen3/recipes-kernel/linux/linux-renesas_4.14.bb @@ -27,3 +27,18 @@ SRC_URI_append = " \ ${@bb.utils.contains('MACHINE_FEATURES','cas','file://capacity_aware_migration_strategy.cfg','',d)} \ " +# Install USB3.0 firmware to rootfs +USB3_FIRMWARE_V2 = "https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/plain/r8a779x_usb3_v2.dlmem;md5sum=645db7e9056029efa15f158e51cc8a11" +USB3_FIRMWARE_V3 = "https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/plain/r8a779x_usb3_v3.dlmem;md5sum=687d5d42f38f9850f8d5a6071dca3109" + +SRC_URI_append = " \ + ${USB3_FIRMWARE_V2} \ + ${USB3_FIRMWARE_V3} \ + ${@bb.utils.contains('MACHINE_FEATURES','usb3','file://usb3.cfg','',d)} \ +" + +do_download_firmware () { + install -m 755 ${WORKDIR}/r8a779x_usb3_v*.dlmem ${STAGING_KERNEL_DIR}/firmware +} + +addtask do_download_firmware after do_configure before do_compile -- cgit 1.2.3-korg