Re: [U-Boot] [PATCH 10/10] arm: mvebu: Add Armada A38x DB-88F6820-GP board support

2015-03-18 Thread Kevin Smith
Hi Stefan, On 03/18/2015 02:54 AM, Stefan Roese wrote: > +/* Environment in SPI NOR flash */ > +#define CONFIG_ENV_IS_IN_SPI_FLASH > +#define CONFIG_ENV_OFFSET(1 << 20) /* 1MiB in */ > +#define CONFIG_ENV_SIZE (64 << 10) /* 64KiB */ > +#define CONFIG_ENV_SECT_SIZE

Re: [U-Boot] [PATCH v2] arm: mx5: Add support for USB armory board

2015-03-18 Thread Chris Kuethe
On Wed, Mar 18, 2015 at 3:53 PM, wrote: > From: Andrej Rosano > > Add support for Inverse Path USB armory board, an open source > flash-drive sized computer based on Freescale i.MX53 SoC. > > http://inversepath.com/usbarmory > > Signed-off-by: Andrej Rosano > Cc: Stefano Babic > Cc: Chris Kuet

Re: [U-Boot] [PATCH] arm: mx5: Add support for USB armory board

2015-03-18 Thread Andrej Rosano
On Tue, Mar 17, 2015 at 01:30:12PM -0300, Fabio Estevam wrote: > On Mon, Mar 16, 2015 at 1:50 PM, Chris Kuethe wrote: > > > U-Boot 2015.04-rc3-00209-ga74ef40-dirty (Mar 15 2015 - 22:04:22) > > > > CPU: Freescale i.MX53 rev2.1 at 800 MHz > > Reset cause: WDOG > > Here the reset cause is printed

[U-Boot] [PATCH v2] arm: mx5: Add support for USB armory board

2015-03-18 Thread andrej
From: Andrej Rosano Add support for Inverse Path USB armory board, an open source flash-drive sized computer based on Freescale i.MX53 SoC. http://inversepath.com/usbarmory Signed-off-by: Andrej Rosano Cc: Stefano Babic Cc: Chris Kuethe Cc: Fabio Estevam --- Changes for v2: - Fix double pr

Re: [U-Boot] Net: macb: reset GBE bit when fallback checking

2015-03-18 Thread Andreas Bießmann
Dear Bo Shen, Bo Shen writes: >If the GBE bit is set, when do next time autonegotiation, >if the result is not 1000Mbps, it will fallback to 100Mbps >checking. So, we need to clear the GBE bit. > >Signed-off-by: Bo Shen >--- > > drivers/net/macb.c | 2 +- > 1 file changed, 1 insertion(+), 1 delet

Re: [U-Boot] ARM: atmel: sama5d4: set non-secured for peripherals

2015-03-18 Thread Andreas Bießmann
Dear Bo Shen, Bo Shen writes: >When access the programmable secure peripherals address space, >it needs set them to non-secured. > >Signed-off-by: Bo Shen >--- > > arch/arm/mach-at91/armv7/sama5d4_devices.c | 9 + > 1 file changed, 9 insertions(+) applied to u-boot-atmel/master, thanks!

Re: [U-Boot] [U-Boot,2/2] ARM: atmel: armv7: move spl lds to armv7 directory

2015-03-18 Thread Andreas Bießmann
Dear Bo Shen, Bo Shen writes: >As the u-boot-spl.lds is used only for armv7 SoCs (includes >sama5d3 and sama5d4), so move it to armv7 directory. > >Signed-off-by: Bo Shen >--- > > arch/arm/mach-at91/{ => armv7}/u-boot-spl.lds | 0 > include/configs/sama5d3_xplained.h| 2 +- > include/c

Re: [U-Boot] [U-Boot,1/2] ARM: atmel: sama5d4 boards: fix spl lds location

