[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

[U-Boot] [PATCH v2] kbuild: fix parallel build race caused by u-boot.cfg regeneration

2019-01-10 Thread Masahiro Yamada
lost") Reported-by: Kever Yang Reported-by: Richard Purdie Signed-off-by: Masahiro Yamada Reviewed-by: Simon Glass --- Changes in v2: - Move 'cfg' before 'prepare0' to avoid a race between them Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Ma

Re: [U-Boot] [PATCH] kbuild: fix parallel build race caused by u-boot.cfg regeneration

2019-01-10 Thread Masahiro Yamada
On Wed, Jan 9, 2019 at 4:33 PM Masahiro Yamada wrote: > > Multiple people have reported intermittent build failure in parallel > building. > > Kever Yang reported this issue some time ago [1], but I could not > get enough clue at that time. > > This time, Richard Purdie p

[U-Boot] [PATCH] kbuild: fix parallel build race caused by u-boot.cfg regeneration

2019-01-08 Thread Masahiro Yamada
lost") Reported-by: Kever Yang Reported-by: Richard Purdie Signed-off-by: Masahiro Yamada --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index eeb299f..363ebc8 100644 --- a/Makefile +++ b/Makefile @@ -534,7 +534,7 @@ i

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

2018-12-28 Thread Masahiro Yamada
to 2001a81cba9554ee8b7f6d2ecd53510640ce4f35: ARM: uniphier: dts: sync with Linux 4.20 (2018-12-29 11:50:30 +0900) Masahiro Yamada (9): ARM: uniphier: do not modify bootcmd environment variable at run-time ARM: uniphier: allow to source

[U-Boot] [PATCH 2/9] ARM: uniphier: allow to source boot script before distro-boot

2018-12-19 Thread Masahiro Yamada
Some users might need additional setups before booting the kernel. If there is found a file 'boot.scr', run it before invoking the distro boot command. Signed-off-by: Masahiro Yamada --- configs/uniphier_ld4_sld8_defconfig | 2 +- configs/uniphier_v7_defconfig | 2 +- configs

[U-Boot] [PATCH 9/9] ARM: uniphier: dts: sync with Linux 4.20-rc7

2018-12-19 Thread Masahiro Yamada
Currently, the DWC3 USB node is out of sync because the bindings for the UniPhier DWC3 PHY diverged between Linux and U-Boot. Signed-off-by: Masahiro Yamada --- arch/arm/dts/uniphier-ld11.dtsi | 52 ++- arch/arm/dts/uniphier-ld20-global.dts | 4 + arch/arm/dts/uniphier-ld20

[U-Boot] [PATCH 0/9] ARM: dts: uniphier: updates for v2019.01

2018-12-19 Thread Masahiro Yamada
Masahiro Yamada (9): ARM: uniphier: do not modify bootcmd environment variable at run-time ARM: uniphier: allow to source boot script before distro-boot ARM: uniphier: add CONFIG_PREBOOT linux/kernel.h: import DIV_ROUND_CLOSEST_ULL from Linux mtd: rawnand: denali_dt: add more clocks

[U-Boot] [PATCH 3/9] ARM: uniphier: add CONFIG_PREBOOT

2018-12-19 Thread Masahiro Yamada
For more boot-flow flexibility, Signed-off-by: Masahiro Yamada --- include/configs/uniphier.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/configs/uniphier.h b/include/configs/uniphier.h index 1e509ce..95d6452 100644 --- a/include/configs/uniphier.h +++ b/include/configs

[U-Boot] [PATCH 5/9] mtd: rawnand: denali_dt: add more clocks based on IP datasheet

2018-12-19 Thread Masahiro Yamada
DT, hence the existing DT files are not affected. Signed-off-by: Masahiro Yamada --- drivers/mtd/nand/raw/denali_dt.c | 38 +++--- 1 file changed, 35 insertions(+), 3 deletions(-) diff --git a/drivers/mtd/nand/raw/denali_dt.c b/drivers/mtd/nand/raw/denali_dt.c ind

[U-Boot] [PATCH 4/9] linux/kernel.h: import DIV_ROUND_CLOSEST_ULL from Linux

2018-12-19 Thread Masahiro Yamada
Copied from Linux v4.20-rc7. Signed-off-by: Masahiro Yamada --- include/linux/kernel.h | 12 1 file changed, 12 insertions(+) diff --git a/include/linux/kernel.h b/include/linux/kernel.h index bd88483..a85c15d 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h

[U-Boot] [PATCH 1/9] ARM: uniphier: do not modify bootcmd environment variable at run-time

2018-12-19 Thread Masahiro Yamada
'. It is up to users whether to override 'bootcmd'. Signed-off-by: Masahiro Yamada --- arch/arm/mach-uniphier/board_late_init.c | 8 configs/uniphier_ld4_sld8_defconfig | 1 + configs/uniphier_v7_defconfig| 1 + configs/uniphier_v8_defconfig| 1 + include/configs

[U-Boot] [PATCH 6/9] mtd: rawnand: denali: optimize timing parameters for data interface

2018-12-19 Thread Masahiro Yamada
the existing platforms, the fallback value, 50 MHz is provided. It is true for all upstreamed platforms. Signed-off-by: Masahiro Yamada --- drivers/mtd/nand/raw/denali.c| 47 drivers/mtd/nand/raw/denali.h| 1 + drivers/mtd/nand/raw/denali_dt.c |

[U-Boot] [PATCH 7/9] mtd: rawnand: denali: fix a race condition when DMA is kicked

2018-12-19 Thread Masahiro Yamada
Based on Linux commit cf51e4b9c34407bf0c3d9b582b7837e047e1df47 Add the register read-back, commenting why this is necessary. Signed-off-by: Masahiro Yamada --- drivers/mtd/nand/raw/denali.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/mtd/nand/raw/denali.c b/drivers/mtd

[U-Boot] [PATCH 8/9] clk: uniphier: add NAND 200MHz clock

2018-12-19 Thread Masahiro Yamada
this. Signed-off-by: Masahiro Yamada --- drivers/clk/uniphier/clk-uniphier-sys.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/clk/uniphier/clk-uniphier-sys.c b/drivers/clk/uniphier/clk-uniphier-sys.c index 9e087b6..487b43e 100644 --- a/drivers/clk/uniphier

Re: [U-Boot] [PATCH 20/21] Add inttypes.h

2018-12-05 Thread Masahiro Yamada
t64_t, > etc. The root cause of the problem might be, those libraries mix up from U-Boot and from the compiler. Linux kernel has a different for user-space tools in tools/include/linux/types.h I agree that U-Boot has been screwed up here to a hopeless level. -- Best Regards

Re: [U-Boot] [PATCH V3 1/6] mmc: tmio: Switch to clock framework

2018-11-26 Thread Masahiro Yamada
of the controller, where the upstream mclk need to > > be adjusted when using UHS modes. > > > > Platforms which do not support clock framework or do not support it > > in eg. SPL default to 100 MHz clock. > > > > Signed-off-by: Marek Vasut > > Cc: Masahiro Ya

Re: [U-Boot] [PATCH V3 3/6] mmc: tmio: Keep generating clock when clock are enabled

2018-11-26 Thread Masahiro Yamada
rds, > which require clock to be enabled. > > This patch respects the mmc->clk_disable and only disables the clock when > the MMC core requests it. Otherwise the clock are continuously generated > on the bus. > > Signed-off-by: Marek Vasut > Cc: Masahiro Yamada > --- > d

Re: [U-Boot] [PATCH 01/13] mmc: tmio: Simplify pinmux handling

2018-11-02 Thread Masahiro Yamada
On Fri, Nov 2, 2018 at 11:29 PM Marek Vasut wrote: > > On 11/02/2018 04:58 AM, Masahiro Yamada wrote: > > On Thu, Nov 1, 2018 at 9:14 PM Marek Vasut wrote: > >> > >> On 11/01/2018 12:38 PM, Masahiro Yamada wrote: > >>> On Thu, Nov 1, 2018 at 2:21 AM Ma

Re: [U-Boot] [PATCH 08/13] mmc: tmio: Silence transfer errors when tuning

2018-11-01 Thread Masahiro Yamada
On Thu, Nov 1, 2018 at 9:14 PM Marek Vasut wrote: > > On 11/01/2018 12:42 PM, Masahiro Yamada wrote: > > On Thu, Nov 1, 2018 at 2:22 AM Marek Vasut wrote: > >> > >> In case the controller performs card tuning, that is, sends MMC > >> command 19 or 21, si

Re: [U-Boot] [PATCH 01/13] mmc: tmio: Simplify pinmux handling

2018-11-01 Thread Masahiro Yamada
On Thu, Nov 1, 2018 at 9:14 PM Marek Vasut wrote: > > On 11/01/2018 12:38 PM, Masahiro Yamada wrote: > > On Thu, Nov 1, 2018 at 2:21 AM Marek Vasut wrote: > >> > >> The SD UHS SDR12, SDR25, SDR50, SDR104, DDR50 and MMC HS200, HS400 > >> modes all use 1.8

Re: [U-Boot] [PATCH V2 02/13] mmc: tmio: Switch to clock framework

2018-11-01 Thread Masahiro Yamada
using UHS modes. > > Platforms which do not support clock framework or do not support it > in eg. SPL default to 100 MHz clock. > > Signed-off-by: Marek Vasut > Cc: Masahiro Yamada > --- > V2: Fix build on certain platforms using SPL without clock framework No. Not fixed

Re: [U-Boot] [PATCH V2 02/13] mmc: tmio: Switch to clock framework

2018-11-01 Thread Masahiro Yamada
On Thu, Nov 1, 2018 at 8:38 PM Masahiro Yamada wrote: > > On Thu, Nov 1, 2018 at 6:39 PM Marek Vasut wrote: > > > > Switch the driver to using clk_get_rate()/clk_set_rate() instead of > > caching the mclk frequency in it's private data. This is required on > > the

Re: [U-Boot] [PATCH 05/13] mmc: tmio: Keep generating clock when clock are enabled

2018-11-01 Thread Masahiro Yamada
; which require clock to be enabled. > > This patch respects the mmc->clk_disable and only disables the clock when > the MMC core requests it. Otherwise the clock are continuously generated > on the bus. > > Signed-off-by: Marek Vasut > Cc: Masahiro Yamada > --- > d

Re: [U-Boot] [PATCH 07/13] mmc: tmio: Improve error handling

2018-11-01 Thread Masahiro Yamada
On Thu, Nov 1, 2018 at 2:25 AM Marek Vasut wrote: > > Properly handle return values and abort operations when they are > non-zero. This is a minor improvement, which fixes two remaining > unchecked return values. > > Signed-off-by: Marek Vasut > Cc: Masahiro Yamada >

Re: [U-Boot] [PATCH 08/13] mmc: tmio: Silence transfer errors when tuning

2018-11-01 Thread Masahiro Yamada
e message entirely, or to turn it into a debug message. FWIW, commit 61f2e5ee12895a2bdaeac8dd13e8d7f50ca7e375 Author: Masahiro Yamada Date: Sat Dec 30 02:00:12 2017 +0900 mmc: sdhci: change data transfer failure into debug message > Signed-off-by: Marek Vasut > Cc: Masahi

Re: [U-Boot] [PATCH 03/13] mmc: tmio: Do not set divider to 1 in DDR mode

2018-11-01 Thread Masahiro Yamada
On Thu, Nov 1, 2018 at 2:22 AM Marek Vasut wrote: > > The TMIO core has a quirk where divider == 1 must not be set in DDR modes. > Handle this by setting divider to 2, as suggested in the documentation. > > Signed-off-by: Marek Vasut > Cc: Masahiro Yamada > --- > drive

Re: [U-Boot] [PATCH V2 02/13] mmc: tmio: Switch to clock framework

2018-11-01 Thread Masahiro Yamada
w whether the default clock is 100 MHz or not. > Signed-off-by: Marek Vasut > Cc: Masahiro Yamada > --- > V2: Fix build on certain platforms using SPL without clock framework > --- > drivers/mmc/renesas-sdhi.c | 14 ++ > drivers/mmc/tmio-common.c | 21

Re: [U-Boot] [PATCH 01/13] mmc: tmio: Simplify pinmux handling

2018-11-01 Thread Masahiro Yamada
s still > set to default while the signaling is already set to 1.8V, which > results in an attempt to communicate with a 1.8V card using pins > in 3.3V mode and thus communication failure. > > Signed-off-by: Marek Vasut > Cc: Masahiro Yamada > --- > drivers/mmc/tmio-com

Re: [U-Boot] Question about booting Linux from efi_loader

2018-10-30 Thread Masahiro Yamada
Hi Alex, Thank you for your help. On Tue, Oct 30, 2018 at 10:32 PM Alexander Graf wrote: > > Hi Masahiro, > > On 30.10.18 14:20, Masahiro Yamada wrote: > > Hi Alex, > > > > > > Could you teach me a little bit > > about efi_loader? > > > >

[U-Boot] Question about booting Linux from efi_loader

2018-10-30 Thread Masahiro Yamada
; bootefi 9000 9800 The kernel will start booting, but fail to mount initramdisk, obviously because I am not passing initramdisk. -- 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] mmc: tmio: Pass full address to tmio_sd_addr_is_dmaable()

