Re: [PATCH 2/2] arm: mvebu: Espressobin: Setup MTD partitions when booting kernel

2020-08-20 Thread Pali Rohár
On Thursday 20 August 2020 13:19:34 Stefan Roese wrote: > On 20.08.20 13:12, Pali Rohár wrote: > > On Thursday 20 August 2020 10:51:28 Pali Rohár wrote: > > > On Thursday 20 August 2020 10:17:55 Stefan Roese wrote: > > > > On 20.08.20 09:40, Pali Rohár wrote: > > > > > On Thursday 20 August 2020

Re: [PATCH 2/2] arm: mvebu: Espressobin: Setup MTD partitions when booting kernel

2020-08-20 Thread Stefan Roese
On 20.08.20 13:12, Pali Rohár wrote: On Thursday 20 August 2020 10:51:28 Pali Rohár wrote: On Thursday 20 August 2020 10:17:55 Stefan Roese wrote: On 20.08.20 09:40, Pali Rohár wrote: On Thursday 20 August 2020 07:02:18 Stefan Roese wrote: Can't you just use "mtdparts=" kernel cmdline

Re: [PATCH 2/2] arm: mvebu: Espressobin: Setup MTD partitions when booting kernel

2020-08-20 Thread Pali Rohár
On Thursday 20 August 2020 10:51:28 Pali Rohár wrote: > On Thursday 20 August 2020 10:17:55 Stefan Roese wrote: > > On 20.08.20 09:40, Pali Rohár wrote: > > > On Thursday 20 August 2020 07:02:18 Stefan Roese wrote: > > > > Can't you just use "mtdparts=" kernel cmdline parameter instead to pass > >

RE: [PATCH] arm: dts: fix ast2500-evb inclusion for correct target

2020-08-20 Thread Ryan Chen
Hi > -Original Message- > From: Thirupathaiah Annapureddy [mailto:thir...@linux.microsoft.com] > Sent: Thursday, August 20, 2020 8:16 AM > To: u-boot@lists.denx.de > Cc: Maxim Sloyko ; Marek Vasut ; > ChiaWei Wang ; Ryan Chen > > Subject: Re: [PATCH] arm: dts: fix ast2500-evb inclusion

[PATCH] board: phytec: imx8mm: Add PHYTEC phyCORE-i.MX8MM support

2020-08-20 Thread Teresa Remmet
Add support PHYTEC phyCORE-i.MX8MM SOM. Supported features: - 2GB LPDDR4 RAM - 1x 1Gbit Ethernet - eMMC - external SD - debug UART3 - watchdog - i2c eeprom Signed-off-by: Teresa Remmet --- arch/arm/dts/Makefile|1 + arch/arm/dts/phycore-imx8mm-u-boot.dtsi

[PATCH v7 00/10] Remove CONFIG_NR_DRAM_BANKS option and bi_memstart/memsize from bd_info

2020-08-20 Thread Stefan Roese
This patchset is an extension of the previous single patch "CONFIG_NR_DRAM_BANKS: Remove unreferenced code as its always defined". With a split into separate patches, its hopefully easier to understand, what is changed. The earlier patch versions tried a simple search and replace of the

[PATCH v4 09/11] arm: dts: mt7622: add sata- and asm_sel nodes

2020-08-20 Thread Frank Wunderlich
From: Frank Wunderlich asm_sel is for switching between sata and pcie mode on r64 there is GPIO90 connected to ASM1480 which switches RX/TX pairs to PCIe/SATA connector output-low means sata-controller is active Signed-off-by: Frank Wunderlich Reviewed-by: Chunfeng Yun ---

[PATCH v4 11/11] arm: dts: mt7623: add USB nodes

2020-08-20 Thread Frank Wunderlich
From: Frank Wunderlich This adds USB nodes for MT7623/BPI-R2 Signed-off-by: Frank Wunderlich Reviewed-by: Chunfeng Yun --- arch/arm/dts/mt7623.dtsi | 46 arch/arm/dts/mt7623n-bananapi-bpi-r2.dts | 16 + 2 files changed, 62 insertions(+) diff

[PATCH v4 10/11] arm: dts: mt7622: add USB nodes

2020-08-20 Thread Frank Wunderlich
From: Frank Wunderlich Add DTS nodes for MT7622/BPI-R64 Signed-off-by: Frank Wunderlich Reviewed-by: Chunfeng Yun --- v1->v2: - remove clk25m as it's not needed --- arch/arm/dts/mt7622-bananapi-bpi-r64.dts | 8 arch/arm/dts/mt7622-rfb.dts | 8

[PATCH v4 05/11] ahci: mediatek: add ahci driver

2020-08-20 Thread Frank Wunderlich
From: Frank Wunderlich add AHCI driver ported from linux https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/ata/ahci_mtk.c Signed-off-by: Frank Wunderlich --- drivers/ata/Kconfig| 8 +++ drivers/ata/Makefile | 1 + drivers/ata/mtk_ahci.c | 128

[PATCH v4 08/11] arm: dts: add dts for Bananapi-R64

2020-08-20 Thread Frank Wunderlich
From: Frank Wunderlich add a separate DTS for BananaPi R64 because it has 1GB RAM and SATA-Support Signed-off-by: Frank Wunderlich --- v1->v2: - changed name --- arch/arm/dts/Makefile| 1 + arch/arm/dts/mt7622-bananapi-bpi-r64.dts | 206 +++ 2 files

[PATCH v4 04/11] reset: add basic reset controller for pciesys

2020-08-20 Thread Frank Wunderlich
From: Frank Wunderlich bind reset controller to pciesys Signed-off-by: Frank Wunderlich --- drivers/clk/mediatek/clk-mt7622.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/drivers/clk/mediatek/clk-mt7622.c b/drivers/clk/mediatek/clk-mt7622.c index bd86b5b974..a1a35f72a3

