Re: [U-Boot] [PATCH 1/4] asm: dma-mapping.h: Fix dma mapping functions

2019-11-15 Thread Masahiro Yamada
: Vignesh Raghavendra Reviewed-by: Masahiro Yamada > --- > arch/arm/include/asm/dma-mapping.h | 22 -- > arch/nds32/include/asm/dma-mapping.h | 22 -- > arch/riscv/include/asm/dma-mapping.h | 22 -- > arch/x86/include/asm/

Re: [U-Boot] [PATCH 3/4] mtd: denali: Drop custom dma mapping functions

2019-11-15 Thread Masahiro Yamada
On Fri, Nov 15, 2019 at 8:56 PM Vignesh Raghavendra wrote: > > Drop local dma_map_single() and dma_unmap_single() and use arch specific > common implementation > > Signed-off-by: Vignesh Raghavendra > --- Acked-by: Masahiro Yamada > drivers/mtd/n

Re: [U-Boot] [PATCH 2/4] mmc: tmio-common: Drop custom dma mapping functions

2019-11-15 Thread Masahiro Yamada
On Fri, Nov 15, 2019 at 8:56 PM Vignesh Raghavendra wrote: > > Drop local dma_map_single() and dma_unmap_single() and use arch specific > common implementation > > Signed-off-by: Vignesh Raghavendra > --- Acked-by: Masahiro Yamada > drivers/m

Re: [U-Boot] What if ATF can be part of U-Boot source, like SPL?

2019-09-03 Thread Masahiro Yamada
nd > > ATF, this image won't boot!" warning. > > So, U-Boot spits out that it cannot find kernel image and refuses to > boot, do we also import Linux into the codebase because of that ? > > But Linux also spits that it cannot find init and refuses to boot. Do we > import systemd/sysvinit/upstart/... because of that ? > > No, we do not. That's what build systems like OE or buildroot or whatnot > are for. If you want to assemble your image by hand, that's also fine, > surely you should be capable of replicating what the documentation / OE > / buildroot recipe suggests. I agree with Marek. U-Boot should be independent. I do not like the git-submodule approach. Jagan's proposal..., no way! -- Best Regards Masahiro Yamada ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] Question about GPL v3 font

2019-08-18 Thread Masahiro Yamada
On Fri, Aug 16, 2019 at 2:13 AM Tom Rini wrote: > > On Tue, Aug 13, 2019 at 03:34:20AM -0600, Simon Glass wrote: > > Hi, > > > > On Fri, 26 Jul 2019 at 11:07, Tom Rini wrote: > > > > > > On Fri, Jul 26, 2019 at 06:42:47PM +0900, Masahiro Yamada wrote: &

Re: [U-Boot] [PATCH 6/7] mmc: sdhci-cadence: fix uninitialized pointer deref on probe

2019-08-05 Thread Masahiro Yamada
On Tue, Aug 6, 2019 at 11:50 AM Peng Fan wrote: > > Commit 3d296365e4e8 ("mmc: sdhci: Add support for > sdhci-caps-mask") sdhci_setup_cfg() expects a valid sdhci_host mmc > field. > > Fixes: 3d296365e4e8 ("mmc: sdhci: Add support for sdhci-caps-mask") &

[U-Boot] Question about GPL v3 font

2019-07-26 Thread Masahiro Yamada
g/copyleft/gpl.html -- Best Regards Masahiro Yamada ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [RFC] bug.h: Drop filename from BUG/WARNING logs if building for TPL/SPL

2019-07-12 Thread Masahiro Yamada
Hi Andreas, On Fri, Jul 12, 2019 at 3:12 AM Andreas Dannenberg wrote: > > Yamada-san, > > On Fri, Jul 12, 2019 at 02:29:02AM +0900, Masahiro Yamada wrote: > > On Fri, Jul 12, 2019 at 12:34 AM Andreas Dannenberg > > wrote: > > > > > > On Wed, Jul 10, 20

Re: [U-Boot] [RFC] bug.h: Drop filename from BUG/WARNING logs if building for TPL/SPL

2019-07-11 Thread Masahiro Yamada
to highlight savings if > needed. > > Anyways I'm not proud of the proposed change but merely wanted to see > with this RFC if there isn't any way to do further optimizations on the > __FILE__ topic that are not overly intrusive specifically as it comes to > SPL. Commit 1eb2e71edd55e16562e3

Re: [U-Boot] [GIT PULL] UniPhier SoC updates for v2019.10-rc1

2019-07-11 Thread Masahiro Yamada
+CC list, just in case. On Thu, Jul 11, 2019 at 11:19 PM Masahiro Yamada wrote: > > Hi Tom, > > Here is a pretty big bulk of changes for -rc1. Please pull! > > > > The following changes since commit b4944e25744aa42dc23c6912e1cd4ccad270c4e0: > > Merge tag 'u-bo

[U-Boot] [PATCH v2 22/22] ARM: uniphier: set {kernel, ramdisk, fdt}_addr_r at boot-time

2019-07-10 Thread Masahiro Yamada
The base of DRAM will be changed for the next generation SoC. The addresses needed for booting the kernel should be shifted according to the DRAM base. Signed-off-by: Masahiro Yamada --- arch/arm/mach-uniphier/board_late_init.c | 4 include/configs/uniphier.h | 14

[U-Boot] [PATCH v2 09/22] ARM: uniphier: check DT to determine whether to initialize SBC

2019-07-10 Thread Masahiro Yamada
C block. Signed-off-by: Masahiro Yamada --- arch/arm/mach-uniphier/Makefile | 3 ++- arch/arm/mach-uniphier/sbc/Makefile | 4 arch/arm/mach-uniphier/sbc/sbc-ld11.c | 3 +++ arch/arm/mach-uniphier/sbc/sbc-ld4.c | 3 +++ arch/arm/mach-uniphier/sbc/sbc-pxs2.c | 3 +++ arch/arm/mach-uniphier

