[U-Boot] [PATCH 17/21] tools: moveconfig: display log when savedefconfig occurs

2016-05-18 Thread Masahiro Yamada
Now, "make savedefconfig" does not always happen. Display the log when it happens. Signed-off-by: Masahiro Yamada --- tools/moveconfig.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/moveconfig.py b/tools/moveconfig.py index cb26b14..80542c5 100755 --- a/tools/mo

[U-Boot] [PATCH 20/21] tools: moveconfig: add --force-sync option

2016-05-18 Thread Masahiro Yamada
Now, this tools invokes "make savedefconfig" only when it needs to do so, but there might be cases where a user wants the tool to do savedefconfig forcibly, for example, some defconfigs were already out of sync and the user wants to fix it as well. Signed-off-by: Masahiro Yamada --- tools/movec

Re: [U-Boot] [PATCH RESEND 2/2] cmd: fdt: add fdt overlay application subcommand

2016-05-18 Thread Pantelis Antoniou
Hi Maxime, > On May 10, 2016, at 14:45 , Maxime Ripard > wrote: > [snip] > How do you want me to proceed? > > Thanks! > Maxime > > -- > Maxime Ripard, Free Electrons > Embedded Linux, Kernel and Android engineering > http://free-electrons.com FYI an updated dtc patch has been sent. Hopefu

[U-Boot] [PATCH 19/21] tools: moveconfig: report when defconfig is updated

2016-05-18 Thread Masahiro Yamada
There are various factors that determine if the given defconfig is updated, and it is probably what users are more interested in. Show the log when the defconfig is updated. Also, copy the file only when the file content was really updated to avoid changing the time stamp needlessly. Signed-off-

[U-Boot] [PATCH 00/21] tools: moveconfig: many fixes, improvements, code clean-ups

2016-05-18 Thread Masahiro Yamada
Masahiro Yamada (21): tools: moveconfig: fix --dry-run option tools: moveconfig: rename update_defconfig() to update_dotconfig() tools: moveconfig: remove redundant else: after sys.exit() tools: moveconfig: check directory relocation before compilers tools: moveconfig: check compilers be

[U-Boot] [PATCH 11/21] tools: moveconfig: add --undef option to move CONFIGs with default y

2016-05-18 Thread Masahiro Yamada
Since 96464badc794 ("moveconfig: Always run savedefconfig on the moved config"), this tool can not correctly move bool configs with the default value y. The reason is like follows: We are supposed to add the config entries in Kconfig for the options we are moving before running this tool. Otherw

[U-Boot] [PATCH 18/21] tools: moveconfig: report when CONFIGs are removed by savedefconfig

2016-05-18 Thread Masahiro Yamada
This is a rare case, but there is still possibility that some CONFIG is moved to the .config, but it is removed by "make savedefconfig". (For example, it happens when the specified CONFIG has no prompt in the Kconfig entry, i.e. it is not user-configurable.) It might be an unexpected case. So, di

[U-Boot] [PATCH 21/21] tools: moveconfig: allow to run without any CONFIG specified