2018-10-09 Thread Masahiro Yamada
On Wed, Oct 10, 2018 at 1:17 AM Marek Vasut wrote: > > On 10/09/2018 05:35 PM, Masahiro Yamada wrote: > > On Tue, Oct 9, 2018 at 11:55 PM Marek Vasut wrote: > >> > >> On 10/09/2018 02:24 PM, Masahiro Yamada wrote: > >>> Hi Marek, > >> >

Re: [U-Boot] [PATCH 1/2] mmc: tmio: Pass full address to tmio_sd_addr_is_dmaable()

2018-10-09 Thread Masahiro Yamada
On Tue, Oct 9, 2018 at 11:55 PM Marek Vasut wrote: > > On 10/09/2018 02:24 PM, Masahiro Yamada wrote: > > Hi Marek, > > Hi, > > > On Tue, Oct 9, 2018 at 8:26 PM Marek Vasut wrote: > >> > >> Pass the entire source data pointer to tmio_sd_addr_is_dma

Re: [U-Boot] [PATCH 1/2] mmc: tmio: Pass full address to tmio_sd_addr_is_dmaable()

2018-10-09 Thread Masahiro Yamada
asting. What is the difference (i.e. benefit)? If you want to change this code, I am fine. But, I'd like to know the reason. At least, I am so confused with your commit description. > Signed-off-by: Marek Vasut > Cc: Masahiro Yamada > --- > drivers/mmc/tmio-common.c | 6 -- > 1