[U-Boot] [PATCH v2 18/22] ARM: uniphier: remove CONFIG_SYS_SDRAM_BASE

2019-07-10 Thread Masahiro Yamada
The base address of DRAM was 0x8000 for all the ARM SoCs of this family in the past. It will be changed to 0x2000 for a planned new SoC. To support multiple SoCs by the single uniphier_v8_defconfig, the base must be run-time determined. Signed-off-by: Masahiro Yamada --- arch/arm/mach

[U-Boot] [PATCH v2 16/22] ARM: uniphier: make dram_init() more generic

2019-07-10 Thread Masahiro Yamada
Make this function work with any channel being empty. Signed-off-by: Masahiro Yamada --- arch/arm/mach-uniphier/dram_init.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-uniphier/dram_init.c b/arch/arm/mach-uniphier/dram_init.c index 4a75d22db540

[U-Boot] [PATCH v2 05/22] ARM: uniphier: use bool type for have_internal_stm parameter

2019-07-10 Thread Masahiro Yamada
This is boolean logic. Signed-off-by: Masahiro Yamada --- .../mach-uniphier/boot-device/boot-device.c | 20 +-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/arch/arm/mach-uniphier/boot-device/boot-device.c b/arch/arm/mach-uniphier/boot-device/boot-device.c

[U-Boot] [PATCH v2 19/22] ARM: uniphier: turn uniphier_set_fdt_file() into void function

2019-07-10 Thread Masahiro Yamada
For consistency with a function that will be added. Signed-off-by: Masahiro Yamada --- arch/arm/mach-uniphier/board_late_init.c | 20 +--- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/arch/arm/mach-uniphier/board_late_init.c b/arch/arm/mach-uniphier

[U-Boot] [PATCH v2 06/22] ARM: uniphier: include from boot-device.c

2019-07-10 Thread Masahiro Yamada
This file calls readl(), so needs to include . Currently, it relies on someone else including it. Signed-off-by: Masahiro Yamada --- arch/arm/mach-uniphier/boot-device/boot-device.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-uniphier/boot-device/boot-device.c b/arch/arm

[U-Boot] [PATCH v2 13/22] ARM: uniphier: de-couple SC macros into base address and offset

2019-07-10 Thread Masahiro Yamada
The SC_* macros represent the address of SysCtrl registers. For a planned new SoC, its base address will be changed. Turn the SC_* macros into the offset from the base address. Signed-off-by: Masahiro Yamada --- arch/arm/mach-uniphier/arm32/debug_ll.S | 8 +- arch/arm/mach-uniphier/clk

[U-Boot] [PATCH v2 04/22] ARM: uniphier: clean up clk/Makefile

2019-07-10 Thread Masahiro Yamada
Now that 64-bit SoCs of this SoC family no longer support SPL, this Makefile can be slightly simpler. Signed-off-by: Masahiro Yamada --- arch/arm/mach-uniphier/clk/Makefile | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/arch/arm/mach-uniphier/clk/Makefile b

[U-Boot] [PATCH v2 11/22] ARM: uniphier: detect SD boot mode

2019-07-10 Thread Masahiro Yamada
The planned new SoC supports the SD boot mode. Detect and display it. Signed-off-by: Masahiro Yamada --- arch/arm/mach-uniphier/board_late_init.c | 4 arch/arm/mach-uniphier/boot-device/boot-device.c | 8 2 files changed, 12 insertions(+) diff --git a/arch/arm/mach

[U-Boot] [PATCH v2 21/22] ARM: uniphier: set dram_base environment variable

2019-07-10 Thread Masahiro Yamada
The base of DRAM will be changed for the next generation SoC. Set the base address to the 'dram_base' environment variable, which will be useful for scripting. Signed-off-by: Masahiro Yamada --- arch/arm/mach-uniphier/board_late_init.c | 2 ++ 1 file changed, 2 insertions(+) diff --git

[U-Boot] [PATCH v2 14/22] ARM: uniphier: detect register base addresses run-time

2019-07-10 Thread Masahiro Yamada
DT. So, I gave dummy initializers to assign them in the .data section. Signed-off-by: Masahiro Yamada --- arch/arm/mach-uniphier/Makefile | 1 + arch/arm/mach-uniphier/base-address.c | 67 +++ arch/arm/mach-uniphier/base-address.h | 18 +++ arch/arm/mach-uniphier

[U-Boot] [PATCH v2 12/22] ARM: uniphier: de-couple SG macros into base address and offset

2019-07-10 Thread Masahiro Yamada
The SG_* macros represent the address of SoC-glue registers. For a planned new SoC, its base address will be changed. Turn the SG_* macros into the offset from the base address. Signed-off-by: Masahiro Yamada --- arch/arm/mach-uniphier/arm32/debug_ll.S | 16 +-- .../boot-device

[U-Boot] [PATCH v2 20/22] ARM: uniphier: set loadaddr at boot-time

2019-07-10 Thread Masahiro Yamada
'loadaddr' should be used. Signed-off-by: Masahiro Yamada --- arch/arm/mach-uniphier/board_late_init.c | 32 include/configs/uniphier.h | 4 +-- 2 files changed, 34 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-uniphier/board_late_init.c b/arch/arm

[U-Boot] [PATCH v2 10/22] ARM: uniphier: make boot_is_swapped() code optional

2019-07-10 Thread Masahiro Yamada
The planned new SoC does not have SBC (System Bus Controller) block. Make boot_is_swapped() an optional hook. Signed-off-by: Masahiro Yamada --- arch/arm/mach-uniphier/boot-device/boot-device.c | 16 ++-- arch/arm/mach-uniphier/sbc/Makefile | 2 +- arch/arm/mach

[U-Boot] [PATCH v2 02/22] ARM: uniphier: remove empty #ifdef block

