Re: [PATCH 0/5] board: mediatek: pumpkin: add fastboot support

2021-12-16 Thread Fabien Parent
Hi Simon, On Sat, Nov 13, 2021 at 3:20 PM Simon Glass wrote: > > Hi Fabien, > > On Fri, 16 Oct 2020 at 09:40, Fabien Parent wrote: > > > > This series adds USB/Fastboot support on MT8516 Pumpkin board. > > > > Fabien Parent (5): > > arm: dts: mt8516:

Re: [PATCH 1/3] clk: mediatek: Add MT8175 clock driver

2021-04-19 Thread Fabien Parent
Please do NOT merge this patch series. MTK asked me to resend this patch series with a different SoC Part-Number. On Tue, Mar 30, 2021 at 4:31 PM Fabien Parent wrote: > > Add the topckgen, apmixedsys and infracfg clock driver for the MT8175 > SoC. > > Signed-off-by

[PATCH 1/3] clk: mediatek: Add MT8175 clock driver

2021-03-30 Thread Fabien Parent
Add the topckgen, apmixedsys and infracfg clock driver for the MT8175 SoC. Signed-off-by: Fabien Parent --- drivers/clk/mediatek/Makefile | 1 + drivers/clk/mediatek/clk-mt8175.c | 785 + include/dt-bindings/clock/mt8175-clk.h | 392 3 files

[PATCH 3/3] board: Add MT8175 pumpkin board support

2021-03-30 Thread Fabien Parent
Add the MT8175 pumpkin board support. Signed-off-by: Fabien Parent Reviewed-by: Chunfeng Yun --- arch/arm/dts/Makefile | 1 + arch/arm/dts/mt8175-pumpkin.dts| 95 ++ board/mediatek/mt8175/Kconfig | 13 board/mediatek/mt8175

[PATCH 2/3] ARM: mediatek: Add MT8175 support

2021-03-30 Thread Fabien Parent
Add MT8175 SoC support. Signed-off-by: Fabien Parent --- v2: * Removed 'usb_host' node * Removed some unneeded "mac" reg and interrupts definitio in the 'usb' node * Modify the u3phy and its subnode to encode the ranges property as

Re: [PATCH 2/3] ARM: mediatek: Add MT8175 support

2021-03-30 Thread Fabien Parent
Hi Chunfeng, On Tue, Mar 30, 2021 at 4:53 AM Chunfeng Yun wrote: > > On Mon, 2021-03-29 at 21:27 +0200, Fabien Parent wrote: > > Add MT8175 SoC support. > > > > Signed-off-by: Fabien Parent > > --- > > arch/arm/dts/mt8175.dtsi | 247

[PATCH 2/3] ARM: mediatek: Add MT8175 support

2021-03-29 Thread Fabien Parent
Add MT8175 SoC support. Signed-off-by: Fabien Parent --- arch/arm/dts/mt8175.dtsi | 247 + arch/arm/mach-mediatek/Kconfig | 9 + arch/arm/mach-mediatek/Makefile| 1 + arch/arm/mach-mediatek/mt8175/Makefile | 3 + arch/arm/mach-mediatek

[PATCH 3/3] board: Add MT8175 pumpkin board support

2021-03-29 Thread Fabien Parent
Add the MT8175 pumpkin board support. Signed-off-by: Fabien Parent --- arch/arm/dts/Makefile | 1 + arch/arm/dts/mt8175-pumpkin.dts| 95 ++ board/mediatek/mt8175/Kconfig | 13 board/mediatek/mt8175/MAINTAINERS | 6 ++ board

[PATCH 1/3] clk: mediatek: Add MT8175 clock driver

2021-03-29 Thread Fabien Parent
Add the topckgen, apmixedsys and infracfg clock driver for the MT8175 SoC. Signed-off-by: Fabien Parent --- drivers/clk/mediatek/Makefile | 1 + drivers/clk/mediatek/clk-mt8175.c | 785 + include/dt-bindings/clock/mt8175-clk.h | 392 3 files

[PATCH 2/2] board: Add MT8183 pumpkin board support

2021-02-15 Thread Fabien Parent
Add the MT8183 pumpkin board support. Signed-off-by: Fabien Parent --- arch/arm/dts/Makefile | 1 + arch/arm/dts/mt8183-pumpkin.dts| 99 ++ arch/arm/mach-mediatek/Kconfig | 1 + board/mediatek/mt8183/Kconfig | 13 board

[PATCH 1/2] ARM: mediatek: Add MT8183 support

2021-02-15 Thread Fabien Parent
Add the MT8183 SoC support. Signed-off-by: Fabien Parent --- arch/arm/dts/mt8183.dtsi | 274 + arch/arm/mach-mediatek/Kconfig | 9 + arch/arm/mach-mediatek/Makefile| 1 + arch/arm/mach-mediatek/mt8183/Makefile | 3 + arch/arm/mach

[PATCH 3/3] configs: mt8516: use bootcmd from config_distro_bootcmd.h

2021-02-15 Thread Fabien Parent
Instead of redefining our own way to boot, let's just use config_distro_bootcmd.h. Signed-off-by: Fabien Parent --- include/configs/mt8516.h | 20 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/include/configs/mt8516.h b/include/configs/mt8516.h

[PATCH 2/3] board: mediatek: mt8516: init USB Ether for pumpkin board

2021-02-15 Thread Fabien Parent
Init USB Ether if CONFIG_USB_ETHER is enabled. Signed-off-by: Fabien Parent --- board/mediatek/mt8516/mt8516_pumpkin.c | 4 1 file changed, 4 insertions(+) diff --git a/board/mediatek/mt8516/mt8516_pumpkin.c b/board/mediatek/mt8516/mt8516_pumpkin.c index 37daf1c51b92..42f3863b92c3 100644