[PATCH v4 07/11] arm: dts: add watchdog-reboot node for mt7622

2020-08-20 Thread Frank Wunderlich
From: Frank Wunderlich adding a wdt-reboot node to mt7622 dtsi Signed-off-by: Frank Wunderlich --- arch/arm/dts/mt7622.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/dts/mt7622.dtsi b/arch/arm/dts/mt7622.dtsi index d0783bc9ff..fec071643e 100644 ---

[PATCH v4 06/11] clk: mt7622: add needed clocks for ssusb-node

2020-08-20 Thread Frank Wunderlich
From: Frank Wunderlich MT7622 needs additional clock definitions to work properly Signed-off-by: Frank Wunderlich --- drivers/clk/mediatek/clk-mt7622.c | 42 +++ 1 file changed, 42 insertions(+) diff --git a/drivers/clk/mediatek/clk-mt7622.c

[PATCH v4 03/11] phy: mtk-tphy: make shared reg optional for v1

2020-08-20 Thread Frank Wunderlich
From: Frank Wunderlich make the shared reg optional when version is v1 for sata Suggested-by: Chunfeng Yun Signed-off-by: Frank Wunderlich Reviewed-by: Chunfeng Yun --- drivers/phy/phy-mtk-tphy.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git

[PATCH v4 00/11] Add MTK AHCI driver, BPI-R64 dts and USB-Nodes for mt7622>