2019-07-10 Thread Masahiro Yamada
This is a remnant of commit f89d6133eef2 ("configs: move CONFIG_SPL_TEXT_BASE to Kconfig"). Signed-off-by: Masahiro Yamada --- include/configs/uniphier.h | 4 1 file changed, 4 deletions(-) diff --git a/include/configs/uniphier.h b/include/configs/uniphier.h index 5b

[U-Boot] [PATCH v2 08/22] ARM: uniphier: check DT to determine whether to use support card

2019-07-10 Thread Masahiro Yamada
If CONFIG_MICRO_SUPPORT_CARD is enabled, U-Boot tries to get access to the devices on the support card, which may not actually exist. Check the DT and search for the on-board devices run-time. If the nodes are not found in DT, then disable the code. Signed-off-by: Masahiro Yamada --- arch/arm

[U-Boot] [PATCH v2 17/22] ARM: uniphier: make mem_map run-time configurable

2019-07-10 Thread Masahiro Yamada
Currently, mem_map is hard-coded, and it worked well until the last SoC. For a planned new SoC, the addresses of peripherals and DRAM will be changed. Set it up run-time. Signed-off-by: Masahiro Yamada --- arch/arm/mach-uniphier/arm64/mem_map.c | 10 ++ arch/arm/mach-uniphier

[U-Boot] [PATCH v2 07/22] clk: uniphier: add EMMC clock for LD11, LD20, and PXs3

2019-07-10 Thread Masahiro Yamada
I also added comments for NAND clocks. Signed-off-by: Masahiro Yamada --- drivers/clk/uniphier/clk-uniphier-sys.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/drivers/clk/uniphier/clk-uniphier-sys.c b/drivers/clk/uniphier/clk-uniphier-sys.c index

[U-Boot] [PATCH v2 15/22] ARM: uniphier: make dram_init() independent of SG_MEMCONF

2019-07-10 Thread Masahiro Yamada
Currently, dram_init() code relies on the fact the DRAM size configuration exists in the SG_MEMCONF register. This will no longer be true for a planned new SoC, which will replace SG_MEMCONF with a different register. Refactor the hook in a more generic way. Signed-off-by: Masahiro Yamada

[U-Boot] [PATCH v2 03/22] ARM: uniphier: remove unused uniphier_ld11_boot_device_fixup()

2019-07-10 Thread Masahiro Yamada
The .boot_device_fixup() is only called by SPL. Now that 64-bit SoCs of this SoC family no longer support SPL, debug-uart-ld20.c is never compiled. Signed-off-by: Masahiro Yamada --- arch/arm/mach-uniphier/boot-device/boot-device-ld11.c | 8 arch/arm/mach-uniphier/boot-device/boot

[U-Boot] [PATCH v2 01/22] arm64: dts: uniphier: add reserved-memory for secure memory

2019-07-10 Thread Masahiro Yamada
with the no-map property to prevent the kernel from mapping it. Signed-off-by: Masahiro Yamada --- arch/arm/dts/uniphier-ld11.dtsi | 13 +++-- arch/arm/dts/uniphier-ld20.dtsi | 13 +++-- arch/arm/dts/uniphier-pxs3.dtsi | 13 +++-- 3 files changed, 33 insertions(+), 6 deletions

Re: [U-Boot] [PATCH v2] spi: Add SPI controller driver for UniPhier SoCs

2019-07-07 Thread Masahiro Yamada
On Fri, Jul 5, 2019 at 10:03 AM Kunihiko Hayashi wrote: > > Add SPI controller driver implemented in Socionext UniPhier SoCs. > This controller has the SPI master mode only. > > Signed-off-by: Kunihiko Hayashi > --- Applied to u-boot-uniphier. Thanks. -- Best Regar

[U-Boot] [PATCH 18/18] ARM: uniphier: remove CONFIG_SYS_SDRAM_BASE

2019-07-02 Thread Masahiro Yamada
The base address of DRAM was 0x8000 for all the ARM SoCs of this family in the past. It will be changed to 0x2000 for a planned new SoC. To support multiple SoCs by the single uniphier_v8_defconfig, the base must be run-time determined. Signed-off-by: Masahiro Yamada --- arch/arm/mach

[U-Boot] [PATCH 10/18] ARM: uniphier: make boot_is_swapped() code optional

2019-07-02 Thread Masahiro Yamada
The planned new SoC does not have SBC (System Bus Controller) block. Make boot_is_swapped() an optional hook. Signed-off-by: Masahiro Yamada --- arch/arm/mach-uniphier/boot-device/boot-device.c | 16 ++-- arch/arm/mach-uniphier/sbc/Makefile | 2 +- arch/arm/mach

[U-Boot] [PATCH 02/18] ARM: uniphier: remove unused uniphier_ld11_boot_device_fixup()

2019-07-02 Thread Masahiro Yamada
The .boot_device_fixup() is only called by SPL. Now that 64-bit SoCs of this SoC family no longer support SPL, debug-uart-ld20.c is never compiled. Signed-off-by: Masahiro Yamada --- arch/arm/mach-uniphier/boot-device/boot-device-ld11.c | 8 arch/arm/mach-uniphier/boot-device/boot

[U-Boot] [PATCH 17/18] ARM: uniphier: make mem_map run-time configurable

2019-07-02 Thread Masahiro Yamada
Currently, mem_map is hard-coded, and it worked well until the last SoC. For a planned new SoC, the addresses of peripherals and DRAM will be changed. Set it up run-time. Signed-off-by: Masahiro Yamada --- arch/arm/mach-uniphier/arm64/mem_map.c | 10 ++ arch/arm/mach-uniphier

[U-Boot] [PATCH 04/18] ARM: uniphier: remove argument from boot_device_is_usb() hook

2019-07-02 Thread Masahiro Yamada
As it turns out, passing the value of PINMON0 to the hook is not generic. PXs3 needs to read out PINMON2 instead of PINMON0. Signed-off-by: Masahiro Yamada --- .../mach-uniphier/boot-device/boot-device-ld11.c | 9 + .../mach-uniphier/boot-device/boot-device-pxs2.c | 5 +++-- .../mach