Re: [U-Boot] [PATCH 1/2] mmc: tmio: Pass full address to tmio_sd_addr_is_dmaable()

2018-10-02 Thread Masahiro Yamada
bits lost? > Signed-off-by: Marek Vasut > Cc: Masahiro Yamada > --- > drivers/mmc/tmio-common.c | 6 -- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff --git a/drivers/mmc/tmio-common.c b/drivers/mmc/tmio-common.c > index b311b80be8..6b21941991 100644

[U-Boot] [PATCH 1/2] Kbuild: fix # escaping in .cmd files for future Make

2018-09-18 Thread Masahiro Yamada
uture Make release contains the above change, but at least this builds an x86_64 defconfig with the new make. Link: https://bugzilla.kernel.org/show_bug.cgi?id=197847 Cc: Randy Dunlap Signed-off-by: Rasmus Villemoes Signed-off-by: Masahiro Yamada --- scripts/Kbuild.include | 5 +++-- 1 file

[U-Boot] [PATCH 2/2] kbuild: fix # escaping in appending U-Boot own DT

2018-09-18 Thread Masahiro Yamada
The escape sequence '\#' does not work for the latest GNU Make from the git tree. Replace it with $(pound) as Linux did. Signed-off-by: Masahiro Yamada --- scripts/Makefile.lib | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib

[U-Boot] [PATCH 0/2] Fix build with the latest GNU Make

2018-09-18 Thread Masahiro Yamada
I can not build my board with the lastest GNU Make since it changed the escaping of '#' in function calls. Change the makefiles portable to both old and new GNU Make version. Masahiro Yamada (1): kbuild: fix # escaping in appending U-Boot own DT Rasmus Villemoes (1): Kbuild: fix

[U-Boot] [GIT PULL] u-boot-uniphier/master

2018-09-11 Thread Masahiro Yamada
to e39eed8f476b6f8861318fc122b546158edce259: ARM: uniphier: remove ad-hoc clock enabling for EHCI (2018-09-11 20:37:19 +0900) Masahiro Yamada (5): ARM: dts: uniphier: sync DT with Linux 4.19-rc1 ARM: uniphier: increase

Re: [U-Boot] [PATCH] mtd: nand: denali: fix unaligned cache operation warnings on ARMv7 SoCs

2018-09-10 Thread Masahiro Yamada
2018-09-10 22:26 GMT+09:00 Marek Vasut : > On 09/10/2018 04:17 AM, Masahiro Yamada wrote: >> If the OOB size is not multiple of the cache line size, the ARMv7 >> cache operation still warns "Misaligned operation at range". >> >> The real cache coherency pro

[U-Boot] [PATCH 0/5] ARM: uniphier: updates for v2018.11-rc1

2018-09-09 Thread Masahiro Yamada
The MW is opening soon. The patch for UniPhier updates planned for the MW. Masahiro Yamada (5): ARM: dts: uniphier: sync DT with Linux 4.19-rc1 ARM: uniphier: increase CONFIG_SYS_MONITOR_LEN again ARM: uniphier: enable CONFIG_CMD_UBI mmc: uniphier-sd: sync with Linux ARM: uniphier

[U-Boot] [PATCH 2/5] ARM: uniphier: increase CONFIG_SYS_MONITOR_LEN again

2018-09-09 Thread Masahiro Yamada
to the physical address 0x10. Signed-off-by: Masahiro Yamada --- include/configs/uniphier.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/configs/uniphier.h b/include/configs/uniphier.h index 21ed1d3..ff44749 100644 --- a/include/configs/uniphier.h +++ b/include

[U-Boot] [PATCH 1/5] ARM: dts: uniphier: sync DT with Linux 4.19-rc1