2016-05-18 Thread Masahiro Yamada
I found "tools/moveconfig -s" might be useful for defconfig re-sync. I could optimize it for re-sync if I wanted, but I do not want to make the code complex for this feature. Signed-off-by: Masahiro Yamada --- tools/moveconfig.py | 13 - 1 file changed, 8 insertions(+), 5 deletions(

[U-Boot] [PATCH 07/21] tools: moveconfig: increment number of processed files monotonically

2016-05-18 Thread Masahiro Yamada
Currently, the progress " * defconfigs out of 1133" does not increase monotonically. Moreover, the number of processed defconfigs does not match the total number of defconfigs when this tool finishes, like: 1132 defconfigs out of 1133 Clean up headers? [y/n]: It looks like the task was not comp

[U-Boot] [PATCH 08/21] tools: moveconfig: do not rely on type and default value given by users

2016-05-18 Thread Masahiro Yamada
Commit 96464badc794 ("moveconfig: Always run savedefconfig on the moved config") changed the work flow of this tool a lot from the original intention when this tool was designed first. Since then, before running this tool, users must edit the Kconfig to add the menu entries for the configs they ar

[U-Boot] [PATCH 09/21] tools: moveconfig: drop code for handling type and default value

2016-05-18 Thread Masahiro Yamada
Now types and defalut values given by the input file are just ignored. Delete unnecessary code. Signed-off-by: Masahiro Yamada --- tools/moveconfig.py | 105 +++- 1 file changed, 29 insertions(+), 76 deletions(-) diff --git a/tools/moveconfig.py

[U-Boot] [PATCH 13/21] tools: moveconfig: move log output code out of Kconfig Parser class

2016-05-18 Thread Masahiro Yamada
This will help further improvement/clean-up. Signed-off-by: Masahiro Yamada --- tools/moveconfig.py | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/tools/moveconfig.py b/tools/moveconfig.py index 9f38a08..96ada0d 100755 --- a/tools/moveconfig.py ++

[U-Boot] [PATCH 02/21] tools: moveconfig: rename update_defconfig() to update_dotconfig()

2016-05-18 Thread Masahiro Yamada
Commit 96464badc794 ("moveconfig: Always run savedefconfig on the moved config") changed how defconfig files were updated. Since then, the function update_defconfig() does not modify defconfig files at all (instead, they are updated by "make savedefconfig"). The name update_dotconfig() is a bette

[U-Boot] [PATCH 03/21] tools: moveconfig: remove redundant else: after sys.exit()

2016-05-18 Thread Masahiro Yamada
Nesting by "else:" is not generally useful after such statements as return, break, and sys.exit(), etc. Signed-off-by: Masahiro Yamada --- tools/moveconfig.py | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/tools/moveconfig.py b/tools/moveconfig.py index 9029287

[U-Boot] [PATCH 06/21] tools: moveconfig: exit with error message for not clean directory

2016-05-18 Thread Masahiro Yamada
When the source tree is not clean, this tool raises an exception with a message like follows: Traceback (most recent call last): File "tools/moveconfig.py", line 939, in main() File "tools/moveconfig.py", line 934, in main move_config(config_attrs, options) File "tools/moveconfig.py

[U-Boot] [PATCH 12/21] tools: moveconfig: compute file paths just once

2016-05-18 Thread Masahiro Yamada
The paths to .config, include/autoconf.mk, include/config/auto.conf are not changed during the defconfig walk. Compute them only once when a new class instance is created. Signed-off-by: Masahiro Yamada --- tools/moveconfig.py | 20 ++-- 1 file changed, 10 insertions(+), 10 del

[U-Boot] [PATCH 15/21] tools: moveconfig: refactor code to go back to idle state

2016-05-18 Thread Masahiro Yamada
Move similar code to finish() function. Signed-off-by: Masahiro Yamada --- tools/moveconfig.py | 37 + 1 file changed, 17 insertions(+), 20 deletions(-) diff --git a/tools/moveconfig.py b/tools/moveconfig.py index cf4004f..da7120d 100755 --- a/tools/moveconf

[U-Boot] [PATCH 01/21] tools: moveconfig: fix --dry-run option

2016-05-18 Thread Masahiro Yamada
Since commit 96464badc794 ("moveconfig: Always run savedefconfig on the moved config"), --dry-run option is broken. The --dry-run option prevents the .config from being modified, but defconfig files might be updated by "make savedefconfig" regardless of the --dry-run option. Move the "if not self

[U-Boot] [PATCH 16/21] tools: moveconfig: skip savedefconfig if .config was not updated

2016-05-18 Thread Masahiro Yamada
If no CONFIG option is moved to the .config, no need to sync the defconfig file. This accelerates the processing by skipping unneeded "make savedefconfig". Signed-off-by: Masahiro Yamada --- tools/moveconfig.py | 21 - 1 file changed, 16 insertions(+), 5 deletions(-) diff

[U-Boot] [PATCH 14/21] tools: moveconfig: display log atomically in more readable format

2016-05-18 Thread Masahiro Yamada
Before this commit, the log was displayed in the format: : : : When we move multiple CONFIGs at the same time, we see as many strings as actions for every defconfig, which is redundant information. Moreover, since normal log and error log are displayed separately, Messages from diff

[U-Boot] [PATCH 05/21] tools: moveconfig: check compilers before starting defconfig walk

2016-05-18 Thread Masahiro Yamada
Since commit 25400090b1e2 ("moveconfig: Print a message for missing compiler"), this tool parses error messages generated by "make include/config/auto.conf" every time an error occurs in order to detect missing compiler. Instead of that, we can look for compilers in the PATH environment only once

[U-Boot] [PATCH 10/21] tools: moveconfig: allow to give CONFIG names as argument directly

2016-05-18 Thread Masahiro Yamada
We still pass the input file with CONFIG name, type, default value in each line, but the last two fields are just ignored by the tool. So, let's deprecate the input file and allow users to give CONFIG names directly from the command line. The types and default values are automatically detected and

[U-Boot] [PATCH 04/21] tools: moveconfig: check directory relocation before compilers

2016-05-18 Thread Masahiro Yamada
We must make sure this tool is run from the top of source directory before calling update_cross_compile(). Otherwise, the following exception is thrown: Traceback (most recent call last): File "./moveconfig.py", line 918, in main() File "./moveconfig.py", line 908, in main update_cro

Re: [U-Boot] [PATCH v2 00/13] usb: dwc3: rework DWC3 and convert UniPhier xHCI driver to DM

2016-05-18 Thread Masahiro Yamada
Hi Marek, 2016-05-17 20:01 GMT+09:00 Masahiro Yamada : > Hi Marek, > > > 2016-05-16 23:46 GMT+09:00 Marek Vasut : > >>> delete mode 100644 drivers/usb/host/xhci-uniphier.c >>> >> CCing Roger, so he can check this series. I will review it later today >> or tomorrow. >> > > 01-03 are probably OK, b

Re: [U-Boot] [PATCH v2 3/3] dm: gpio: Implement open drain for MPC85XX GPIO

2016-05-18 Thread Mario Six
On Thu, May 19, 2016 at 5:59 AM, Simon Glass wrote: > Hi Mario, > > On 10 May 2016 at 01:51, Mario Six wrote: >> This patch implements the open-drain setting feature for the MPC85XX >> GPIO controller. >> >> Signed-off-by: Mario Six >> --- >> >> v3: >> - Added missing commit message >> - Fixed w

Re: [U-Boot] [PATCH v2] test/py: Support setting up specific timeout

2016-05-18 Thread Michal Simek
On 18.5.2016 21:00, Stephen Warren wrote: > On 05/18/2016 11:00 AM, Michal Simek wrote: >> Large file transfers, flash erasing and more complicated tests >> requires more time to finish. Provide a way to setup specific >> timeout directly in test. >> >> For example description for 50s test: >> time

[U-Boot] [PATCH v3] test/py: Support setting up specific timeout

2016-05-18 Thread Michal Simek
Large file transfers, flash erasing and more complicated tests requires more time to finish. Provide a way to setup specific timeout directly in test. For example description for 50s test: timeout = 5 with u_boot_console.temporary_timeout(timeout): u_boot_console.run_command(...) Signed-off

Re: [U-Boot] [PATCH v1 01/12] common: bootdelay: move CONFIG_BOOTDELAY into a Kconfig option

2016-05-18 Thread Viresh Kumar
On 19-05-16, 07:22, Heiko Schocher wrote: > Sorry for that ... I used patman and forgot the "-m" no maintainer > option ... Hmmm... on the other side, all involved people should be > informed ... added Simon to Cc ... Simon? In fact, your message wouldn't have hit the list as well. > patman may

Re: [U-Boot] [PATCH v1 01/12] common: bootdelay: move CONFIG_BOOTDELAY into a Kconfig option

2016-05-18 Thread Heiko Schocher
Hello Viresh, Am 19.05.2016 um 04:59 schrieb Viresh Kumar: Sorry, I had to drop the extremely long cc list, otherwise I wasn't able to reply to this email. Mutt was rejecting it for some reason. Any anyway, you should have put all those people in bcc rather. Sorry for that ... I used patman

[U-Boot] [PATCH] imx: mx7: implement reset_misc

2016-05-18 Thread Peng Fan
We need to power down lcdif to make 'reset' can pass stress test. Signed-off-by: Peng Fan Cc: Stefano Babic --- arch/arm/cpu/armv7/mx7/soc.c | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/cpu/armv7/mx7/soc.c b/arch/arm/cpu/armv7/mx7/soc.c index 073bbc6..ef46c92 100644 ---

[U-Boot] [PATCH] drivers/ddr/fsl: Fix timing_cfg_2 register

2016-05-18 Thread York Sun
Commit 34e026f9 added one extra bit to wr_lat for timing_cfg_2, but with wrong bit position. It is bit 13 in big-endian, or left shift 18 from LSB. This error hasn't had any impact because we don't have fast enough DDR4 using the extra bit so far. Signed-off-by: York Sun --- drivers/ddr/fsl/ct

Re: [U-Boot] [PATCH v1 07/12] bootstage: call show_boot_progress also in SPL

2016-05-18 Thread Simon Glass
On 18 May 2016 at 08:18, Heiko Schocher wrote: > show_boot_progress() is now called from SPL also. > > Signed-off-by: Heiko Schocher > --- > > common/init/board_init.c | 5 + > common/spl/spl.c | 5 + > include/bootstage.h | 6 +++--- > 3 files changed, 13 insertions(+), 3 d

Re: [U-Boot] [PATCH 07/20] arm: Avoid error messages in cache_v7

2016-05-18 Thread Simon Glass
Hi Marek, On 14 May 2016 at 15:41, Marek Vasut wrote: > On 05/14/2016 11:22 PM, Simon Glass wrote: >> Hi Marek, > > Hi! > >> On 14 May 2016 at 14:23, Marek Vasut wrote: >>> On 05/14/2016 10:02 PM, Simon Glass wrote: Move these to debug() like the one in check_cache range(), to save SPL >>>

Re: [U-Boot] [PATCH v2 00/18] x86: acpi: Support installation of Ubuntu/Windows and boot Windows

2016-05-18 Thread Simon Glass
Hi Bin, On 17 May 2016 at 20:14, Bin Meng wrote: > Hi Simon, > > On Wed, May 11, 2016 at 10:44 PM, Bin Meng wrote: >> SeaBIOS can be loaded by U-Boot to aid the installation of Ubuntu >> and Windows to a SATA drive and boot from there. But till now this >> is broken. The installation either hang

Re: [U-Boot] [PATCH 1/2] board: amcore: update to use dm serial driver

2016-05-18 Thread Simon Glass
On 15 May 2016 at 15:03, Angelo Dureghello wrote: > Update amcore board to use dm serial driver. > > Signed-off-by: Angelo Dureghello > --- > board/sysam/amcore/amcore.c | 15 ++- > configs/amcore_defconfig| 4 > 2 files changed, 18 insertions(+), 1 deletion(-) Reviewed-by

Re: [U-Boot] [PATCH v5] dm: core: implement dev_map_physmem()

2016-05-18 Thread Simon Glass
On 16 May 2016 at 03:16, Vignesh R wrote: > This API helps to map physical register addresss pace of device to > virtual address space easily. Its just a wrapper around map_physmem() > with MAP_NOCACHE flag. > > > Signed-off-by: Vignesh R > Suggested-by: Simon Glass > Reviewed-by: Jagan Teki >

Re: [U-Boot] [PATCH v3 1/3] dm: gpio: Add driver for MPC85XX GPIO controller

2016-05-18 Thread Simon Glass
On 13 May 2016 at 05:15, Mario Six wrote: > From: "mario@gdsys.cc" > > This patch adds a driver for the built-in GPIO controller of the MPC85XX > SoC (probably supporting other PowerQUICC III SoCs as well). > > Each GPIO bank is identified by its own entry in the device tree, i.e. > > gpio-co

Re: [U-Boot] [PATCH 2/2] board: amcore: add update scripts

2016-05-18 Thread Simon Glass
On 15 May 2016 at 15:04, Angelo Dureghello wrote: > Add some useful update scripts. > > Signed-off-by: Angelo Dureghello > --- > include/configs/amcore.h | 13 - > 1 file changed, 12 insertions(+), 1 deletion(-) Reviewed-by: Simon Glass _

Re: [U-Boot] [PATCH 2/2] ARM: tegra: add p2771-0000 board suport

2016-05-18 Thread Simon Glass
On 12 May 2016 at 13:32, Stephen Warren wrote: > From: Stephen Warren > > P2771- is a P3310 CPU board married to a P2597 I/O board. The > combination contains SoC, DRAM, eMMC, SD card slot, HDMI, USB micro-B > port, Ethernet, USB3 host port, SATA, PCIe, and two GPIO expansion > headers. > > C

Re: [U-Boot] [PATCH 1/2] ARM: tegra: add core Tegra186 support

2016-05-18 Thread Simon Glass
On 12 May 2016 at 13:32, Stephen Warren wrote: > From: Stephen Warren > > This adds the bare minimum code to support Tegra186, with UART and eMMC > working. > > The empty gpio.h is required because includes it. A future > cleanup round may be able to solve this for all Tegra generations at once.

Re: [U-Boot] [PATCH] mmc: tegra: add basic Tegra186 support

2016-05-18 Thread Simon Glass
Hi Stephen, On 12 May 2016 at 12:11, Stephen Warren wrote: > From: Stephen Warren > > Tegra186's MMC controller needs to be explicitly identified. Add another > compatible value for it. > > Tegra186 will use an entirely different clock/reset control mechanism to > existing chips, and will use st

Re: [U-Boot] [PATCH 2/4] ARM: tegra: fix naming in GPIO DT binding header

2016-05-18 Thread Simon Glass
On 12 May 2016 at 12:07, Stephen Warren wrote: > From: Stephen Warren > > According to the Tegra TRM, GPIOs are aggregated into /ports/ of 8 GPIOs, > not into /banks/. Fix to correctly reflect > this naming convention. While this seems like silly churn, it will become > slightly more important o

Re: [U-Boot] [PATCH 3/4] ARM: tegra: convert CONFIG_TEGRA_GPIO to Kconfig

2016-05-18 Thread Simon Glass
On 12 May 2016 at 12:07, Stephen Warren wrote: > From: Stephen Warren > > Future chips will contain different GPIO HW. This change will enable > future SoC support to select the appropriate GPIO driver for their HW, > in a future-looking fashion, using Kconfig. > > TEGRA_GPIO is not simply select

Re: [U-Boot] [PATCH v2 18/18] x86: doc: Add porting hints for ACPI with Windows

2016-05-18 Thread Simon Glass
On 11 May 2016 at 08:45, Bin Meng wrote: > Windows might cache system information and only detect ACPI changes > if you modify the ACPI table versions. > > Signed-off-by: Bin Meng > > --- > > Changes in v2: None > > doc/README.x86 | 6 ++ > 1 file changed, 6 insertions(+) Reviewed-by: Simon

Re: [U-Boot] [PATCH v2 15/18] acpi: Quieten IASL output when 'make -s' is used

2016-05-18 Thread Simon Glass
On 11 May 2016 at 08:45, Bin Meng wrote: > IASL compiler does not provide a command line option to turn off > its non-warning message. To quieten the output when 'make -s', > redirect its output to /dev/null. > > Signed-off-by: Bin Meng > --- > > Changes in v2: None > > scripts/Makefile.lib | 2

Re: [U-Boot] [PATCH v2 17/18] x86: baytrail: Add GPIO ASL description

2016-05-18 Thread Simon Glass
On 11 May 2016 at 08:45, Bin Meng wrote: > Since BayTrail, Intel starts to use new GPIO IPs in their chipset. > This adds the GPIO ASL, so that OS can load corresponding drivers > for it. On Linux, this is BayTrail pinctrl driver. > > Signed-off-by: Bin Meng > > --- > > Changes in v2: > - New pat

Re: [U-Boot] [PATCH 1/4] ARM: tegra: use DT bindings for GPIO naming

2016-05-18 Thread Simon Glass
On 12 May 2016 at 12:07, Stephen Warren wrote: > From: Stephen Warren > > There are currently many places that define the list of all Tegra GPIOs; > the DT binding header and custom Tegra-specific header file gpio.h. Fix > the redundancy by replacing everything with the DT binding header file. >

Re: [U-Boot] [PATCH v2 14/18] x86: doc: Mention Ubuntu/Windows installation and boot support

2016-05-18 Thread Simon Glass
On 11 May 2016 at 08:45, Bin Meng wrote: > As of now, U-Boot can support installing and booting Ubuntu/Windows > with the help of SeaBIOS. Update the documentation. > > Signed-off-by: Bin Meng > --- > > Changes in v2: None > > doc/README.x86 | 12 > 1 file changed, 8 insertions(+),

Re: [U-Boot] [PATCH v2 16/18] x86: baytrail: Add internal UART ASL description

2016-05-18 Thread Simon Glass
On 11 May 2016 at 08:45, Bin Meng wrote: > BayTrail integrates an internal ns15550 compatible UART (PNP0501). > Its IRQ is hardwired to IRQ3 in old revision chipset, but in newer > revision one IRQ4 is being used for ISA compatibility. Handle this > correctly in the ASL file. > > Linux does not ne

Re: [U-Boot] [PATCH v2 13/18] x86: baytrail: Enable SeaBIOS on all boards

2016-05-18 Thread Simon Glass
On 11 May 2016 at 08:45, Bin Meng wrote: > SeaBIOS can be loaded by U-Boot to aid the installation of Ubuntu > and Windows to a SATA drive and boot from there. Enable it on all > BayTrail boards. > > Signed-off-by: Bin Meng > > --- > > Changes in v2: > - New patch to enable SeaBIOS on all boards

Re: [U-Boot] [PATCH v2 12/18] x86: doc: Update information about IGD with SeaBIOS

2016-05-18 Thread Simon Glass
On 11 May 2016 at 08:45, Bin Meng wrote: > Document how to make SeaBIOS load and run the VGA ROM of Intel > IGD device when loaded by U-Boot. > > Signed-off-by: Bin Meng > --- > > Changes in v2: None > > doc/README.x86 | 24 > 1 file changed, 24 insertions(+) Reviewed-b

Re: [U-Boot] [PATCH v2 07/18] x86: Reserve configuration tables in high memory

2016-05-18 Thread Simon Glass
On 11 May 2016 at 08:45, Bin Meng wrote: > When SeaBIOS is on, reserve configuration tables in reserve_arch(). > > Signed-off-by: Bin Meng > --- > > Changes in v2: None > > arch/x86/cpu/cpu.c | 11 --- > 1 file changed, 8 insertions(+), 3 deletions(-) Reviewed-by: Simon Glass _

Re: [U-Boot] [PATCH v2 10/18] x86: acpi: Remove the unnecessary checksum calculation of DSDT

2016-05-18 Thread Simon Glass
On 11 May 2016 at 08:45, Bin Meng wrote: > The generated AmlCode[] from IASL already has the calculated DSDT > table checksum in place. No need for us to calculate it again. > > Signed-off-by: Bin Meng > > --- > > Changes in v2: > - New patch to remove the unnecessary checksum calculation of DSDT

Re: [U-Boot] [PATCH v2 09/18] x86: acpi: Switch to ACPI mode by ourselves instead of requested by OSPM

2016-05-18 Thread Simon Glass
On 11 May 2016 at 08:45, Bin Meng wrote: > Per ACPI spec, during ACPI OS initialization, OSPM can determine > that the ACPI hardware registers are owned by SMI (by way of the > SCI_EN bit in the PM1_CNT register), in which case the ACPI OS > issues the ACPI_ENABLE command to the SMI_CMD port. The

Re: [U-Boot] [PATCH v2 11/18] x86: acpi: Remove header length check when writing tables

2016-05-18 Thread Simon Glass
On 11 May 2016 at 08:45, Bin Meng wrote: > Before moving 'current' pointer during ACPI table writing, we always > check the table length to see if it is larger than the table header. > Since our purpose is to generate valid tables, the check logic is > always true, which can be avoided. > > Signed

Re: [U-Boot] [PATCH v2 06/18] x86: Unify reserve_arch() for all x86 boards

2016-05-18 Thread Simon Glass
On 11 May 2016 at 08:45, Bin Meng wrote: > Instead of asking each platform to provide reserve_arch(), > supply it in arch/x86/cpu/cpu.c in a unified way. > > Signed-off-by: Bin Meng > --- > > Changes in v2: None > > arch/x86/cpu/baytrail/valleyview.c | 8 > arch/x86/cpu/broadwell/sdram

Re: [U-Boot] [PATCH v2 05/18] x86: Prepare configuration tables in dedicated high memory region

2016-05-18 Thread Simon Glass
On 11 May 2016 at 08:44, Bin Meng wrote: > Currently when CONFIG_SEABIOS is on, U-Boot allocates configuration > tables via normal malloc(). To simplify, use a dedicated memory > region which is reserved on the stack before relocation for this > purpose. Add functions for reserve and malloc. > > S

Re: [U-Boot] [PATCH v2 03/18] x86: Fix up PIRQ routing table checksum earlier

2016-05-18 Thread Simon Glass
On 11 May 2016 at 08:44, Bin Meng wrote: > PIRQ routing table checksum is fixed up in copy_pirq_routing_table(), > which is fine if we only write the configuration table once. But with > the SeaBIOS case, when we write the table for the second time, the > checksum will be fixed up to zero per the

Re: [U-Boot] [PATCH v2 08/18] x86: Use high_table_malloc() for tables passing to SeaBIOS

2016-05-18 Thread Simon Glass
On 11 May 2016 at 08:45, Bin Meng wrote: > Now that we already reserved high memory for configuration tables, > call high_table_malloc() to allocate tables from the region. > > Signed-off-by: Bin Meng > --- > > Changes in v2: None > > arch/x86/lib/tables.c | 4 +--- > 1 file changed, 1 insertion

Re: [U-Boot] [PATCH v2 01/18] x86: minnowmax: Adjust U-Boot environment address in SPI flash

2016-05-18 Thread Simon Glass
On 11 May 2016 at 08:44, Bin Meng wrote: > Currently U-Boot environment address is at offset 0x7fe00 of a 8MB > SPI flash. When creating a partial u-boot.rom image without flash > descriptor and ME firmware, U-Boot actually occupies the last 1MB > of the flash, and reprograming U-Boot causes previ

Re: [U-Boot] [PATCH v2 02/18] x86: Call board_final_cleanup() in last_stage_init()

2016-05-18 Thread Simon Glass
On 11 May 2016 at 08:44, Bin Meng wrote: > At present board_final_cleanup() is called before booting a Linux > kernel. This actually needs to be done before booting anything, > like SeaBIOS, VxWorks or Windows. > > Move the call to last_stage_init() instead. > > Signed-off-by: Bin Meng > --- > >

Re: [U-Boot] [PATCH v2 04/18] x86: Compile coreboot_table.c only for SeaBIOS

2016-05-18 Thread Simon Glass
On 11 May 2016 at 08:44, Bin Meng wrote: > coreboot_table.c only needs to be built when SeaBIOS is used. > > Signed-off-by: Bin Meng > --- > > Changes in v2: None > > arch/x86/lib/Makefile | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Simon Glass

Re: [U-Boot] [PATCH v2 07/11] drivers: usb: musb: add ti musb peripheral driver with driver model support

2016-05-18 Thread Simon Glass
On 11 May 2016 at 23:49, Mugunthan V N wrote: > On Tuesday 10 May 2016 06:09 PM, Marek Vasut wrote: >> On 05/10/2016 01:48 PM, Mugunthan V N wrote: >>> Add a TI MUSB peripheral driver with driver model support and the >>> driver will be bound by the MUSB wrapper driver based on the >>> dr_mode dev

Re: [U-Boot] [PATCH RESEND 2/2] cmd: fdt: add fdt overlay application subcommand

2016-05-18 Thread Simon Glass
Hi Maxime, On 10 May 2016 at 05:45, Maxime Ripard wrote: > Hi Simon, > > I'm finally taking the time to address the reviews that have been made > here. > > On Sat, Apr 09, 2016 at 12:40:14PM -0600, Simon Glass wrote: >> Hi Maxime, >> >> On 4 April 2016 at 12:25, Maxime Ripard >> wrote: >> > The

Re: [U-Boot] [PATCH v2 4/6] drivers: usb: gadget: ether: use net device priv to pass usb ether priv

2016-05-18 Thread Simon Glass
On 10 May 2016 at 05:44, Mugunthan V N wrote: > Use net device priv to pass usb ether priv and use it in > net device ops callback. > > Signed-off-by: Mugunthan V N > --- > drivers/usb/gadget/ether.c | 46 > +- > 1 file changed, 21 insertions(+), 25 d

Re: [U-Boot] [PATCH v2 1/6] drivers: usb: gadget: ether: adopt to usb driver model

2016-05-18 Thread Simon Glass
Hi, On 10 May 2016 at 05:44, Mugunthan V N wrote: > Convert usb ether gadget to adopt usb driver model > > Signed-off-by: Mugunthan V N > --- > drivers/usb/gadget/ether.c | 36 > 1 file changed, 36 insertions(+) This seems a little messy but I understand th

Re: [U-Boot] [PATCH v2 3/6] drivers: usb: gadget: ether: consolidate global devices to single struct

2016-05-18 Thread Simon Glass
On 10 May 2016 at 05:44, Mugunthan V N wrote: > Consolidate the net device, usb eth device and gadget device > struct to single struct and a single global variable so that the > same can be passed as priv of ethernet driver. > > Signed-off-by: Mugunthan V N > --- > drivers/usb/gadget/ether.c | 5

Re: [U-Boot] [PATCH] spl: Introduce new function spl_board_prepare_for_boot

2016-05-18 Thread Simon Glass
On 10 May 2016 at 01:52, Michal Simek wrote: > Call this function before passing control from SPL. > For fpga case it is necessary to enable for example level shifters > when bitstream is programmed. > > Signed-off-by: Michal Simek > --- > > common/spl/spl.c | 6 ++ > include/spl.h| 1 +

Re: [U-Boot] [PATCH v2 2/6] drivers: usb: gadget: ether: access network_started using local variable

2016-05-18 Thread Simon Glass
On 10 May 2016 at 05:44, Mugunthan V N wrote: > network_started of struct eth_dev can be accessed using local > variable dev and no reason to access it with the global struct. > > Signed-off-by: Mugunthan V N > --- > drivers/usb/gadget/ether.c | 10 +- > 1 file changed, 5 insertions(+),

Re: [U-Boot] [PATCH] RFC: Secure boot to U-Boot proper from SPL

2016-05-18 Thread Simon Glass
Hi Teddy, On 8 May 2016 at 19:13, Teddy Reed wrote: > On Sun, May 1, 2016 at 11:12 AM, Teddy Reed wrote: >> I've been using the following patch for my configurations, please excuse the >> top-posting. I think the only difference is enabling the uclass mod_exp >> driver to initialize without ne

Re: [U-Boot] [PATCH v2 3/3] dm: gpio: Implement open drain for MPC85XX GPIO

2016-05-18 Thread Simon Glass
Hi Mario, On 10 May 2016 at 01:51, Mario Six wrote: > This patch implements the open-drain setting feature for the MPC85XX > GPIO controller. > > Signed-off-by: Mario Six > --- > > v3: > - Added missing commit message > - Fixed white space issues in function headers > > --- > drivers/gpio/Kconf

Re: [U-Boot] [PATCH v7 2/4] net: designware: fix descriptor layout and warnings on 64-bit archs

2016-05-18 Thread Simon Glass
On 8 May 2016 at 00:30, Beniamino Galvani wrote: > All members of the DMA descriptor must be 32-bit, even on 64-bit > architectures: change the type to u32 to ensure this. Also, fix > other warnings. > > Signed-off-by: Beniamino Galvani > Acked-by: Joe Hershberger > --- > drivers/net/designware

Re: [U-Boot] [PATCH v7 3/4] arm: add initial support for Amlogic Meson and ODROID-C2

2016-05-18 Thread Simon Glass
Hi Benjamino, On 8 May 2016 at 00:30, Beniamino Galvani wrote: > This adds platform code for the Amlogic Meson GXBaby (S905) SoC and a > board definition for ODROID-C2. This initial submission only supports > UART and Ethernet (through the existing Designware driver). DTS files > are the ones sub

Re: [U-Boot] [PATCH v2 2/3] dm: gpio: Add methods for open drain setting

2016-05-18 Thread Simon Glass
Hi Mario, On 10 May 2016 at 01:51, Mario Six wrote: > Certain GPIO devices have the capability to switch their GPIOs into > open-drain mode, that is, instead of actively driving the output > (Push-pull output), the pin is connected to the collector (for a NPN > transistor) or the drain (for a MOS

Re: [U-Boot] [PATCH v7 1/4] arm: implement generic PSCI reset call for armv8

2016-05-18 Thread Simon Glass
On 8 May 2016 at 00:30, Beniamino Galvani wrote: > Add a psci_system_reset() which calls the SYSTEM_RESET function of > PSCI 0.2 and can be used by boards that support it to implement > reset_cpu(). > > Signed-off-by: Beniamino Galvani > --- > arch/arm/cpu/armv8/fwcall.c | 16

Re: [U-Boot] [PATCH v5 3/3] spl: Support loading a FIT from FAT FS

2016-05-18 Thread Simon Glass
On 4 May 2016 at 06:04, Lokesh Vutla wrote: > Detect a FIT when loading from a FAT File system and handle it using the > new FIT SPL support. > > Signed-off-by: Lokesh Vutla > --- > common/spl/spl_fat.c | 31 +-- > 1 file changed, 29 insertions(+), 2 deletions(-) Rev

Re: [U-Boot] [PATCH v5 2/3] spl: Allow to load a FIT containing U-Boot from FS

2016-05-18 Thread Simon Glass
On 4 May 2016 at 06:04, Lokesh Vutla wrote: > This provides a way to load a FIT containing U-Boot and a selection of device > tree files from a File system. Making sure that all the reads and writes > are aligned to their respective needs. > > Signed-off-by: Lokesh Vutla > --- > common/spl/spl_f

Re: [U-Boot] [PATCH v5 1/3] spl: fit: Fix the number of bytes read when reading fdt from fit

2016-05-18 Thread Simon Glass
On 4 May 2016 at 06:04, Lokesh Vutla wrote: > sectors field is not being updated when reading fdt from fit image. Because of > this size_of(u-boot.bin) is being read when reading fdt. Fixing it by updating > the sectors field properly. > > Signed-off-by: Lokesh Vutla > --- > common/spl/spl_fit.c

Re: [U-Boot] [PATCH] mkimage: fit: spl: Add an optional static offset for external data

2016-05-18 Thread Simon Glass
Hi Teddy, On 2 May 2016 at 02:40, Teddy Reed wrote: > Hey Simon! > > On Sun, May 1, 2016 at 12:32 PM, Simon Glass wrote: >> Hi Teddy, >> >> On 1 May 2016 at 11:10, Teddy Reed wrote: >>> When building a FIT with external data (-E), an SPL may require absolute >>> positioning for executing the ex

Re: [U-Boot] [PATCH] cmd: replace the cast of the memory access to a fixed bit type in itest

2016-05-18 Thread Simon Glass
On 3 May 2016 at 23:20, Masahiro Yamada wrote: > From: Kunihiko Hayashi > > This patch fixes a bug that long word(.l) memory access in 'itest' > command reads the 8bytes of the actual memory on 64-bit architecture. > The cast to the memory pointer should use a fixed bit type. > > Signed-off-by: K

Re: [U-Boot] [PATCH] spl: fit: Print error message when FDT is not present

2016-05-18 Thread Simon Glass
On 4 May 2016 at 07:08, Michal Simek wrote: > When FDT is not present in the image user doesn't get any error what's > wrong. Print error message if LIBCOMMON_SUPPORT is enabled. > > Signed-off-by: Michal Simek > Seris-cc: uboot > --- > > common/spl/spl_fit.c | 7 ++- > 1 file changed, 6 ins

Re: [U-Boot] u-boot hangs after enabling secured boot : gumstix-overo

2016-05-18 Thread Simon Glass
Hi Arun, On 3 May 2016 at 19:50, Arun Kuttiyara Varghese wrote: > Hi Simon, > > Thanks for the help. > > There is an update. > > I experimented with the two options. > > Option 1 > = > > Like you mentioned, I tried putting all the RSA boot options to > configs/omap3_overo_defconfig. > but sur

Re: [U-Boot] [PATCH 1/2] mkimage: Report information about fpga

2016-05-18 Thread Simon Glass
On 17 May 2016 at 06:59, Michal Simek wrote: > Add FIT_FPGA_PROP that user can identify an optional > entry for fpga. > > Signed-off-by: Michal Simek > --- > > common/image-fit.c| 4 +++ > common/image.c| 1 + > doc/uImage.FIT/multi-with-fpga.its

Re: [U-Boot] [PATCH 03/12] board_f: Don't require CONFIG_SYS_MONITOR_BASE

2016-05-18 Thread Simon Glass
Hi Andreas, On 18 May 2016 at 01:34, Andreas Bießmann wrote: > Hi Simon, > > On 2016-05-15 02:49, Simon Glass wrote: >> >> Allow this to be unset, such that gd->mon_len is invalid. This seems to be >> what the sh architecture does. >> >> Signed-off-by: Simon Glass >> --- >> >> common/board_f.c

Re: [U-Boot] [PATCH v1 01/12] common: bootdelay: move CONFIG_BOOTDELAY into a Kconfig option

2016-05-18 Thread Viresh Kumar
Sorry, I had to drop the extremely long cc list, otherwise I wasn't able to reply to this email. Mutt was rejecting it for some reason. Any anyway, you should have put all those people in bcc rather. On 18-05-16, 16:18, Heiko Schocher wrote: > diff --git a/include/configs/spear-common.h b/include

Re: [U-Boot] [PATCH] video: ipu: Fix build with hard-float ARM toolchain

2016-05-18 Thread Peng Fan
Hi Guillaume, On Wed, May 18, 2016 at 02:19:43PM +0200, Guillaume GARDET wrote: >Build with hard-float ARM toolchain was broken by commit 3cb4f25c: >'video: ipu: avoid overflow issue'. >To fix it, we use do_div function. > >Build tested for mx6qsabrelite_defconfig. > >Signed-off-by: Guillaume GAR

Re: [U-Boot] [PATCH v2] armv8/ls2080ardb: Update DDR timing to support more UDIMMs

2016-05-18 Thread York Sun
On 05/17/2016 09:25 AM, York Sun wrote: > On 05/05/2016 12:29 PM, York Sun wrote: >> On 04/06/2016 11:50 PM, Shengzhou Liu wrote: >>> Optimize DDR timing for good margins to support new Transcend >>> and Apacer DDR4 UDIMM besides current Micron UDIMM. >>> >>> Verified 1333MT/s, 1600MT/s, 1866MT/s,

Re: [U-Boot] [PATCH v2] test/py: Support setting up specific timeout

2016-05-18 Thread Stephen Warren
On 05/18/2016 11:00 AM, Michal Simek wrote: Large file transfers, flash erasing and more complicated tests requires more time to finish. Provide a way to setup specific timeout directly in test. For example description for 50s test: timeout = 5 with u_boot_console.temporary_timeout(timeout):

Re: [U-Boot] [RFC] [V2] [PATCH 0/8] a83t: Add initial PSCI / SMP support

2016-05-18 Thread Timothy Pearson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 05/17/2016 09:09 PM, Chen-Yu Tsai wrote: > Hi, > > On Wed, May 18, 2016 at 3:34 AM, wrote: >> Updated to address concerns raised on mailing list. >> >> I won't have time to work on this further for a while; please feel free to >> use / merge any

[U-Boot] where is the best place to set the fdt's MAC address?

2016-05-18 Thread Robert P. J. Day
on current board, the MAC address to be used is stored in a well-known address in flash, so it's no big deal to read those six bytes, then set that property in the DTB before handing it off to the kernel. i'm wondering, though, where the "best" place is to do that. first, in "common/image-fdt

Re: [U-Boot] [PATCH v3 1/7] efi_loader: Add network access support

2016-05-18 Thread Simon Glass
+Tom Hi Alex, On 16 May 2016 at 12:06, Alexander Graf wrote: > > > On 16.05.16 15:24, Simon Glass wrote: >> Hi Alexander, >> >> On 14 May 2016 at 14:34, Alexander Graf wrote: >>> >>> Am 14.05.2016 um 21:49 schrieb Simon Glass : Hi Alexander, > On 10 May 2016 at 15:25, Al

Re: [U-Boot] Enumerate Buetooth Dongle via xHCI fails set configuration command

2016-05-18 Thread Mohammed Mohisin
Any help is highly appreciated . On Tue, May 17, 2016 at 11:00 PM, Mohammed Mohisin < mohammedmohi...@gmail.com> wrote: > Trying to enumerate a bluetooth dongle. > The connected bluetooth dongle has 2 interfaces. Pls see the bottom of the > mail for device and config descriptors. > We are usi

Re: [U-Boot] [PATCH] test/py: Support setting up specific timeout

2016-05-18 Thread Michal Simek
On 18.5.2016 18:43, Stephen Warren wrote: > On 05/18/2016 07:11 AM, Michal Simek wrote: >> Large file transfers, flash erasing and more complicated tests >> requires more time to finish. Provide a way to setup specific >> timeout directly in test. >> >> For example description for 50s test: >> time

[U-Boot] [PATCH v2] test/py: Support setting up specific timeout

2016-05-18 Thread Michal Simek
Large file transfers, flash erasing and more complicated tests requires more time to finish. Provide a way to setup specific timeout directly in test. For example description for 50s test: timeout = 5 with u_boot_console.temporary_timeout(timeout): u_boot_console.run_command(...) Signed-off

Re: [U-Boot] [PATCH 1/2] Add a reset driver framework/uclass

2016-05-18 Thread Stephen Warren
On 05/17/2016 03:56 PM, Simon Glass wrote: Hi Stephen, On 17 May 2016 at 10:46, Stephen Warren wrote: From: Stephen Warren A reset controller is a hardware module that controls reset signals that affect other hardware modules or chips. This patch defines a standard API that connects reset c

Re: [U-Boot] [PATCH v2] SPL: FIT: Enable SPL_FIT_LOAD in RAM based boot mode

2016-05-18 Thread Lokesh Vutla
On 5/18/2016 8:52 PM, Michal Simek wrote: On 18.5.2016 17:12, Lokesh Vutla wrote: On 5/17/2016 10:30 PM, Michal Simek wrote: Support loading FIT in SPL for RAM bootmode. CONFIG_SPL_LOAD_FIT_ADRESS points to address where FIT image is stored in memory. Signed-off-by: Michal Simek Reviewed-

Re: [U-Boot] [PATCH] test/py: Support setting up specific timeout

2016-05-18 Thread Stephen Warren
On 05/18/2016 07:11 AM, Michal Simek wrote: Large file transfers, flash erasing and more complicated tests requires more time to finish. Provide a way to setup specific timeout directly in test. For example description for 50s test: timeout = 5 with u_boot_console.temporary_timeout(timeout):

Re: [U-Boot] [PATCH v1 02/12] tests: py: disable main_signon check for printenv cmd

2016-05-18 Thread Stephen Warren
On 05/18/2016 08:18 AM, Heiko Schocher wrote: if CONFIG_VERSION_VARIABLE is set, the U-Boot environment contains a "vers" variable with the current U-Boot version string. If now "printenv" is called, test/py fails as it detects the main_sign string, which is in this case correct. So check only t

Re: [U-Boot] [PATCH v1 01/12] common: bootdelay: move CONFIG_BOOTDELAY into a Kconfig option

2016-05-18 Thread Stephen Warren
On 05/18/2016 08:18 AM, Heiko Schocher wrote: move CONFIG_BOOTDELAY into a Kconfig option. Used for this purpose the moveconfig.py tool in tools. Acked-by: Stephen Warren ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/list

Re: [U-Boot] [PATCH 1/3] net: xilinx: Handle error value from phy_startup()

2016-05-18 Thread Stephen Warren
On 05/18/2016 05:20 AM, Michal Simek wrote: Handle error returned by phy_startup() properly. The series, Acked-by: Stephen Warren ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

  1   2   3   >