[U-Boot] [PATCH 11/18] ARM: uniphier: detect SD boot mode

2019-07-02 Thread Masahiro Yamada
The planned new SoC supports the SD boot mode. Detect and display it. Signed-off-by: Masahiro Yamada --- arch/arm/mach-uniphier/board_late_init.c | 4 arch/arm/mach-uniphier/boot-device/boot-device.c | 8 2 files changed, 12 insertions(+) diff --git a/arch/arm/mach

[U-Boot] [PATCH 16/18] ARM: uniphier: make dram_init() more generic

2019-07-02 Thread Masahiro Yamada
Make this function work with any channel being empty. Signed-off-by: Masahiro Yamada --- arch/arm/mach-uniphier/dram_init.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-uniphier/dram_init.c b/arch/arm/mach-uniphier/dram_init.c index 4a75d22db540

[U-Boot] [PATCH 09/18] ARM: uniphier: check DT to determine whether to initialize SBC

2019-07-02 Thread Masahiro Yamada
C block. Signed-off-by: Masahiro Yamada --- arch/arm/mach-uniphier/Makefile | 3 ++- arch/arm/mach-uniphier/sbc/Makefile | 4 arch/arm/mach-uniphier/sbc/sbc-ld11.c | 3 +++ arch/arm/mach-uniphier/sbc/sbc-ld4.c | 3 +++ arch/arm/mach-uniphier/sbc/sbc-pxs2.c | 3 +++ arch/arm/mach-uniphier

[U-Boot] [PATCH 06/18] ARM: uniphier: include from boot-device.c

2019-07-02 Thread Masahiro Yamada
This file calls readl(), so needs to include . Currently, it relies on someone else including it. Signed-off-by: Masahiro Yamada --- arch/arm/mach-uniphier/boot-device/boot-device.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-uniphier/boot-device/boot-device.c b/arch/arm

[U-Boot] [PATCH 12/18] ARM: uniphier: de-couple SG macros into base address and offset

2019-07-02 Thread Masahiro Yamada
The SG_* macros represent the address of SoC-glue registers. For a planned new SoC, its base address will be changed. Turn the SG_* macros into the offset from the base address. Signed-off-by: Masahiro Yamada --- arch/arm/mach-uniphier/arm32/debug_ll.S | 16 +-- .../boot-device

[U-Boot] [PATCH 03/18] ARM: uniphier: clean up clk/Makefile

2019-07-02 Thread Masahiro Yamada
Now that 64-bit SoCs of this SoC family no longer support SPL, this Makefile can be slightly simpler. Signed-off-by: Masahiro Yamada --- arch/arm/mach-uniphier/clk/Makefile | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/arch/arm/mach-uniphier/clk/Makefile b

[U-Boot] [PATCH 14/18] ARM: uniphier: detect register base addresses run-time

2019-07-02 Thread Masahiro Yamada
DT. So, I gave dummy initializers to assign them in the .data section. Signed-off-by: Masahiro Yamada --- arch/arm/mach-uniphier/Makefile | 1 + arch/arm/mach-uniphier/base-address.c | 67 +++ arch/arm/mach-uniphier/base-address.h | 18 +++ arch/arm/mach-uniphier

[U-Boot] [PATCH 15/18] ARM: uniphier: make dram_init() independent of SG_MEMCONF

2019-07-02 Thread Masahiro Yamada
Currently, dram_init() code relies on the fact the DRAM size configuration exists in the SG_MEMCONF register. This will no longer be true for a planned new SoC, which will replace SG_MEMCONF with a different register. Refactor the hook in a more generic way. Signed-off-by: Masahiro Yamada

[U-Boot] [PATCH 13/18] ARM: uniphier: de-couple SC macros into base address and offset

2019-07-02 Thread Masahiro Yamada
The SC_* macros represent the address of SysCtrl registers. For a planned new SoC, its base address will be changed. Turn the SC_* macros into the offset from the base address. Signed-off-by: Masahiro Yamada --- arch/arm/mach-uniphier/arm32/debug_ll.S | 8 +- arch/arm/mach-uniphier/clk

[U-Boot] [PATCH 08/18] ARM: uniphier: check DT to determine whether to use support card

2019-07-02 Thread Masahiro Yamada
If CONFIG_MICRO_SUPPORT_CARD is enabled, U-Boot tries to get access to the devices on the support card, which may not actually exist. Check the DT and search for the on-board devices run-time. If the nodes are not found in DT, then disable the code. Signed-off-by: Masahiro Yamada --- arch/arm

[U-Boot] [PATCH 01/18] arm64: dts: uniphier: add reserved-memory for secure memory

2019-07-02 Thread Masahiro Yamada
with the no-map property to prevent the kernel from mapping it. Signed-off-by: Masahiro Yamada --- arch/arm/dts/uniphier-ld11.dtsi | 13 +++-- arch/arm/dts/uniphier-ld20.dtsi | 13 +++-- arch/arm/dts/uniphier-pxs3.dtsi | 13 +++-- 3 files changed, 33 insertions(+), 6 deletions

[U-Boot] [PATCH 05/18] ARM: uniphier: use bool type for have_internal_stm parameter

2019-07-02 Thread Masahiro Yamada
This is boolean logic. Signed-off-by: Masahiro Yamada --- .../mach-uniphier/boot-device/boot-device.c | 20 +-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/arch/arm/mach-uniphier/boot-device/boot-device.c b/arch/arm/mach-uniphier/boot-device/boot-device.c

[U-Boot] [PATCH 07/18] clk: uniphier: add EMMC clock for LD11, LD20, and PXs3