2018-09-09 Thread Masahiro Yamada
Signed-off-by: Masahiro Yamada --- arch/arm/dts/uniphier-ld11-global.dts | 3 ++- arch/arm/dts/uniphier-ld11.dtsi | 2 +- arch/arm/dts/uniphier-ld20-global.dts | 3 ++- arch/arm/dts/uniphier-ld20.dtsi | 4 +++- arch/arm/dts/uniphier-ld4.dtsi| 3 +-- arch/arm/dts/uniphier

[U-Boot] [PATCH 3/5] ARM: uniphier: enable CONFIG_CMD_UBI

2018-09-09 Thread Masahiro Yamada
Now that CONFIG_SYS_MONITOR_LEN increased, we have room for enabling more options again. Signed-off-by: Masahiro Yamada --- configs/uniphier_ld4_sld8_defconfig | 1 + configs/uniphier_v7_defconfig | 1 + 2 files changed, 2 insertions(+) diff --git a/configs/uniphier_ld4_sld8_defconfig

[U-Boot] [PATCH 5/5] ARM: uniphier: remove ad-hoc clock enabling for EHCI

2018-09-09 Thread Masahiro Yamada
The MIO clock is enabled by default, and the STDMAC clock is enabled by the clk driver. The ad-hoc way to enable the clock is no longer needed. Signed-off-by: Masahiro Yamada --- arch/arm/mach-uniphier/clk/clk-ld11.c | 6 -- arch/arm/mach-uniphier/clk/clk-ld4.c | 3 --- arch/arm/mach

[U-Boot] [PATCH 4/5] mmc: uniphier-sd: sync with Linux

2018-09-09 Thread Masahiro Yamada
Sync with the driver code and the binding recently merged in Linux. Signed-off-by: Masahiro Yamada --- arch/arm/dts/uniphier-ld20.dtsi| 2 +- arch/arm/dts/uniphier-ld4.dtsi | 14 +++--- arch/arm/dts/uniphier-pinctrl.dtsi | 7 +-- arch/arm/dts/uniphier-pro4-ref.dts | 4

[U-Boot] [PATCH] mtd: nand: denali: fix unaligned cache operation warnings on ARMv7 SoCs

2018-09-09 Thread Masahiro Yamada
aligned operation at range [9fb15280, 9fb16360] CACHE: Misaligned operation at range [9fb15280, 9fb16360] CACHE: Misaligned operation at range [9fb15280, 9fb16360] ... Reported-by: Marek Vasut Signed-off-by: Masahiro Yamada --- drivers/mtd/nand/denali.c | 4 1 file changed, 4 insertions(+)

[U-Boot] [PATCH] dm: fix alignment of help message of "dm" command

2018-09-07 Thread Masahiro Yamada
Currently, "help dm" shows as follows: => help dm dm - Driver model low level access Usage: dm tree Dump driver model tree ('*' = activated) dm uclassDump list of instances for each uclass dm devresDump list of device resources for each device Signed-off

[U-Boot] [PATCH] dm: fix alignment in DM dump when 2-digit index exists

2018-09-07 Thread Masahiro Yamada
If there exist 10 or more nodes of the same type, the alignment of "dm tree" command is broken. Signed-off-by: Masahiro Yamada --- drivers/core/dump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/core/dump.c b/drivers/core/dump.c index d7cdb14..c86f

Re: [U-Boot] [PATCH] mtd: nand: denali_dt: Add reset support

2018-09-06 Thread Masahiro Yamada
Hi Marek, 2018-09-06 17:02 GMT+09:00 Marek Vasut : > On 09/06/2018 03:46 AM, Masahiro Yamada wrote: >> 2018-09-05 17:31 GMT+09:00 Marek Vasut : >>> On 08/24/2018 03:10 PM, Marek Vasut wrote: >>>> On 08/24/2018 03:05 PM, Masahiro Yamada wrote: >>>>>

Re: [U-Boot] [PATCH] mtd: nand: denali_dt: Add reset support

2018-09-05 Thread Masahiro Yamada
2018-09-05 17:31 GMT+09:00 Marek Vasut : > On 08/24/2018 03:10 PM, Marek Vasut wrote: >> On 08/24/2018 03:05 PM, Masahiro Yamada wrote: >>> Hi Marek, >> >> Hi, >> >>> 2018-08-21 22:57 GMT+09:00 Marek Vasut : >>>> Add optional reset support i

Re: [U-Boot] [PATCH] mtd: nand: denali_dt: Add reset support