[PATCH 1/3] board: mediatek: rename pumpkin board into mt8516

2021-02-15 Thread Fabien Parent
More than one pumpkin board has been made with different MediaTek SoCs. Rename the pumpkin board to follow the naming convention of all other MediaTek boards and also to not be confusing when other pumpkin boards will be added in follow-up commits. Signed-off-by: Fabien Parent --- arch/arm/mach

[PATCH] clk: mediatek: Add MT8183 clock driver

2020-10-17 Thread Fabien Parent
Add the topckgen, apmixedsys and infracfg clock driver for the MT8183 SoC. Signed-off-by: Fabien Parent --- drivers/clk/mediatek/Makefile | 1 + drivers/clk/mediatek/clk-mt8183.c | 823 + include/dt-bindings/clock/mt8183-clk.h | 329 ++ 3 files

[PATCH] tools: mtk_image: add support for booting ARM64 images

2020-10-16 Thread Fabien Parent
mkimage is only able to package aarch32 binaries. Add support for AArch64 images. One can create a ARM64 image using the following command line: mkimage -T mtk_image -a 0x201000 -e 0x201000 -n "media=emmc;arm64=1" -d bl2.bin bl2.img Signed-off-by: Fabien Parent --- tools/mtk_im

[PATCH 3/5] board: mediatek: pumpkin: initialize usb device

2020-10-16 Thread Fabien Parent
Initialize USB device on pumpkin if it is enabled in the config. Signed-off-by: Fabien Parent --- board/mediatek/pumpkin/pumpkin.c | 17 + 1 file changed, 17 insertions(+) diff --git a/board/mediatek/pumpkin/pumpkin.c b/board/mediatek/pumpkin/pumpkin.c index 666e4d6a26fe

[PATCH 2/5] arm: dts: mt8516-pumpkin: enable usb port

2020-10-16 Thread Fabien Parent
Enable the USB port for MT8516 Pumpkin Board. Signed-off-by: Fabien Parent --- arch/arm/dts/mt8516-pumpkin.dts | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/dts/mt8516-pumpkin.dts b/arch/arm/dts/mt8516-pumpkin.dts index cd43c1f5e32c..292b00f0ffb1 100644 --- a/arch/arm

[PATCH 5/5] configs: pumpkin: enable fastboot

2020-10-16 Thread Fabien Parent
Enable fastboot commands for mt8516 pumpkin board. Signed-off-by: Fabien Parent --- configs/pumpkin_defconfig | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/configs/pumpkin_defconfig b/configs/pumpkin_defconfig index 94831adfa354..3f2cc6d023c1 100644 --- a/configs

[PATCH 4/5] configs: pumpkin: enable USB gadget

2020-10-16 Thread Fabien Parent
Enable USB gadget on pumpkin. This requires to also enable BOARD_LATE_INIT since the init is done in board_late_init function. Signed-off-by: Fabien Parent --- configs/pumpkin_defconfig | 8 1 file changed, 8 insertions(+) diff --git a/configs/pumpkin_defconfig b/configs

[PATCH 0/5] board: mediatek: pumpkin: add fastboot support

2020-10-16 Thread Fabien Parent
This series adds USB/Fastboot support on MT8516 Pumpkin board. Fabien Parent (5): arm: dts: mt8516: add support for USB arm: dts: mt8516-pumpkin: enable usb port board: mediatek: pumpkin: initialize usb device configs: pumpkin: enable USB gadget configs: pumpkin: enable fastboot arch

[PATCH 1/5] arm: dts: mt8516: add support for USB

2020-10-16 Thread Fabien Parent
Add support for USB on mt8516 based SoC. Signed-off-by: Fabien Parent --- arch/arm/dts/mt8516.dtsi | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/dts/mt8516.dtsi b/arch/arm/dts/mt8516.dtsi index 1c3358208614..c4577ceea386 100644 --- a/arch/arm/dts/mt8516.dtsi +++ b

[PATCH] mmc: mtk-sd: change some dev_err into dev_dbg

2020-10-15 Thread Fabien Parent
dev_err has been used for debugging and a few dev_err message are printed for normal code execution. Make them dev_dbg instead. Signed-off-by: Fabien Parent --- drivers/mmc/mtk-sd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/mmc/mtk-sd.c b/drivers/mmc/mtk

[U-Boot] [PATCH] clk: mediatek: use unsigned type for returning the clk rate

2019-10-17 Thread Fabien Parent
will become incorrect because of the implicit cast between ulong -> int -> ulong. This commit change the return type of mtk_clk_find_parent_rate to ulong. Signed-off-by: Fabien Parent --- drivers/clk/mediatek/clk-mtk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff -

[U-Boot] [PATCH] mmc: mtk-sd: Add MT8183 SoC support

2019-08-12 Thread Fabien Parent
Add support for the MT8183 in the MediaTek MMC driver. Signed-off-by: Fabien Parent --- drivers/mmc/mtk-sd.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/mmc/mtk-sd.c b/drivers/mmc/mtk-sd.c index 780d3069eb..220bc09164 100644 --- a/drivers/mmc/mtk-sd.c +++ b/drivers

[U-Boot] [PATCH v4 2/2] board: mediatek: Add pumpkin board support

