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
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
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
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
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
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
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
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
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
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
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
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
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
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 -
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
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
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
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
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
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
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
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
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
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-
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
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
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
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
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
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
* 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
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
-off-by: Fabien Parent
---
board/davinci/da8xxevm/omapl138_lcdk.c | 14 --
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/board/davinci/da8xxevm/omapl138_lcdk.c
b/board/davinci/da8xxevm/omapl138_lcdk.c
index 9783b2a..9c1a483 100644
--- a/board/davinci/da8xxevm
The AIS image built for the OMAPL138-LCDK board is not booting because
the AIS configuration is not correct.
This commit adds a AIS configuration file that allow the SPL to boot
correctly.
Signed-off-by: Fabien Parent
---
board/davinci/da8xxevm/omapl138_lcdk_ais.cfg | 4
include/configs
Define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 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
---
include/configs/omapl138_lcdk.h | 8
1 file changed, 8 insertions(+)
diff --git a
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
---
board/davinci/da8xxevm/u-boot-spl-da850evm.lds | 3 +++
1 file changed, 3 insertions
The SPL is unable to load u-boot because the DDR2 is not configured.
Configure the DDR2.
Signed-off-by: Fabien Parent
---
V1 -> V2
* New patch
---
include/configs/omapl138_lcdk.h | 42 +
1 file changed, 42 insertions(+)
diff --git a/incl
This patchset tries to fix the SPL on omapl138_lcdk. With this patchset, the SPL
will be able to boot from EMMC/SPI.
The NAND support is still broken so the default u-boot.ais image still has a SPL
that is unable to load u-boot.
Change v1 .. v2:
* Don't add an AIS config file but instead con
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
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
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
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 +
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
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
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
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
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
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
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
>> ---
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.
>>
>&
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
& 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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.
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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@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:
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 |
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_
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
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
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 |
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
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
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
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
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
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
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
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
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
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
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
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
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
1 - 100 of 106 matches
Mail list logo