2018-08-24 Thread Masahiro Yamada
Hi Marek, 2018-08-21 22:57 GMT+09:00 Marek Vasut : > Add optional reset support into the Denali NAND driver. In case there is > a valid reset entry in the DT, the reset gets deasserted before the NAND > controller gets used. > > Signed-off-by: Marek Vasut > Cc: Masahiro Yamada

[U-Boot] [PATCH] Make kmalloc'ed memory really DMA-safe

2018-08-24 Thread Masahiro Yamada
() and malloc() in this order causes a cache sharing problem. Change the implementation to call malloc_cache_aligned(), which allocates really DMA-capable memory. Signed-off-by: Masahiro Yamada --- lib/linux_compat.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib

Re: [U-Boot] [PATCH 3/3] Remove includes and PRI* usages in printf() entirely

2018-08-06 Thread Masahiro Yamada
2018-08-06 22:20 GMT+09:00 Andy Shevchenko : > On Mon, Aug 6, 2018 at 2:47 PM, Masahiro Yamada > wrote: > >> The use of PRI* makes the code super-ugly. You can simply use >> "l" for printing uintptr_t, "ll" for u64, and no modifier for u32. > >

[U-Boot] [PATCH 2/3] arch: types.h: factor out fixed width typedefs to int-ll64.h

2018-08-06 Thread Masahiro Yamada
). Signed-off-by: Masahiro Yamada --- arch/arc/include/asm/types.h| 36 ++-- arch/arm/include/asm/types.h| 33 ++ arch/m68k/include/asm/types.h | 30 ++- arch/microblaze/include/asm/ty

[U-Boot] [PATCH 1/3] Remove CONFIG_USE_STDINT

2018-08-06 Thread Masahiro Yamada
You do not need to use the typedefs provided by compiler. Our compilers are either IPL32 or LP64. Hence, U-Boot can/should always use int-ll64.h typedefs like Linux kernel, whatever the typedefs the compiler internally uses. Signed-off-by: Masahiro Yamada --- README

[U-Boot] [PATCH 3/3] Remove includes and PRI* usages in printf() entirely

2018-08-06 Thread Masahiro Yamada
use "l" for printing uintptr_t, "ll" for u64, and no modifier for u32. Signed-off-by: Masahiro Yamada --- arch/x86/lib/relocate.c | 12 +- board/raspberrypi/rpi/rpi.c | 3 +- cmd/mem.c| 6 +- common/fdt_support.c

Re: [U-Boot] [PATCH 3/9] common: include always

2018-08-05 Thread Masahiro Yamada
2018-08-04 0:01 GMT+09:00 Tom Rini : > On Thu, Aug 02, 2018 at 10:56:11AM -0600, Simon Glass wrote: >> +Tom >> >> Hi Masahiro, >> >> On 30 July 2018 at 19:41, Masahiro Yamada >> wrote: >> > 2018-07-26 22:59 GMT+09:00 Philipp Tomsich >> >

Re: [U-Boot] [PATCH 8/9] board: cm_fx6: use PRIx64 macros for printing ram size

2018-07-30 Thread Masahiro Yamada
Unsupported DRAM size 0x%" PRIx64 "\n", > + gd->ram_size); > return -1; > } > > -- > 2.1.4 > > ___ > U-Boot mailing list > U-Boot@lists.denx.de > https://lists.denx.

Re: [U-Boot] [PATCH 3/9] common: include always

2018-07-30 Thread Masahiro Yamada
ng 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] [GIT PULL] u-boot-uniphier/master

2018-07-24 Thread Masahiro Yamada
8.1 Masahiro Yamada (8): mtd: nand: denali: correct buffer alignment for DMA transfer fdt_support: make fdt_fixup_mtdparts() prototype more specific board: constify struct node_info array ARM: uniphier: clean-up ft_board_setup() ARM: uniphier: split ft_board_setup() out

Re: [U-Boot] [PATCH] kconfig: Avoid format overflow warning from GCC 8.1

2018-07-24 Thread Masahiro Yamada
+1], newname[PATH_MAX+1]; > + char dirname[PATH_MAX+1], tmpname[PATH_MAX+22], newname[PATH_MAX+8]; > char *env; > > dirname[0] = 0; > -- > 2.18.0 > > ___ > 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] ARM: uniphier: enable distro boot

2018-07-24 Thread Masahiro Yamada
2018-07-20 21:47 GMT+09:00 Masahiro Yamada : > Switch to the distro boot for UniPhier platform. > > - Remove the environment vairalbes used to load images from raw >block devices. > > - Keep the command to download images via tftp. This will be >useful to boot the

Re: [U-Boot] [PATCH] mtd: nand: denali: correct buffer alignment for DMA transfer