2019-07-18 Thread Fabien Parent
together. This commit is adding the basic boot support for the Pumpkin MT8516 board on the eMMC. Signed-off-by: Fabien Parent --- V4: * Enable CONFIG_PINCONF in defconfig * Remove some bootargs related to UART in the environment. V3: * Remove unused gd. V2: * Set

[U-Boot] [PATCH v4 1/2] pinctrl: mediatek: fix warning

2019-07-18 Thread Fabien Parent
Fix the following warning when CONFIG_PINCONF=n: drivers/pinctrl/mediatek/pinctrl-mtk-common.c:35:36: warning: ‘mtk_drive’ defined but not used [-Wunused-const-variable=] static const struct mtk_drive_desc mtk_drive[] = { ^ Signed-off-by: Fabien

[U-Boot] [PATCH] fastboot: mmc: add support for flashing boot partitions

2019-06-25 Thread Fabien Parent
boot partitions: fastboot flash mmcboot0 myfile fastboot flash mmcboot1 myfile "mmcboot" is the default name of the partition and can be changed via a Kconfig option. Signed-off-by: Fabien Parent --- drivers/fastboot/Kconfig | 17 + drivers/fastboot/fb_

[U-Boot] [PATCH v3] board: mediatek: Add pumpkin board support

2019-06-18 Thread Fabien Parent
together. This commit is adding the basic boot support for the Pumpkin MT8516 board on the eMMC. Signed-off-by: Fabien Parent --- V3: * Remove unused gd. V2: * Set MTK_BROM_HEADER_INFO to 'emmc' since we only support eMMC right now. --- arch/arm/dts/Makefile |

Re: [U-Boot] [PATCH v2] board: mediatek: Add pumpkin board support

2019-06-14 Thread Fabien Parent
+u-boot@lists.denx.de On Fri, Jun 14, 2019 at 2:14 PM Fabien Parent wrote: > > The pumpkin board is made by Gossamer Engineering and is using > a MediaTek SoC. The board currently comes in two available version: > MT8516 SoC and MT8167 SoC. > The board provides the following IOs:

[U-Boot] [PATCH] board: mediatek: Add pumpkin board support

2019-05-13 Thread Fabien Parent
together. This commit is adding the basic boot support for the Pumpkin MT8516 board on the eMMC. Signed-off-by: Fabien Parent --- arch/arm/dts/Makefile | 3 +- arch/arm/dts/mt8516-pumpkin.dts| 110 + arch/arm/mach-mediatek/Kconfig | 1 + board

[U-Boot] [PATCH] ARM: mediatek: mt8516: use PSCI to reset the SoC

2019-05-06 Thread Fabien Parent
Instead of using the watchdog, let's use PSCI to perform the reset of the SoC. Signed-off-by: Fabien Parent --- arch/arm/mach-mediatek/mt8516/init.c | 9 + 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/arch/arm/mach-mediatek/mt8516/init.c b/arch/arm/mach-mediatek/m

[U-Boot] [PATCH v3 5/7] clk: mediatek: add driver for MT8516

2019-03-24 Thread Fabien Parent
Add clock driver for MediaTek MT8516 SoC. Signed-off-by: Fabien Parent Acked-by: Ryder Lee --- v3: * Remove invalid clocks v2: * Fix invalid GATE_TOP5 flag --- drivers/clk/mediatek/Makefile | 1 + drivers/clk/mediatek/clk-mt8516.c | 802

[U-Boot] [PATCH v3 6/7] pinctrl: add driver for MT8516

2019-03-24 Thread Fabien Parent
Add Pinctrl driver for MediaTek MT8516 SoC. Signed-off-by: Fabien Parent Acked-by: Ryder Lee --- v3: * Fix incorrect field size for mt8516_pin_mode_range v2: * No change --- drivers/pinctrl/mediatek/Kconfig | 4 + drivers/pinctrl/mediatek/Makefile | 1

[U-Boot] [PATCH v3 7/7] ARM: MediaTek: Add support for MT8516 SoC

2019-03-24 Thread Fabien Parent
Add support for MediaTek MT8516 SoC. This include the file that will initialize the SoC after boot and its device tree. Signed-off-by: Fabien Parent Reviewed-by: Tom Rini --- v3: * No change v2: * Move u-boot,dm-pre-reloc into a seperate dts * Implement

[U-Boot] [PATCH v3 3/7] mmc: mtk-sd: fix configuration option check

2019-03-24 Thread Fabien Parent
We either need to use IS_ENABLED(CONFIG_FOO) or CONFIG_IS_ENABLED(FOO). IS_ENABLE(FOO) will always return false. This commit fixes the comparison by using the CONFIG_IS_ENABLED(FOO) syntax. Signed-off-by: Fabien Parent --- v3: * New patch --- drivers/mmc/mtk-sd.c | 8 1 file

[U-Boot] [PATCH v3 2/7] mmc: mtk-sd: add support for MT8516

2019-03-24 Thread Fabien Parent
Add config for handling MT8516 SoC. Signed-off-by: Fabien Parent Acked-by: Ryder Lee --- v3: * No change v2: * No change --- drivers/mmc/mtk-sd.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/mmc/mtk-sd.c b/drivers/mmc/mtk-sd.c index eed98b769c

[U-Boot] [PATCH v3 4/7] clk: mediatek: add support for SETCLR_INV and NO_SETCLR flags

2019-03-24 Thread Fabien Parent
Add the implementation for the CLK_GATE_SETCLR_INV and CLK_GATE_NO_SETCLR flags. Signed-off-by: Fabien Parent Acked-by: Ryder Lee --- v3: * No changes --- drivers/clk/mediatek/clk-mtk.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/clk/mediatek/clk-mtk.c b

[U-Boot] [PATCH v3 1/7] mmc: mtk-sd: add source_cg clock support

2019-03-24 Thread Fabien Parent
Some MediaTek SoC need an additional clock "source_cg". Enable this new clock. We reuse the same clock name as in the kernel. Signed-off-by: Fabien Parent Acked-by: Ryder Lee --- v3: * No change v2: * Get rid of variable has_src_clk_cg --- drivers/mmc/mtk-sd.c |

[U-Boot] [PATCH v3 0/7] Add support for MT8516 SoC

2019-03-24 Thread Fabien Parent
This patch series adds basic boot support on eMMC for the MediaTek MT8516 SoC based boards. This series adds the clock, pinctrl drivers and the SoC initialization code. Fabien Parent (7): mmc: mtk-sd: add source_cg clock support mmc: mtk-sd: add support for MT8516 mmc: mtk-sd: fix

[U-Boot] [PATCH v2 6/6] ARM: MediaTek: Add support for MT8516 SoC

2019-02-23 Thread Fabien Parent
Add support for MediaTek MT8516 SoC. This include the file that will initialize the SoC after boot and its device tree. Signed-off-by: Fabien Parent --- v2: * Move u-boot,dm-pre-reloc into a seperate dts * Implement dram_init_banksize to get DRAM size correct --- arch/arm/dts

[U-Boot] [PATCH v2 5/6] pinctrl: add driver for MT8516

2019-02-23 Thread Fabien Parent
Add Pinctrl driver for MediaTek MT8516 SoC. Signed-off-by: Fabien Parent Acked-by: Ryder Lee --- v2: * No change --- drivers/pinctrl/mediatek/Kconfig | 4 + drivers/pinctrl/mediatek/Makefile | 1 + drivers/pinctrl/mediatek/pinctrl-mt8516.c | 391

[U-Boot] [PATCH v2 3/6] clk: mediatek: add support for SETCLR_INV and NO_SETCLR flags

2019-02-23 Thread Fabien Parent
Add the implementation for the CLK_GATE_SETCLR_INV and CLK_GATE_NO_SETCLR flags. Signed-off-by: Fabien Parent Acked-by: Ryder Lee --- v2: * Add missing support for SETCLR_INV in the mtk_clk_gate_disable func * Add support for CLK_GATE_NO_SETCLR --- drivers/clk/mediatek/clk

[U-Boot] [PATCH v2 4/6] clk: mediatek: add driver for MT8516

2019-02-23 Thread Fabien Parent
Add clock driver for MediaTek MT8516 SoC. Signed-off-by: Fabien Parent Acked-by: Ryder Lee --- v2: * Fix invalid GATE_TOP5 flag --- drivers/clk/mediatek/Makefile | 1 + drivers/clk/mediatek/clk-mt8516.c | 802 + include/dt-bindings/clock/mt8516

[U-Boot] [PATCH v2 1/6] mmc: mtk-sd: add source_cg clock support

2019-02-23 Thread Fabien Parent
Some MediaTek SoC need an additional clock "source_cg". Enable this new clock. We reuse the same clock name as in the kernel. Signed-off-by: Fabien Parent Acked-by: Ryder Lee --- v2: * Get rid of variable has_src_clk_cg --- drivers/mmc/mtk-sd.c | 5 + 1 file changed, 5

[U-Boot] [PATCH v2 2/6] mmc: mtk-sd: add support for MT8516

2019-02-23 Thread Fabien Parent
Add config for handling MT8516 SoC. Signed-off-by: Fabien Parent Acked-by: Ryder Lee --- v2: * No change --- drivers/mmc/mtk-sd.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/mmc/mtk-sd.c b/drivers/mmc/mtk-sd.c index eed98b769c..b44686fbc9 100644 --- a

[U-Boot] [PATCH v2 0/6] Add support for MT8516 SoCs

2019-02-23 Thread Fabien Parent
This patch series adds basic boot support on eMMC for the MediaTek MT8516 SoC based boards. This series adds the clock, pinctrl drivers and the SoC initialization code. Fabien Parent (6): mmc: mtk-sd: add source_cg clock support mmc: mtk-sd: add support for MT8516 clk: mediatek: add support

[U-Boot] [PATCH 4/6] clk: mediatek: add driver for MT8516

2019-02-04 Thread Fabien Parent
Add clock driver for MediaTek MT8516 SoC. Signed-off-by: Fabien Parent --- drivers/clk/mediatek/Makefile | 1 + drivers/clk/mediatek/clk-mt8516.c | 802 + include/dt-bindings/clock/mt8516-clk.h | 251 3 files changed, 1054 insertions(+) create

[U-Boot] [PATCH 5/6] pinctrl: add driver for MT8516

2019-02-04 Thread Fabien Parent
Add Pinctrl driver for MediaTek MT8516 SoC. Signed-off-by: Fabien Parent --- drivers/pinctrl/mediatek/Kconfig | 4 + drivers/pinctrl/mediatek/Makefile | 1 + drivers/pinctrl/mediatek/pinctrl-mt8516.c | 391 ++ 3 files changed, 396 insertions(+) create

[U-Boot] [PATCH 6/6] ARM: MediaTek: Add support for MT8516 SoC

2019-02-04 Thread Fabien Parent
Add support for MediaTek MT8516 SoC. This include the file that will initialize the SoC after boot and its device tree. Signed-off-by: Fabien Parent --- arch/arm/dts/mt8516.dtsi | 142 + arch/arm/mach-mediatek/Kconfig | 10 ++ arch/arm/mach

[U-Boot] [PATCH 2/6] mmc: mtk-sd: add support for MT8516

2019-02-04 Thread Fabien Parent
Add config for handling MT8516 SoC. Signed-off-by: Fabien Parent --- drivers/mmc/mtk-sd.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/mmc/mtk-sd.c b/drivers/mmc/mtk-sd.c index 8573ea7430..9373481f50 100644 --- a/drivers/mmc/mtk-sd.c +++ b/drivers/mmc/mtk-sd.c

[U-Boot] [PATCH 3/6] clk: mediatek: add support for CLK_GATE_SETCLR_INV flag

2019-02-04 Thread Fabien Parent
Add the implementation for the CLK_GATE_SETCLR_INV flag. Signed-off-by: Fabien Parent --- drivers/clk/mediatek/clk-mtk.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/clk/mediatek/clk-mtk.c b/drivers/clk/mediatek/clk-mtk.c index 870b14ed8b..725be031b8 100644 --- a/drivers/clk

[U-Boot] [PATCH 1/6] mmc: mtk-sd: add source_cg clock support

2019-02-04 Thread Fabien Parent
Some MediaTek SoC need an additional clock "source_cg". Enable this new clock. We reuse the same clock name as in the kernel. Signed-off-by: Fabien Parent --- drivers/mmc/mtk-sd.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/mmc/mtk-sd.c b/drivers/mmc/mtk-

[U-Boot] [PATCH 0/6] Add support for MT8516 SoCs

2019-02-04 Thread Fabien Parent
This patch series adds basic boot support on eMMC for the MediaTek MT8516 SoC based boards. This series adds the clock, pinctrl drivers and the SoC initialization code. Fabien Parent (6): mmc: mtk-sd: add source_cg clock support mmc: mtk-sd: add support for MT8516 clk: mediatek: add support

[U-Boot] [PATCH 2/2] mmc: mtk-sd: fix SPL compilation when GPIO=y and SPL_GPIO=n

2019-01-17 Thread Fabien Parent
* undefined reference to `gpio_request_by_name' Signed-off-by: Fabien Parent --- drivers/mmc/mtk-sd.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/mmc/mtk-sd.c b/drivers/mmc/mtk-sd.c index e668df7017..4c997977d7 100644 --- a/drivers/mmc/mtk-sd.c +++ b/drivers/mm

[U-Boot] [PATCH 1/2] mmc: mtk-sd: fix possible incomplete read ops

2019-01-17 Thread Fabien Parent
re-ordering the code so that we first check for data inside the RX fifo and only after check the status of the INT_XFER_COMPL flag. Signed-off-by: Fabien Parent --- drivers/mmc/mtk-sd.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/mmc/mtk-sd.c b

Re: [U-Boot] [PATCH v4 01/18] tools: MediaTek: add MTK boot header generation to mkimage

2018-11-14 Thread Fabien Parent
Hi Ryder, On Tue, Nov 6, 2018 at 9:50 AM Ryder Lee wrote: > > This patch adds support for MTK boot image generation. > > Signed-off-by: Weijie Gao > Signed-off-by: Ryder Lee > Reviewed-by: Simon Glass > --- > Changes since v4: None > --- > Makefile | 20 ++ > common/image.c

[U-Boot] [PATCH 3/3] omapl138_lcdk: remove empty ifdef block

2017-01-09 Thread Fabien Parent
Small clean-up. Signed-off-by: Fabien Parent --- include/configs/omapl138_lcdk.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/include/configs/omapl138_lcdk.h b/include/configs/omapl138_lcdk.h index cdc93c38c8..15e900f6e2 100644 --- a/include/configs/omapl138_lcdk.h +++ b/include

[U-Boot] [PATCH 2/3] omapl138_lcdk: enable SPL MMC support

2017-01-09 Thread Fabien Parent
Enable SPL MMC support in order to allow to build a single u-boot image that is able to boot from MMC and NAND devices. Signed-off-by: Fabien Parent --- configs/omapl138_lcdk_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/omapl138_lcdk_defconfig b/configs

[U-Boot] [PATCH 1/3] davinci: spl: use bootcfg to select boot device

2017-01-09 Thread Fabien Parent
each medium. This commit is replacing the #ifdef that select the boot medium by reading the value of the boot pins (via the BOOTCFG register). Now a single SPL image will be able to read from the boot pin to know which device should be used to load u-boot. Signed-off-by: Fabien Parent --- arch

[U-Boot] [PATCH 0/3] davinci: spl: select boot device based on boot pin cfg

2017-01-09 Thread Fabien Parent
s MMC boot for the OMAPL138-LCDK in order to have one image that is able to boot from MMC and NAND. Fabien Parent (3): davinci: spl: use bootcfg to select boot device omapl138_lcdk: enable SPL MMC support omapl138_lcdk: remove empty ifdef block arch/arm/mach-davinci/include/mach/hardware.h

[U-Boot] [PATCH v2] davinci: omapl138_lcdk: boot from zImage

2016-12-06 Thread Fabien Parent
Stop booting legacy uImage and now boot zImage. Signed-off-by: Fabien Parent --- v1 .. v2 * Used __stringify(CONFIG_BOOTFILE) to avoid code duplication --- configs/omapl138_lcdk_defconfig | 1 + include/configs/omapl138_lcdk.h | 9 + 2 files changed, 6 insertions(+), 4

[U-Boot] [PATCH 2/3] SPL: create Kconfig options for CONFIG_SPL_*_LOAD

2016-12-06 Thread Fabien Parent
In order to clean up the config headers and also to allow to easily switch the boot device for some boards without having to modify the config headers, it is better to move the options to Kconfig. This commit move the CONFIG_SPL_*_LOAD options to Kconfig files. Signed-off-by: Fabien Parent

[U-Boot] [PATCH 1/3] davinci: spl: use correct macro to select boot device

2016-12-06 Thread Fabien Parent
CONFIG_SPL_NAND_SIMPLE at the same place, so there should be no issue created by this change. Signed-off-by: Fabien Parent --- arch/arm/mach-davinci/spl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-davinci/spl.c b/arch/arm/mach-davinci/spl.c index 0aeaa7d8b7..9d5a173701

[U-Boot] [PATCH 3/3] davinci: omapl138_lcdk: use new CONFIG_SPL_*_LOAD Kconfig options

2016-12-06 Thread Fabien Parent
Instead of defining ourself the config options in the config header, let's use the new Kconfig options for it. Signed-off-by: Fabien Parent --- configs/omapl138_lcdk_defconfig | 1 + include/configs/omapl138_lcdk.h | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/co

[U-Boot] [PATCH 0/3] SPL: move CONFIG_SPL_*_LOAD to Kconfig

2016-12-06 Thread Fabien Parent
CONFIG_SPL_*_LOAD option, then move the options to Kconfig options, and finally start using these Kconfig options for the OMAPL138-LCDK board. Fabien Parent (3): davinci: spl: use correct macro to select boot device SPL: create Kconfig options for CONFIG_SPL_*_LOAD davinci: omapl138_lcdk: use new

[U-Boot] [PATCH 2/2] davinci: omapl138_lcdk: fix bad NAND ECC config

2016-12-05 Thread Fabien Parent
The configuration used to error correction was not in line with what linux and the ROM code is using. Fix it by using the correct configuration. Now u-boot and the SPL are able to read correctly anything written by them. Signed-off-by: Fabien Parent --- include/configs/omapl138_lcdk.h | 10

[U-Boot] [PATCH 0/2] davinci: omapl138_lcdk: fix unreliable NAND accesses

2016-12-05 Thread Fabien Parent
A couple of issue made the NAND accesses unreliable. This patchset aims to fix all the NAND issues with the OMAP-L138-LCDK. Fabien Parent (2): davinci: omapl138_lcdk: increase u-boot load size davinci: omapl138_lcdk: fix bad NAND ECC config include/configs/omapl138_lcdk.h | 12

[U-Boot] [PATCH 1/2] davinci: omapl138_lcdk: increase u-boot load size

2016-12-05 Thread Fabien Parent
A size of 0x200 seems way too short for u-boot. Increase the size to 512k. Signed-off-by: Fabien Parent --- include/configs/omapl138_lcdk.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/omapl138_lcdk.h b/include/configs/omapl138_lcdk.h index 9e11f7dc95

[U-Boot] [PATCH] davinci: omapl138_lcdk: boot from zImage

2016-12-05 Thread Fabien Parent
Stop booting legacy uImage and now boot zImage. Signed-off-by: Fabien Parent --- configs/omapl138_lcdk_defconfig | 1 + include/configs/omapl138_lcdk.h | 8 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/configs/omapl138_lcdk_defconfig b/configs/omapl138_lcdk_defconfig

[U-Boot] [PATCH] mtd: spi: don't return -1 when scan succeed

2016-12-05 Thread Fabien Parent
In spi_flash_scan, 'ret' is initialled to -1, but 'ret' is not always used to store a return value, in that case, even when the function succeed, an error (-1) will be returned. Lets just return 0 if we hit the end of the function. Signed-off-by: Fabien Parent --- drivers

[U-Boot] [PATCH v2 0/2] davinci: omapl138_lcdk: load DT when doing EMMC boot

2016-11-29 Thread Fabien Parent
Load the DT when doing EMMC boot. v1 -> v2: * removed the unecessary PATCH 1, 4 and 5. * no change to PATCH 2 and 3. Fabien Parent (2): davinci: omapl138_lcdk: improve readability of boot command davinci: omapl138_lcdk: add DT support for EMMC boot include/configs/omapl138_lcd

[U-Boot] [PATCH v2 1/2] davinci: omapl138_lcdk: improve readability of boot command

2016-11-29 Thread Fabien Parent
Improve the readability of the boot command. This will help a later commit that adds DT support. Signed-off-by: Fabien Parent Reviewed-by: Tom Rini --- v1 -> v2: * no change --- include/configs/omapl138_lcdk.h | 19 ++- 1 file changed, 18 insertions(+), 1 delet

[U-Boot] [PATCH v2 2/2] davinci: omapl138_lcdk: add DT support for EMMC boot

2016-11-29 Thread Fabien Parent
When booting from EMMC, load the DTB and pass it to the kernel. Signed-off-by: Fabien Parent Reviewed-by: Tom Rini --- v1 -> v2: * No change --- include/configs/omapl138_lcdk.h | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/configs/omapl138_lcdk.

[U-Boot] [PATCH 6/6] davinci: omapl138_lcdk: add NAND SPL boot support

2016-11-29 Thread Fabien Parent
NAND SPL boot was missing. Add it. The README specific to omapl138-lcdk is also removed because its content does not apply anymore, i.e. the generated AIS image can be flashed directly to the NAND without using any external tool to create and bootable AIS image. Signed-off-by: Fabien Parent

[U-Boot] [PATCH 3/6] davinci: omapl138_lcdk: use correct name for CONFIG_SYS_NAND_MASK_CLE

2016-11-29 Thread Fabien Parent
CONFIG_SYS_CLE_MASK is not used anywhere. It has probably been renamed to CONFIG_SYS_NAND_MASK_CLE. Rename it and remove the former from the config_whitelist.txt file. Signed-off-by: Fabien Parent --- include/configs/omapl138_lcdk.h | 2 +- scripts/config_whitelist.txt| 1 - 2 files changed

[U-Boot] [PATCH 5/6] davinci: omapl138_lck: remove obsolete define

2016-11-29 Thread Fabien Parent
NAND_MAX_CHIPS is not used anymore and has been replaced by CONFIG_SYS_MAX_NAND_DEVICE. There is no need to keep the former define. Signed-off-by: Fabien Parent --- include/configs/omapl138_lcdk.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/configs/omapl138_lcdk.h b/include

[U-Boot] [PATCH 4/6] davinci: omapl138_lcdk: use correct name for CONFIG_SYS_NAND_MASK_ALE

2016-11-29 Thread Fabien Parent
CONFIG_SYS_ALE_MASK is not used anywhere. It has probably been renamed to CONFIG_SYS_NAND_MASK_ALE. Rename it and remove the former from the config_whitelist.txt file. Signed-off-by: Fabien Parent --- include/configs/omapl138_lcdk.h | 2 +- scripts/config_whitelist.txt| 1 - 2 files changed

[U-Boot] [PATCH 0/6] davinci: omapl138_lcdk: add SPL NAND boot support

2016-11-29 Thread Fabien Parent
The default AIS image generated contains the SPL, but the latter is not able to load u-boot because the NAND configuration is missing. This series adds SPL NAND boot support and results in the AIS image that is generated able to boot from NAND. Fabien Parent (6): NAND: davinci: add support for

[U-Boot] [PATCH 2/6] davinci: omapl138_lcdk: use correct define for 16 bit NAND chips

2016-11-29 Thread Fabien Parent
The omapl138_lcdk header defines CONFIG_SYS_NAND_BUSWIDTH_16_BIT while the correct name is CONFIG_SYS_NAND_BUSWIDTH_16BIT. While renaming the only occurrence of CONFIG_SYS_NAND_BUSWIDTH_16_BIT, let's also remove it from the config_whitelist.txt file. Signed-off-by: Fabien Parent --- in

[U-Boot] [PATCH 1/6] NAND: davinci: add support for NAND chips with 16 bits bus

2016-11-29 Thread Fabien Parent
The OMAPL138-LCD board uses a NAND chip with a 16 bits bus. Add support into the davinci driver for 16 bit bus NAND chips. Signed-off-by: Fabien Parent --- drivers/mtd/nand/davinci_nand.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/mtd/nand/davinci_nand.c b/drivers/mtd/nand

[U-Boot] [PATCH v3 4/6] davinci: omapl138_lcdk: configure ddr2

2016-11-29 Thread Fabien Parent
The SPL is unable to load u-boot because the DDR2 is not configured. Configure the DDR2. Signed-off-by: Fabien Parent --- v2 -> v3 * Use new Kconfig option SYS_DA850_DDR_INIT instead of defining it in the config header file v1 -> v2 * New patch --- arch/ar

[U-Boot] [PATCH v3 6/6] davinci: omapl138_lcdk: add u-boot sector for mmc/sd boot

2016-11-29 Thread Fabien Parent
Set the correct CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR value in order to be able to boot from MMC/SD. The SPL is stored at sector 0x75, while u-boot will follow at sector 0xb5. Signed-off-by: Fabien Parent Reviewed-by: Tom Rini --- v2 -> v3: * No change v1 -> v2: * R

[U-Boot] [PATCH v3 5/6] davinci: da850evm: fix empty boot method list in the SPL

2016-11-29 Thread Fabien Parent
The list of available boot method is not part of the binary which prevent the SPL from booting u-boot or Linux. Add the missing .u_boot_list* sections to the binary to fix it. Signed-off-by: Fabien Parent Reviewed-by: Tom Rini --- v2 -> v3: * No change v1 -> v2: * No

[U-Boot] [PATCH v3 1/6] ARM: davinci: Move CONFIG_SYS_DA850_PLL_INIT to Kconfig

2016-11-29 Thread Fabien Parent
Clean config headers by moving CONFIG_SYS_DA850_PLL_INIT away to a Kconfig file. Signed-off-by: Fabien Parent --- v1 -> v3 * New patch --- arch/arm/mach-davinci/Kconfig | 7 +++ include/configs/calimain.h| 1 - include/configs/da850evm.h| 1 - include/configs/ipam39

[U-Boot] [PATCH v3 0/6] davinci: omapl138_lcdk: fix a few bugs for SPL boot

2016-11-29 Thread Fabien Parent
& CONFIG_SYS_DA850_DDR_INIT to be new Kconfig options. Changes v1 .. v2: * Don't add an AIS config file but instead configure the PLL and DDR in the SPL. This follow what other boards are doing. * Use new kconfig option to support EMMC boot. Fabien Parent (6): ARM: davi

[U-Boot] [PATCH v3 3/6] davinci: omapl138_lcdk: configure pll0

2016-11-29 Thread Fabien Parent
The SPL is not able to boot properly because the PLL0 is not configured. Configure it. Signed-off-by: Fabien Parent --- v2 -> v3 * Use new Kconfig option SYS_DA850_PLL_INIT instead of defining it in the config header file v1 -> v2 * New patch --- arch/arm/mach-d

[U-Boot] [PATCH v3 2/6] ARM: davinci: Move CONFIG_SYS_DA850_DDR_INIT to Kconfig

2016-11-29 Thread Fabien Parent
Clean config headers by moving CONFIG_SYS_DA850_DDR_INIT away to a Kconfig file. Signed-off-by: Fabien Parent --- v1 -> v3 * New patch --- arch/arm/mach-davinci/Kconfig | 7 +++ include/configs/calimain.h| 1 - include/configs/da850evm.h| 1 - include/configs/ipam39

Re: [U-Boot] [PATCH 1/5] davinci: omapl138_lcdk: fixup mac address in dtb

2016-11-29 Thread Fabien Parent
On Mon, Nov 28, 2016 at 5:56 PM, Tom Rini wrote: > On Fri, Nov 25, 2016 at 11:11:23AM +0100, Fabien Parent wrote: >> In order to avoid having a random mac address assigned by Linux, let's >> fixup the dtb with the mac address that was programmed in the EEPROM. >> >&

Re: [U-Boot] [PATCH v2 2/4] davinci: omapl138_lcdk: configure ddr2

2016-11-28 Thread Fabien Parent
On Tue, Nov 22, 2016 at 7:10 PM, Tom Rini wrote: > On Tue, Nov 22, 2016 at 06:13:31PM +0100, Fabien Parent wrote: > >> The SPL is unable to load u-boot because the DDR2 is not configured. >> Configure the DDR2. >> >> Signed-off-by: Fabien Parent >> ---

[U-Boot] [PATCH 5/5] davinci: omapl138_lcdk: enable OF_SYSTEM_SETUP in defconfig

2016-11-25 Thread Fabien Parent
Enable OF_SYSTEM_SETUP in order to patch the DT with the mac address read into the EEPROM. Signed-off-by: Fabien Parent --- configs/omapl138_lcdk_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/omapl138_lcdk_defconfig b/configs/omapl138_lcdk_defconfig index bcd1acb

[U-Boot] [PATCH 3/5] davinci: omapl138_lcdk: add DT support for EMMC boot

2016-11-25 Thread Fabien Parent
When booting from EMMC, load the DTB and pass it to the kernel. Signed-off-by: Fabien Parent --- include/configs/omapl138_lcdk.h | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/configs/omapl138_lcdk.h b/include/configs/omapl138_lcdk.h index c896638..fe9f94d

[U-Boot] [PATCH 4/5] davinci: omapl138_lcdk: do fdt systemsetup when loading DT

2016-11-25 Thread Fabien Parent
When loading the DTB, let's also do the systemsetup in order to patch the DT with the mac address. Signed-off-by: Fabien Parent --- include/configs/omapl138_lcdk.h | 9 + 1 file changed, 9 insertions(+) diff --git a/include/configs/omapl138_lcdk.h b/include/configs/omapl138_l

[U-Boot] [PATCH 2/5] davinci: omapl138_lcdk: improve readability of boot command

2016-11-25 Thread Fabien Parent
Improve the readability of the boot command. This will help a later commit that adds support for dtb and system setup. Signed-off-by: Fabien Parent --- include/configs/omapl138_lcdk.h | 19 ++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/include/configs

[U-Boot] [PATCH 1/5] davinci: omapl138_lcdk: fixup mac address in dtb

2016-11-25 Thread Fabien Parent
In order to avoid having a random mac address assigned by Linux, let's fixup the dtb with the mac address that was programmed in the EEPROM. Signed-off-by: Fabien Parent --- board/davinci/da8xxevm/omapl138_lcdk.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/board/da

[U-Boot] [PATCH 0/5] davinci: omapl138_lcdk: patch DT with MAC Address

2016-11-25 Thread Fabien Parent
independently of [1] and [2], but the mac address in Linux will be random until both patches are merged. [1]: http://lists.denx.de/pipermail/u-boot/2016-November/273946.html [2]: http://lists.infradead.org/pipermail/linux-arm-kernel/2016-November/470140.html Fabien Parent (5): davinci: omapl138_lcdk

[U-Boot] [PATCH] cmd/fdt: fix uncallable systemsetup command

2016-11-24 Thread Fabien Parent
fdt set". This commit fix this issue by moving the "else if" for systemsetup before the else if for "fdt set". This allow us to keep compatibility with any script that make use of "fdt s" to set node values. Signed-off-by: Fabien Parent --- cmd/fdt.c | 22 +

[U-Boot] [PATCH v2 4/4] davinci: omapl138_lcdk: add u-boot sector for mmc/sd boot

2016-11-22 Thread Fabien Parent
Set the correct CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR value in order to be able to boot from MMC/SD. The SPL is stored at sector 0x75, while u-boot will follow at sector 0xb5. Signed-off-by: Fabien Parent --- v1 -> v2 * Rebased on Sam's patches, i.e. use new Kconfig option in

[U-Boot] [PATCH v2 1/4] davinci: omapl138_lcdk: configure pll0

2016-11-22 Thread Fabien Parent
The SPL is not able to boot properly because the PLL0 is not configured. Configure it. Signed-off-by: Fabien Parent --- V1 -> V2 * New patch --- include/configs/omapl138_lcdk.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/omapl138_lcdk.h b/include/conf

[U-Boot] [PATCH v2 3/4] davinci: da850evm: fix empty boot method list in the SPL

2016-11-22 Thread Fabien Parent
The list of available boot method is not part of the binary which prevent the SPL from booting u-boot or Linux. Add the missing .u_boot_list* sections to the binary to fix it. Signed-off-by: Fabien Parent Reviewed-by: Tom Rini --- v1 -> v2: * No change --- board/davinci/da8xxevm/u-b

  1   2   >