2015-03-18 Thread Andreas Bießmann
Dear Bo Shen, Bo Shen writes: >As the u-boot-spl.lds is moved to directory. >So, correct the path for sama5d4 related boards. > >Signed-off-by: Bo Shen >--- > > include/configs/sama5d4_xplained.h | 2 +- > include/configs/sama5d4ek.h| 2 +- > 2 files changed, 2 insertions(+), 2 deletions(

Re: [U-Boot] ARM: at91: at91sam9rlek: add hush parser to defconfig

2015-03-18 Thread Andreas Bießmann
Dear Josh Wu, Josh Wu writes: >HUSH parser will handle the variable easier. That will be helpful for >write a complicated U-Boot commands or varaibles. > >Signed-off-by: Josh Wu >Acked-by: Bo Shen >--- > configs/at91sam9rlek_dataflash_defconfig | 1 + > configs/at91sam9rlek_mmc_defconfig |

Re: [U-Boot] ARM: atmel: sama5d4 xplained: enable mmc power

2015-03-18 Thread Andreas Bießmann
Dear Bo Shen, Bo Shen writes: >Enable the power for MMC/SD port. > >Signed-off-by: Bo Shen >--- > > board/atmel/sama5d4_xplained/sama5d4_xplained.c | 3 +++ > 1 file changed, 3 insertions(+) applied to u-boot-atmel/master, thanks! Best regards, Andreas Bießmann _

Re: [U-Boot] [U-Boot,1/2] ARM: at91: at91sam9rlek: add mci support

2015-03-18 Thread Andreas Bießmann
Dear Josh Wu, Josh Wu writes: >This patch enable the MCI support for at91sam9rlek board. > >Signed-off-by: Josh Wu >[rebase on ToT] >Signed-off-by: Andreas Bießmann >--- > > arch/arm/mach-at91/arm926ejs/at91sam9rl_devices.c | 17 + > board/atmel/at91sam9rlek/at91sam9rlek.c

Re: [U-Boot] [U-Boot, 2/2] ARM: at91: at91sam9rlek: add mmc environment configuration

2015-03-18 Thread Andreas Bießmann
Dear Josh Wu, Josh Wu writes: >Add a mmc default config, which will save the environment in a FAT file >(uboot.env) of MMC. > >Signed-off-by: Josh Wu >--- > > configs/at91sam9rlek_mmc_defconfig | 3 +++ > include/configs/at91sam9rlek.h | 18 +- > 2 files changed, 20 insertions

Re: [U-Boot] [U-Boot, v2] ARM: at91: at91sam9rlek: update the default nand flash configs

2015-03-18 Thread Andreas Bießmann
Dear Josh Wu, Josh Wu writes: >Update the nand flash offset mapping, default nand bootcmand and >bootargs to align with linux4sam.org. > >Signed-off-by: Josh Wu >Acked-by: Bo Shen >--- > >Changes in v2: >- modify the BOOTCMD to load both kernel and dtb. > > include/configs/at91sam9rlek.h | 18 +

Re: [U-Boot] [PATCH v2 1/1] ARM: DRA7XX: Add config file for Android with fastboot support

2015-03-18 Thread Dileep Katta
Hi Tom, On 18 March 2015 at 21:41, Tom Rini wrote: > On Wed, Mar 18, 2015 at 12:08:23AM +0530, Dileep Katta wrote: > > > - Added new configuration for Android fastboot > > - This is based on following patch modified accordingly > > > http://git.omapzoom.org/?p=repo/u-boot.git;a=commi

[U-Boot] [PATCH] sunxi: Serial number support, obtained from SID bits and passed through ATAG

2015-03-18 Thread Paul Kocialkowski
Signed-off-by: Paul Kocialkowski --- board/sunxi/board.c| 33 ++--- include/configs/sunxi-common.h | 1 + 2 files changed, 31 insertions(+), 3 deletions(-) diff --git a/board/sunxi/board.c b/board/sunxi/board.c index becdc8b..0355de5 100644 --- a/board/su

[U-Boot] v2015.04-rc4: broken for custom TI-based board

2015-03-18 Thread Peter Kuemmel
I have a custom board which boots with a patched cm_t35 configuration based on the v2015.01 release. When I update to v2015.04-rc4 the system reboots after the x-loader has read u-boot from MMC and started it. Does someone has an idea which change could be responsible for this? Many thanks, Pete

[U-Boot] 64Bit device tree compilation

2015-03-18 Thread Hanna Hawa
Hi Simon, My name is Hanna, I'm working in Software team in Marvell with Yehuda. I'm trying to run U-Boot with FDT in 64Bit. I've issue when I'm trying to load the image on my board, I got abort (**Synchronous Abort**) Exactly when the U-boot run fdt_addr_to_cpu(*cell) under lib/fdtdec.c The is

Re: [U-Boot] [PATCH v5 00/14] Add PSCI support for Jetson TK1/Tegra124 + CNTFRQ fix

2015-03-18 Thread Ian Campbell
On Wed, 2015-03-11 at 11:11 -0400, Tom Rini wrote: > On Mon, Mar 09, 2015 at 08:00:10AM +0100, Jan Kiszka wrote: > > > Changes in v4: > > - rebased over master > > - implemented psci_get_cpu_id as weak function > > - implemented psci_disable/enable_smp as weak functions > > - adjusted register

Re: [U-Boot] [PATCH v5 02/14] ARM: Factor out common psci_get_cpu_id

2015-03-18 Thread Ian Campbell
On Mon, 2015-03-09 at 08:00 +0100, Jan Kiszka wrote: > Will be required for obtaining the ID of the current CPU in shared PSCI > functions. The default implementation requires a dense ID space and only > supports a single cluster. Therefore, the functions can be overloaded in > cases where these as

Re: [U-Boot] [PATCH v2 1/1] ARM: DRA7XX: Add config file for Android with fastboot support

2015-03-18 Thread Tom Rini
On Wed, Mar 18, 2015 at 12:08:23AM +0530, Dileep Katta wrote: > - Added new configuration for Android fastboot > - This is based on following patch modified accordingly > http://git.omapzoom.org/?p=repo/u-boot.git;a=commit;h=b2e04f92b5d91c708b6fd6b79d2266966ac51f4b > > Signed-off-by:

Re: [U-Boot] [PATCH v5 00/14] Add PSCI support for Jetson TK1/Tegra124 + CNTFRQ fix

2015-03-18 Thread Tom Warren
I'd asked Stephen Warren (who asked Thierry Reding) to look at these as they were more expert in PSCI than I, and I'm currently swamped w/another bringup. I don't want to ACK something I'm not sure about, so I have to defer to Stephen or Thierry. Thierry - please try and give this some attentio

Re: [U-Boot] [PATCH v2 4/4] common/lcd_console: introduce display/framebuffer rotation

2015-03-18 Thread Igor Grinberg
On 03/18/15 16:59, Hannes Petermaier wrote: > "U-Boot" schrieb am 18.03.2015 13:56:49: > >> >> Hi Hannes, > Hi Igor, > thanks for response - we come closer to the final solution :-) Indeed :-) > >> >>> +} >>> + >>> +void __weak lcd_init_console_rot(struct console_t *pcons) >>> +{ >>> + retur

Re: [U-Boot] [PATCH v2 3/4] common/lcd_console: move single static variables into common (static) structure

2015-03-18 Thread Igor Grinberg
On 03/18/15 17:07, Hannes Petermaier wrote: > On 2015-03-18 13:47, Igor Grinberg wrote: >> On 03/18/15 14:14, Hannes Petermaier wrote: >>> On 2015-03-18 13:11, Igor Grinberg wrote: [...] > +struct console_t { > +short curr_col, curr_row; > +short cols, rows; > +void

Re: [U-Boot] [PATCH v2 3/4] common/lcd_console: move single static variables into common (static) structure

2015-03-18 Thread Hannes Petermaier
On 2015-03-18 13:47, Igor Grinberg wrote: On 03/18/15 14:14, Hannes Petermaier wrote: On 2015-03-18 13:11, Igor Grinberg wrote: [...] +struct console_t { +short curr_col, curr_row; +short cols, rows; +void *lcd_address; Shouldn't this be fbbase? +}; +static struct console_t cons

Re: [U-Boot] [PATCH v2 4/4] common/lcd_console: introduce display/framebuffer rotation

2015-03-18 Thread Hannes Petermaier
"U-Boot" schrieb am 18.03.2015 13:56:49: > > Hi Hannes, Hi Igor, thanks for response - we come closer to the final solution :-) > > > +} > > + > > +void __weak lcd_init_console_rot(struct console_t *pcons) > > +{ > > + return; > > +} > > + > > +void lcd_init_console(void *address, int vl_col

Re: [U-Boot] Kernel to U-boot messaging and vice versa.

2015-03-18 Thread Dev
Thanks Hannes, Let me look around for watchdog functionality. Regards, -Dev > Date: Tue, 17 Mar 2015 22:39:41 +0100 > From: han...@petermaier.org > To: u-boot@lists.denx.de > Subject: Re: [U-Boot] Kernel to U-boot messaging and vice versa. > > Hi Dev, > > Altough your problem is off-topic from

Re: [U-Boot] [RFC 1/4] common: add ansi console base implementation

2015-03-18 Thread Nikita Kiryanov
Hi Andrey, On 03/14/2015 12:49 AM, Andrey Danin wrote: This code is based on ansi implementation in cfb_console. It is adopted to be used in lcd and cfb_console drivers. Please describe what changes you have made (if any) from the original code. Signed-off-by: Andrey Danin --- common/ans

Re: [U-Boot] [RFC 0/4] ansi console support for lcd driver

2015-03-18 Thread Nikita Kiryanov
Hi Andrey, On 03/14/2015 12:49 AM, Andrey Danin wrote: Main reason for this patches is ability to use bootmenu on devices that use lcd driver (like Toshiba AC100). Lcd driver doesn't have ansi support while cfb_console does. Ansi related code was moved from cfb_console to separate place. Then t

Re: [U-Boot] [PATCH v2 4/4] common/lcd_console: introduce display/framebuffer rotation

2015-03-18 Thread Igor Grinberg
Hi Hannes, On 03/18/15 09:37, Hannes Petermaier wrote: > From: Hannes Petermaier > > Sometimes, for example if the display is mounted in portrait mode or even if > it > mounted landscape but rotated by 180 degrees, we need to rotate our content of > the display respectively the framebuffer, so

Re: [U-Boot] [PATCH v2 3/4] common/lcd_console: move single static variables into common (static) structure

2015-03-18 Thread Igor Grinberg
On 03/18/15 14:14, Hannes Petermaier wrote: > On 2015-03-18 13:11, Igor Grinberg wrote: >> [...] >>> +struct console_t { >>> +short curr_col, curr_row; >>> +short cols, rows; >>> +void *lcd_address; >> Shouldn't this be fbbase? >> >>> +}; >>> +static struct console_t cons; >> [...] >> >

Re: [U-Boot] [PATCH v2 3/4] common/lcd_console: move single static variables into common (static) structure

2015-03-18 Thread Hannes Petermaier
On 2015-03-18 13:11, Igor Grinberg wrote: [...] +struct console_t { + short curr_col, curr_row; + short cols, rows; + void *lcd_address; Shouldn't this be fbbase? +}; +static struct console_t cons; [...] Hi Igor, my plan was/is to make a cleanup patch after this story is

Re: [U-Boot] [PATCH v2 3/4] common/lcd_console: move single static variables into common (static) structure

2015-03-18 Thread Igor Grinberg
On 03/18/15 09:37, Hannes Petermaier wrote: > From: Hannes Petermaier > > For coming implementation of lcd_console rotation, we will need some more > variables for holding information about framebuffer size, rotation, ... > > For better readability we catch all them into a common structure. >

Re: [U-Boot] [PATCH v2 1/3] ARM: mx6: move to a standard arch/board approach

2015-03-18 Thread Stefano Babic
Hi Boris, On 18/03/2015 10:49, Boris Brezillon wrote: > Hi Stefano, > > On Wed, 04 Mar 2015 16:43:44 +0100 > Stefano Babic wrote: > >> Hi Boris, >> >> On 04/03/2015 13:50, Boris Brezillon wrote: >>> >>> If that's accepted, then yes I could help moving boards from the old >>> approach to th

[U-Boot] [PATCH] ARM: omap4_panda: enable saveenv command

2015-03-18 Thread Maxin B. John
Enable saveenv command and the configs to store environment persistently in the SD card. Tested on OMAP4 Panda (OMAP4460 ES1.1) Signed-off-by: Maxin B. John --- include/configs/omap4_panda.h | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/configs/omap4_panda.h

Re: [U-Boot] [PATCH v2 1/3] ARM: mx6: move to a standard arch/board approach

2015-03-18 Thread Boris Brezillon
Hi Stefano, On Wed, 04 Mar 2015 16:43:44 +0100 Stefano Babic wrote: > Hi Boris, > > On 04/03/2015 13:50, Boris Brezillon wrote: > >> > > > > If that's accepted, then yes I could help moving boards from the old > > approach to the new one, though I was expecting this to be done by > > board mai

[U-Boot] [PULL] Please pull u-boot-imx

2015-03-18 Thread Stefano Babic
Hi Tom, please pull (small fixes) from u-boot-imx, thanks ! The following changes since commit 32df39c741788e8637cffe6633d73594b26d70fb: mx5: fix get_reset_cause (2015-03-05 10:29:27 +0100) are available in the git repository at: git://www.denx.de/git/u-boot-imx.git master for you to fetc

[U-Boot] [U-Boot v2] [i2c] Pull request

2015-03-18 Thread Heiko Schocher
Hello Tom, updated pull request for u-boot-i2c.git. Added the mvtwsi baudrate fix patch from Stefan after Hans added his Acked-by ... The following changes since commit 052a681bae8ee91c9854089549b20c857d499fd7: Prepare v2015.04-rc4 (2015-03-17 16:37:48 -0400) are available in the git reposit

[U-Boot] [PATCH v2 0/4] common/lcd_console: introduce display/framebuffer rotation

2015-03-18 Thread Hannes Petermaier
Sometimes, for example if the display is mounted in portrait mode or even if it mounted landscape but rotated by 180 degree, we need to rotate our content of the display respectively the framebuffer, so that user can read the messages who are printed out. For this we introduce the feature called "

[U-Boot] [PATCH v2 4/4] common/lcd_console: introduce display/framebuffer rotation

2015-03-18 Thread Hannes Petermaier
From: Hannes Petermaier Sometimes, for example if the display is mounted in portrait mode or even if it mounted landscape but rotated by 180 degrees, we need to rotate our content of the display respectively the framebuffer, so that user can read the messages who are printed out. For this we int

Re: [U-Boot] [PATCH v2] i2c: mvtwsi: Fix problem with baud rate calculation

2015-03-18 Thread Heiko Schocher
Hello Stefan, Am 18.03.2015 09:30, schrieb Stefan Roese: The current implementation for baudrate calculation is incorrect. This part from the formula: "2 ^ (n + 1)" is not equivalent to (1 << n) but to (2 << n)! This patch fixes this and moves this calculation to a function instead of using a

[U-Boot] [PATCH v6 8/8] lpc32xx: add support for board work_92105

2015-03-18 Thread Albert ARIBAUD (3ADEV)
Work_92105 from Work Microwave is an LPC3250- based board with the following features: - 64MB SDR DRAM - 1 GB SLC NAND, managed through MLC controller. - Ethernet - Ethernet + PHY SMSC8710 - I2C: - EEPROM (24M01-compatible) - RTC (DS1374-compatible) - Temperature sensor (DS620) - DACs (2 x

[U-Boot] [PATCH v6 7/8] lpc32xx: add lpc32xx-spl.bin boot image target

2015-03-18 Thread Albert ARIBAUD (3ADEV)
Signed-off-by: Albert ARIBAUD (3ADEV) --- Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: - remove script/Makefile.spl change Changes in v2: - move boot image generation to mkimage framework common/image.c | 1 + include/image.h | 1 + tools/Makefile

[U-Boot] [PATCH v6 2/8] lpc32xx: mtd: nand: add MLC NAND controller

2015-03-18 Thread Albert ARIBAUD (3ADEV)
The controller's Reed-Solomon ECC hardware is used except of course for raw reads and writes. It covers in- and out-of-band data together. The SPL framework is supported. Signed-off-by: Albert ARIBAUD (3ADEV) --- Changes in v6: - rewrite timeout loops - fix bad block skipping in SPL chainload l

[U-Boot] [PATCH v6 4/8] lpc32xx: add GPIO support

2015-03-18 Thread Albert ARIBAUD (3ADEV)
This driver only supports Driver Model, not legacy model. Signed-off-by: Albert ARIBAUD (3ADEV) --- Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: - move DM dependency constraint into Kconfig - move regs pointer and function cache into private struct - discourage read

[U-Boot] [PATCH v6 3/8] lpc32xx: i2c: add LPC32xx I2C interface support

2015-03-18 Thread Albert ARIBAUD (3ADEV)
Signed-off-by: Albert ARIBAUD (3ADEV) --- Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None arch/arm/cpu/arm926ejs/lpc32xx/devices.c | 11 ++ arch/arm/include/asm/arch-lpc32xx/clk.h | 4 + arch/arm/include/asm/arch-lpc32xx/cpu.h

[U-Boot] [PATCH v6 5/8] lpc32xx: add LPC32xx SSP support (SPI mode)

2015-03-18 Thread Albert ARIBAUD (3ADEV)
Signed-off-by: Albert ARIBAUD (3ADEV) --- Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: - move regs and functions in private struct Changes in v2: - added MUX setting for SSP0 arch/arm/cpu/arm926ejs/lpc32xx/devices.c | 14 +++ arch/arm/include/asm/arch-lpc32x

[U-Boot] [PATCH v6 6/8] dtt: add ds620 support

2015-03-18 Thread Albert ARIBAUD (3ADEV)
Signed-off-by: Albert ARIBAUD (3ADEV) --- Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: - cosmetic: added a blank line before copyright drivers/hwmon/Makefile | 1 + drivers/hwmon/ds620.c | 65 ++

[U-Boot] [PATCH v6 1/8] lpc32xx: add Ethernet support

2015-03-18 Thread Albert ARIBAUD (3ADEV)
Signed-off-by: Albert ARIBAUD (3ADEV) --- Changes in v6: - added some missing readl() wraps - moved descriptors and buffers to SRAM Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None arch/arm/cpu/arm926ejs/lpc32xx/cpu.c | 9 + arch/arm/cpu/arm926ejs/lpc3

[U-Boot] [PATCH v6 0/8] Extend LPC32xx functionality and add LPC32xx-based work_92015 board

2015-03-18 Thread Albert ARIBAUD (3ADEV)
This series extends functionality for the LPC32xx platform and introduces the WORK Microwave work_92105 board which makes use of the extended functionality. NOTES: A - I2C driver remains non-DM During v2 review, it was suggested to move to DM for I2C. However, this caused issues with the 'date',

Re: [U-Boot] [PATCH v2] i2c: mvtwsi: Fix problem with baud rate calculation

2015-03-18 Thread Hans de Goede
Hi, On 18-03-15 09:30, Stefan Roese wrote: The current implementation for baudrate calculation is incorrect. This part from the formula: "2 ^ (n + 1)" is not equivalent to (1 << n) but to (2 << n)! This patch fixes this and moves this calculation to a function instead of using a macro. This n

[U-Boot] [PATCH] powerpc/t2080rdb: update ddr to support 1866MT/s

2015-03-18 Thread Shengzhou Liu
Tested with SODIMM D3XP12081XL10AA 1866MT/s on T2080RDB. Enable CONFIG_CMD_MEMTEST as well. Signed-off-by: Shengzhou Liu --- board/freescale/t208xrdb/ddr.h | 4 ++-- include/configs/T208xRDB.h | 5 + 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/board/freescale/t208xrdb/

[U-Boot] [PATCH v2] i2c: mvtwsi: Fix problem with baud rate calculation

2015-03-18 Thread Stefan Roese
The current implementation for baudrate calculation is incorrect. This part from the formula: "2 ^ (n + 1)" is not equivalent to (1 << n) but to (2 << n)! This patch fixes this and moves this calculation to a function instead of using a macro. This new function is taken from the Linux kernel. T

Re: [U-Boot] iMX6 IPU configuration by EDID

2015-03-18 Thread Luca Ellero
On 17/03/2015 15:25, Eric Nelson wrote: Hi Luca, On 03/17/2015 03:04 AM, Luca Ellero wrote: Hi all, I'm trying to configure IPU on a iMX6 based platform by reading EDID from the external monitor. Everything seem to work fine except for the pixelclock. In particular my monitor has a standard r

Re: [U-Boot] [PATCH] i2c: mvtwsi: Fix problem with baud rate calculation

2015-03-18 Thread Stefan Roese
Hi Hans, On 18.03.2015 09:20, Hans de Goede wrote: I've send allwinner a mail asking them to clarify this. I've just gotten an answer from allwinner, and the formula in their datasheet is correct, with the raw register value == CLK_N so the current (before this patch) u-boot code is correct

Re: [U-Boot] [PATCH] i2c: mvtwsi: Fix problem with baud rate calculation

2015-03-18 Thread Hans de Goede
Hi, On 18-03-15 09:20, Hans de Goede wrote: Hi, On 17-03-15 12:15, Hans de Goede wrote: Hi, On 17-03-15 11:08, Stefan Roese wrote: The current implementation for baudrate calculation is incorrect. This part from the formula: "2 ^ (n + 1)" is not equivalent to (1 << n) but to (2 << n)! This

Re: [U-Boot] [PATCH] i2c: mvtwsi: Fix problem with baud rate calculation

2015-03-18 Thread Hans de Goede
Hi, On 17-03-15 12:15, Hans de Goede wrote: Hi, On 17-03-15 11:08, Stefan Roese wrote: The current implementation for baudrate calculation is incorrect. This part from the formula: "2 ^ (n + 1)" is not equivalent to (1 << n) but to (2 << n)! This patch fixes this and moves this calculation t

[U-Boot] [i2c] Pull request

2015-03-18 Thread Heiko Schocher
Hello Tom, please pull from u-boot-i2c.git The following changes since commit 052a681bae8ee91c9854089549b20c857d499fd7: Prepare v2015.04-rc4 (2015-03-17 16:37:48 -0400) are available in the git repository at: git://git.denx.de/u-boot-i2c.git master for you to fetch changes up to e6fbc3e4

Re: [U-Boot] [PATCH] mv_i2c: fix warnings on 64-bit builds

2015-03-18 Thread Heiko Schocher
Hello Rob, Am 17.03.2015 21:46, schrieb Rob Herring: Change addresses to unsigned long to be compatible with 64-bit builds. Signed-off-by: Rob Herring Cc: Heiko Schocher --- drivers/i2c/mv_i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Thanks! applied to u-boot-i2c.git bye

Re: [U-Boot] [PATCH] dfu: cmd: trigger watchdog before calling usb_gadget_handle_interrupts

2015-03-18 Thread Heiko Schocher
Hello Lukasz, Am 18.03.2015 08:44, schrieb Lukasz Majewski: Hi Heiko, Hello Lukasz, Am 17.03.2015 16:16, schrieb Lukasz Majewski: Hi Heiko, Hello Lukasz, Am 17.03.2015 13:56, schrieb Lukasz Majewski: Hi Heiko, Hello Lukasz, Am 17.03.2015 10:52, schrieb Lukasz Majewski: Hi Heiko, tr

[U-Boot] Pull request: u-boot-mmc 18032015

2015-03-18 Thread Pantelis Antoniou
Hi Tom, Only bug fixes for now, rather uneventful. The following changes since commit 3231e364bf8426a9c8fd5158fe2d155ae7b9: mmc: fsl_esdhc fix register offset (2015-03-17 09:09:47 -0400) are available in the git repository at: git://git.denx.de/u-boot-mmc.git master for you to fetch c

[U-Boot] [PATCH 07/10] arm: mvebu: Move CONFIG_SPL_LDSCRIPT to common header

2015-03-18 Thread Stefan Roese
This way, new MVEBU boards don't need to specifiy the common location for the SPL linker script. Signed-off-by: Stefan Roese --- arch/arm/mach-mvebu/include/mach/config.h | 5 + include/configs/db-mv784mp-gp.h | 1 - include/configs/maxbcm.h | 1 - 3 files changed

[U-Boot] [PATCH 02/10] arm: armada-xp: Move SoC headers to mach-mvebu/include/mach

2015-03-18 Thread Stefan Roese
Move arch/arm/include/asm/arch-armada-xp/* -> arch/arm/mach-mvebu/include/mach/* Additionally the SYS_SOC is renamed from "armada-xp" to "mvebu". With this change all these files can better be shared with other, newer Mavell MVEBU SoC's. Like the upcoming Armada 38x support. Signed-off-by: S

Re: [U-Boot] [PATCH] mv_sdhci: fix warnings on 64-bit builds

2015-03-18 Thread Pantelis Antoniou
Hi Rob, > On Mar 17, 2015, at 22:46 , Rob Herring wrote: > > Change addresses to unsigned long to be compatible with 64-bit builds. > Regardless of fixing warnings, the device is still only 32-bit capable. > > Signed-off-by: Rob Herring > Cc: Pantelis Antoniou > --- > drivers/mmc/mv_sdhci.c |

Re: [U-Boot] [PATCH] sdhci: fix warnings on 64-bit builds

2015-03-18 Thread Pantelis Antoniou
Hi Rob, > On Mar 17, 2015, at 22:46 , Rob Herring wrote: > > Change addresses to unsigned long to be compatible with 64-bit builds. > Regardless of fixing warnings, the device is still only 32-bit capable. > > Signed-off-by: Rob Herring > Cc: Pantelis Antoniou > --- > drivers/mmc/sdhci.c | 6

[U-Boot] [PATCH 01/10] arm: armada-xp: Move SoC sources to mach-mvebu

2015-03-18 Thread Stefan Roese
Move arch/arm/cpu/armv7armada-xp/* -> arch/arm/mach-mvebu/* Since this platform will be extended to support other Marvell SoC's as well, lets rename it directly to mvebu. This will be used by the upcoming Armada 38x suport (A38x). Signed-off-by: Stefan Roese Cc: Masahiro Yamada --- arch/arm/

[U-Boot] [PATCH 08/10] arm: mvebu: Add basic Armada 38x support

2015-03-18 Thread Stefan Roese
This patch adds support for the Marvell Armada 38x SoC family. Supported peripherals are: - UART - Ethernet (mvneta) - I2C - SPI (including SPI NOR flash) Tested on Marvell DB-88F6820-GP evaluation board. Signed-off-by: Stefan Roese --- arch/arm/mach-mvebu/cpu.c | 79

[U-Boot] [PATCH 10/10] arm: mvebu: Add Armada A38x DB-88F6820-GP board support

2015-03-18 Thread Stefan Roese
This patch adds support for the Marvell DB-88F6820-GP Armada A38x evaluation board. Supported peripherals are: - UART - Ethernet (mvneta) - I2C - SPI (including SPI NOR flash) Please note that this board support right now only supports the main U-Boot. Without the bin_hdr integration (DDR trainin

[U-Boot] [PATCH 03/10] arm: mvebu: Move mvebu-common into mach-mvebu

2015-03-18 Thread Stefan Roese
Now that the mach-mvebu directory exists and is used by Armada XP we can move the mvebu-common files into this directory as well. Signed-off-by: Stefan Roese Cc: Masahiro Yamada --- arch/arm/Makefile | 4 ++-- arch/arm/mach-mvebu/Makefile

[U-Boot] [PATCH 06/10] arm: mvebu: Only define MV88F78X60 for Armada XP

2015-03-18 Thread Stefan Roese
This define is used by the DDR training code for Armada XP. With the upcoming addition of Armada 38x support, lets only define it for Armada XP in this common header. Signed-off-by: Stefan Roese --- arch/arm/mach-mvebu/include/mach/config.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(

[U-Boot] [PATCH 04/10] arm: mvebu: Change header macros from ARMADA_XP to MVEBU

2015-03-18 Thread Stefan Roese
Since these files will be used for other MVEBU SoC's, lets reflect this in the headers marcos as well. Signed-off-by: Stefan Roese --- arch/arm/mach-mvebu/include/mach/config.h | 6 +++--- arch/arm/mach-mvebu/include/mach/cpu.h| 6 +++--- arch/arm/mach-mvebu/include/mach/soc.h| 8 --

[U-Boot] [PATCH 09/10] arm: mvebu: Change network init code to allow a more flexible setup

2015-03-18 Thread Stefan Roese
With the introduction of the Armada 38x support, its necessary to change the mvneta ethernet driver init call from always 4 times to a configurable value. Lets make this init call more flexible by moving the actually used devices to the config header. Additionally this patch takes care of the slig

[U-Boot] [PATCH 0/10] Add Marvell Armada A38x 88F6820 SoC support

2015-03-18 Thread Stefan Roese
This patch series adds support for the Marvell Armada A38x SoC's. Specifically the 88F6820 / 88F6828. Basic support for the DB-88F6820-GP evaluation board is added. Supporting the following interfaces: - UART - SPI (including SPI NOR flash) - I2C - Ethernet (neta) One big part of this new SoC su

[U-Boot] [PATCH 05/10] arm: mvebu: Remove unreferenced define

2015-03-18 Thread Stefan Roese
MAX_MVNETA_DEVS is not used anywhere in U-Boot. So lets remove it. Signed-off-by: Stefan Roese --- arch/arm/mach-mvebu/include/mach/soc.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/arm/mach-mvebu/include/mach/soc.h b/arch/arm/mach-mvebu/include/mach/soc.h index 202d5b8..f3e0398

Re: [U-Boot] [PATCH] mmc: sdhci: don't clobber adjacent registers

2015-03-18 Thread Pantelis Antoniou
Hi Matt, > On Feb 23, 2015, at 23:56 , Matt Reimer wrote: > > SDHCI_HOST_CONTROL is a byte-sized register, so don't write to it > as if it were a long, as that would result in clobbering the three > registers following. > > Signed-off-by: Matt Reimer > --- > drivers/mmc/sdhci.c |2 +- > 1 f

Re: [U-Boot] [PATCH] mmc: s5p: properly mask SELBASECLK

2015-03-18 Thread Pantelis Antoniou
Hi Matt, > On Feb 23, 2015, at 23:52 , Matt Reimer wrote: > > Properly mask SELBASECLK by using an actual mask rather than the > number of bits to shift in order to create the mask. > > Signed-off-by: Matt Reimer > --- > drivers/mmc/s5p_sdhci.c |2 +- > 1 file changed, 1 insertion(+), 1 del

Re: [U-Boot] [PATCH v2 0/3] Boot from the bootable paritions

2015-03-18 Thread Sjoerd Simons
The release of -rc4 reminded me that i never got around to pinging about this set: On Wed, 2015-02-25 at 23:23 +0100, Sjoerd Simons wrote: > In the discussion after the submission of the "Let the distro boot command > scan > all partitions" patchset it became clear the general consensus was that

Re: [U-Boot] [PATCH] dfu: cmd: trigger watchdog before calling usb_gadget_handle_interrupts

2015-03-18 Thread Lukasz Majewski
Hi Heiko, > Hello Lukasz, > > Am 17.03.2015 16:16, schrieb Lukasz Majewski: > > Hi Heiko, > > > >> Hello Lukasz, > >> > >> Am 17.03.2015 13:56, schrieb Lukasz Majewski: > >>> Hi Heiko, > >>> > Hello Lukasz, > > Am 17.03.2015 10:52, schrieb Lukasz Majewski: > > Hi Heiko, > >

[U-Boot] [PATCH v2 1/4] common/lcd_console: cleanup lcd_drawchars/lcd_putc_xy

2015-03-18 Thread Hannes Petermaier
From: Hannes Petermaier the capability of drawing some *str with count from lcd_drawchars is unnary. It is always called from lcd_putc_xy with one character of and count = 1. So we simply rename lcd_drawchars into lcd_putc_xy and remove the loops inside. Signed-off-by: Hannes Petermaier Signed

[U-Boot] [PATCH v2 2/4] common/lcd_console: ask only one-time for bg/fg-color per call

2015-03-18 Thread Hannes Petermaier
From: Hannes Petermaier Don't call the lcd_getfgcolor and lcd_getbgcolor within the "draw-loop", this only wastes time. Signed-off-by: Hannes Petermaier Signed-off-by: Hannes Petermaier --- Changes in v2: None common/lcd_console.c |7 ++- 1 file changed, 2 insertions(+), 5 deletions

[U-Boot] [PATCH v2 3/4] common/lcd_console: move single static variables into common (static) structure

2015-03-18 Thread Hannes Petermaier
From: Hannes Petermaier For coming implementation of lcd_console rotation, we will need some more variables for holding information about framebuffer size, rotation, ... For better readability we catch all them into a common structure. Signed-off-by: Hannes Petermaier Signed-off-by: Hannes Pet