2018-07-24 Thread Masahiro Yamada
2018-07-19 10:13 GMT+09:00 Masahiro Yamada : > The NAND framework makes sure to pass in the buffer with at least > chip->buf_align alignment. Currently, the Denali NAND driver only > requests 16 byte alignment. This causes unaligned cache operations > for the DMA transfer. >

Re: [U-Boot] [PATCH 1/6] fdt_support: make fdt_fixup_mtdparts() prototype more specific

2018-07-24 Thread Masahiro Yamada
2018-07-19 16:28 GMT+09:00 Masahiro Yamada : > The second argument of fdt_fixup_mtdparts() is an opaque pointer, > 'void *node_info', hence callers can pass any pointer. > > Obviously, fdt_fixup_mtdparts() expects 'struct node_info *' > otherwise, it crashes run-time. > > Ch

Re: [U-Boot] [PATCH] tools: genboardscfg: move buildman path to first

2018-07-24 Thread Masahiro Yamada
2018-07-24 15:27 GMT+09:00 Peng Fan : > To system which has kconfiglib installed, genboardscfg will > use system kconfiglib, we need it use U-Boot owned version, > so move the buildman path to first. > > Signed-off-by: Peng Fan > Cc: Masahiro Yamada > Cc: Simon

[U-Boot] [PATCH] ARM: uniphier: enable distro boot

2018-07-20 Thread Masahiro Yamada
root.cpio.gz instead of root.cpio.uboot because we always know the file size of the init ramdisk; it is loaded via either a file system or network. - Rename fit_addr_r to kernel_addr_r, which the distro command checks to get the load address of FIT image. Signed-off-by: Masahiro Yamada

[U-Boot] [PATCH] fdt_support: make FDT_FIXUP_PARTITIONS depend on CMD_MTDPARTS