2019-07-02 Thread Masahiro Yamada
I also added comments for NAND clocks. Signed-off-by: Masahiro Yamada --- drivers/clk/uniphier/clk-uniphier-sys.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/drivers/clk/uniphier/clk-uniphier-sys.c b/drivers/clk/uniphier/clk-uniphier-sys.c index

[U-Boot] [GIT PULL] ARM: uniphier: UniPhier SoC update for v2019.07

2019-06-29 Thread Masahiro Yamada
) UniPhier SoC updates for v2019.07 - Add SPI pin-mux data for pinctrl driver - Remove unused code - Trivial bug-fix and clean-up -- Best Regards Masahiro Yamada

[U-Boot] [PATCH 2/6] ARM: uniphier: remove unused SC_DPLLOSCCTRL

2019-06-28 Thread Masahiro Yamada
Signed-off-by: Masahiro Yamada --- arch/arm/mach-uniphier/sc-regs.h | 4 1 file changed, 4 deletions(-) diff --git a/arch/arm/mach-uniphier/sc-regs.h b/arch/arm/mach-uniphier/sc-regs.h index b105335f69..28de19c039 100644 --- a/arch/arm/mach-uniphier/sc-regs.h +++ b/arch/arm/mach-uniphier

[U-Boot] [PATCH 4/6] ARM: uniphier: include from dram_init.c

2019-06-28 Thread Masahiro Yamada
This file calls readl(), so needs to include . Currently, it relies on someone else including it. Signed-off-by: Masahiro Yamada --- arch/arm/mach-uniphier/dram_init.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-uniphier/dram_init.c b/arch/arm/mach-uniphier/dram_init.c

[U-Boot] [PATCH 1/6] ARM: uniphier: fix build error for CONFIG_DEBUG_LL=y

2019-06-28 Thread Masahiro Yamada
Commit e27d6c7d328c ("ARM: uniphier: simplify SoC ID get function") accidentally removed the macros needed to compile debug_ll.S Revive them. Fixes: e27d6c7d328c ("ARM: uniphier: simplify SoC ID get function") Signed-off-by: Masahiro Yamada --- arch/arm/mach-uniphier/

[U-Boot] [PATCH 6/6] ARM: uniphier: move sg_set_{pinsel, iectrl} to more relevant places

2019-06-28 Thread Masahiro Yamada
Move the sg_set_pinsel macro to arch/arm/mach-uniphier/arm32/debug_ll.S since it is not used anywhere else. Move the C functions sg_set_{pinsel,iectrl} to debug-uart.c since they are not used anywhere else. Signed-off-by: Masahiro Yamada --- arch/arm/mach-uniphier/arm32/debug_ll.S | 8

[U-Boot] [PATCH 5/6] ARM: uniphier: remove unused init code for CONFIG_DEBUG_UART

2019-06-28 Thread Masahiro Yamada
-by: Masahiro Yamada --- arch/arm/mach-uniphier/debug-uart/Makefile| 2 -- .../debug-uart/debug-uart-ld20.c | 34 --- .../arm/mach-uniphier/debug-uart/debug-uart.c | 8 ++--- .../arm/mach-uniphier/debug-uart/debug-uart.h | 2 -- 4 files changed, 2 insertions(+), 44

[U-Boot] [PATCH 3/6] ARM: uniphier: remove unused sg_set_iectrl_range()

2019-06-28 Thread Masahiro Yamada
Signed-off-by: Masahiro Yamada --- arch/arm/mach-uniphier/sg-regs.h | 8 1 file changed, 8 deletions(-) diff --git a/arch/arm/mach-uniphier/sg-regs.h b/arch/arm/mach-uniphier/sg-regs.h index 0497655fb5..8aed826c96 100644 --- a/arch/arm/mach-uniphier/sg-regs.h +++ b/arch/arm/mach

[U-Boot] [PATCH] mmc: rpmb: fix response type of CMD25

2019-06-28 Thread Masahiro Yamada
From: Akio Hirayama The response type of CMD25 is R1 instead of R1b. Signed-off-by: Akio Hirayama [masahiro: add log ] Signed-off-by: Masahiro Yamada --- drivers/mmc/rpmb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/rpmb.c b/drivers/mmc/rpmb.c index

[U-Boot] [PATCH 2/2] linux/bitops.h: split BITS, GENMASK macros out into

2019-06-27 Thread Masahiro Yamada
Based on Linux commit 8bd9cb51daac ("locking/atomics, asm-generic: Move some macros from to a new file"). We cannot sync . Unfortunately, BITS_PER_LONG is defined differently from Linux. Signed-off-by: Masahiro Yamada --- include/linux/bitops.h | 25 +++-- inc

[U-Boot] [PATCH 1/2] sandbox: remove CONFIG_SANDBOX_BITS_PER_LONG and GENMASK hack

2019-06-27 Thread Masahiro Yamada
Commit e519c616061d ("bitops: Fix GENMASK definition for Sandbox") is wrong. BITS_PER_LONG must match to sizeof(long) of the compiler. If not, we are already totally screwed up. It is weird to patch GENMASK() only. Signed-off-by: Masahiro Yamada --- arch/sandbox/Kconfig

Re: [U-Boot] [PATCH 1/2] arm64: add an option to switch visibility of CONFIG_SYS_INIT_SP_BSS_OFFSET

2019-06-27 Thread Masahiro Yamada
Hi AKASHI-san On Thu, Jun 27, 2019 at 9:44 AM AKASHI Takahiro wrote: > > Yamada-san, > > On Wed, Jun 26, 2019 at 01:51:46PM +0900, Masahiro Yamada wrote: > > By default, CONFIG_SYS_INIT_SP_BSS_OFFSET was made invisible by not > > giving a prompt to it. > &

Re: [U-Boot] [PATCH] arm: qemu: fix failure in flash initialization if booting from TF-A

2019-06-27 Thread Masahiro Yamada
y patch is unrelated. You are talking about CONFIG_POSITION_INDEPENDENT, and you can enable it irrespective of my work. -- Best Regards Masahiro Yamada ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

