Re: [PATCH] tegra20: add Colibri T20 on Iris

2013-05-10 Thread Lucas Stach
Am Freitag, den 10.05.2013, 21:32 +0200 schrieb Lucas Stach: > This adds the initial devicetree files for the Colibri T20 module on an > Iris carrier board. > > Signed-off-by: Lucas Stach > --- > arch/arm/dts/tegra20-colibri-iris.dts | 38 +++ > arch/arm/dts/tegra20-colibri.dtsi | 190

[PATCH] tegra20: add Colibri T20 on Iris

2013-05-10 Thread Lucas Stach
This adds the initial devicetree files for the Colibri T20 module on an Iris carrier board. Signed-off-by: Lucas Stach --- arch/arm/dts/tegra20-colibri-iris.dts | 38 +++ arch/arm/dts/tegra20-colibri.dtsi | 190 ++ 2 files changed, 228 insertions(+) crea

[PATCH] tegra20: add generic board

2013-05-10 Thread Lucas Stach
The Tegra arch will be fully based on device tree and most boards shouldn't need anything more than the generic drivers and arch code. Define a dummy board entry and generic defconfig as a strting point for building a board with DT support. Signed-off-by: Lucas Stach --- arch/arm/configs/tegra2

Re: [PATCH v2 1/2] tegra20: add pinctrl driver

2013-05-10 Thread Alexander Aring
Hi Lucas, On Fri, May 10, 2013 at 08:28:57PM +0200, Lucas Stach wrote: > This adds a pinctrl driver for the Tegra 20 line of SoCs. It only > supports the three basic pinconfiguration settings function mux, > tristate control and pullup/down control. > > The driver understands the same devicetree

[PATCH] arm: properly init alignment trap bit

2013-05-10 Thread Lucas Stach
On ARMv7 the intention is to disable the alignment trap to be able to use hardware assisted unaligned load/stores. Fix the init to do the right thing. Signed-off-by: Lucas Stach --- arch/arm/include/asm/barebox-arm-head.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/a

[PATCH v2 1/2] tegra20: add pinctrl driver

2013-05-10 Thread Lucas Stach
This adds a pinctrl driver for the Tegra 20 line of SoCs. It only supports the three basic pinconfiguration settings function mux, tristate control and pullup/down control. The driver understands the same devicetree bindings as the Linux one, unimplemented pinconfiguration options will be ignored.

[PATCH v2 2/2] tegra: paz00: import pinconfig from Linux

2013-05-10 Thread Lucas Stach
Signed-off-by: Lucas Stach --- arch/arm/dts/tegra20-paz00.dts | 216 + 1 file changed, 216 insertions(+) diff --git a/arch/arm/dts/tegra20-paz00.dts b/arch/arm/dts/tegra20-paz00.dts index 09ccb8b..e8486aa 100644 --- a/arch/arm/dts/tegra20-paz00.dts +++ b/a

Re: [PATCH] GPIO: Add gpio_to_desc helper

2013-05-10 Thread Jean-Christophe PLAGNIOL-VILLARD
On 18:04 Fri 10 May , Alexander Shiyan wrote: > Patch adds gpio_to_desc helper for validate GPIO. > A bit optimization is performed (about -250 bytes on ARM). > > Signed-off-by: Alexander Shiyan > --- > drivers/gpio/gpiolib.c | 97 > ++ > 1 fi

[PATCH] GPIO: Add gpio_to_desc helper

2013-05-10 Thread Alexander Shiyan
Patch adds gpio_to_desc helper for validate GPIO. A bit optimization is performed (about -250 bytes on ARM). Signed-off-by: Alexander Shiyan --- drivers/gpio/gpiolib.c | 97 ++ 1 file changed, 51 insertions(+), 46 deletions(-) diff --git a/drivers

Re: [PATCH v3 2/7] scripts: add kwboot tool

2013-05-10 Thread Sascha Hauer
On Thu, May 09, 2013 at 07:16:39AM -0400, Jason Cooper wrote: > Thomas, > > On Thu, May 09, 2013 at 11:52:46AM +0200, Thomas Petazzoni wrote: > > This tool is used with Marvell EBU SoC to trigger the UART boot mode > > provided by the SoC BootROM, and push the bootloader image to the > > target us