2018-07-19 Thread Masahiro Yamada
reference to `device_find' Signed-off-by: Masahiro Yamada --- lib/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Kconfig b/lib/Kconfig index a77bf1c..622f3c2 100644 --- a/lib/Kconfig +++ b/lib/Kconfig @@ -334,7 +334,7 @@ config SPL_OF_LIBFDT config

[U-Boot] [PATCH 3/6] ARM: uniphier: clean-up ft_board_setup()

2018-07-19 Thread Masahiro Yamada
The 'bd' is passed in ft_board_setup() as the second argument. Replace 'gd->bd' with 'bd'. Signed-off-by: Masahiro Yamada --- arch/arm/mach-uniphier/dram_init.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-uniphier/dram_init.c b/arch/arm/m

[U-Boot] [PATCH 2/6] board: constify struct node_info array

2018-07-19 Thread Masahiro Yamada
Add 'const' (also 'static' in some places) to struct node_info arrays to save memory footprint. Signed-off-by: Masahiro Yamada --- board/CarMediaLab/flea3/flea3.c | 2 +- board/compulab/cm_fx6/cm_fx6.c| 2 +- board/freescale/bsc9131rdb/bsc9131rdb.c | 2 +- board

[U-Boot] [PATCH 4/6] ARM: uniphier: split ft_board_setup() out to a separate file

2018-07-19 Thread Masahiro Yamada
Prepare to add more fdt fixup code. Signed-off-by: Masahiro Yamada --- arch/arm/Kconfig | 1 + arch/arm/mach-uniphier/Kconfig | 1 - arch/arm/mach-uniphier/Makefile| 1 + arch/arm/mach-uniphier/dram_init.c | 35 arch/arm/mach-uniphier/fdt

[U-Boot] [PATCH 5/6] ARM: uniphier: support fdt_fixup_mtdparts

2018-07-19 Thread Masahiro Yamada
Propagate the "mtdparts" environment variable to the DT passed in to OS. Signed-off-by: Masahiro Yamada --- arch/arm/mach-uniphier/fdt-fixup.c | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/mach-uniphier/fdt-fixup.c b/arch/arm/mach-uniphier/fdt-fixup.c ind

[U-Boot] [PATCH 1/6] fdt_support: make fdt_fixup_mtdparts() prototype more specific

2018-07-19 Thread Masahiro Yamada
' qualifier to it so that callers can constify the struct node_info arrays. Signed-off-by: Masahiro Yamada --- common/fdt_support.c | 13 +++-- include/fdt_support.h | 11 --- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/common/fdt_support.c b/common/fdt_support.c

[U-Boot] [PATCH 6/6] ARM: uniphier: enable MTD partition and UBI

2018-07-19 Thread Masahiro Yamada
Enable "mtdparts" and "ubi" commands for uniphier_v8_defconfig to use UBI on NAND devices. Enable only "mtdparts" for uniphier_{v7,ld4_sld8}_defconfig because enabling UBI would increase 170KB, which would be memory footprint problem. Signed-off-by:

[U-Boot] [PATCH] mtd: nand: denali: correct buffer alignment for DMA transfer

2018-07-18 Thread Masahiro Yamada
Vasut Signed-off-by: Masahiro Yamada --- drivers/mtd/nand/denali.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nand/denali.c b/drivers/mtd/nand/denali.c index 6266c8a..7302c37 100644 --- a/drivers/mtd/nand/denali.c +++ b/drivers/mtd/nand/denali.c @@ -1270,7 +

Re: [U-Boot] [PATCH] mtd: nand: denali: Replace the ad-hoc cache management with bouncebuf

2018-07-13 Thread Masahiro Yamada
2018-07-14 3:15 GMT+09:00 Marek Vasut : > On 07/13/2018 05:09 PM, Masahiro Yamada wrote: >> 2018-07-13 23:51 GMT+09:00 Marek Vasut : >>> On 07/13/2018 01:05 PM, Masahiro Yamada wrote: >>>> 2018-07-13 19:58 GMT+09:00 Marek Vasut : >>>>> On 07/13/2018 12

Re: [U-Boot] [PATCH] mtd: nand: denali: Replace the ad-hoc cache management with bouncebuf

2018-07-13 Thread Masahiro Yamada
2018-07-13 23:51 GMT+09:00 Marek Vasut : > On 07/13/2018 01:05 PM, Masahiro Yamada wrote: >> 2018-07-13 19:58 GMT+09:00 Marek Vasut : >>> On 07/13/2018 12:52 PM, Masahiro Yamada wrote: >>>> 2018-07-13 19:35 GMT+09:00 Marek Vasut : >>>>> On 07/13/2018 12

Re: [U-Boot] [PATCH] mtd: nand: denali: Replace the ad-hoc cache management with bouncebuf

2018-07-13 Thread Masahiro Yamada
2018-07-13 19:58 GMT+09:00 Marek Vasut : > On 07/13/2018 12:52 PM, Masahiro Yamada wrote: >> 2018-07-13 19:35 GMT+09:00 Marek Vasut : >>> On 07/13/2018 12:22 PM, Masahiro Yamada wrote: >>>> 2018-07-13 19:18 GMT+09:00 Marek Vasut : >>>>> On 07/13/20

Re: [U-Boot] [PATCH] mtd: nand: denali: Replace the ad-hoc cache management with bouncebuf

2018-07-13 Thread Masahiro Yamada
2018-07-13 19:35 GMT+09:00 Marek Vasut : > On 07/13/2018 12:22 PM, Masahiro Yamada wrote: >> 2018-07-13 19:18 GMT+09:00 Marek Vasut : >>> On 07/13/2018 12:09 PM, Masahiro Yamada wrote: >>>> Hi Marek >>>> >>>> 2018-07-13 17:56 GMT+09:00 Marek

Re: [U-Boot] [PATCH] mtd: nand: denali: Replace the ad-hoc cache management with bouncebuf

2018-07-13 Thread Masahiro Yamada
2018-07-13 19:18 GMT+09:00 Marek Vasut : > On 07/13/2018 12:09 PM, Masahiro Yamada wrote: >> Hi Marek >> >> 2018-07-13 17:56 GMT+09:00 Marek Vasut : >>> On 07/13/2018 10:23 AM, Masahiro Yamada wrote: >>>> Hi Marek, >>>> >>>> 201

Re: [U-Boot] [PATCH] mtd: nand: denali: Replace the ad-hoc cache management with bouncebuf

2018-07-13 Thread Masahiro Yamada
Hi Marek 2018-07-13 17:56 GMT+09:00 Marek Vasut : > On 07/13/2018 10:23 AM, Masahiro Yamada wrote: >> Hi Marek, >> >> 2018-07-13 16:59 GMT+09:00 Marek Vasut : >>> On 07/13/2018 07:13 AM, Masahiro Yamada wrote: >>>> 2018-07-12 21:51 GMT+09:00 Marek Vasu

Re: [U-Boot] [PATCH] mtd: nand: denali: Replace the ad-hoc cache management with bouncebuf

2018-07-13 Thread Masahiro Yamada
Hi Marek, 2018-07-13 16:59 GMT+09:00 Marek Vasut : > On 07/13/2018 07:13 AM, Masahiro Yamada wrote: >> 2018-07-12 21:51 GMT+09:00 Marek Vasut : >>> On 06/20/2018 09:14 AM, Masahiro Yamada wrote: >>>> Hi Marek, >>> >>> Hi! >>> >>>&g

<    1   2   3   4   5   6   7   8   9   10   >