Re: [U-Boot] [PATCH v5] bitops: introduce BIT() definition

2015-09-08 Thread Anatolij Gustschin
Hi, On Mon, 7 Sep 2015 13:43:52 +0200 Andreas Bießmann wrote: > From: Heiko Schocher > > introduce BIT() definition, used in at91_udc gadget > driver. > > Signed-off-by: Heiko Schocher > [remove all other occurrences of BIT(x)

Re: [U-Boot] Zynq build failure

2015-09-08 Thread Jagan Teki
On 8 September 2015 at 20:06, Michal Simek wrote: > On 09/08/2015 11:48 AM, Jagan Teki wrote: >> On 4 September 2015 at 14:22, Jagan Teki wrote: >>> Hi Michal/Siva, >>> >>> Any fix for this failure? >>> >>> CC spl/drivers/mtd/spi/spi_spl_load.o

[U-Boot] [PATCH] arm: socfpga: mcvevk: Update DRAM clock to 400MHz

2015-09-08 Thread Marek Vasut
The MCV SoM has DDR3-1600 DRAMs on it, update the DRAM speed to 400MHz to make use of these DRAMs completely. Signed-off-by: Marek Vasut --- board/denx/mcvevk/qts/iocsr_config.h | 128 +-- board/denx/mcvevk/qts/pll_config.h | 6 +-

[U-Boot] [PATCH 2/2] mx6sxsabresd: Remove CONFIG_SPL_FAT_SUPPORT

2015-09-08 Thread Fabio Estevam
If the SD card does not contain the u-boot.img then we get the following error: U-Boot SPL 2015.10-rc2-23947-g7ad5930 (Sep 08 2015 - 14:10:29) ** Partition 1 not valid on device 0 ** spl_register_fat_device: fat register err - -1

[U-Boot] [PATCH 1/2] mx6slevk: Remove CONFIG_SPL_FAT_SUPPORT

2015-09-08 Thread Fabio Estevam
If the SD card does not contain the u-boot.img then we get the following error: U-Boot SPL 2015.10-rc2-23947-g7ad5930 (Sep 08 2015 - 14:10:29) ** Partition 1 not valid on device 0 ** spl_register_fat_device: fat register err - -1

Re: [U-Boot] [PATCH] arm: socfpga: mcvevk: Update DRAM clock to 400MHz

2015-09-08 Thread Marek Vasut
On Tuesday, September 08, 2015 at 07:53:09 PM, Marek Vasut wrote: > The MCV SoM has DDR3-1600 DRAMs on it, update the DRAM speed > to 400MHz to make use of these DRAMs completely. > > Signed-off-by: Marek Vasut Yes, it works, applied, thanks. Best regards, Marek Vasut

[U-Boot] [PATCH 3/5] Revert "dm: Export device_remove_children / device_unbind_children"

2015-09-08 Thread Simon Glass
This reverts commit bb52b367f6ca4a3a918e77737f4ff6a1089912d9. Signed-off-by: Simon Glass --- drivers/core/device-remove.c | 22 ++ include/dm/device-internal.h | 26 -- 2 files changed, 18 insertions(+), 30 deletions(-) diff --git

[U-Boot] [PATCH 2/5] Revert "dm: usb: Use device_unbind_children to clean up usb devs on stop"

2015-09-08 Thread Simon Glass
This reverts commit 6cda369509e0d3fa5f9e33c9d71589c4523799fa. We want to avoid having the USB stack rely on unbind. Signed-off-by: Simon Glass --- drivers/usb/host/usb-uclass.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/usb/host/usb-uclass.c

[U-Boot] [PATCH 5/5] dm: usb: Deprecate usb_get_dev_index()

2015-09-08 Thread Simon Glass
This function should not be used with driver model. While there are users of USB Ethernet that use driver model for USB but not Ethernet, we have to keep it around. Add a comment to that effect. Signed-off-by: Simon Glass --- drivers/usb/host/usb-uclass.c | 9 + 1

[U-Boot] [PATCH 4/5] dm: usb: Add support for USB keyboards with driver model

2015-09-08 Thread Simon Glass
Switch USB keyboards over to use driver model instead of scanning with the horrible usb_get_dev_index() function. This involves creating a new uclass for keyboards, although so far there is no API. Signed-off-by: Simon Glass --- common/cmd_usb.c | 12 ++--

Re: [U-Boot] [PATCH 07/10] ARM: tegra: fix malloc region sizing

2015-09-08 Thread Tom Warren
Stephen, > -Original Message- > From: Stephen Warren [mailto:swar...@wwwdotorg.org] > Sent: Friday, September 04, 2015 9:04 PM > To: Tom Rini > Cc: u-boot@lists.denx.de; Simon Glass; Tom Warren; Stephen Warren; Lukasz > Majewski; Przemyslaw Marczak > Subject: [PATCH 07/10] ARM: tegra: fix

[U-Boot] [PATCH 0/5] RFC: usb: Drop requirement for USB unbinding

2015-09-08 Thread Simon Glass
There was quite a bit of discussion about the change that required the unbinding of USB devices for the subsystem to function correctly. E.g. https://patchwork.ozlabs.org/patch/485637/ The key issue is the usb_get_dev_index() function which is not a good API for driver model. We can drop use of

[U-Boot] [PATCH 1/5] Revert "dm: usb: Rename usb_find_child to usb_find_emul_child"

2015-09-08 Thread Simon Glass
This reverts commit 9b510df703d282effba4f56ac567aa8011d56e6b. We want to avoid having the USB stack rely on unbind. Signed-off-by: Simon Glass --- drivers/usb/host/usb-uclass.c | 19 ++- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git

Re: [U-Boot] [PATCH] net: eth: Do sanity test on eth dev before eth_get_ops(dev)->start

2015-09-08 Thread Joe Hershberger
Hi Bin, On Tue, Sep 8, 2015 at 11:24 AM, Bin Meng wrote: > Hi Joe, > > On Wed, Sep 9, 2015 at 12:01 AM, Joe Hershberger > wrote: >> Hi Bin, >> >> On Tue, Sep 8, 2015 at 10:44 AM, Bin Meng wrote: >>> Hi Joe, >>> >>> On Tue, Sep

[U-Boot] [PATCH 2/4] imx-common: cpu: Do not print on invalid temperature

2015-09-08 Thread Fabio Estevam
It is not very useful to have the message below on every boot (especially when we are using early silicon): U-Boot 2015.10-rc2-23945-g37cf215 (Sep 08 2015 - 14:12:14 -0300) CPU: Freescale i.MX6UL rev1.0 792 MHz (running at 396 MHz) CPU: Commercial temperature grade (0C to 95C)CPU: Thermal

Re: [U-Boot] [PATCH v5] bitops: introduce BIT() definition

2015-09-08 Thread ivan.khoronzhuk
Hi, Andreas On 07.09.15 14:43, Andreas Bießmann wrote: From: Heiko Schocher introduce BIT() definition, used in at91_udc gadget driver. Signed-off-by: Heiko Schocher [remove all other occurrences of BIT(x) definition] Signed-off-by: Andreas Bießmann

[U-Boot] [PATCH 3/4] mx6ul_14x14_evk: Remove CONFIG_SPL_FAT_SUPPORT

2015-09-08 Thread Fabio Estevam
If the SD card does not contain the u-boot.img then we get the following error: U-Boot SPL 2015.10-rc2-23947-g7ad5930 (Sep 08 2015 - 14:10:29) ** Partition 1 not valid on device 0 ** spl_register_fat_device: fat register err - -1

[U-Boot] [PATCH 4/4] mx6ul_14x14_evk: Add a README file

2015-09-08 Thread Fabio Estevam
Add a README file to help users getting started with the board. Signed-off-by: Fabio Estevam --- board/freescale/mx6ul_14x14_evk/README | 32 1 file changed, 32 insertions(+) create mode 100644 board/freescale/mx6ul_14x14_evk/README

[U-Boot] [PATCH 1/4] thermal: imx_thermal: Do not print on error

2015-09-08 Thread Fabio Estevam
It is not very useful to have the message below on every boot (especially when we are using early silicon): U-Boot 2015.10-rc2-23945-g37cf215 (Sep 08 2015 - 14:12:14 -0300) CPU: Freescale i.MX6UL rev1.0 792 MHz (running at 396 MHz) CPU: Commercial temperature grade (0C to 95C)CPU: Thermal

Re: [U-Boot] [PATCH v4 1/4] bitops: introduce BIT() definition

2015-09-08 Thread Jagan Teki
On 21 August 2015 at 22:31, Heiko Schocher wrote: > introduce BIT() definition, used in at91_udc gadget > driver. > > Signed-off-by: Heiko Schocher > > --- > > Changes in v4: None > Changes in v3: > - new in v3 > > Changes in v2: None > > include/linux/bitops.h | 2

[U-Boot] [PATCH] arm: serial: Add debug UART capability to the pl01x driver

2015-09-08 Thread Sergey Temerkhanov
This patch adds an ability to use pl01x as a debug UART. It must be configured like other types of debug UARTs Signed-off-by: Sergey Temerkhanov Signed-off-by: Radha Mohan Chintakuntla --- drivers/serial/Kconfig| 20

Re: [U-Boot] [PATCH 4/5] dm: usb: Add support for USB keyboards with driver model

2015-09-08 Thread Marek Vasut
On Tuesday, September 08, 2015 at 07:15:11 PM, Simon Glass wrote: > Switch USB keyboards over to use driver model instead of scanning with the > horrible usb_get_dev_index() function. This involves creating a new uclass > for keyboards, although so far there is no API. Hi, Why don't you create

[U-Boot] [PATCH] nios2: zap version_string

2015-09-08 Thread Thomas Chou
There is a weak version_string[] at common/cmd_version.c . Remove the one in start.S. Signed-off-by: Thomas Chou --- arch/nios2/cpu/start.S | 6 -- 1 file changed, 6 deletions(-) diff --git a/arch/nios2/cpu/start.S b/arch/nios2/cpu/start.S index e92f06e..5c7074e

Re: [U-Boot] [PATCH] usb: gadget: ci_udc: implement usb_ep_ops dequeue callback

2015-09-08 Thread Peng Fan
Hi Marek, On Wed, Sep 09, 2015 at 11:24:37AM +0800, Peng Fan wrote: >On Tue, Sep 08, 2015 at 07:17:22PM -0700, Stephen Warren wrote: >>On 09/03/2015 03:11 PM, Marek Vasut wrote: >>> On Tuesday, September 01, 2015 at 09:45:12 PM, Stephen Warren wrote: On 08/30/2015 12:26 AM, Peng Fan wrote:

Re: [U-Boot] [PATCH v2 7/8] nios2: show fdt blob address in board info command

2015-09-08 Thread Thomas Chou
On 09/04/2015 08:22 PM, Thomas Chou wrote: Show fdt blob address in board info command. Signed-off-by: Thomas Chou --- common/cmd_bdinfo.c | 3 +++ 1 file changed, 3 insertions(+) Applied to u-boot-nios2. ___ U-Boot

[U-Boot] [PATCH 02/28] input: Add a device pointer to the input config

2015-09-08 Thread Simon Glass
The read_keys() method in input is passed a struct input_config. Add a device pointer there so that we can find out the device that is referred to with driver model. Once all drivers are converted we can update the input structure to use driver model instead. Signed-off-by: Simon Glass

[U-Boot] [PATCH 07/28] dm: tegra: Convert keyboard driver to driver model

2015-09-08 Thread Simon Glass
Adjust the tegra keyboard driver to support driver model, using the new uclass. Make this the default for all Tegra boards so that those that use a keyboard will build correctly with this driver. Signed-off-by: Simon Glass --- arch/arm/mach-tegra/Kconfig | 1 +

[U-Boot] [PATCH 01/28] dm: input: Create a keyboard uclass

2015-09-08 Thread Simon Glass
Add a uclass for keyboard input, mirroring the existing stdio methods. This is enabled by a new CONFIG_DM_KEYBOARD option. Signed-off-by: Simon Glass --- common/usb_kbd.c| 6 --- drivers/input/Kconfig | 9 + drivers/input/Makefile |

[U-Boot] [PATCH 03/28] input: Return -ENOSPC when there is not space

2015-09-08 Thread Simon Glass
Return a useful error instead of -1 when something goes wrong. Signed-off-by: Simon Glass --- drivers/input/input.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/input/input.c b/drivers/input/input.c index 007b855..9033935 100644 ---

[U-Boot] [PATCH 09/28] video: Drop unused console functions

2015-09-08 Thread Simon Glass
CONFIG_CONSOLE_CURSOR, CONFIG_SYS_CONSOLE_BLINK_COUNT and CONFIG_CONSOLE_TIME are not used by any board. The implementation is not great and stands in the way of a refactor of i8042. Drop these for now. They can be re-introduced quite easily later, perhaps with driver model RTC support. When

[U-Boot] [PATCH 06/28] dm: stdio: Plumb in the new keyboard uclass

2015-09-08 Thread Simon Glass
When driver model is used for keyboards we must scan the available keyboards and register them with stdio. Add code to do this. At some point (once LCD/video is converted) we should be able to convert stdio to driver model and avoid these dual data structures. Signed-off-by: Simon Glass

[U-Boot] [PATCH 05/28] cros_ec: Use udevice instead of cros_ec_dev for keyboard functions

2015-09-08 Thread Simon Glass
In preparation for converting the cros_ec keyboard driver to driver model, adjust the cros_ec functions it will use to use a normal struct udevice. Signed-off-by: Simon Glass --- drivers/input/cros_ec_keyb.c | 4 ++-- drivers/misc/cros_ec.c | 14 +-

[U-Boot] [PATCH 04/28] input: Add the keycode translation tables separately

2015-09-08 Thread Simon Glass
Require the caller to add the keycode translation tables separately so that it can select which ones to use. In a later patch we will add the option to add German tables. Signed-off-by: Simon Glass --- board/kosagi/novena/novena.c | 1 + drivers/input/cros_ec_keyb.c | 1 +

[U-Boot] [PATCH 08/28] dm: cros_ec: Convert cros_ec keyboard driver to driver model

2015-09-08 Thread Simon Glass
Adjust the cros_ec keyboard driver to support driver model. Make this the default for all Exynos boards so that those that use a keyboard will build correctly with this driver. Signed-off-by: Simon Glass --- README | 5 -- arch/arm/Kconfig

[U-Boot] [PATCH 25/28] Drop CONFIG_ISA_KEYBOARD

2015-09-08 Thread Simon Glass
This option is mentioned but does not do anything. Drop it. Signed-off-by: Simon Glass --- README | 11 ++- board/mpl/pip405/README | 4 include/configs/MIP405.h | 5 - include/configs/PIP405.h | 5 - 4 files changed, 6

[U-Boot] [PATCH 11/28] i8042: Handle a duplicate power-on-reset response

2015-09-08 Thread Simon Glass
Sometimes we seem to get 0xaa twice which causes the config read to fail. This causes chromebook_link to fail to set up the keyboard. Add a check for this and read the config again when detected. Signed-off-by: Simon Glass --- drivers/input/i8042.c | 2 ++ 1 file changed, 2

[U-Boot] [PATCH 10/28] i8042: Use functions to handle register access

2015-09-08 Thread Simon Glass
At present the register access in kbd_reset() is quite primitive. This makes it hard to follow. Create functions to read and write data, both to a single register, and via the command/data approach. Signed-off-by: Simon Glass --- drivers/input/i8042.c | 75

[U-Boot] [PATCH 16/28] input: Add a function to add a keycode to the existing set

2015-09-08 Thread Simon Glass
Most keyboards can be scanned to produce a list of the keycodes which are depressed. With the i8042 keyboard this scanning is done internally and only the processed results are returned. In this case, when a key is pressed, a 'make' code is sent. When the key is released an 'unmake' code is sent.

[U-Boot] [PATCH 17/28] input: Allow repeat filtering to be disabled

2015-09-08 Thread Simon Glass
Generally the input library handles processing of a list of scanned keys. Repeated keys need to be generated based on a timer in this case, since all that is provided is a list of keys current depressed. Keyboards which do their own scanning will resend codes when they want to inject a repeating

[U-Boot] [PATCH 26/28] input: Convert i8042 to driver model

2015-09-08 Thread Simon Glass
Adjust this driver to support driver model. The only users are x86 boards so this should be safe. Signed-off-by: Simon Glass --- drivers/input/Makefile | 2 +- drivers/input/i8042.c | 113 - include/i8042.h| 6 ---

[U-Boot] [PATCH 12/28] i8042: Adjust kbd_reset() to collect all failures

2015-09-08 Thread Simon Glass
Rather than lots of 'return' statements, use goto to a single return. Signed-off-by: Simon Glass --- drivers/input/i8042.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/drivers/input/i8042.c b/drivers/input/i8042.c index c6a92a2..ef01bd0

[U-Boot] [PATCH 20/28] input: Handle caps lock

2015-09-08 Thread Simon Glass
When caps lock is enabled we should convert lower case to upper case. Add this to the input key processing so that caps lock works correctly. Signed-off-by: Simon Glass --- drivers/input/input.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git

[U-Boot] [PATCH 13/28] i8042: Adjust keyboard init to assume success

2015-09-08 Thread Simon Glass
Modify i8042_kbd_init() so that the normal pass is sucessful init and failure exits early. This will make the code easier to extend and is easier to read. Signed-off-by: Simon Glass --- drivers/input/i8042.c | 19 +-- 1 file changed, 9 insertions(+), 10

[U-Boot] [PATCH 27/28] video: input: Clean up after i8042 conversion

2015-09-08 Thread Simon Glass
Now that i8042 uses driver model, adjust other mentions of it and remove old code that is no-longer used. Update the README and unify the keyboard text into one place. Signed-off-by: Simon Glass --- README | 33 +++--

Re: [U-Boot] [PATCH] usb: gadget: ci_udc: implement usb_ep_ops dequeue callback

2015-09-08 Thread Peng Fan
On Tue, Sep 08, 2015 at 07:17:22PM -0700, Stephen Warren wrote: >On 09/03/2015 03:11 PM, Marek Vasut wrote: >> On Tuesday, September 01, 2015 at 09:45:12 PM, Stephen Warren wrote: >>> On 08/30/2015 12:26 AM, Peng Fan wrote: Hi Stephen, >> >> Hi, >> >> sorry for the delayed reply, I had to

[U-Boot] [PATCH 23/28] input: Add a Kconfig option for the i8042 keyboard

2015-09-08 Thread Simon Glass
Add a new option CONFIG_I8042_KEYB which will replace the current CONFIG_I8042_KBD. This new name fits better with existing drivers. Signed-off-by: Simon Glass --- drivers/input/Kconfig | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/input/Kconfig

[U-Boot] [PATCH 18/28] input: Support the German keymap

2015-09-08 Thread Simon Glass
Add support for the German keymap, taken from i8042.c. This can be selected when the input library it initialised. Signed-off-by: Simon Glass --- board/kosagi/novena/novena.c | 2 +- drivers/input/cros_ec_keyb.c | 2 +- drivers/input/input.c| 82

[U-Boot] [PATCH 22/28] input: i8042: Convert to use the input library

2015-09-08 Thread Simon Glass
At present the i8042 driver has its own logic and keymaps. In an effort to unify the code, move it over to use the input library. This changes most of the keycode-processing logic since it is now in that library. The main responsibilities of the driver are now to handle the LEDs, deal with the

[U-Boot] [PATCH 28/28] input: Convert 'keyboard' driver to use input library

2015-09-08 Thread Simon Glass
This has duplicated scan code tables and logic. We can use the input library to implement most of the features here. This needs testing. The only supported board appears to be TQM5200. Unfortunately no maintainer is listed for this board. Signed-off-by: Simon Glass ---

[U-Boot] [PATCH 15/28] input: Add a few more keyboard keycodes

2015-09-08 Thread Simon Glass
The slash and * are missing from the keycode tables. Add these so that these keypad keys can be used. Signed-off-by: Simon Glass --- drivers/input/input.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/input/input.c b/drivers/input/input.c

Re: [U-Boot] [PATCH 3/4] mx6ul_14x14_evk: Remove CONFIG_SPL_FAT_SUPPORT

2015-09-08 Thread Peng Fan
Hi Fabio, On Tue, Sep 08, 2015 at 02:43:11PM -0300, Fabio Estevam wrote: >If the SD card does not contain the u-boot.img then we get the >following error: > >U-Boot SPL 2015.10-rc2-23947-g7ad5930 (Sep 08 2015 - 14:10:29) > >** Partition 1 not valid on device 0 **

[U-Boot] [PATCH 24/28] x86: Add an i8042 device for boards that have it

2015-09-08 Thread Simon Glass
Some boards have an i8042 device. Enable the driver for all x86 boards, and add a device tree node for those which may have this keyboard. Also adjust the configuration so that i8042 is always separate from the VGA, and rename the stdin driver accordingly. With this commit the keyboard will not

[U-Boot] [PATCH 14/28] input: Correct keycode for Ctrl-Y

2015-09-08 Thread Simon Glass
This code is currently incorrect, perhaps due to a typo. Fix it. Signed-off-by: Simon Glass --- drivers/input/input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/input.c b/drivers/input/input.c index 0f11ae6..95006a9 100644 ---

[U-Boot] [PATCH 19/28] input: Adjust structure of code in process_modifier()

2015-09-08 Thread Simon Glass
Move all the '!release' code into one block so that it is clear that it only applies on key release. Signed-off-by: Simon Glass --- drivers/input/input.c | 27 ++- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/drivers/input/input.c

[U-Boot] [PATCH 21/28] input: Allow updating of keyboard LEDs

2015-09-08 Thread Simon Glass
Add a function which returns a new keyboard LED value when the LEDs need updating. Signed-off-by: Simon Glass --- drivers/input/input.c | 9 + include/input.h | 14 +- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git

[U-Boot] PCI configuration Issue for QEMU ACPI Support

2015-09-08 Thread Saket Sinha
Hi, This is regarding the PCI configuration Issue for QEMU ACPI Support. I am comparing arch/x86/cpu/qemu/acpi/pci-crs.asl and arch/x86/dts/qemu-x86_q35.dts and we find there are different ranges been specified for PCI configuration in both the files. As per my understanding for Qemu q35

[U-Boot] [PATCH] nios2: zap dly_clks

2015-09-08 Thread Thomas Chou
The dly_clks() in start.S is no use after switching to generic timer. Remove it. Signed-off-by: Thomas Chou --- arch/nios2/cpu/start.S | 33 - 1 file changed, 33 deletions(-) diff --git a/arch/nios2/cpu/start.S b/arch/nios2/cpu/start.S

[U-Boot] [PATCH 00/28] dm: input: Move keyboard drivers to driver model

2015-09-08 Thread Simon Glass
This series adds a new uclass for keyboards and converts some drivers over to use it. This series includes some work to remove code duplication in the keyboard drivers by updating them to use the input library (input.c). This unifies the keycode decoding logic in one place. In order to do this

<    1   2