[U-Boot] [PATCH] fdt: make fdt_get_base_address() return OF_BAD_ADDR when "reg" not found

2019-06-27 Thread Masahiro Yamada
Currently, fdt_get_base_address() returns 0 if the "reg" property is missing. Since 0 is a valid value, it is not suitable for the error handling. Return OF_BAD_ADDR instead. Signed-off-by: Masahiro Yamada --- common/fdt_support.c | 2 +- 1 file changed, 1 insertion(+), 1 deletio

[U-Boot] [PATCH 1/2] arm64: add an option to switch visibility of CONFIG_SYS_INIT_SP_BSS_OFFSET

2019-06-25 Thread Masahiro Yamada
. If 512KB is not a suitable choice for your platform, you can change it from your defconfig or menuconfig etc. Signed-off-by: Masahiro Yamada --- Perhaps, another idea is to use "offset from TEXT_BASE", allowing a negative offset value. For example, include/configs/uniphier.h defines:

[U-Boot] [PATCH 0/2] arm64: tidy up POSITION_INDEPENDENT feature and enable it for Socionext SoCs

2019-06-25 Thread Masahiro Yamada
1/2 needs ACK from NVIDIA folks. I want to enable it in 2/2 for my platform. Masahiro Yamada (2): arm64: add an option to switch visibility of CONFIG_SYS_INIT_SP_BSS_OFFSET ARM: uniphier_v8_defconfig: make 64bit SoC image position independent Makefile

[U-Boot] [PATCH 2/2] ARM: uniphier_v8_defconfig: make 64bit SoC image position independent

2019-06-25 Thread Masahiro Yamada
CONFIG_POSITION_INDEPENDENT is working. Signed-off-by: Masahiro Yamada --- configs/uniphier_v8_defconfig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configs/uniphier_v8_defconfig b/configs/uniphier_v8_defconfig index 83f78776b7d2..3908ff80d6b0 100644 --- a/configs

Re: [U-Boot] [PATCH 1/2] pinctrl: uniphier: Add SPI pin-mux settings

2019-06-25 Thread Masahiro Yamada
On Tue, Jun 11, 2019 at 10:07 AM Kunihiko Hayashi wrote: > > Add pin-mux settings for SPI controller. > > Signed-off-by: Kunihiko Hayashi > --- Applied. Thanks. -- Best Regards Masahiro Yamada ___ U-Boot mailing list U-Boot@list

Re: [U-Boot] [PATCH 2/2] spi: Add SPI controller driver for UniPhier SoCs

2019-06-25 Thread Masahiro Yamada
; This casting is fragile because you never know the primitive type of fdt_addr_t. Use devfdt_get_addr_ptr(). > + > + plat->frequency = > + fdtdec_get_int(blob, node, "spi-max-frequency", 1250); > + plat->deactivate_delay_us = > +

Re: [U-Boot] [PATCH] MAINTAINERS: Update git repo links

2019-06-18 Thread Masahiro Yamada
and better to advertise, git:// or https:// ? No difference in the clone speed? BTW, I recommend to add '.git' to URL Otherwise, my git shows a warning: masahiro@pug:~/ref$ git clone https://gitlab.denx.de/u-boot/u-boot u-boot_ Cloning into 'u-boot_'... warning: redirecting to https://gitlab.denx.d

[U-Boot] [PATCH] vexpress64: fix a typo of SPDX-License-Identifier

2019-06-17 Thread Masahiro Yamada
SPDX-License-Identifier --and -e SPDX- board/armltd/vexpress64/pcie.c: * SPDX-Licence-Identifier: GPL-2.0+ Signed-off-by: Masahiro Yamada --- board/armltd/vexpress64/pcie.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/board/armltd/vexpress64/pcie.c b/board/armltd

Re: [U-Boot] [PATCH v3] spl: add overall SPL size check

2019-05-27 Thread Masahiro Yamada
-- Some architectures have SPL size checks. CONFIG_SPL_MAX_FOOTPRINT CONFIG_SPL_MAX_SIZE CONFIG_SPL_BSS_MAX_SIZE Will they be replaced by this new mechanism? -- Best Regards Masahiro Yamada ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH v2] spl: add overall SPL size check

2019-05-27 Thread Masahiro Yamada
ext, https://patchwork.ozlabs.org/patch/105/ > > Yamada-san, do you have any ideas? Thanks! No, I have no idea. 'tools' depends on 'prepare', which depends on 'prepare0'. So, the dependency should be correct, but I do not see CHK include/generated/generic-asm-offsets.h in the log at all. I do not know why. -- Best Regards Masahiro Yamada ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

[U-Boot] [GIT PULL] UniPhier updates for v2019.07

2019-04-16 Thread Masahiro Yamada
with Linux 5.1-rc4 - Enable CONFIG_SUPPORT_EMMC_RPMB for uniphier_v8_defconfig Masahiro Yamada (2): ARM: dts: uniphier: sync with Linux 5.1-rc4 ARM: uniphier_v8: enable CONFIG_SUPPORT_EMMC_RPMB arch/arm/dts/uniphier-ld11.dtsi

Re: [U-Boot] [PATCH] delete Kbuild "select" of long-dead SPL_DISABLE_OF_CONTROL

2019-04-14 Thread Masahiro Yamada
On Sun, Apr 14, 2019 at 7:21 PM Robert P. J. Day wrote: > > > From way back in 2015: > > commit dffb86e468c8e02ba77283989aefef214d904dc5 > Author: Masahiro Yamada > Date: Wed Aug 12 07:31:54 2015 +0900 > > of: flip CONFIG_SPL_DISABLE_OF_CONTROL

[U-Boot] [PATCH 1/2] ARM: dts: uniphier: sync with Linux 5.1-rc4

