From patchwork Thu Jan 16 08:11:36 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: mingming lee X-Patchwork-Id: 239641 List-Id: U-Boot discussion From: mingming.lee at mediatek.com (mingming lee) Date: Thu, 16 Jan 2020 16:11:36 +0800 Subject: [PATCH v2 0/6] Add fastboot support for MediaTek mt8518 Message-ID: <20200116081142.4849-1-mingming.lee@mediatek.com> This patch series adds basic fastboot support for MediaTek MT8518 EMMC boards, including musb-new structure for gadget driver and fastboot related configs. --- Changes for v2: - Limit the config in this patch depends on ARCH_MEDIATEK. - config all the added function,avoid affect other IC config. - fixed the build error for other defconfig,such as dra7xx_evm_defconfig. mingming lee (6): usb: musb-new: mt85xx: add musb-new gadget driver. ARM: Mediatek: Add board_late_init to init usb gadget driver configs: mt8518: set global variables for fastboot configs: mt8518: enable usb gadget driver configs: mt8518: Enable fastboot related configs fastboot: mt85xx: add command to flash/erase emmc hwpart arch/arm/dts/mt8518.dtsi | 13 + board/mediatek/mt8518/mt8518_ap1.c | 18 ++ configs/mt8518_ap1_emmc_defconfig | 22 ++ drivers/fastboot/Kconfig | 30 +++ drivers/fastboot/fb_mmc.c | 102 +++++++ drivers/usb/musb-new/Kconfig | 11 +- drivers/usb/musb-new/Makefile | 1 + drivers/usb/musb-new/mt85xx.c | 417 +++++++++++++++++++++++++++++ include/configs/mt8518.h | 10 +- 9 files changed, 619 insertions(+), 5 deletions(-) create mode 100644 drivers/usb/musb-new/mt85xx.c