[U-Boot] Possible GPL violation

2013-02-19 Thread Mateusz Kulikowski
Hi, Short version: Is there anyone that can support me with enforcing GPL compliance on company that ships product with binary u-boot? Or did that in the past? Long version: Polish market is flooded with cheap DVB-T receivers (we're switching to digital tv now), android tablets etc. They're

Re: [U-Boot] Possible GPL violation

2013-02-20 Thread Mateusz Kulikowski
Dear Wolfgang, On 20.02.2013 15:24, Wolfgang Denk wrote: They're "made" (branded is probably better word) by local companies, and my guess is that most of them is violating GPL. Guesses are not good enough in such legal affairs. I know, that's why I'm not asking for help with "all" devices,

[U-Boot] [PATCH] usb:ohci-hcd: submit_common_msg: report actual_length properly

2013-10-22 Thread Mateusz Kulikowski
submit_common_msg should report amount of data passed from/to device. Instead, it always returned size requested by Host. Signed-off-by: Mateusz Kulikowski --- drivers/usb/host/ohci-hcd.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/host/ohci-hcd.c b

[U-Boot] [PATCH v2] usb: ohci-hcd: submit_common_msg: report actual_length properly

2013-10-23 Thread Mateusz Kulikowski
submit_common_msg should report amount of data passed from/to device. Instead, it always returned size requested by Host. Signed-off-by: Mateusz Kulikowski --- drivers/usb/host/ohci-hcd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/host/ohci-hcd.c b/drivers

[U-Boot] [PATCH] arm: at91: support for the Calao USB-A9263 board (based on AT91SAM9263)

2013-10-27 Thread Mateusz Kulikowski
Add support for USB-A9263 board manufactured by Calao Systems (http://www.calao-systems.com/). Code is based on old U-Boot sources (2010.09) released by Calao and existing AT92SAM9263-EK code. Signed-off-by: Mateusz Kulikowski --- board/calao/usb_a9263/Makefile| 35 board/calao

Re: [U-Boot] [PATCH] arm: at91: support for the Calao USB-A9263 board (based on AT91SAM9263)

2013-10-28 Thread Mateusz Kulikowski
Hi Bo Shen, Thanks for the check, please see below. On 28.10.2013 05:57, Bo Shen wrote: Hi Mateusz Kulikowski, Add Andreas in loop. On 10/28/2013 03:34, Mateusz Kulikowski wrote: (...) +/* + * Disable pull-up on: + * RXDV (PC25) => PHY normal mode (not Test m

Re: [U-Boot] [PATCH] arm: at91: support for the Calao USB-A9263 board (based on AT91SAM9263)

2013-10-30 Thread Mateusz Kulikowski
Hi Heiko, Sorry for late reply. On 29.10.2013 06:20, Heiko Schocher wrote: I don't understand something here: - this address is hardcoded in AT91bootstrap (as well as image size - 0x31000), Do you have the source code? Yes I do, it even seems to work properly after recompilation (with barem

Re: [U-Boot] [PATCH] arm: at91: support for the Calao USB-A9263 board (based on AT91SAM9263)

2013-10-30 Thread Mateusz Kulikowski
Hi, On 29.10.2013 06:24, Bo Shen wrote: You can use GPIO API for USB-A9263 in this patch. And send another patch to fix at91sam9263ek board (I can help test the patch for at91sam9263ek board). Will do it in next 2 days (unless someone will be faster). or - Should I add low-level initializa

Re: [U-Boot] [PATCH] arm: at91: support for the Calao USB-A9263 board (based on AT91SAM9263)

2013-11-01 Thread Mateusz Kulikowski
Dear Andreas Bießmann, On 29.10.2013 10:12, Andreas Bießmann wrote: + +/*define the area offsets*/ +dataflash_protect_t area_list[NB_DATAFLASH_AREA] = { +{0x, 0x1FFF, FLAG_PROTECT_SET, 0, "Bootstrap"}, +{0x2000, 0x3FFF, FLAG_PROTECT_CLEAR, 0, "Environment"}, +{0x

[U-Boot] [PATCH v2] arm: at91: support for the Calao USB-A9263 board (based on AT91SAM9263)

2013-11-01 Thread Mateusz Kulikowski
Add support for USB-A9263 board manufactured by Calao Systems (http://www.calao-systems.com/). Code is based on old U-Boot sources (2010.09) released by Calao and existing AT92SAM9263-EK code. Signed-off-by: Mateusz Kulikowski --- board/calao/usb_a9263/Makefile| 34 board/calao

Re: [U-Boot] [PATCH v2] arm: at91: support for the Calao USB-A9263 board (based on AT91SAM9263)

2013-11-28 Thread Mateusz Kulikowski
Dear Andreas Bießmann, On 11.11.2013 12:03, Andreas Bießmann wrote: (...) +#include +#if defined(CONFIG_MACB) I think we can include the headers unconditionally, or is there a problem? No problem with that. + + writel(1 << ATMEL_ID_PIOA | 1 << ATMEL_ID_PIOCDE, &pmc->pcer); + +

[U-Boot] [PATCH v3] arm: at91: support for the Calao USB-A9263 board (based on AT91SAM9263)

2013-12-02 Thread Mateusz Kulikowski
Add support for USB-A9263 board manufactured by Calao Systems (http://www.calao-systems.com/). Code is based on old U-Boot sources (2010.09) released by Calao. Signed-off-by: Mateusz Kulikowski --- Changes for v3 - Updated Makefile to a new build system - Use generic GPIO for NAND and MAC

Re: [U-Boot] u-boot on Intrinsyc dragonboard 810.

2015-12-02 Thread Mateusz Kulikowski
m boot > > loader). Intend to add more features. > > > >Just wondering should I post a patch here against > > https://github.com/hallor/u-boot/ for my changes? > > First, it should be sent to that tree as there is not currently > dragonboard support in mainline.

[U-Boot] [RFC PATCH 00/11] Add support for 96boards Dragonboard410C board

2015-12-10 Thread Mateusz Kulikowski
be trivial, with ULPI it's worse as in my opinion it needs slight redesign (use phaddr_t or something). Is it ok if I redesign that? Or just ignore warnings or write my own ulpi code (I wanted to avoid code duplication) Best Regards, Mateusz Mateusz Kulikowski (11): serial: Add supp

[U-Boot] [RFC PATCH 03/11] mmc: Add support for Qualcomm SDHCI controller

2015-12-10 Thread Mateusz Kulikowski
Signed-off-by: Mateusz Kulikowski --- drivers/mmc/Kconfig | 6 ++ drivers/mmc/Makefile| 1 + drivers/mmc/msm_sdhci.c | 149 3 files changed, 156 insertions(+) create mode 100644 drivers/mmc/msm_sdhci.c diff --git a/drivers/mmc

[U-Boot] [RFC PATCH 02/11] gpio: Add support for Qualcomm gpio controller

2015-12-10 Thread Mateusz Kulikowski
Add support for gpio controllers on Qualcomm Snapdragon devices. This devices are usually called Top Level Mode Multiplexing in Qualcomm documentation. Signed-off-by: Mateusz Kulikowski --- drivers/gpio/Kconfig| 7 +++ drivers/gpio/Makefile | 2 +- drivers/gpio/msm_gpio.c | 115

[U-Boot] [RFC PATCH 01/11] serial: Add support for Qualcomm serial port

2015-12-10 Thread Mateusz Kulikowski
This driver works in "new" Data Mover UART mode, so will be compatible with modern Qualcomm chips only. Signed-off-by: Mateusz Kulikowski --- drivers/serial/Kconfig | 5 ++ drivers/serial/Makefile | 1 + drivers/serial/serial_m

[U-Boot] [RFC PATCH 04/11] ehci-hcd: Add init_after_reset

2015-12-10 Thread Mateusz Kulikowski
Some host controllers need addidional initialization after ehci_reset() In non-dm implementation it is possible to use CONFIG_EHCI_HCD_INIT_AFTER_RESET. This patch adds similar option to ehci drivers using dm. Signed-off-by: Mateusz Kulikowski --- drivers/usb/host/ehci-hcd.c | 6

[U-Boot] [RFC PATCH 07/11] drivers: spmi: Add support for Qualcomm SPMI bus driver

2015-12-10 Thread Mateusz Kulikowski
Support SPMI arbiter on Qualcomm Snapdragon devices. Signed-off-by: Mateusz Kulikowski --- drivers/spmi/Kconfig| 6 ++ drivers/spmi/Makefile | 1 + drivers/spmi/spmi-msm.c | 183 3 files changed, 190 insertions(+) create mode 100644

[U-Boot] [RFC PATCH 05/11] ehci: Add support for Qualcomm EHCI

2015-12-10 Thread Mateusz Kulikowski
This driver is able to reconfigure OTG controller into HOST mode. Board can add board-specific initialization as board_prepare_usb(). It requires USB_ULPI_VIEWPORT enabled in board configuration. Signed-off-by: Mateusz Kulikowski --- drivers/usb/host/Kconfig| 8 ++ drivers/usb/host

[U-Boot] [RFC PATCH 06/11] drivers: Add SPMI bus uclass

2015-12-10 Thread Mateusz Kulikowski
write interface. Signed-off-by: Mateusz Kulikowski --- drivers/Kconfig| 2 ++ drivers/Makefile | 1 + drivers/spmi/Kconfig | 10 + drivers/spmi/Makefile | 7 ++ drivers/spmi/spmi-uclass.c | 53 ++ include/dm/u

[U-Boot] [RFC PATCH 10/11] arm: Add support for Qualcomm Snapdragon family

2015-12-10 Thread Mateusz Kulikowski
First supported chip is APQ8016 (that is compatible with MSM8916). Drivers in SoC code: - Reset controller (PSHOLD) - Clock controller (very simple clock configuration for MMC and UART) Signed-off-by: Mateusz Kulikowski --- arch/arm/Kconfig | 12 + arch/arm

[U-Boot] [RFC PATCH 08/11] pmic: Add support for Qualcomm PM8916 PMIC

2015-12-10 Thread Mateusz Kulikowski
This PMIC is connected on SPMI bus so needs SPMI support enabled. Signed-off-by: Mateusz Kulikowski --- drivers/power/pmic/Kconfig | 14 +++ drivers/power/pmic/Makefile | 1 + drivers/power/pmic/pm8916.c | 92 + 3 files changed, 107 insertions

[U-Boot] [RFC PATCH 09/11] gpio: Add support for Qualcomm PM8916 gpios

2015-12-10 Thread Mateusz Kulikowski
This driver supports GPIOs present on PM8916 PMIC. There are 2 device drivers inside: - GPIO driver (4 "generic" GPIOs) - Keypad driver that presents itself as GPIO with 2 inputs (power and reset) Signed-off-by: Mateusz Kulikowski --- drivers/gpio/Kconfig | 7 ++ drivers/gpi

[U-Boot] [RFC PATCH 11/11] board: Add Qualcomm Dragonboard 410C support

2015-12-10 Thread Mateusz Kulikowski
: https://github.com/hallor/u-boot Signed-off-by: Mateusz Kulikowski --- arch/arm/dts/Makefile| 2 + arch/arm/dts/dragonboard410c.dts | 157 +++ arch/arm/mach-snapdragon/Kconfig | 9 ++ board/qualcomm/dragonboard410c

Re: [U-Boot] [RFC PATCH 05/11] ehci: Add support for Qualcomm EHCI

2015-12-13 Thread Mateusz Kulikowski
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi, Thanks for quick review; On 11.12.2015 00:22, Marek Vasut wrote: > On Thursday, December 10, 2015 at 10:41:41 PM, Mateusz Kulikowski wrote: [...] >> + >> +#ifndef CONFIG_USB_ULPI_VIEWPORT >> +#error Please enable CON

[U-Boot] [PATCH 0/5] Add wait_for_bit()

2015-12-14 Thread Mateusz Kulikowski
x27;s not a big issue as this driver seems unused, but if it's an issue - please drop that patch. Mateusz Kulikowski (5): lib: Add wait_for_bit usb: dwc2: Use shared wait_for_bit usb: ohci-lpc32xx: Use shared wait_for_bit usb: ehci-mx6: Use shared wait_for_bit net: zynq_gem: Use

[U-Boot] [PATCH 2/5] usb: dwc2: Use shared wait_for_bit

2015-12-14 Thread Mateusz Kulikowski
Use existing library function to poll bit(s). Update configs using dwc2. Signed-off-by: Mateusz Kulikowski --- drivers/usb/host/dwc2.c | 43 +++- include/configs/hikey.h | 1 + include/configs/rpi-common.h | 1 + include/configs

[U-Boot] [PATCH 1/5] lib: Add wait_for_bit

2015-12-14 Thread Mateusz Kulikowski
Add function to poll register waiting for specific bit(s). Similar functions are implemented in few drivers - they are almost identical and can be generalized. Signed-off-by: Mateusz Kulikowski --- include/wait_bit.h | 34 ++ lib/Kconfig| 4 lib

[U-Boot] [PATCH 3/5] usb: ohci-lpc32xx: Use shared wait_for_bit

2015-12-14 Thread Mateusz Kulikowski
Use existing library function to poll bit(s). No config files are updated, as there is no board using this driver. Signed-off-by: Mateusz Kulikowski --- drivers/usb/host/ohci-lpc32xx.c | 36 ++-- 1 file changed, 10 insertions(+), 26 deletions(-) diff --git a

[U-Boot] [PATCH 4/5] usb: ehci-mx6: Use shared wait_for_bit

2015-12-14 Thread Mateusz Kulikowski
Use existing library function to poll bit(s). Update configs using ehci-mx6. Signed-off-by: Mateusz Kulikowski --- drivers/usb/host/ehci-mx6.c | 37 +-- include/configs/aristainetos-common.h | 1 + include/configs/cgtqmx6eval.h | 1 + include

[U-Boot] [PATCH 5/5] net: zynq_gem: Use shared wait_for_bit

2015-12-14 Thread Mateusz Kulikowski
Use existing library function to poll bit(s). Signed-off-by: Mateusz Kulikowski --- drivers/net/Kconfig| 1 + drivers/net/zynq_gem.c | 35 ++- 2 files changed, 3 insertions(+), 33 deletions(-) diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig index

Re: [U-Boot] [PATCH 3/5] usb: ohci-lpc32xx: Use shared wait_for_bit

2015-12-15 Thread Mateusz Kulikowski
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 15.12.2015 19:49, LEMIEUX, SYLVAIN wrote: > >> From: U-Boot [mailto:u-boot-boun...@lists.denx.de] On Behalf Of Mateusz >> Kulikowski >> Sent: 14-Dec-15 7:09 PM >> To: u-boot@lists.denx.de; Marek Vasut; Joe Hers

Re: [U-Boot] [PATCH 2/5] usb: dwc2: Use shared wait_for_bit

2015-12-15 Thread Mateusz Kulikowski
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 15.12.2015 01:21, Marek Vasut wrote: > On Tuesday, December 15, 2015 at 01:09:24 AM, Mateusz Kulikowski wrote: [...] > > Just enable this stuff by default (ie. dont introduce new config option, > just use obj-y in lib/Makefile).

Re: [U-Boot] [RFC PATCH 00/11] Add support for 96boards Dragonboard410C board

2015-12-15 Thread Mateusz Kulikowski
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 15.12.2015 19:57, sk.syed2 wrote: >> >> With a slight delay (Sorry Syed) I'm finally ready to show code >> I've been working recently on. > > Thanks for the patches. I will update my git tree for snapdragon_810 > with these changes. I only have s

[U-Boot] [PATCH v2 0/5] Add wait_for_bit()

2015-12-16 Thread Mateusz Kulikowski
but if it's an issue - please drop that patch. Mateusz Kulikowski (5): lib: Add wait_for_bit usb: dwc2: Use shared wait_for_bit usb: ohci-lpc32xx: Use shared wait_for_bit usb: ehci-mx6: Use shared wait_for_bit net: zynq_gem: Use shared wait_for_bit drivers/net

[U-Boot] [PATCH v2 3/5] usb: ohci-lpc32xx: Use shared wait_for_bit

2015-12-16 Thread Mateusz Kulikowski
Use existing library function to poll bit(s). Signed-off-by: Mateusz Kulikowski Tested-by: Sylvain Lemieux --- drivers/usb/host/ohci-lpc32xx.c | 34 +++--- 1 file changed, 7 insertions(+), 27 deletions(-) diff --git a/drivers/usb/host/ohci-lpc32xx.c b/drivers/usb

[U-Boot] [PATCH v2 2/5] usb: dwc2: Use shared wait_for_bit

2015-12-16 Thread Mateusz Kulikowski
Use existing library function to poll bit(s). Signed-off-by: Mateusz Kulikowski --- drivers/usb/host/dwc2.c | 41 + 1 file changed, 13 insertions(+), 28 deletions(-) diff --git a/drivers/usb/host/dwc2.c b/drivers/usb/host/dwc2.c index 541c0f9..42d31e3

[U-Boot] [PATCH v2 1/5] lib: Add wait_for_bit

2015-12-16 Thread Mateusz Kulikowski
Add function to poll register waiting for specific bit(s). Similar functions are implemented in few drivers - they are almost identical and can be generalized. Signed-off-by: Mateusz Kulikowski --- include/wait_bit.h | 35 +++ lib/Makefile | 1 + lib

[U-Boot] [PATCH v2 4/5] usb: ehci-mx6: Use shared wait_for_bit

2015-12-16 Thread Mateusz Kulikowski
Use existing library function to poll bit(s). Signed-off-by: Mateusz Kulikowski --- drivers/usb/host/ehci-mx6.c | 32 1 file changed, 4 insertions(+), 28 deletions(-) diff --git a/drivers/usb/host/ehci-mx6.c b/drivers/usb/host/ehci-mx6.c index 2666351..e1c67f7

[U-Boot] [PATCH v2 5/5] net: zynq_gem: Use shared wait_for_bit

2015-12-16 Thread Mateusz Kulikowski
Use existing library function to poll bit(s). Signed-off-by: Mateusz Kulikowski --- drivers/net/zynq_gem.c | 35 ++- 1 file changed, 2 insertions(+), 33 deletions(-) diff --git a/drivers/net/zynq_gem.c b/drivers/net/zynq_gem.c index 0a41281..430c2a4 100644

Re: [U-Boot] [RFC PATCH 01/11] serial: Add support for Qualcomm serial port

2015-12-16 Thread Mateusz Kulikowski
usz, > > On 10 December 2015 at 14:41, Mateusz Kulikowski > wrote: [...] >> +static int msm_serial_getc(struct udevice *dev) >> +{ >> + struct msm_serial_data *p = dev_get_priv(dev); >> + unsigned sr; >> + char c; >> + >> +

Re: [U-Boot] [RFC PATCH 03/11] mmc: Add support for Qualcomm SDHCI controller

2015-12-16 Thread Mateusz Kulikowski
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi Simon, On 15.12.2015 19:58, Simon Glass wrote: > Hi Mateusz, > > On 10 December 2015 at 14:41, Mateusz Kulikowski > wrote: [...] >> +DECLARE_GLOBAL_DATA_PTR; >> + >> +static int msm_sdc_clk_init(struct udevi

Re: [U-Boot] [RFC PATCH 05/11] ehci: Add support for Qualcomm EHCI

2015-12-16 Thread Mateusz Kulikowski
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi Marek, On 13.12.2015 16:48, Marek Vasut wrote: > On Sunday, December 13, 2015 at 01:38:41 PM, Mateusz Kulikowski wrote: [...] >> It doesn't matter if I add it as >> select USB_ULPI_VIEWPORT >> in us

Re: [U-Boot] [RFC PATCH 06/11] drivers: Add SPMI bus uclass

2015-12-16 Thread Mateusz Kulikowski
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi Simon, On 15.12.2015 19:58, Simon Glass wrote: > Hi Matheusz, > > On 10 December 2015 at 14:41, Mateusz Kulikowski > wrote: [...] >> + >> +/** >> + * struct dm_spmi_ops - SPMI device I/O interface >>

Re: [U-Boot] [PATCH v2 1/5] lib: Add wait_for_bit

2015-12-16 Thread Mateusz Kulikowski
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi Marek, On 16.12.2015 23:11, Marek Vasut wrote: > On Wednesday, December 16, 2015 at 10:58:38 PM, Mateusz Kulikowski wrote: [...] >> +#include >> +#include >> +#include >> + >> +int wait_for_bit(const char *

Re: [U-Boot] [RFC PATCH 03/11] mmc: Add support for Qualcomm SDHCI controller

2015-12-19 Thread Mateusz Kulikowski
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi Simon, On 18.12.2015 23:41, Simon Glass wrote: > Hi Mateusz, > > On 16 December 2015 at 15:46, Mateusz Kulikowski > wrote: [...] >> I'm not sure if I can do that - I can test it, perhaps it will even work on >

Re: [U-Boot] [RFC PATCH 10/11] arm: Add support for Qualcomm Snapdragon family

2015-12-19 Thread Mateusz Kulikowski
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi Simon, On 16.12.2015 23:29, Simon Glass wrote: > Hi Mateusz, > > On 10 December 2015 at 14:41, Mateusz Kulikowski > wrote: [...] >> diff --git a/arch/arm/mach-snapdragon/clock-apq8016.c >> b/arch/arm/mach-snapdrago

Re: [U-Boot] [RFC PATCH 11/11] board: Add Qualcomm Dragonboard 410C support

2015-12-19 Thread Mateusz Kulikowski
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi Simon, On 16.12.2015 23:29, Simon Glass wrote: > Hi Mateusz, > > On 10 December 2015 at 14:41, Mateusz Kulikowski > wrote: [...] > >> + >> +int board_prepare_usb(enum usb_init_type type) >>

Re: [U-Boot] [PATCH v2 1/5] lib: Add wait_for_bit

2015-12-20 Thread Mateusz Kulikowski
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi Marek, On 17.12.2015 00:52, Marek Vasut wrote: [...] >> Of course I can make it static inline. >> >> I was suggested not to care about possible leftovers that are >> not garbage-collected by linker so didn't changed that on V2. >> >> It's (max)

Re: [U-Boot] [RFC PATCH 01/11] serial: Add support for Qualcomm serial port

2015-12-27 Thread Mateusz Kulikowski
Hi Masahiro, On 23.12.2015 04:52, Masahiro Yamada wrote: [..] > I guess Linux sorts headers from global to local. > > #include global in the project > #include arch-specific > #include "foo.h"local in the directory > > > Likewise, the following makes sense for U-Boot > > #inc

[U-Boot] [PATCH v3 1/5] lib: Add wait_for_bit

2015-12-27 Thread Mateusz Kulikowski
Add function to poll register waiting for specific bit(s). Similar functions are implemented in few drivers - they are almost identical and can be generalized. Signed-off-by: Mateusz Kulikowski --- include/wait_bit.h | 71 ++ 1 file changed

[U-Boot] [PATCH v3 2/5] usb: dwc2: Use shared wait_for_bit

2015-12-27 Thread Mateusz Kulikowski
Use existing library function to poll bit(s). Signed-off-by: Mateusz Kulikowski --- drivers/usb/host/dwc2.c | 41 + 1 file changed, 13 insertions(+), 28 deletions(-) diff --git a/drivers/usb/host/dwc2.c b/drivers/usb/host/dwc2.c index 541c0f9..42d31e3

[U-Boot] [PATCH v3 4/5] usb: ehci-mx6: Use shared wait_for_bit

2015-12-27 Thread Mateusz Kulikowski
Use existing library function to poll bit(s). Signed-off-by: Mateusz Kulikowski --- drivers/usb/host/ehci-mx6.c | 32 1 file changed, 4 insertions(+), 28 deletions(-) diff --git a/drivers/usb/host/ehci-mx6.c b/drivers/usb/host/ehci-mx6.c index 2666351..e1c67f7

[U-Boot] [PATCH v3 0/5] Add wait_for_bit()

2015-12-27 Thread Mateusz Kulikowski
re is single difference in behavior: ohci-lp32xx driver will not print "Timeout..." message with debug disabled. I think it's not a big issue as this driver seems unused, but if it's an issue - please drop that patch. Mateusz Kulikowski (5): lib: Add wait_for_bit usb: dwc2

[U-Boot] [PATCH v3 5/5] net: zynq_gem: Use shared wait_for_bit

2015-12-27 Thread Mateusz Kulikowski
Use existing library function to poll bit(s). Signed-off-by: Mateusz Kulikowski --- drivers/net/zynq_gem.c | 35 ++- 1 file changed, 2 insertions(+), 33 deletions(-) diff --git a/drivers/net/zynq_gem.c b/drivers/net/zynq_gem.c index 7059c84..97e30f3 100644 --- a

[U-Boot] [PATCH v3 3/5] usb: ohci-lpc32xx: Use shared wait_for_bit

2015-12-27 Thread Mateusz Kulikowski
Use existing library function to poll bit(s). Signed-off-by: Mateusz Kulikowski Tested-by: Sylvain Lemieux --- drivers/usb/host/ohci-lpc32xx.c | 34 +++--- 1 file changed, 7 insertions(+), 27 deletions(-) diff --git a/drivers/usb/host/ohci-lpc32xx.c b/drivers/usb

Re: [U-Boot] [PATCH v3 2/5] usb: dwc2: Use shared wait_for_bit

2015-12-31 Thread Mateusz Kulikowski
Hi Stefan, On Sun, Dec 27, 2015 at 11:17:55PM +0100, Stefan Bruens wrote: > On Sonntag, 27. Dezember 2015 18:28:09 CET Mateusz Kulikowski wrote: > > Use existing library function to poll bit(s). > > > > Signed-off-by: Mateusz Kulikowski > > It might be useful

Re: [U-Boot] [PATCH v3 1/5] lib: Add wait_for_bit

2015-12-31 Thread Mateusz Kulikowski
@Tom: I forgot to add you on CC :( I think this patch goes to you. On Sun, Dec 27, 2015 at 06:28:08PM +0100, Mateusz Kulikowski wrote: > Add function to poll register waiting for specific bit(s). > Similar functions are implemented in few drivers - they are almost > identical a

Re: [U-Boot] [PATCH v7 3/9] armv8: Add Secure Monitor/Hypervisor Call (SMC/HVC) infrastructure

2016-01-06 Thread Mateusz Kulikowski
Chintakuntla > Reviewed-by: Simon Glass +1 (I may need it as well) Tested-by: Mateusz Kulikowski Tested on: Hikey Methodology: Hacked smc handler in arm trusted firmware (x0=x0+x1, x1=x2+x3, x2=x4+x5, x3=x6+2) +new u-boot command (smc/hvc) using functions from this patch; I did

[U-Boot] [PATCH v1 05/16] usb: ulpi: Add Kconfig options for ULPI

2016-01-06 Thread Mateusz Kulikowski
The following options can be now enabled via defconfig: - CONFIG_USB_ULPI - CONFIG_USB_ULPI_VIEWPORT - CONFIG_USB_ULPI_VIEWPORT_OMAP Signed-off-by: Mateusz Kulikowski --- Changes in v1: New patch drivers/usb/Kconfig | 2 ++ drivers/usb/ulpi/Kconfig | 10 ++ 2 files changed, 12

[U-Boot] [PATCH v1 01/16] serial: Add support for Qualcomm serial port

2016-01-06 Thread Mateusz Kulikowski
This driver works in "new" Data Mover UART mode, so will be compatible with modern Qualcomm chips only. Signed-off-by: Mateusz Kulikowski --- Changes in v1: - Added (better) help to KConfig - Added dt binding documentation - Fixed include ordering - Reworked msm_serial_getc - A

[U-Boot] [PATCH v1 04/16] ehci-hcd: Add init_after_reset

2016-01-06 Thread Mateusz Kulikowski
Some host controllers need addidional initialization after ehci_reset() In non-dm implementation it is possible to use CONFIG_EHCI_HCD_INIT_AFTER_RESET. This patch adds similar option to ehci drivers using dm. Signed-off-by: Mateusz Kulikowski Acked-by: Marek Vasut Reviewed-by: Tom Rini

[U-Boot] [PATCH v1 00/16] Add support for 96boards Dragonboard410C board

2016-01-06 Thread Mateusz Kulikowski
of dev_get_addr - Add binding for apq8016 - Cleaned up divider calculation - Drop most of gpio.h (only empty file is needed) - Add better help for dragonboard - Move static structures to board_prepare_usb - Add DM_SPMI to defconfig Mateusz Kulikowski (16): serial: Add support for Qualcomm ser

[U-Boot] [PATCH v1 03/16] mmc: Add support for Qualcomm SDHCI controller

2016-01-06 Thread Mateusz Kulikowski
Add support for SD/eMMC controller present on some Qualcomm Snapdragon devices. This controller implements SDHCI 2.0 interface but requires vendor-specific initialization. Driver works in PIO mode as ADMA is not supported by U-Boot (yet). Signed-off-by: Mateusz Kulikowski --- Changes in v1

[U-Boot] [PATCH v1 07/16] usb: ehci-ci: Add missing registers.

2016-01-06 Thread Mateusz Kulikowski
: Mateusz Kulikowski --- Changes in v1: New patch include/usb/ehci-ci.h | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/usb/ehci-ci.h b/include/usb/ehci-ci.h index 725aec5..305b180 100644 --- a/include/usb/ehci-ci.h +++ b/include/usb/ehci-ci.h @@ -191,7 +191,11

[U-Boot] [PATCH v1 06/16] usb: Rename ehci-fsl.h to ehci-ci.h

2016-01-06 Thread Mateusz Kulikowski
Most of ehci-fsl header describe USB controller designed by Chipidea and used by various SoC vendors. This patch renames it to a generic header: ehci-ci.h Contents of file are not changed (so it contains several references to freescale SoCs). Signed-off-by: Mateusz Kulikowski --- Changes in v1

[U-Boot] [PATCH v1 08/16] ehci-ci.h: drop generic USBCMD fields

2016-01-06 Thread Mateusz Kulikowski
Use definitions from ehci.h instead. Signed-off-by: Mateusz Kulikowski --- Changes in v1: New patch drivers/usb/host/ehci-mpc512x.c | 4 ++-- include/usb/ehci-ci.h | 4 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/usb/host/ehci-mpc512x.c b/drivers/usb

[U-Boot] [PATCH v1 13/16] pmic: Add support for Qualcomm PM8916 PMIC

2016-01-06 Thread Mateusz Kulikowski
This PMIC is connected on SPMI bus so needs SPMI support enabled. Signed-off-by: Mateusz Kulikowski --- Changes in v1: - Added dt bindings - Reoder includes - Replaced extract_* macros with ordinary shift/mask - Added error checking and whitespaces in probe doc/device-tree-bindings/pmic

[U-Boot] [PATCH v1 09/16] ehci: Add support for Qualcomm EHCI

2016-01-06 Thread Mateusz Kulikowski
This driver is able to reconfigure OTG controller into HOST mode. Board can add board-specific initialization as board_prepare_usb(). It requires USB_ULPI_VIEWPORT enabled in board configuration. Signed-off-by: Mateusz Kulikowski --- Changes in v1: - Reordered header files - Removed braces

[U-Boot] [PATCH v1 10/16] drivers: Add SPMI bus uclass

2016-01-06 Thread Mateusz Kulikowski
write interface. Signed-off-by: Mateusz Kulikowski --- Changes in v1: - Reorder includes - Add read/write arguments documentation drivers/Kconfig| 2 ++ drivers/Makefile | 1 + drivers/spmi/Kconfig | 10 ++ drivers/spmi/Makefile | 7 +++ drivers/spmi

[U-Boot] [PATCH v1 12/16] drivers: spmi: Add support for Qualcomm SPMI bus driver

2016-01-06 Thread Mateusz Kulikowski
Support SPMI arbiter on Qualcomm Snapdragon devices. Signed-off-by: Mateusz Kulikowski --- Changes in v1: - add binding documentation and better Kconfig help - Changed a bit mapping - Change include order - Use clrsetbits* where possible - Add one more supported dts id - Handle missing fields

[U-Boot] [PATCH v1 11/16] spmi: Add sandbox test driver

2016-01-06 Thread Mateusz Kulikowski
This patch adds emulated spmi bus controller with part of pm8916 pmic on it to sandbox and tests validating SPMI uclass. Signed-off-by: Mateusz Kulikowski --- Changes in v1: None arch/sandbox/dts/sandbox.dts | 20 configs/sandbox_defconfig | 4

[U-Boot] [PATCH v1 16/16] board: Add Qualcomm Dragonboard 410C support

2016-01-06 Thread Mateusz Kulikowski
buttons (Power, Vol+, Vol-/Reset) - WIFI, Bluetooth with integrated antenna - 8GiB eMMC U-Boot boots chained with fastboot in 64-bit mode. For detailed build instructions see readme.txt in board directory. Signed-off-by: Mateusz Kulikowski --- Changes in v1: - Add better help for dragonboard - Move

[U-Boot] [PATCH v1 14/16] gpio: Add support for Qualcomm PM8916 gpios

2016-01-06 Thread Mateusz Kulikowski
This driver supports GPIOs present on PM8916 PMIC. There are 2 device drivers inside: - GPIO driver (4 "generic" GPIOs) - Keypad driver that presents itself as GPIO with 2 inputs (power and reset) Signed-off-by: Mateusz Kulikowski --- Changes in v1: - Add binding doc - Fixed inlcud

[U-Boot] [PATCH v1 15/16] arm: Add support for Qualcomm Snapdragon family

2016-01-06 Thread Mateusz Kulikowski
First supported chip is APQ8016 (that is compatible with MSM8916). Drivers in SoC code: - Reset controller (PSHOLD) - Clock controller (very simple clock configuration for MMC and UART) Signed-off-by: Mateusz Kulikowski --- Changes in v1: - Fix include order - Cleanup defines (added spaces for

[U-Boot] [PATCH v1 02/16] gpio: Add support for Qualcomm gpio controller

2016-01-06 Thread Mateusz Kulikowski
Add support for gpio controllers on Qualcomm Snapdragon devices. This devices are usually called Top Level Mode Multiplexing in Qualcomm documentation. Signed-off-by: Mateusz Kulikowski --- Changes in v1: - Added dt binding documentation - Added help to KConfig - Use clrsetbits() to switch

Re: [U-Boot] [PATCH v7 3/9] armv8: Add Secure Monitor/Hypervisor Call (SMC/HVC) infrastructure

2016-01-07 Thread Mateusz Kulikowski
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 07.01.2016 16:06, Michal Simek wrote: > On 6.1.2016 14:04, Mateusz Kulikowski wrote: >> On 14.10.2015 18:55, Sergey Temerkhanov wrote: [...] >> >> Idea: perhaps after this series is merged we can add 2 new commands to &

Re: [U-Boot] [PATCH v1 05/16] usb: ulpi: Add Kconfig options for ULPI

2016-01-07 Thread Mateusz Kulikowski
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 06.01.2016 21:49, Marek Vasut wrote: > On Wednesday, January 06, 2016 at 07:21:17 PM, Mateusz Kulikowski wrote: >> The following options can be now enabled via defconfig: >> - CONFIG_USB_ULPI >> - CON

Re: [U-Boot] [PATCH v1 02/16] gpio: Add support for Qualcomm gpio controller

2016-01-11 Thread Mateusz Kulikowski
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 11.01.2016 17:57, Simon Glass wrote: > Hi, > > On 6 January 2016 at 11:21, Mateusz Kulikowski > wrote: [...] >> +static int msm_gpio_get_function(struct udevice *dev, unsigned offset) >> +{ >> + struct msm_

Re: [U-Boot] [PATCH v1 05/16] usb: ulpi: Add Kconfig options for ULPI

2016-01-11 Thread Mateusz Kulikowski
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 08.01.2016 00:18, Simon Glass wrote: > Hi, > > On 7 January 2016 at 15:12, Mateusz Kulikowski [...] >>> On Wednesday, January 06, 2016 at 07:21:17 PM, Mateusz Kulikowski wrote: >>>> The following options ca

Re: [U-Boot] [PATCH v1 09/16] ehci: Add support for Qualcomm EHCI

2016-01-11 Thread Mateusz Kulikowski
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 06.01.2016 22:04, Marek Vasut wrote: > On Wednesday, January 06, 2016 at 07:21:21 PM, Mateusz Kulikowski wrote: >> This driver is able to reconfigure OTG controller into HOST mode. >> Board can add board-specific in

Re: [U-Boot] [PATCH v1 10/16] drivers: Add SPMI bus uclass

2016-01-11 Thread Mateusz Kulikowski
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi Simon , On 11.01.2016 17:57, Simon Glass wrote: [...] >> @@ -0,0 +1,10 @@ >> +menu "SPMI support" >> + >> +config DM_SPMI > > Can we just use SPMI, or is that is use? We want to remove all the DM_ > options when everything is converted to driver

Re: [U-Boot] [PATCH v1 16/16] board: Add Qualcomm Dragonboard 410C support

2016-01-11 Thread Mateusz Kulikowski
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi, On 07.01.2016 11:23, Sjoerd Simons wrote: > On Wed, 2016-01-06 at 19:21 +0100, Mateusz Kulikowski wrote: >> This commit add support for 96Boards Dragonboard410C. >> >> diff --git a/include/configs/dragonboard410c.h

Re: [U-Boot] [PATCH v1 16/16] board: Add Qualcomm Dragonboard 410C support

2016-01-11 Thread Mateusz Kulikowski
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi, On 11.01.2016 17:58, Simon Glass wrote: > Hi, > > On 6 January 2016 at 11:21, Mateusz Kulikowski > wrote: >> This commit add support for 96Boards Dragonboard410C. [...] >> + usb_hub_reset_n_pm { >> +

Re: [U-Boot] [PATCH] MAINTAINERS: update ARM Snapdragon

2018-06-13 Thread Mateusz Kulikowski
/MAINTAINERS +++ b/MAINTAINERS @@ -184,7 +184,7 @@ F: arch/arm/mach-s5pc1xx/ F:arch/arm/cpu/armv7/s5p-common/ ARM SNAPDRAGON -M: Mateusz Kulikowski +M: Ramon Fried S:Maintained F:arch/arm/mach-snapdragon/ Acked-by: Mateusz Kulikowski M

[U-Boot] [PATCH] dragonboard410c: Increase default environment size.

2016-06-19 Thread Mateusz Kulikowski
Due to changes in distro environment, ENV_SIZE limit was reached on Dragonboard. This patch increases environment size to 8KiB. Signed-off-by: Mateusz Kulikowski --- Hi all, I'm back after a short break (sorry for that). This patch fixes environment for dragonboard - it grew during my ab

Re: [U-Boot] [PATCH v7 3/9] armv8: Add Secure Monitor/Hypervisor Call (SMC/HVC) infrastructure

2016-06-25 Thread Mateusz Kulikowski
Hi Dirk, On 23.06.2016 13:33, Dirk Behme wrote: [...] Idea: perhaps after this series is merged we can add 2 new commands to u-boot (SMC/HVC) to play with hypervisors/secure monitors (and perhaps use some simple functionality if needed). >>> >>> How this should look like

[U-Boot] [PATCH] mmc: msm_sdhci: Set mmc->dev pointer in msm_sdc_probe()

2016-06-26 Thread Mateusz Kulikowski
MMC core expects (now) valid mmc->dev pointer. During conversion in commit cffe5d86 not every driver was updated. This patch fixes crash while accessing MMC on boards using Qualcomm SDHCI controller. Signed-off-by: Mateusz Kulikowski --- This patch fixes MMC support on dragonboard. Without

Re: [U-Boot] [PATCH] MMC: Do not write to mmc_uclass_priv if it was not allocated

2016-06-30 Thread Mateusz Kulikowski
On 29.06.2016 05:27, Simon Glass wrote: > Hi Matt, > > On 25 June 2016 at 14:57, Matt Corallo wrote: >> Signed-off-by: Matt Corallo >> --- >> drivers/mmc/mmc.c | 3 ++- >> 1 file changed, 2 insertions(+), 1 deletion(-) >> >> diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c >> index aabfc71..e

Re: [U-Boot] [PATCH] mmc: msm_sdhci: Set mmc->dev pointer in msm_sdc_probe()

2016-07-05 Thread Mateusz Kulikowski
Friendly poke, I would really like to see that in 2016.07 release as MMC is currently not working for dragonboard :( Mateusz On 26.06.2016 22:43, Mateusz Kulikowski wrote: > MMC core expects (now) valid mmc->dev pointer. > During conversion in commit cffe5d86 not every driver wa

Re: [U-Boot] [PATCH] dragonboard410c: prefer sdcard boot over emmc

2016-07-12 Thread Mateusz Kulikowski
On 03.07.2016 18:59, Ricardo Salveti wrote: > Make the external devices the preferred ones when booting the system > (usb is already the first option). This allows users to easily boot > custom distributions without requiring them to reflash/customize u-boot. > > Cc: Mateusz Kulik

Re: [U-Boot] [PATCH] dragonboard410c: adding missing default addr for script and pxe boot

2016-07-12 Thread Mateusz Kulikowski
On 03.07.2016 19:16, Ricardo Salveti wrote: > Cc: Mateusz Kulikowski > Signed-off-by: Ricardo Salveti > --- > include/configs/dragonboard410c.h | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/include/configs/dragonboard410c.h > b/include/configs/dragonboa

[U-Boot] [PATCH] arm: start.S: Fix startup of dragonboard410c

2016-07-12 Thread Mateusz Kulikowski
Commit d73718f3 breaks devices where: - There is EL2/EL3 firmware and - U-Boot starts in NS EL1 and - EL2/EL3 firmware didn't unlocked write-access to CPUECTLR_EL1. This patch makes that change opt-out configuration option, and disables it for dragonboard410c. Signed-off-by: Mateusz Kulik

[U-Boot] [PATCH] dragonboard410c: Add CONFIG_SYS_CACHELINE_SIZE

2016-04-11 Thread Mateusz Kulikowski
Add missing define to board header file. Signed-off-by: Mateusz Kulikowski --- This patch fixes issue with efi_runtime patch: http://lists.denx.de/pipermail/u-boot/2016-April/251121.html include/configs/dragonboard410c.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/configs

Re: [U-Boot] [PATCH 2/3] drivers/gpio/pm8916_gpio.c: Make pid be uint32_t

2016-04-18 Thread Mateusz Kulikowski
gt;> its operands. This occurs as the logical operand of if. > > Cc: Mateusz Kulikowski > Reported-by: Coverity (CID: 143913) [...] > - uint16_t pid; /* Peripheral ID on SPMI bus */ > + uint32_t pid; /* Peripheral ID on SPMI bus */ > }; > > static int pm8916_g

Re: [U-Boot] [PATCH 2/3] drivers/gpio/pm8916_gpio.c: Make pid be uint32_t

2016-04-18 Thread Mateusz Kulikowski
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 18.04.2016 22:23, Mateusz Kulikowski wrote: > Hi, > > Sorry for slow reply. > > On 12.04.2016 21:11, Tom Rini wrote: >> If get_dev_addr fails it will return FDT_ADDR_T_NONE and: >>>>> "priv->pid =

Re: [U-Boot] [PATCH 2/3] drivers/gpio/pm8916_gpio.c: Make pid be uint32_t

2016-04-22 Thread Mateusz Kulikowski
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi, On 20.04.2016 23:25, Tom Rini wrote: > On Mon, Apr 18, 2016 at 10:23:24PM +0200, Mateusz Kulikowski wrote: [..] >> >> I think (now, when the coverity pointed out mistake) that we should add >> in that case check if pid fit

[U-Boot] [PATCH v2 00/18] Add support for 96boards Dragonboard410C board

2016-02-07 Thread Mateusz Kulikowski
family where possible - Drop unneded comments, added newlines where needed - Check return value of dev_get_addr - Add binding for apq8016 - Cleaned up divider calculation - Drop most of gpio.h (only empty file is needed) - Add better help for dragonboard - Move static structures to board_prepare_usb

[U-Boot] [PATCH v2 03/18] mmc: Add support for Qualcomm SDHCI controller

2016-02-07 Thread Mateusz Kulikowski
Add support for SD/eMMC controller present on some Qualcomm Snapdragon devices. This controller implements SDHCI 2.0 interface but requires vendor-specific initialization. Driver works in PIO mode as ADMA is not supported by U-Boot (yet). Signed-off-by: Mateusz Kulikowski Reviewed-by: Simon

  1   2   3   >