Re[2]: [PATCH 1/2] GPIO: Check for "gpio_is_valid" first

2013-05-10 Thread Alexander Shiyan
> HI, > > do as in linux > > introduce > > static struct gpio_desc *gpio_to_desc(unsigned gpio) > > and we need to check the gpio is valid before calling _free/ser/get > etc.. Indeed. > > Signed-off-by: Alexander Shiyan > > --- > > drivers/gpio/gpiolib.c | 181

Re: Installing barebox for karo-tx53 in nand-flash

2013-05-10 Thread Eric Bénard
Hi Patrick, Le Fri, 10 May 2013 12:53:50 +0200, Sascha Hauer a écrit : > On Fri, May 10, 2013 at 09:20:50AM +, Dr. Patrick Langfeld wrote: > > Thanks Sascha, > > building barebox results in two .bin files: barebox.bin and > > zbarebox.bin. > > Is zbarebox.bin a compressed version of barebox.

Re: [PATCH 1/2] GPIO: Check for "gpio_is_valid" first

2013-05-10 Thread Jean-Christophe PLAGNIOL-VILLARD
HI, do as in linux introduce static struct gpio_desc *gpio_to_desc(unsigned gpio) and we need to check the gpio is valid before calling _free/ser/get etc.. On 11:27 Fri 10 May , Alexander Shiyan wrote: > > Signed-off-by: Alexander Shiyan > --- > d

Re: [PATCH 1/2] GPIO: Check for "gpio_is_valid" first

2013-05-10 Thread Jean-Christophe PLAGNIOL-VILLARD
no the current code is more clean just move gi = &gpio_desc[gpio]; chip = gi->chip after the current check; On 11:27 Fri 10 May , Alexander Shiyan wrote: > > Signed-off-by: Alexander Shiyan > --- > drivers/gpio/gpiolib.c | 181 > ++--- > 1 fil

Re: Installing barebox for karo-tx53 in nand-flash

2013-05-10 Thread Jean-Christophe PLAGNIOL-VILLARD
On 12:53 Fri 10 May , Sascha Hauer wrote: > On Fri, May 10, 2013 at 09:20:50AM +, Dr. Patrick Langfeld wrote: > > Thanks Sascha, > > building barebox results in two .bin files: barebox.bin and > > zbarebox.bin. > > Is zbarebox.bin a compressed version of barebox.bin? > > Which one should I

Re: Installing barebox for karo-tx53 in nand-flash

2013-05-10 Thread Sascha Hauer
On Fri, May 10, 2013 at 09:20:50AM +, Dr. Patrick Langfeld wrote: > Thanks Sascha, > building barebox results in two .bin files: barebox.bin and > zbarebox.bin. > Is zbarebox.bin a compressed version of barebox.bin? > Which one should I use for flashing the tx53 nand-flash? If it exists then z

Re[2]: Installing barebox for karo-tx53 in nand-flash

2013-05-10 Thread Dr. Patrick Langfeld
Thanks Sascha, building barebox results in two .bin files: barebox.bin and zbarebox.bin. Is zbarebox.bin a compressed version of barebox.bin? Which one should I use for flashing the tx53 nand-flash? My boot sources are nand-flash (thats where u-boot is at the moment) (and SD-card for testing).

[PATCH 1/2] GPIO: Check for "gpio_is_valid" first

2013-05-10 Thread Alexander Shiyan
Signed-off-by: Alexander Shiyan --- drivers/gpio/gpiolib.c | 181 ++--- 1 file changed, 95 insertions(+), 86 deletions(-) diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c index 6398268..1662dcd 100644 --- a/drivers/gpio/gpiolib.c +++ b/dri

[PATCH 2/2] GPIO: Remove unneeded "gpio_is_valid" calls

2013-05-10 Thread Alexander Shiyan
Signed-off-by: Alexander Shiyan --- drivers/mci/atmel_mci.c | 3 +-- drivers/w1/masters/w1-gpio.c | 6 ++ 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/mci/atmel_mci.c b/drivers/mci/atmel_mci.c index c5fd306..9570d36 100644 --- a/drivers/mci/atmel_mci.c +++ b/dr