2020-08-20 Thread Frank Wunderlich
From: Frank Wunderlich This series adds Mediatek AHCI driver, makes neccessary phy modifications creates new dts for bananapi-r64 (because it's a bit different to rfb) and adds all DTS nodes to get SATA and USB working on mt7622 and mt7623 they are based on top of this: Add PCIe and its clock

[PATCH v4 02/11] phy: mtk-tphy: add PHY_TYPE_SATA

2020-08-20 Thread Frank Wunderlich
From: Frank Wunderlich add support for PHY_TYPE_SATA to Mediateks TPHY driver Signed-off-by: Frank Wunderlich Reviewed-by: Chunfeng Yun --- drivers/phy/phy-mtk-tphy.c | 105 + 1 file changed, 105 insertions(+) diff --git a/drivers/phy/phy-mtk-tphy.c

[PATCH v4 01/11] arm: dts: mt7622: add SATA reset constants

2020-08-20 Thread Frank Wunderlich
From: Frank Wunderlich add reset constants used for SATA to header file Signed-off-by: Frank Wunderlich --- include/dt-bindings/reset/mt7629-reset.h | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/dt-bindings/reset/mt7629-reset.h

[PATCH 1/1] efi_selftest: add a test for ResetSystem()

2020-08-20 Thread Heinrich Schuchardt
The unit test will reset the system by calling the ResetSystem() runtime service before ExitBootServices(). Signed-off-by: Heinrich Schuchardt --- lib/efi_selftest/Makefile | 1 + lib/efi_selftest/efi_selftest_reset.c | 50 +++ 2 files changed, 51

Aw: [PATCH v3 04/11] reset: add basic reset controller for pciesys

2020-08-20 Thread Frank Wunderlich
> Gesendet: Donnerstag, 20. August 2020 um 11:55 Uhr > Von: "Frank Wunderlich" > +static int mt7622_pciesys_bind(struct udevice *dev) > +{ > + int ret = 0; > + > + if (IS_ENABLED(CONFIG_RESET_MEDIATEK)) { > +// PCIESYS uses in linux also 0x34 = ETHSYS reset controller sorry, squashed

[PATCH v4 1/1] cmd: provide command sbi

2020-08-20 Thread Heinrich Schuchardt
Provide a command to display information about the SBI implementation. The output might look like: => sbi SBI 0.2 OpenSBI Extensions: sbi_set_timer sbi_console_putchar sbi_console_getchar sbi_clear_ipi sbi_send_ipi sbi_remote_fence_i sbi_remote_sfence_vma

Re: [PATCH v2 7/8] mips: octeon: Add USB DT nodes

2020-08-20 Thread Stefan Roese
Hi Bin, On 20.08.20 11:09, Bin Meng wrote: Hi Stefan, On Thu, Aug 20, 2020 at 1:37 PM Stefan Roese wrote: Add the USB device tree nodes to the Octeon dts/dtsi files. Signed-off-by: Stefan Roese --- (no changes since v1) arch/mips/dts/mrvl,cn73xx.dtsi| 58

Re: [PATCH v2 4/7] riscv: Rework Sifive CLINT as UCLASS_TIMER driver

2020-08-20 Thread Sean Anderson
On 8/20/20 3:43 AM, Bin Meng wrote: > On Wed, Jul 29, 2020 at 5:56 PM Sean Anderson wrote: >> >> This converts the clint driver from the riscv-specific interface to be a >> DM-based UCLASS_TIMER driver. We also need to re-add the initialization for >> IPI back into the SPL code. This was

Re: [PATCH v2 2/8] usb: xhci: xhci_bulk_tx: Don't "BUG" when comparing addresses

2020-08-20 Thread Stefan Roese
Hi Bin, On 20.08.20 10:58, Bin Meng wrote: Hi Stefan, On Thu, Aug 20, 2020 at 1:35 PM Stefan Roese wrote: Octeon uses mapped addresses for virtual and physical memory. Its not nits: It's that easy to calculate the resulting addresses here. So lets remove let's this BUG_ON()

Re: [PATCH v2 2/7] riscv: Rework Andes PLMT as a UCLASS_TIMER driver

2020-08-20 Thread Sean Anderson
On 8/20/20 3:40 AM, Bin Meng wrote: > On Wed, Jul 29, 2020 at 5:56 PM Sean Anderson wrote: >> >> This converts the PLMT driver from the riscv-specific timer interface to be >> a DM-based UCLASS_TIMER driver. >> >> Signed-off-by: Sean Anderson >> --- >> This patch builds but has NOT been tested.

[PATCH v2 14/15] x86: intel: slimbootloader: Remove dead code

2020-08-20 Thread Andy Shevchenko
start.S does nothing and can be safely removed. Makefile is still being used by the build system, so simply drop the rule from it. Signed-off-by: Andy Shevchenko Reviewed-by: Simon Glass Reviewed-by: Aiden Park --- v2: added Rb tag(s) board/intel/slimbootloader/Makefile | 2 +-

[PATCH v2 08/15] x86: intel: cherryhill: Remove dead code

2020-08-20 Thread Andy Shevchenko
start.S does nothing and can be safely removed. Makefile is still being used by the build system, so simply drop the rule from it. Signed-off-by: Andy Shevchenko Reviewed-by: Simon Glass --- v2: added Rb tag(s) board/intel/cherryhill/Makefile | 2 +- board/intel/cherryhill/start.S | 8

Re: [PATCH v2 6/7] riscv: Update Kendryte device tree for new CLINT driver

2020-08-20 Thread Sean Anderson
On 8/20/20 3:45 AM, Bin Meng wrote: > On Wed, Jul 29, 2020 at 5:57 PM Sean Anderson wrote: >> >> AFAIK because the K210 clock driver does not come up until after >> relocation, the clint will always use the clock-frequency parameter. >> Ideally, it should update itself after relocation to take

[PATCH v2 13/15] x86: intel: minnowmax: Remove dead code

2020-08-20 Thread Andy Shevchenko
start.S does nothing and can be safely removed. Makefile is still being used by the build system, so simply drop the rule from it. Signed-off-by: Andy Shevchenko Reviewed-by: Simon Glass --- v2: added Rb tag(s) board/intel/minnowmax/Makefile | 2 +- board/intel/minnowmax/start.S | 8

[PATCH v2 12/15] x86: intel: galileo: Remove dead code

2020-08-20 Thread Andy Shevchenko
start.S does nothing and can be safely removed. Makefile is still being used by the build system, so simply drop the rule from it. Signed-off-by: Andy Shevchenko Reviewed-by: Simon Glass --- v2: added Rb tag(s) board/intel/galileo/Makefile | 2 +- board/intel/galileo/start.S | 8 2

[PATCH v2 09/15] x86: intel: cougarcanyon2: Remove dead code

2020-08-20 Thread Andy Shevchenko
start.S does nothing and can be safely removed. Makefile is still being used by the build system, so simply drop the rule from it. Signed-off-by: Andy Shevchenko Reviewed-by: Simon Glass --- v2: added Rb tag(s) board/intel/cougarcanyon2/Makefile | 2 +- board/intel/cougarcanyon2/start.S | 8

[PATCH v2 07/15] x86: intel: bayleybay: Remove dead code

2020-08-20 Thread Andy Shevchenko
start.S does nothing and can be safely removed. Makefile is still being used by the build system, so simply drop the rule from it. Signed-off-by: Andy Shevchenko Reviewed-by: Simon Glass --- v2: added Rb tag(s) board/intel/bayleybay/Makefile | 2 +- board/intel/bayleybay/start.S | 8

[PATCH v2 15/15] x86: qemu: Remove dead code

2020-08-20 Thread Andy Shevchenko
start.S does nothing and can be safely removed. Makefile is still being used by the build system, so simply drop the rule from it. Signed-off-by: Andy Shevchenko Reviewed-by: Simon Glass --- v2: added Rb tag(s) board/emulation/qemu-x86/Makefile | 2 -- board/emulation/qemu-x86/start.S | 8

[PATCH v2 10/15] x86: intel: crownbay: Remove dead code

2020-08-20 Thread Andy Shevchenko
start.S does nothing and can be safely removed. Makefile is still being used by the build system, so simply drop the rule from it. Signed-off-by: Andy Shevchenko Reviewed-by: Simon Glass --- v2: added Rb tag(s) board/intel/crownbay/Makefile | 2 +- board/intel/crownbay/start.S | 8 2

[PATCH v2 04/15] x86: coreboot: Remove dead code

2020-08-20 Thread Andy Shevchenko
start.S does nothing and can be safely removed. Makefile is still being used by the build system, so simply drop the rule from it. Signed-off-by: Andy Shevchenko Reviewed-by: Simon Glass --- v2: added Rb tag(s) board/coreboot/coreboot/Makefile | 2 +- board/coreboot/coreboot/start.S | 12

[PATCH v2 02/15] x86: advantech: som-db5800-som-6867: Remove dead code

2020-08-20 Thread Andy Shevchenko
start.S does nothing and can be safely removed. Makefile is still being used by the build system, so simply drop the rule from it. Cc: George McCollister Signed-off-by: Andy Shevchenko Reviewed-by: Simon Glass --- v2: added Rb tag(s) board/advantech/som-db5800-som-6867/Makefile | 2 +-

[PATCH v2 11/15] x86: intel: edison: Remove dead code

2020-08-20 Thread Andy Shevchenko
start.S does nothing and can be safely removed. Makefile is still being used by the build system, so simply drop the rule from it. Signed-off-by: Andy Shevchenko Reviewed-by: Simon Glass --- v2: added Rb tag(s) board/intel/edison/Makefile | 2 +- board/intel/edison/start.S | 12

[PATCH v2 06/15] x86: efi: efi-x86_payload: Remove dead code

2020-08-20 Thread Andy Shevchenko
start.S does nothing and can be safely removed. Makefile is still being used by the build system, so simply drop the rule from it. Signed-off-by: Andy Shevchenko Reviewed-by: Simon Glass --- v2: added Rb tag(s) board/efi/efi-x86_payload/Makefile | 2 +- board/efi/efi-x86_payload/start.S | 8

[PATCH v2 05/15] x86: dfi: dfi-bt700: Remove dead code

2020-08-20 Thread Andy Shevchenko
start.S does nothing and can be safely removed. Makefile is still being used by the build system, so simply drop the rule from it. Signed-off-by: Andy Shevchenko Reviewed-by: Stefan Roese --- v2: added Rb tag(s) board/dfi/dfi-bt700/Makefile | 2 +- board/dfi/dfi-bt700/start.S | 8 2

[PATCH v2 01/15] x86: Introduce USE_EARLY_BOARD_INIT option

2020-08-20 Thread Andy Shevchenko
Introduce USE_EARLY_BOARD_INIT option and select it by the actual users. Cc: George McCollister Signed-off-by: Andy Shevchenko Reviewed-by: Stefan Roese Reviewed-by: Aiden Park --- v2: added Rb tag(s), appended

[PATCH v2 03/15] x86: congatec: conga-qeval20-qa3-e3845: Remove dead code

2020-08-20 Thread Andy Shevchenko
start.S does nothing and can be safely removed. Makefile is still being used by the build system, so simply drop the rule from it. Signed-off-by: Andy Shevchenko Reviewed-by: Stefan Roese --- v2: added Rb tag(s) board/congatec/conga-qeval20-qa3-e3845/Makefile | 2 +-

[PATCH v3 10/11] arm: dts: mt7622: add USB nodes

2020-08-20 Thread Frank Wunderlich
From: Frank Wunderlich Add DTS nodes for MT7622/BPI-R64 Signed-off-by: Frank Wunderlich Reviewed-by: Chunfeng Yun --- v1->v2: - remove clk25m as it's not needed --- arch/arm/dts/mt7622-bananapi-bpi-r64.dts | 8 arch/arm/dts/mt7622-rfb.dts | 8

[PATCH v3 11/11] arm: dts: mt7623: add USB nodes

2020-08-20 Thread Frank Wunderlich
From: Frank Wunderlich This adds USB nodes for MT7623/BPI-R2 Signed-off-by: Frank Wunderlich Reviewed-by: Chunfeng Yun --- arch/arm/dts/mt7623.dtsi | 46 arch/arm/dts/mt7623n-bananapi-bpi-r2.dts | 16 + 2 files changed, 62 insertions(+) diff

[PATCH v3 09/11] arm: dts: mt7622: add sata- and asm_sel nodes

2020-08-20 Thread Frank Wunderlich
From: Frank Wunderlich asm_sel is for switching between sata and pcie mode on r64 there is GPIO90 connected to ASM1480 which switches RX/TX pairs to PCIe/SATA connector output-low means sata-controller is active Signed-off-by: Frank Wunderlich Reviewed-by: Chunfeng Yun ---

[PATCH v3 07/11] arm: dts: add watchdog-reboot node for mt7622

2020-08-20 Thread Frank Wunderlich
From: Frank Wunderlich adding a wdt-reboot node to mt7622 dtsi Signed-off-by: Frank Wunderlich --- arch/arm/dts/mt7622.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/dts/mt7622.dtsi b/arch/arm/dts/mt7622.dtsi index d0783bc9ff..fec071643e 100644 ---

[PATCH v3 08/11] arm: dts: add dts for Bananapi-R64

2020-08-20 Thread Frank Wunderlich
From: Frank Wunderlich add a separate DTS for BananaPi R64 because it has 1GB RAM and SATA-Support Signed-off-by: Frank Wunderlich --- v1->v2: - changed name --- arch/arm/dts/Makefile| 1 + arch/arm/dts/mt7622-bananapi-bpi-r64.dts | 206 +++ 2 files

[PATCH v3 05/11] ahci: mediatek: add ahci driver

2020-08-20 Thread Frank Wunderlich
From: Frank Wunderlich add AHCI driver ported from linux https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/ata/ahci_mtk.c Signed-off-by: Frank Wunderlich --- drivers/ata/Kconfig| 8 +++ drivers/ata/Makefile | 1 + drivers/ata/mtk_ahci.c | 128

[PATCH v3 02/11] phy: mtk-tphy: add PHY_TYPE_SATA

2020-08-20 Thread Frank Wunderlich
From: Frank Wunderlich add support for PHY_TYPE_SATA to Mediateks TPHY driver Signed-off-by: Frank Wunderlich Reviewed-by: Chunfeng Yun --- drivers/phy/phy-mtk-tphy.c | 105 + 1 file changed, 105 insertions(+) diff --git a/drivers/phy/phy-mtk-tphy.c

[PATCH v3 01/11] arm: dts: mt7622: add SATA reset constants

2020-08-20 Thread Frank Wunderlich
From: Frank Wunderlich add reset constants used for SATA to header file Signed-off-by: Frank Wunderlich --- include/dt-bindings/reset/mt7629-reset.h | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/dt-bindings/reset/mt7629-reset.h

[PATCH v3 04/11] reset: add basic reset controller for pciesys

2020-08-20 Thread Frank Wunderlich
From: Frank Wunderlich bind reset controller to pciesys Signed-off-by: Frank Wunderlich --- drivers/clk/mediatek/clk-mt7622.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/clk/mediatek/clk-mt7622.c b/drivers/clk/mediatek/clk-mt7622.c index

[PATCH v3 03/11] phy: mtk-tphy: make shared reg optional for v1

2020-08-20 Thread Frank Wunderlich
From: Frank Wunderlich make the shared reg optional when version is v1 for sata Suggested-by: Chunfeng Yun Signed-off-by: Frank Wunderlich Reviewed-by: Chunfeng Yun --- drivers/phy/phy-mtk-tphy.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git

[PATCH v3 06/11] clk: mt7622: add needed clocks for ssusb-node

2020-08-20 Thread Frank Wunderlich
From: Frank Wunderlich MT7622 needs additional clock definitions to work properly Signed-off-by: Frank Wunderlich --- drivers/clk/mediatek/clk-mt7622.c | 43 ++- 1 file changed, 42 insertions(+), 1 deletion(-) diff --git a/drivers/clk/mediatek/clk-mt7622.c

[PATCH v3 00/11] Add MTK AHCI driver, BPI-R64 dts and USB-Nodes for mt7622>

2020-08-20 Thread Frank Wunderlich
From: Frank Wunderlich This series adds Mediatek AHCI driver, makes neccessary phy modifications creates new dts for bananapi-r64 (because it's a bit different to rfb) and adds all DTS nodes to get SATA and USB working on mt7622 and mt7623 they are based on top of this: Add PCIe and its clock

Re: [PATCH 3/5] board: xen: Remove CONFIG_CMD_RUN define as it is set on by default in Kconfig

2020-08-20 Thread Michal Simek
Hi, st 19. 8. 2020 v 14:43 odesílatel Anastasiia Lukianenko napsal: > > From: Anastasiia Lukianenko You really need to write something here. > > Signed-off-by: Anastasiia Lukianenko > --- > configs/xenguest_arm64_defconfig | 1 - > include/configs/xenguest_arm64.h | 2 -- > 2 files

Re: [PATCH v1 01/15] x86: Introduce USE_EARLY_BOARD_INIT option

2020-08-20 Thread Andy Shevchenko
On Thu, Aug 06, 2020 at 05:54:24PM +0300, Andy Shevchenko wrote: > Introduce USE_EARLY_BOARD_INIT option and select it by the actual users. ... > +#ifdef USE_EARLY_BOARD_INIT And here I missed CONFIG_ prefix... I'll fix this in v2. > /* >* Critical early platform init -

Re: [PATCH v2 5/9] ram: octeon: Add MIPS Octeon3 DDR4 support (part 1/3)

2020-08-20 Thread Stefan Roese
Hi Daniel, On 19.08.20 16:30, Daniel Schwierzeck wrote: Am Montag, den 17.08.2020, 14:12 +0200 schrieb Stefan Roese: From: Aaron Williams This Octeon 3 DDR driver is ported from the 2013 Cavium / Marvell U-Boot repository. It currently supports DDR4 on Octeon 3. It can be later extended to

[PATCH 1/2] rockchip: rk3188: Fix the code support for SPL_LED

2020-08-20 Thread Kever Yang
Fix the build error for the wrong code when CONFIG_SPL_LED is enabled. Signed-off-by: Kever Yang --- arch/arm/mach-rockchip/rk3188/rk3188.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-rockchip/rk3188/rk3188.c b/arch/arm/mach-rockchip/rk3188/rk3188.c

[PATCH 2/2] rockchip: firefly-rk3288: Fix the code support for SPL_LED

2020-08-20 Thread Kever Yang
Fix the build error for the wrong code when CONFIG_SPL_LED is enabled. Signed-off-by: Kever Yang --- board/firefly/firefly-rk3288/firefly-rk3288.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/board/firefly/firefly-rk3288/firefly-rk3288.c

Re: [PATCH v7 03/10] board_f: Add default values for bi_dram[] in dram_init_banksize()

2020-08-20 Thread Stefan Roese
Hi Bin, On 20.08.20 11:22, Bin Meng wrote: Hi Stefan, On Thu, Aug 20, 2020 at 12:45 PM Stefan Roese wrote: Remove the bi_memstart / bi_memsize assignment in setup_bdinfo() and make sure, that bd_dram[] is always configured in the weak default implementation of dram_init_banksize(), when

Re: [PATCH v7 03/10] board_f: Add default values for bi_dram[] in dram_init_banksize()

2020-08-20 Thread Bin Meng
Hi Stefan, On Thu, Aug 20, 2020 at 12:45 PM Stefan Roese wrote: > > Remove the bi_memstart / bi_memsize assignment in setup_bdinfo() and > make sure, that bd_dram[] is always configured in the weak default > implementation of dram_init_banksize(), when CONFIG_SYS_SDRAM_BASE is > not set. > >

Re: [PATCH v7 01/10] CONFIG_NR_DRAM_BANKS: Remove unreferenced code as its always defined

2020-08-20 Thread Bin Meng
On Thu, Aug 20, 2020 at 12:45 PM Stefan Roese wrote: > > Since commit 86cf1c82850f ("configs: Migrate CONFIG_NR_DRAM_BANKS") & > commit 999a772d9f24 ("Kconfig: Migrate CONFIG_NR_DRAM_BANKS"), > CONFIG_NR_DRAM_BANKS is always defined with a value (4 is default). > It makes no sense to still carry

Re: [PATCH v2 7/8] mips: octeon: Add USB DT nodes

2020-08-20 Thread Bin Meng
Hi Stefan, On Thu, Aug 20, 2020 at 1:37 PM Stefan Roese wrote: > > Add the USB device tree nodes to the Octeon dts/dtsi files. > > Signed-off-by: Stefan Roese > --- > > (no changes since v1) > > arch/mips/dts/mrvl,cn73xx.dtsi| 58 +++ >

Re: [PATCH v2 3/8] usb: xhci: octeon: Add DWC3 glue layer for Octeon

2020-08-20 Thread Bin Meng
Hi Stefan, On Thu, Aug 20, 2020 at 1:35 PM Stefan Roese wrote: > > This patch adds the glue layer for the MIPS Octeon SoCs. Its ported nits: It's > mainly from the Linux code. > > Signed-off-by: Stefan Roese > Cc: Bin Meng > Cc: Marek Vasut > --- > > (no changes since v1) > >

Re: [PATCH v2 2/8] usb: xhci: xhci_bulk_tx: Don't "BUG" when comparing addresses

2020-08-20 Thread Bin Meng
Hi Stefan, On Thu, Aug 20, 2020 at 1:35 PM Stefan Roese wrote: > > Octeon uses mapped addresses for virtual and physical memory. Its not nits: It's > that easy to calculate the resulting addresses here. So lets remove let's > this BUG_ON() completely, as its not really helpful. it's > >

Re: [PATCH 2/2] arm: mvebu: Espressobin: Setup MTD partitions when booting kernel

2020-08-20 Thread Pali Rohár
On Thursday 20 August 2020 10:17:55 Stefan Roese wrote: > On 20.08.20 09:40, Pali Rohár wrote: > > On Thursday 20 August 2020 07:02:18 Stefan Roese wrote: > > > Can't you just use "mtdparts=" kernel cmdline parameter instead to pass > > > the MTD layout to the kernel? > > > > Maybe it is possible

Re: [PATCH v5 11/11] riscv: Add FPIOA and GPIO support for Kendryte K210

2020-08-20 Thread Rick Chen
Hi Sean > Hi Sean > > > On 8/18/20 11:48 PM, Rick Chen wrote: > > > Hi Tom > > > > > >> This patch adds the necessary configs and docs for FPIOA and GPIO support > > >> on the K210. > > >> > > >> The board does not boot unless CONSOLE_LOGLEVEL is set to a non-default > > >> value . It also boots

Re: [PATCH v3] board: armltd: Add support for Total Compute platform

2020-08-20 Thread Usama Arif
On 12/08/2020 16:34, Tom Rini wrote: On Wed, Aug 12, 2020 at 04:12:53PM +0100, Usama Arif wrote: Total Compute is based on ARM architecture and has the following features enabled in u-boot: - PL011 UART - PL180 MMC - NOR Flash - FIT image with Signature - AVB Signed-off-by: Usama Arif

Re: [PATCH v2 4/9] mips: octeon: Add octeon_ddr.h header

2020-08-20 Thread Stefan Roese
Hi Daniel, On 19.08.20 16:07, Daniel Schwierzeck wrote: Am Montag, den 17.08.2020, 14:12 +0200 schrieb Stefan Roese: From: Aaron Williams This header will be used by the DDR driver (lmc). Its ported from the 2013 Cavium / Marvell U-Boot repository. Signed-off-by: Aaron Williams

Re: [PATCH v2 1/8] usb: xhci: xhci-dwc3.c: Use dev_remap_addr() instead of dev_get_addr()

2020-08-20 Thread Bin Meng
On Thu, Aug 20, 2020 at 1:35 PM Stefan Roese wrote: > > On MIPS platforms, mapping of the base address is needed. This patch > switches from dev_get_addr() to dev_remap_addr() to get the mapped base > address of the xHCI controller. > > Signed-off-by: Stefan Roese > Cc: Bin Meng > Cc: Marek

Re: Revert "ARM: socfpga: Remove socfpga_sdram_apply_static_cfg()

2020-08-20 Thread Wolfgang Grandegger
Hello, Am 19.08.20 um 21:54 schrieb Ralph Siemsen: > On Wed, Aug 19, 2020 at 09:28:39PM +0200, Marek Vasut wrote: >> >> Is the F2SDRAM port enabled in your case ? > > Is there a way I can check this via software? Unfortunately I do not > have access to Quartus/Qsys files, nor the person who did

Re: [PATCH v2 2/9] mips: octeon: Add octeon-model.h header

2020-08-20 Thread Stefan Roese
Hi Daniel, On 19.08.20 16:01, Daniel Schwierzeck wrote: Am Montag, den 17.08.2020, 14:12 +0200 schrieb Stefan Roese: From: Aaron Williams This header is used by the upcoming DDR driver and potentially by other drivers ported from the 2013 Cavium / Marvell U-Boot repository. Signed-off-by:

Re: [PATCH 5/9] xhci-ring.c: Add the poll_pend state to properly abort transactions

2020-08-20 Thread Bin Meng
Hi Jason, On Sat, Jul 25, 2020 at 5:51 AM Jason Wessel wrote: > > xhci_trl_tx and xhchi_bulk_tx can be called synchronously by other > drivers such as the usb storage or network, while the keyboard driver > exclusively uses the polling mode. > Could you provide more details as to when this will

Re: [PATCH 2/2] arm: mvebu: Espressobin: Setup MTD partitions when booting kernel

2020-08-20 Thread Stefan Roese
On 20.08.20 09:40, Pali Rohár wrote: On Thursday 20 August 2020 07:02:18 Stefan Roese wrote: Can't you just use "mtdparts=" kernel cmdline parameter instead to pass the MTD layout to the kernel? Maybe it is possible too, I have not tried it. I thought that more common is to update DTS file

Re: [PATCH v5 11/11] riscv: Add FPIOA and GPIO support for Kendryte K210

2020-08-20 Thread Rick Chen
Hi Sean > On 8/18/20 11:48 PM, Rick Chen wrote: > > Hi Tom > > > >> This patch adds the necessary configs and docs for FPIOA and GPIO support > >> on the K210. > >> > >> The board does not boot unless CONSOLE_LOGLEVEL is set to a non-default > >> value . It also boots when the tree is dirty (and

RE: [EXT] [PATCH 2/2] arm64: a37xx: pci: Assert PERST# signal when unloading driver

2020-08-20 Thread Kostya Porotchkin
> -Original Message- > From: Pali Rohár > Sent: Wednesday, August 19, 2020 16:57 > To: Stefan Roese ; Kostya Porotchkin > Cc: u-boot@lists.denx.de > Subject: [EXT] [PATCH 2/2] arm64: a37xx: pci: Assert PERST# signal when > unloading driver > > External Email > >

Re: [PATCH] mmc: sdhci: Enable high speed conditional on the correspnding bit

2020-08-20 Thread Michal Simek
Hi, čt 13. 8. 2020 v 12:48 odesílatel Michal Simek napsal: > > Hi Peng, > > st 29. 7. 2020 v 17:07 odesílatel Michal Simek napsal: > > > > Hi, > > > > čt 23. 7. 2020 v 6:12 odesílatel Faiz Abbas napsal: > > > > > > The capabilities register has a field to indicate whether the host > > >

Re: [PATCH] mmc: sdhci: Use upper/lower_32_bits macros

2020-08-20 Thread Michal Simek
st 29. 7. 2020 v 15:44 odesílatel Michal Simek napsal: > > Instead of recasting and shifting use macros which are designed for taking > upper/lower 32bit value from 64bit variable. > > Signed-off-by: Michal Simek > --- > > drivers/mmc/sdhci.c | 8 > 1 file changed, 4 insertions(+), 4

Re: [PATCH] clk: versal: Move pm_query_id out of clock driver

2020-08-20 Thread Michal Simek
pá 24. 7. 2020 v 14:26 odesílatel Michal Simek napsal: > > There is no reason to have firmware specific structure in clock driver. > Move it to generic location and also initialize enum values which is based > on > https://lore.kernel.org/linux-arm-kernel/20200318125003.ga2727...@kroah.com/ >

Re: [PATCH 2/2] arm64: a37xx: pci: Assert PERST# signal when unloading driver

2020-08-20 Thread Stefan Roese
On 20.08.20 09:52, Pali Rohár wrote: On Thursday 20 August 2020 09:48:17 Stefan Roese wrote: On 20.08.20 09:43, Pali Rohár wrote: On Thursday 20 August 2020 07:05:58 Stefan Roese wrote: On 19.08.20 15:57, Pali Rohár wrote: This change ensures that PCIe card is put into reset state when

Re: [PATCH 0/4] xilinx: common: Fix fdt/initrd_high and bootm_* variables

2020-08-20 Thread Michal Simek
st 12. 8. 2020 v 12:42 odesílatel Michal Simek napsal: > > Hi, > > this series is removing fdt/initrd_high variables and tune bootm_size run > time setup to match needs from Linux kernel. > > Thanks, > Michal > > > Michal Simek (4): > xilinx: common: Get rid of fdt_high variable > xilinx:

Re: [PATCH] xilinx: Change logic around zynq_board_read_rom_ethaddr()

2020-08-20 Thread Michal Simek
st 5. 8. 2020 v 14:02 odesílatel Michal Simek napsal: > > There is no reason to build private function when > CONFIG_ZYNQ_GEM_I2C_MAC_OFFSET is not defined. There is already weak > function which handles default case properly. > > Signed-off-by: Michal Simek > --- > >

Re: [PATCH] xilinx: Add support for ENV_VARS_UBOOT_RUNTIME_CONFIG

2020-08-20 Thread Michal Simek
st 5. 8. 2020 v 14:01 odesílatel Michal Simek napsal: > > Start to use ENV_VARS_UBOOT_RUNTIME_CONFIG to enable/disable updating > variables with run time information. > > Signed-off-by: Michal Simek > --- > > arch/arm/Kconfig | 3 +++ > board/xilinx/versal/board.c | 3 +++ >

Re: [PATCH] xilinx: versal: Enable i2c misc eeprom driver

2020-08-20 Thread Michal Simek
st 5. 8. 2020 v 14:00 odesílatel Michal Simek napsal: > > Enable this driver to be able to work with i2c based eeproms on Versal. > > Signed-off-by: Michal Simek > --- > > configs/xilinx_versal_virt_defconfig | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git

Re: [PATCH 0/8] xilinx: zynqmp: Silicon name cleanup

2020-08-20 Thread Michal Simek
st 5. 8. 2020 v 13:23 odesílatel Michal Simek napsal: > > Hi, > > This patch series is intended to cleanup the functions used to get > the silicon name for ZynqMPSoC devices. It make use the firmware driver > rather than SMC call and impements more understandable agorithm to > compute the device

Re: [PATCH] mmc: zynq: Fix default value for xlnx,mio-bank

2020-08-20 Thread Michal Simek
pá 24. 7. 2020 v 9:03 odesílatel Michal Simek napsal: > > DT binding is saying that default value is 0 not -1 that's why fix it. > > Signed-off-by: Michal Simek > --- > > Depends on https://lists.denx.de/pipermail/u-boot/2020-July/421231.html > --- > drivers/mmc/zynq_sdhci.c | 2 +- > 1 file

Re: [EXT] [PATCH 2/2] arm64: a37xx: pci: Assert PERST# signal when unloading driver

2020-08-20 Thread Stefan Roese
Hi Kosta, this one as well please. ;) Thanks, Stefan On 19.08.20 19:31, Kostya Porotchkin wrote: From: Pali Rohár Sent: Wednesday, August 19, 2020 16:57 To: Stefan Roese; Kostya Porotchkin Cc: u-boot@lists.denx.de Subject: [EXT] [PATCH 2/2] arm64:

Re: [PATCH] xilinx: Fix xlnx,mio_bank property

2020-08-20 Thread Michal Simek
pá 24. 7. 2020 v 9:01 odesílatel Michal Simek napsal: > > s/xlnx,mio_bank/xlnx,mio-bank/g > > DT binding is describing mio-bank not mio_bank that's why fix all DTSes and > also driver itself. > > Signed-off-by: Michal Simek > --- > > arch/arm/dts/avnet-ultrazedev-cc-v1.0-ultrazedev-som-v1.0.dts

Re: [PATCH 2/2] arm64: a37xx: pci: Assert PERST# signal when unloading driver

2020-08-20 Thread Pali Rohár
On Thursday 20 August 2020 09:48:17 Stefan Roese wrote: > On 20.08.20 09:43, Pali Rohár wrote: > > On Thursday 20 August 2020 07:05:58 Stefan Roese wrote: > > > On 19.08.20 15:57, Pali Rohár wrote: > > > > This change ensures that PCIe card is put into reset state when U-Boot > > > > stops using

Re: [PATCH v3] i2c: eeprom: Use reg property instead of offset and size

2020-08-20 Thread Michal Simek
st 22. 7. 2020 v 12:14 odesílatel Michal Simek napsal: > > Remove adhoc dt binding for fixed-partition definition for i2c eeprom. > fixed-partition are using reg property instead of offset/size pair. > > Signed-off-by: Michal Simek > --- > > Changes in v3: > - Add test for sandbox > - Fix issues

Re: [PATCH] xilinx: kconfig: Change Kconfig dependencies for Xilinx drivers

2020-08-20 Thread Michal Simek
čt 13. 8. 2020 v 14:35 odesílatel Michal Simek napsal: > > Zynq/ZynqMP/Versal IPs should be possible to called also from Microblaze in > PL and vice versa. That's why change dependencies and do not limit enabling > just for some platforms. > > Signed-off-by: Michal Simek > --- > >

Re: [PATCH 2/2] arm64: a37xx: pci: Assert PERST# signal when unloading driver

2020-08-20 Thread Stefan Roese
On 20.08.20 09:43, Pali Rohár wrote: On Thursday 20 August 2020 07:05:58 Stefan Roese wrote: On 19.08.20 15:57, Pali Rohár wrote: This change ensures that PCIe card is put into reset state when U-Boot stops using it. DM_FLAG_OS_PREPARE ensures that U-Boot executes driver's remove callback

Re: [PATCH] xilinx: Enable preboot feature for ZynqMP and Versal

2020-08-20 Thread Michal Simek
st 19. 8. 2020 v 9:39 odesílatel Michal Simek napsal: > > Enable preboot functionality for ZynqMP and Versal platforms. > > Signed-off-by: Michal Simek > --- > > configs/xilinx_versal_virt_defconfig | 1 + > configs/xilinx_zynqmp_virt_defconfig | 1 + > 2 files changed, 2 insertions(+) > > diff

Re: [PATCH v2 0/7] riscv: Clean up timer drivers

2020-08-20 Thread Bin Meng
Hi Sean, On Wed, Jul 29, 2020 at 5:56 PM Sean Anderson wrote: > > This series cleans up the timer drivers in RISC-V and converts them to DM. > > This series depends on [1]. This series needs to be tested! I have only tested > it on QEMU and the K210. Notably, this means that the HiFive and

Re: [PATCH v2 6/7] riscv: Update Kendryte device tree for new CLINT driver

2020-08-20 Thread Bin Meng
On Wed, Jul 29, 2020 at 5:57 PM Sean Anderson wrote: > > AFAIK because the K210 clock driver does not come up until after > relocation, the clint will always use the clock-frequency parameter. > Ideally, it should update itself after relocation to take into account the > actual CPU frequency. > >

Re: [PATCH v2 4/7] riscv: Rework Sifive CLINT as UCLASS_TIMER driver

2020-08-20 Thread Bin Meng
On Wed, Jul 29, 2020 at 5:56 PM Sean Anderson wrote: > > This converts the clint driver from the riscv-specific interface to be a > DM-based UCLASS_TIMER driver. We also need to re-add the initialization for > IPI back into the SPL code. This was previously implicitly done when the > timer was

Re: [PATCH 2/2] arm64: a37xx: pci: Assert PERST# signal when unloading driver

2020-08-20 Thread Pali Rohár
On Thursday 20 August 2020 07:05:58 Stefan Roese wrote: > On 19.08.20 15:57, Pali Rohár wrote: > > This change ensures that PCIe card is put into reset state when U-Boot > > stops using it. > > > > DM_FLAG_OS_PREPARE ensures that U-Boot executes driver's remove callback > > prior booting Linux

Re: [PATCH v2 3/7] riscv: Clean up initialization in Andes PLIC

2020-08-20 Thread Bin Meng
On Wed, Jul 29, 2020 at 5:56 PM Sean Anderson wrote: > > This merges the PLIC initialization code from two functions into one. > > Signed-off-by: Sean Anderson > --- > This patch builds but has NOT been tested. > > (no changes since v1) > > arch/riscv/lib/andes_plic.c | 58

Re: [PATCH 2/2] arm: mvebu: Espressobin: Setup MTD partitions when booting kernel

2020-08-20 Thread Pali Rohár
On Thursday 20 August 2020 07:02:18 Stefan Roese wrote: > Can't you just use "mtdparts=" kernel cmdline parameter instead to pass > the MTD layout to the kernel? Maybe it is possible too, I have not tried it. I thought that more common is to update DTS file by uboot when loading kernel as it is

Re: [PATCH v2 2/7] riscv: Rework Andes PLMT as a UCLASS_TIMER driver

2020-08-20 Thread Bin Meng
On Wed, Jul 29, 2020 at 5:56 PM Sean Anderson wrote: > > This converts the PLMT driver from the riscv-specific timer interface to be > a DM-based UCLASS_TIMER driver. > > Signed-off-by: Sean Anderson > --- > This patch builds but has NOT been tested. > > (no changes since v1) > >

Re: [PATCH v2 1/7] riscv: Rework riscv timer driver to only support S-mode

2020-08-20 Thread Bin Meng
On Wed, Jul 29, 2020 at 5:56 PM Sean Anderson wrote: > > The riscv-timer driver currently serves as a shim for several riscv timer > drivers. This is not too desirable because it bypasses the usual timer > selection via the driver model. There is no easy way to specify an > alternate timing

<    1   2   3   >