2019-04-12 Thread Masahiro Yamada
Signed-off-by: Masahiro Yamada --- arch/arm/dts/uniphier-ld11.dtsi| 4 +- arch/arm/dts/uniphier-ld20.dtsi| 66 +- arch/arm/dts/uniphier-ld4.dtsi | 14 +++ arch/arm/dts/uniphier-pro4.dtsi| 16 arch/arm/dts/uniphier-pxs2.dtsi| 6

[U-Boot] [PATCH 2/2] ARM: uniphier_v8: enable CONFIG_SUPPORT_EMMC_RPMB

2019-04-12 Thread Masahiro Yamada
Signed-off-by: Masahiro Yamada --- configs/uniphier_v8_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/uniphier_v8_defconfig b/configs/uniphier_v8_defconfig index 08dfa240c1..e0e4dbd507 100644 --- a/configs/uniphier_v8_defconfig +++ b/configs/uniphier_v8_defconfig @@ -33,6

Re: [U-Boot] Riscv: CONFIG_DEFAULT_DEVICE_TREE failures

2019-04-03 Thread Masahiro Yamada
>> > > >> Does anyone have any idea what would have caused that? > > >> > > >> Also any feedback or pointers on why the serial_sifive.c > > >> driver with CONFIG_DM_SERIAL would not work, but serial_hifive.c > > >> without CONFIG_DM_SERIAL does

Re: [U-Boot] [PATCH v2 4/5] arm: socfpga: imply/default common config options

2019-03-20 Thread Masahiro Yamada
depends on SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR default 0x50 if ARCH_SUNXI default 0x75 if ARCH_DAVINCI default 0x8a if ARCH_MX6 || ARCH_MX7 default 0x100 if ARCH_UNIPHIER default 0x140 if ARCH_MVEBU default 0x200 if ARCH_SOCFPGA || ARCH_AT91

[U-Boot] [PATCH 0/4] Let's write correct arch/*/dts/Makefile

2019-03-14 Thread Masahiro Yamada
. If I did not do this now, more and more wrong code would come in. Travis CI tests passed. Masahiro Yamada (4): ARM: fix arch/arm/dts/Makefile powerpc: fix arch/powerpc/dts/Makefile mips: add missing dtb-y to arch/mips/dts/Makefile Revert "Ensure device tree DTS is compiled" a

[U-Boot] [PATCH 3/4] mips: add missing dtb-y to arch/mips/dts/Makefile

2019-03-14 Thread Masahiro Yamada
tly listed in Makefile. Signed-off-by: Masahiro Yamada --- arch/mips/dts/Makefile | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/mips/dts/Makefile b/arch/mips/dts/Makefile index b94b582..665d3cc 100644 --- a/arch/mips/dts/Makefile +++ b/arch/mips/dts/Makefile @@ -1,5 +1,8 @@ # SP

[U-Boot] [PATCH 2/4] powerpc: fix arch/powerpc/dts/Makefile

2019-03-14 Thread Masahiro Yamada
Since commit 27cb7300ffda ("Ensure device tree DTS is compiled"), build succeeds irrespective of the correctness of Makefile. I am going to revert that commit, so wrong code must be fixed. CONFIG_MCR3000 is not defined anywhere. CONFIG_TARGET_MCR3000 is the correct one. Signed-off-by

[U-Boot] [PATCH 1/4] ARM: fix arch/arm/dts/Makefile

2019-03-13 Thread Masahiro Yamada
G_MX6SLL, but associates its device tree to CONFIG_MX6SL, which is undefined. [3] Lots of entries are missing Signed-off-by: Masahiro Yamada --- arch/arm/dts/Makefile | 107 +- 1 file changed, 97 insertions(+), 10 deletions(-) diff --git a/arch/a

[U-Boot] [PATCH 4/4] Revert "Ensure device tree DTS is compiled"

2019-03-13 Thread Masahiro Yamada
to descend into arch/*/dts/, causing a race in parallel building. So, let's revert it. Signed-off-by: Masahiro Yamada --- dts/Makefile | 13 +++-- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/dts/Makefile b/dts/Makefile index 4970223..1f83e61 100644 --- a/dts/Makefil

Re: [U-Boot] Revert "Ensure device tree DTS is compiled"

2019-03-11 Thread Masahiro Yamada
Hi Simon, On Mon, Mar 11, 2019 at 6:59 AM Simon Glass wrote: > > Hi Tom, Masahiro, > > On Sat, 9 Mar 2019 at 10:42, Tom Rini wrote: > > > > On Sun, Mar 10, 2019 at 01:07:48AM +0900, Masahiro Yamada wrote: > > > Hi Tom, > > > > > > &

Re: [U-Boot] Revert "Ensure device tree DTS is compiled"

2019-03-09 Thread Masahiro Yamada
Hi Tom, On Sat, Mar 9, 2019 at 8:04 AM Tom Rini wrote: > > On Thu, Mar 07, 2019 at 11:13:52PM +0900, Masahiro Yamada wrote: > > > This reverts commit 27cb7300ffda7a3f1581f0f5a2d3bfe59b97ad67. > > > > I am not sure if I correctly understood the log of commit 27cb7300ff

Re: [U-Boot] [PATCH] dts: force dtb recompilation

2019-03-09 Thread Masahiro Yamada
rgets += dt.dtb dt-spl.dtb > > -$(DTB): $(dtb_depends) > +$(DTB): $(dtb_depends) FORCE > ifeq ($(EXT_DTB),) > $(Q)$(MAKE) $(build)=$(ARCH_PATH) $@ > endif > -- > 2.7.4 > > _______ > U-Boot mailing list > U-Boot@lis

[U-Boot] [PATCH] Revert "Ensure device tree DTS is compiled"

2019-03-07 Thread Masahiro Yamada
ly, commit 2737dfe096b6 ("kbuild: make arch-dtbs target PHONY") fixed the issue in a more correct and more complete way. Anyway, since the former commit, we see a clumsy log like this: make[2]: 'arch/sandbox/dts/sandbox.dtb' is up to date So, let's revert it. Signed-off-by: Masahi

Re: [U-Boot] [PATCH 6/6] ARM: rmobile: Sync Gen3 defconfigs

2019-03-07 Thread Masahiro Yamada
su-4d_defconfig > configs/r8a77990_ebisu_defconfig > configs/r8a77995_draak_defconfig > > So, changing/adding/removing a common option (most of them are) implies > quite an amount of maintenance effort on our side. I would greatly > appreciate any ideas how to alleviate that. > > > > > -- > > Best regards, > > Marek Vasut > > Best regards, > Eugeniu. > ___ > U-Boot mailing list > U-Boot@lists.denx.de > https://lists.denx.de/listinfo/u-boot -- Best Regards Masahiro Yamada ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH 1/2] kbuild: make arch-dtbs target PHONY

2019-02-26 Thread Masahiro Yamada
files. > > Signed-off-by: Stephen Warren Reviewed-by: Masahiro Yamada > --- > dts/Makefile | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/dts/Makefile b/dts/Makefile > index a7a604303cc6..4970223b3d2e 100644 > --- a/dts/Makefile > +++ b/dts/Makef

Re: [U-Boot] [PATCH 2/2] kbuild: fix DTB .cmd source variable

2019-02-26 Thread Masahiro Yamada
emporary file name > rather than the actual source file. While this information isn't used > for any purpose by the build system, Right, not used in U-Boot. The 'source_*' is only used by scripts/mod/sumversion.c in Linux. Anyway, the .*.cmd files will look better. Reviewed-by: Masahir

Re: [U-Boot] [PATCH 1/2] kbuild: make arch-dtbs target PHONY

2019-02-26 Thread Masahiro Yamada
On Wed, Feb 27, 2019 at 11:17 AM Masahiro Yamada wrote: > > On Wed, Feb 27, 2019 at 4:21 AM Stephen Warren wrote: > > > > From: Stephen Warren > > > > Without this, the arch-dtbs target only gets evaluated when building > > U-Boot the first time, not when

Re: [U-Boot] [PATCH 1/2] kbuild: make arch-dtbs target PHONY

2019-02-26 Thread Masahiro Yamada
dtbs > arch-dtbs: > $(Q)$(MAKE) $(build)=$(ARCH_PATH) dtbs > > -- > 2.20.1 > > ___ > U-Boot mailing list > U-Boot@lists.denx.de > https://lists.denx.de/listinfo/u-boot -- Best Regards Masahiro Yamada ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

[U-Boot] [PATCH] ARM: dts: uniphier: sync with Linux 5.0-rc2

2019-02-14 Thread Masahiro Yamada
Signed-off-by: Masahiro Yamada --- arch/arm/dts/uniphier-ld20.dtsi | 11 --- arch/arm/dts/uniphier-ld4.dtsi | 14 ++ arch/arm/dts/uniphier-pro4.dtsi | 16 arch/arm/dts/uniphier-pxs2.dtsi | 6 -- arch/arm/dts/uniphier-sld8.dtsi | 14 ++ 5

[U-Boot] [PATCH] preboot: Introduce CONFIG_USE_PREBOOT and migrate CONFIG_PREBOOT

2019-02-13 Thread Masahiro Yamada
g the rest to platform maintainers. Signed-off-by: Masahiro Yamada --- README | 16 common/Kconfig | 18 ++ configs/uniphier_ld4_sld8_defconfig | 2 ++ configs/uniphier_v7_defconfig | 2 ++ configs/uniphier_v8

Re: [U-Boot] [PATCH] .gitignore: ignore patch rejects (*.rej) files

2019-02-05 Thread Masahiro Yamada
f..1ef876a 100644 > --- a/.gitignore > +++ b/.gitignore > @@ -88,3 +88,6 @@ GTAGS > *.orig > *~ > \#*# > + > +# patch rejects > +*.rej > \ No newline at end of file > -- > 2.1.4 > > ___ > U-Boot mailing li

Re: [U-Boot] [PATCH v3] moveconfig: add a second pass for empty #if/#endif blocks

2019-01-30 Thread Masahiro Yamada
On Wed, Jan 30, 2019 at 5:55 PM Masahiro Yamada wrote: > > On Wed, Jan 30, 2019 at 4:23 PM Chris Packham wrote: > > > > Moveconfig already attempts to remove empty #if/#endif blocks when there > > is a matching CONFIG_ being moved. Add a second pass which covers f

Re: [U-Boot] [PATCH v3] moveconfig: add a second pass for empty #if/#endif blocks

2019-01-30 Thread Masahiro Yamada
figs, options): > """Delete config defines in CONFIG_SYS_EXTRA_OPTIONS in one defconfig > file. > -- > 2.20.1 > > ___ > U-Boot mailing list > U-Boot@lists.denx.de > https://lists.denx.de/listinfo/u-boot -- Best Regards Masahiro Yamada ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

[U-Boot] [PATCH 2/2] kbuild: add .SECONDARY special target to scripts/Kbuild.include

2019-01-11 Thread Masahiro Yamada
bly corrupted) targets. .SECONDARY with no prerequisites causes all targets to be treated as secondary. This agrees the policy of Kbuild. scripts/Kbuild.include seems a suitable place to add it because it is included from almost all sub-makes. Signed-off-by: Masahiro Yamada --- dts/Makefile

[U-Boot] [PATCH 1/2] kbuild: add .DELETE_ON_ERROR special target

2019-01-11 Thread Masahiro Yamada
not cater to delete the incomplete target file in this case. We need to add .DELETE_ON_ERROR somewhere in the Makefile to request it. scripts/Kbuild.include seems a suitable place to add it because it is included from almost all sub-makes. Signed-off-by: Masahiro Yamada --- scripts/Kbuild.include

  1   2   3   4   5   6   7   8   9   10   >