Re: [U-Boot] [PATCH 2/2] ventana: Add Gateworks Ventana family support

2014-02-05 Thread Tim Harvey
On Mon, Feb 3, 2014 at 9:39 AM, Stefano Babic sba...@denx.de wrote: Hi Tim, On 01/02/2014 20:49, Tim Harvey wrote: Gateworks Ventana is a product family based on the i.MX6. This patch adds support for all boards in the Ventana family. Where possible, data from the boards EEPROM is used to

[U-Boot] u-boot compile error: Source object has EABI version 5, but target has EABI version 0

2014-02-05 Thread Abdullah YILDIZ
When I try to compile u-boot I get the following error: The error is explained in this link: http://www.denx.de/wiki/DULG/SourceObjectHasEABIVersion4ButTargetHasEABIVersion0 It works for another toolchain. However, I want to learn that if there is a way to compile it with the current

[U-Boot] enabling post for arm in uboot

2014-02-05 Thread shobin b
Hi, I have tried to build u-boot for iris board(toradex) with POST enabled, but its showing some compilation errors as, i=aapcs-linux -mno-thumb-interwork -march=armv5 -Werror -Wall -Wstrict-prototypes -fno-stack-protector -o tftp.o tftp.c -c

Re: [U-Boot] enabling post for arm in uboot

2014-02-05 Thread Michael Trimarchi
Hi Shobin On Wed, Feb 5, 2014 at 8:46 AM, shobin b shobin...@gmail.com wrote: Hi, I have tried to build u-boot for iris board(toradex) with POST enabled, but its showing some compilation errors as, i=aapcs-linux -mno-thumb-interwork -march=armv5 -Werror -Wall -Wstrict-prototypes

[U-Boot] [PATCH v2 0/6] usb:samsung: Exynos4 SoC USB code improvements

2014-02-05 Thread Lukasz Majewski
This patch series comprises several improvements for Exynos4 USB code. The most notable is transmission speed improvement (measured on Trats): From 9.51 MiB/s up to 27 MiB/s This is due to UDC driver optimizations. Also a code cleanup for THOR gadget has been included. Lukasz Majewski (6):

[U-Boot] [PATCH v2 2/6] usb:udc:samsung: Remove redundant cache operation from Samsung UDC driver

2014-02-05 Thread Lukasz Majewski
A set of cache operations (both invalidation and flush) were redundant in the S3C HS OTG Samsung driver: 1. s3c_udc_ep0_zlp - to transmit EP0's ZLP packets one don't need to flush the cache (since it is the zero length transmission) 2. s3c_udc_pre_setup and s3c_ep0_complete_out - cache

[U-Boot] [PATCH v2 1/6] usb:gadget:ums: Replace malloc calls with memalign to fix cache buffer alignment

2014-02-05 Thread Lukasz Majewski
Calls to malloc() have been replaced by memalign. It now provides proper buffer alignment. Signed-off-by: Lukasz Majewski l.majew...@samsung.com Cc: Marek Vasut ma...@denx.de --- Changes for v2: - Remove Change-Id. --- drivers/usb/gadget/f_mass_storage.c |4 ++-- 1 file changed, 2

[U-Boot] [PATCH v2 5/6] usb:gadget:f_thor: Allocate request up to THOR_PACKET_SIZE not ep-maxpacket

2014-02-05 Thread Lukasz Majewski
Now it is possible to allocate static request - which receives data from the host (OUT transaction) to the size of THOR packet. Signed-off-by: Lukasz Majewski l.majew...@samsung.com Cc: Marek Vasut ma...@denx.de --- Changes for v2: - Remove Change-Id: --- drivers/usb/gadget/f_thor.c |2 +-

[U-Boot] [PATCH v2 3/6] usb:udc:samsung: Allow burst transfers for non EP0 endpints

2014-02-05 Thread Lukasz Majewski
This patch removed obscure restriction on the HW setting of DMA transfers. Before this change each transaction sent up to 512 bytes (with packet count equal to 1) for non EP0 transfer. Now it is possible to setup DMA transaction up to DMA_BUFFER_SIZE. Test condition - test HW + measurement:

[U-Boot] [PATCH v2 6/6] usb:gadget:f_thor: cosmetic: Remove debug memset

2014-02-05 Thread Lukasz Majewski
Apparently debug memset (with a 0x55 value) has been overlooked in the f_thor code. Signed-off-by: Lukasz Majewski l.majew...@samsung.com Cc: Marek Vasut ma...@denx.de --- Changes for v2: - Remove Change-id: --- drivers/usb/gadget/f_thor.c |2 -- 1 file changed, 2 deletions(-) diff --git

[U-Boot] [PATCH v2 4/6] usb:udc:samsung: Zero copy approach for data passed to Samsung's UDC driver

2014-02-05 Thread Lukasz Majewski
The Samsung's UDC driver is not anymore copying data from USB requests to aligned internal buffers. Now it works directly in data allocated in the upper layers like UMS, DFU, THOR. This change is possible since those gadgets now must take care to allocate buffers aligned to cache line

Re: [U-Boot] [PATCH V3 2/3] ARM: tegra: rework boot scripts

2014-02-05 Thread Andreas Färber
Am 04.02.2014 23:59, schrieb Stephen Warren: From: Stephen Warren swar...@nvidia.com Update the common Tegra boot scripts in the default environment to a) Make use of the new exists shell command to avoid some error messges. messages; and exists became test -e b) Allow booting

[U-Boot] [PATCH] ARM: imx6: fix wrong fec clk

2014-02-05 Thread Markus Niebel
From: Markus Niebel markus.nie...@tqs.de imx_get_fecclk() returns enet_ref instead of ipg. Since the clock is used to calculate the prescaler for the MDIO interface wrong values can be calculated. Tested on a custom MX6S board with 100MBit interface Signed-off-by: Markus Niebel

[U-Boot] [PATCH] NET: fec_mxc: fix MDIO clock prescaler calculation

2014-02-05 Thread Markus Niebel
From: Markus Niebel markus.nie...@tqs.de The prescaler value for MDC is calculated wrong for MX6S. Implement the same logic as linux here which handles ENET_MAC different then original FEC. Tested on a custom board with i.MX6S and 100MBit PHY Signed-off-by: Markus Niebel markus.nie...@tqs.de

Re: [U-Boot] u-boot compile error: Source object has EABI version 5, but target has EABI version 0

2014-02-05 Thread Wolfgang Denk
Dear Abdullah, In message 1391536944.55409.yahoomail...@web140303.mail.bf1.yahoo.com you wrote: When I try to compile u-boot I get the following error: The error is explained in this link: http://www.denx.de/wiki/DULG/SourceObjectHasEABIVersion4ButTargetHasEABIVersion0 It works for

Re: [U-Boot] [PATCH v2 06/12] USB: gadget: added a saner gadget downloader registration API

2014-02-05 Thread Mateusz Zalega
On 02/05/14 08:13, Marek Vasut wrote: On Tuesday, February 04, 2014 at 06:02:38 PM, Mateusz Zalega wrote: Preprocessor definitions and hardcoded implementation selection in g_dnl core were replaced by a linker list made of (usb_function_name, bind_callback) pairs. Signed-off-by: Mateusz

Re: [U-Boot] [PATCH v2 6/8] cmd_mmc.c: Add 'partconf' command to mmc

2014-02-05 Thread Tom Rini
On Tue, Feb 04, 2014 at 09:58:06AM +0900, Jaehoon Chung wrote: On 01/31/2014 06:31 AM, Tom Rini wrote: Add a partconf sub-command to the mmc command to allow for setting the boot_ack, boot_partition and partition_access fields of PARTITION_CONFIG (formerly BOOT_CONFIG, EXT_CSD[179]). Part

[U-Boot] [PATCH] board: Add support for BR T-Series Motherboard

2014-02-05 Thread Hannes Petermaier
Adds support for Bernecker Rainer Industrieelektronik GmbH T-Series Motherboard, using TI's AM3352 SoC. Most of code is derived from TI's AM335x_EVM Signed-off-by: Hannes Petermaier oe5...@oevsv.at --- board/BuR/bur_tseries/Makefile | 13 + board/BuR/bur_tseries/board.c| 333

Re: [U-Boot] NAND bad block table

2014-02-05 Thread Michal Simek
On 02/04/2014 09:46 PM, Scott Wood wrote: On Tue, 2014-02-04 at 13:43 +0100, Michal Simek wrote: Hi Scott and others, I have a question regarding BBT position and number of blocks allocated for BBT. Did you face the issue with last 4 blocks broken in any NAND flash device since the default

[U-Boot] [PATCH v3 4/8] cmd_mmc.c: Add 'partconf' command to mmc

2014-02-05 Thread Tom Rini
Add a partconf sub-command to the mmc command to allow for setting the boot_ack, boot_partition and partition_access fields of PARTITION_CONFIG (formerly BOOT_CONFIG, EXT_CSD[179]). Part of this requires changing the check for 'part' from an strncmp to a strcmp, like the rest of the sub-commands.

[U-Boot] [PATCH v3 2/8] cmd_mmc.c: Change 'bootpart' code to match normal coding style

2014-02-05 Thread Tom Rini
Acked-by: Jaehoon Chung jh80.ch...@samsung.com Signed-off-by: Tom Rini tr...@ti.com --- common/cmd_mmc.c | 15 +++ 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/common/cmd_mmc.c b/common/cmd_mmc.c index da5fef9..e118252 100644 --- a/common/cmd_mmc.c +++

[U-Boot] [PATCH v3 5/8] cmd_mmc.c: Add bootbus mmc sub-command

2014-02-05 Thread Tom Rini
Add a bootbus sub-command to the mmc command to allow for setting the boot_bus_width, reset_boot_bus_width and boot_mode fields of BOOT_BUS_WIDTH (EXT_CSD[177]). Acked-by: Jaehoon Chung jh80.ch...@samsung.com Signed-off-by: Tom Rini tr...@ti.com --- common/cmd_mmc.c | 29

[U-Boot] [PATCH v3 1/8] SPL: Add CONFIG_SUPPORT_EMMC_BOOT support to CONFIG_SPL_FRAMEWORK

2014-02-05 Thread Tom Rini
We use the switch CONFIG_SUPPORT_EMMC_BOOT today to enable some additional features of the eMMC boot partitions. Add support for being told that we have booted from one of these partitions to the spl framework and implement this on TI OMAP/related. Cc: Pantelis Antoniou

[U-Boot] [PATCH v3 7/8] omap5_uevm: Add CONFIG_SUPPORT_EMMC_BOOT, document usage

2014-02-05 Thread Tom Rini
Add a README to the board which lists the commands required to enable booting from the eMMC boot partitions found on the board. Signed-off-by: Tom Rini tr...@ti.com --- board/ti/omap5_uevm/README | 25 + include/configs/omap5_uevm.h |1 + 2 files changed, 26

[U-Boot] [PATCH v3 3/8] cmd_mmc.c: Rename 'bootpart' to 'bootpart-resize'

2014-02-05 Thread Tom Rini
Rename 'bootpart' to 'bootpart-resize' to better reflect what this command is for. Acked-by: Jaehoon Chung jh80.ch...@samsung.com Signed-off-by: Tom Rini tr...@ti.com --- common/cmd_mmc.c |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/common/cmd_mmc.c

[U-Boot] [PATCH v3 8/8] dra7xx_evm: Add CONFIG_SUPPORT_EMMC_BOOT, document usage

2014-02-05 Thread Tom Rini
Add a README to the board which lists the commands required to enable booting from the eMMC boot partitions found on the board. Cc: Lokesh Vutla lokeshvu...@ti.com Signed-off-by: Tom Rini tr...@ti.com --- board/ti/dra7xx/README | 25 + include/configs/dra7xx_evm.h

[U-Boot] [PATCH v3 6/8] cmd_mmc.c: Drop open/close mmc sub-commands

2014-02-05 Thread Tom Rini
The open and close mmc sub-commands implement a hard-coded set of values specific to the SMDK5250 platform. Remove these commands as what they did can be done instead with a series of mmc dev / bootpart / bootbus commands instead now. Cc: Amar amarendra...@samsung.com Cc: Minkyu Kang

Re: [U-Boot] [PATCH V3 2/3] ARM: tegra: rework boot scripts

2014-02-05 Thread Stephen Warren
On 02/05/2014 02:16 AM, Andreas Färber wrote: Am 04.02.2014 23:59, schrieb Stephen Warren: From: Stephen Warren swar...@nvidia.com Update the common Tegra boot scripts in the default environment to a) Make use of the new exists shell command to avoid some error messges. b) Allow

[U-Boot] [PATCH V4 2/3] ARM: tegra: rework boot scripts

2014-02-05 Thread Stephen Warren
From: Stephen Warren swar...@nvidia.com Update the common Tegra boot scripts in the default environment to a) Make use of the new test -e shell command to avoid some error messages. b) Allow booting using the sysboot command and extlinux.conf. This allows easy creation of boot menus, and

[U-Boot] [PATCH V4 1/3] ARM: tegra: convert tegra to use distro defaults

2014-02-05 Thread Stephen Warren
From: Stephen Warren swar...@nvidia.com Modify all Tegra boards to include the distro defaults header, so that all the config options distros expect are enabled. Remove any #defines that enable the same options from the Tegra files. Signed-off-by: Stephen Warren swar...@nvidia.com --- v4: No

[U-Boot] [PATCH V4 3/3] ARM: tegra: implement bootcmd_pxe

2014-02-05 Thread Stephen Warren
From: Stephen Warren swar...@nvidia.com This retrieves a PXE config file over the network, and executes it. This allows an extlinux config file to be retrieved over the network and executed, whereas the existing bootcmd_dhcp retrieves a U-Boot script. Signed-off-by: Stephen Warren

Re: [U-Boot] [PATCH v2] board: Add support for BR T-Series Motherboard

2014-02-05 Thread Wolfgang Denk
Dear Hannes, In message 1391606231-24963-1-git-send-email-oe5...@oevsv.at you wrote: Adds support for Bernecker Rainer Industrieelektronik GmbH T-Series Motherboard, using TI's AM3352 SoC. Most of code is derived from TI's AM335x_EVM Signed-off-by: Hannes Petermaier oe5...@oevsv.at Cc:

Re: [U-Boot] [PATCH] board: Add support for BR KWB Motherboard

2014-02-05 Thread Tom Rini
On Wed, Feb 05, 2014 at 04:47:04PM +0100, Hannes Petermaier wrote: Adds support for Bernecker Rainer Industrieelektronik GmbH KWB Motherboard, using TI's AM3352 SoC. Most of code is derived from TI's AM335x_EVM Signed-off-by: Hannes Petermaier oe5...@oevsv.at Cc: tr...@ti.com ---

Re: [U-Boot] [PATCH] board: Add support for BR KWB Motherboard

2014-02-05 Thread Wolfgang Denk
Dear Hannes, In message 1391615224-26493-1-git-send-email-oe5...@oevsv.at you wrote: Adds support for Bernecker Rainer Industrieelektronik GmbH KWB Motherboard, using TI's AM3352 SoC. Most of code is derived from TI's AM335x_EVM Signed-off-by: Hannes Petermaier oe5...@oevsv.at Cc:

Re: [U-Boot] [PATCH v2 06/12] USB: gadget: added a saner gadget downloader registration API

2014-02-05 Thread Marek Vasut
On Wednesday, February 05, 2014 at 01:40:27 PM, Mateusz Zalega wrote: [...] Are these two new functions called from multiple places at all? If not, just inline these ll_foo() calls and be done with it. FYI you can also make macros for these to avoid having to type all these args all around

Re: [U-Boot] NAND bad block table

2014-02-05 Thread Scott Wood
On Wed, 2014-02-05 at 15:16 +0100, Michal Simek wrote: On 02/04/2014 09:46 PM, Scott Wood wrote: On Tue, 2014-02-04 at 13:43 +0100, Michal Simek wrote: Hi Scott and others, I have a question regarding BBT position and number of blocks allocated for BBT. Did you face the issue with

[U-Boot] [RFC PATCH 1/1] Read mmc device memory capacity from EXT_CSD if memory is addressed by sector

2014-02-05 Thread Frank Bormann
Hello Everyone, I believe, there is a bug in the mmc driver code pertaining to how u-boot detects memory size of an mmc device. However, I am not 100% sure, my solution conforms to the JEDEC standard. So I am putting it up for discussion. Previously, sector count indicated by mmc devices in

Re: [U-Boot] [PATCH] powerpc/t104xrdb, t1040qds : Update FMAN microcode NOR address

2014-02-05 Thread York Sun
On 02/04/2014 10:12 PM, Priyanka Jain wrote: FMAN microcode image address range on NOR flash changed from (0xeff0 to 0xebf1) to (0xeff1 to 0xeff1) The change has been done - to support FMAN microcode flashing via promjet mechanism as promjet uses address based on offsets.

Re: [U-Boot] [PATCH v2 2/3] dts: move device tree sources to arch/$(ARCH)/dts/

2014-02-05 Thread Simon Glass
Hi Masahiro, On 4 February 2014 02:38, Masahiro Yamada yamad...@jp.panasonic.com wrote: Unlike Linux Kernel, U-Boot historically had *.dts files under board/$(VENDOR)/dts/ and *.dtsi files under arch/$(ARCH)/dts/. I think arch/$(ARCH)/dts dicretory is a better location to store both *.dts

[U-Boot] [PATCH] common: Remove invalid endianess conversion

2014-02-05 Thread Christian Eggers
do_bootm_standanlone() calls ntohl(images-ep) which is obviously wrong (find . -name '*.c' | xargs grep -n -- 'images-ep'). Without this conversion the code works correctly at least on ARM9. Addtionally appl must not be dereferenced with the * operator. Signed-off-by: Christian Eggers

Re: [U-Boot] [PATCH] common: Remove invalid endianess conversion

2014-02-05 Thread Wolfgang Denk
Dear Christian Eggers, In message 1391633046-8878-1-git-send-email-cegg...@gmx.de you wrote: do_bootm_standanlone() calls ntohl(images-ep) which is obviously wrong (find . -name '*.c' | xargs grep -n -- 'images-ep'). Without this conversion the code works correctly at least on ARM9.

[U-Boot] [PATCH v3 0/2] IMX6: Add Gateworks Ventana support

2014-02-05 Thread Tim Harvey
Changes in v3: - update README fixing typo and removing Freescale document link - use debug() instead of printf() - be more explicit with hwmon error output and use macro for min/max percent - use #defines for GSC slave address and registers - remove extern from function prototype -

[U-Boot] [PATCH v3 1/2] power: add PFUZE100 PMIC driver

2014-02-05 Thread Tim Harvey
Signed-off-by: Tim Harvey thar...@gateworks.com Cc: Stefano Babic sba...@denx.de --- Changes in v2: - remove detect and device_id display from pmic_init() drivers/power/pmic/Makefile| 1 + drivers/power/pmic/pmic_pfuze100.c | 33 + include/power/pfuze100_pmic.h | 96

[U-Boot] [PATCH v3 1/2] power: add PFUZE100 PMIC driver

2014-02-05 Thread Tim Harvey
Signed-off-by: Tim Harvey thar...@gateworks.com Cc: Stefano Babic sbabic at denx.de --- Changes in v2: - remove detect and device_id display from pmic_init() drivers/power/pmic/Makefile| 1 + drivers/power/pmic/pmic_pfuze100.c | 33 + include/power/pfuze100_pmic.h |

Re: [U-Boot] [PATCH v3 2/2] ventana: Add Gateworks Ventana family support

2014-02-05 Thread Wolfgang Denk
Dear Tim Harvey, In message 1391642553-25778-1-git-send-email-thar...@gateworks.com you wrote: Gateworks Ventana is a product family based on the i.MX6. This patch adds support for all boards in the Ventana family. Where possible, data from the boards EEPROM is used to determine various

Re: [U-Boot] [PATCH v3 2/2] ventana: Add Gateworks Ventana family support

2014-02-05 Thread Tim Harvey
On Wed, Feb 5, 2014 at 3:43 PM, Wolfgang Denk w...@denx.de wrote: Dear Tim Harvey, In message 1391642553-25778-1-git-send-email-thar...@gateworks.com you wrote: Gateworks Ventana is a product family based on the i.MX6. This patch adds support for all boards in the Ventana family. Where

Re: [U-Boot] [PATCH] serial: s5p: set automatically clears after resetting Rx FIFO

2014-02-05 Thread Minkyu Kang
On 04/02/14 14:57, Inha Song wrote: This patch fix the u-boot shell problem on TRATS2 board. - If hold the key while booting is in progress, white spaces are written in u-boot shell. Set Automatically clears after resetting Rx FIFO. Signed-off-by: Inha Song ideal.s...@samsung.com

Re: [U-Boot] [PATCH v2 1/6] usb:gadget:ums: Replace malloc calls with memalign to fix cache buffer alignment

2014-02-05 Thread Marek Vasut
On Wednesday, February 05, 2014 at 10:10:41 AM, Lukasz Majewski wrote: Calls to malloc() have been replaced by memalign. It now provides proper buffer alignment. Signed-off-by: Lukasz Majewski l.majew...@samsung.com Cc: Marek Vasut ma...@denx.de --- Changes for v2: - Remove Change-Id.

Re: [U-Boot] [PATCH v2 0/6] usb:samsung: Exynos4 SoC USB code improvements

2014-02-05 Thread Marek Vasut
On Wednesday, February 05, 2014 at 10:10:40 AM, Lukasz Majewski wrote: This patch series comprises several improvements for Exynos4 USB code. The most notable is transmission speed improvement (measured on Trats): From 9.51 MiB/s up to 27 MiB/s This is due to UDC driver optimizations.

[U-Boot] [PATCH] usb: mv_udc: Rename to ci_udc

2014-02-05 Thread Marek Vasut
The mv_udc is not marvell-specific anymore. The mv_udc is used to drive generic ChipIdea CI13xxx series OTG cores, so rename the driver to ci_udc instead. Signed-off-by: Marek Vasut ma...@denx.de Cc: Eric Nelson eric.nel...@boundarydevices.com Cc: Stefano Babic sba...@denx.de ---

Re: [U-Boot] [PATCH] usb: mv_udc: Rename to ci_udc

2014-02-05 Thread Fabio Estevam
On Wed, Feb 5, 2014 at 11:49 PM, Marek Vasut ma...@denx.de wrote: The mv_udc is not marvell-specific anymore. The mv_udc is used to drive generic ChipIdea CI13xxx series OTG cores, so rename the driver to ci_udc instead. Signed-off-by: Marek Vasut ma...@denx.de Cc: Eric Nelson

Re: [U-Boot] [PATCH RESEND] MMC: DWMMC: Correct the CLKDIV register value

2014-02-05 Thread Jaehoon Chung
Hi. Right, It's reasonable. Looks good to me. Acked-by: Jaehoon Chung jh80.ch...@samsung.com Best Regards, Jaehoon Chung On 02/05/2014 02:58 PM, Rajeshwari Birje wrote: Hi All, CCing Jaehoon Chung. Regards, Rajeshwari On Wed, Feb 5, 2014 at 10:48 AM, Rajeshwari Shinde

[U-Boot] [PULL] u-boot-pxa/master

2014-02-05 Thread Marek Vasut
The following changes since commit e97f9d817e600cd6f43d1d0da76f5787e33a5c56: Merge branch 'u-boot-ti/master' into 'u-boot-arm/master' (2014-01-29 14:07:50 +0100) are available in the git repository at: git://git.denx.de/u-boot-pxa.git master for you to fetch changes up to

[U-Boot] [PATCH] i2c: i2c-mxs: Wait for I2C to empty queue

2014-02-05 Thread Marek Vasut
Make sure the I2C write queue is empty before leaving the mxs_i2c_write(). If we start and I2C write and only wait for ACK, the MXS I2C IP block may enter next operation while still processing the write aftermath internally. This will in turn disrupt one or more subsequent transfer(s). A testcase

Re: [U-Boot] [PATCH] usb: mv_udc: Rename to ci_udc

2014-02-05 Thread Eric Nelson
Hi Marek, On 02/05/2014 06:49 PM, Marek Vasut wrote: The mv_udc is not marvell-specific anymore. The mv_udc is used to drive generic ChipIdea CI13xxx series OTG cores, so rename the driver to ci_udc instead. Sounds good. Signed-off-by: Marek Vasut ma...@denx.de Cc: Eric Nelson

[U-Boot] [PATCH] ARM: bcm2835: fix mbox POWER_STATE_RESP_ON value

2014-02-05 Thread Stephen Warren
Typo: The correct value is 1 not 2. Signed-off-by: Stephen Warren swar...@wwwdotorg.org --- arch/arm/include/asm/arch-bcm2835/mbox.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/include/asm/arch-bcm2835/mbox.h b/arch/arm/include/asm/arch-bcm2835/mbox.h index

[U-Boot] [PATCH] tools: mxsboot: Implement SPI SMEM block support

2014-02-05 Thread Marek Vasut
This patch adds support for augmenting the BootStream with the SMEM block. For further details on the SMEM block, please refer to i.MX28 datasheet section 12.10 . NOTE: It is absolutely optional to augment BootStream with SMEM block. The SMEM block is only useful if you need to tweak

[U-Boot] [PATCH 1/4] aes: Fix kerneldoc for aes.h

2014-02-05 Thread Marek Vasut
Fix the function annotations in aes.h so they're compatible with kerneldoc. Signed-off-by: Marek Vasut ma...@denx.de --- include/aes.h | 22 -- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/include/aes.h b/include/aes.h index ea06308..c70eda6 100644 ---

[U-Boot] [PATCH 4/4] aes: Add 'aes' command to access AES-128-CBC

2014-02-05 Thread Marek Vasut
Add simple 'aes' command, which allows using the AES-128-CBC encryption and decryption functions from U-Boot command line. Signed-off-by: Marek Vasut ma...@denx.de --- README | 1 + common/Makefile | 1 + common/cmd_aes.c | 89

[U-Boot] [PATCH 2/4] aes: Move the AES-128-CBC encryption function to common code

2014-02-05 Thread Marek Vasut
Move the AES-128-CBC encryption function implemented in tegra20-common/crypto.c into lib/aes.c . This is well re-usable common code. Moreover, clean the code up a bit and fix the kerneldoc-style annotations. Signed-off-by: Marek Vasut ma...@denx.de --- arch/arm/cpu/tegra20-common/crypto.c | 72

[U-Boot] [PATCH 3/4] aes: Implement AES-128-CBC decryption function

2014-02-05 Thread Marek Vasut
Implement a compatible AES-128-CBC decryption function as a counterpart of the encryption function pulled from tegra20-common/crypto.c . Signed-off-by: Marek Vasut ma...@denx.de --- include/aes.h | 10 ++ lib/aes.c | 28 2 files changed, 38 insertions(+)

[U-Boot] [PATCH 3/3] env: Implement support for AES encryption into fw_* tools

2014-02-05 Thread Marek Vasut
Implement support for encrypting/decrypting the environment block into the tools/env/fw_* tools. The cipher used is AES 128 CBC and the implementation depends solely on components internal to U-Boot. To allow building against the internal AES library, the library did need minor adjustments to not

[U-Boot] [PATCH 1/3] env: Add env_export() wrapper

2014-02-05 Thread Marek Vasut
Implement env_export() wrapper, so that all implementers of saveenv() don't have to call hexport_r(), crc32() etc. sequence . This trims down a bit of code duplication. Signed-off-by: Marek Vasut ma...@denx.de --- common/env_common.c| 17 + common/env_dataflash.c | 17

[U-Boot] [PATCH 2/3] env: Implement support for encrypting environment

2014-02-05 Thread Marek Vasut
Add function which allows encrypting the whole environment block with AES-128-CBC. The key for the environment is retrieved by env_aes_cbc_get_key() function, which must be implemented on a per-board basis. Signed-off-by: Marek Vasut ma...@denx.de --- common/env_common.c | 62

[U-Boot] [PATCH 1/3] fit: Add support for SHA256 hash

2014-02-05 Thread Marek Vasut
This patch adds support for SHA-256 hash into the FIT image. The usage is as with the other hashing algorithms: hash@1 { algo = sha256; }; Signed-off-by: Marek Vasut ma...@denx.de --- common/image-fit.c | 5 + include/image.h| 15 ++-

[U-Boot] [PATCH 2/3] fit: rsa: Add groundwork to support other hashes

2014-02-05 Thread Marek Vasut
Separate out the SHA1 code from the rsa-sign.c and rsa-verify.c . Each file now has a function which does the correct hashing operation instead of having the SHA-1 hashing operation hard-coded in the rest of the code. This makes adding a new hashing operating much easier and cleaner.

[U-Boot] [PATCH 3/3] fit: rsa: Add support for SHA256 hash

2014-02-05 Thread Marek Vasut
Add support for sha256,rsa2048 signature. This patch utilises the previously laid groundwork for adding other hashes. Signed-off-by: Marek Vasut ma...@denx.de --- common/image-sig.c | 8 +++- lib/rsa/rsa-sign.c | 5 + lib/rsa/rsa-verify.c | 58

[U-Boot] [PATCH V2] usb: mv_udc: Rename to ci_udc

2014-02-05 Thread Marek Vasut
The mv_udc is not marvell-specific anymore. The mv_udc is used to drive generic ChipIdea CI13xxx series OTG cores, so rename the driver to ci_udc instead. Signed-off-by: Marek Vasut ma...@denx.de Cc: Eric Nelson eric.nel...@boundarydevices.com Cc: Stefano Babic sba...@denx.de ---

[U-Boot] [PULL] u-boot-usb/master

2014-02-05 Thread Marek Vasut
The following changes since commit e141652b9cd0cb4f899f7a0fd71c8a438300e365: config: Fix line lengths in include/config_distro_defaults.h (2014-02-05 08:04:38 -0500) are available in the git repository at: git://git.denx.de/u-boot-usb.git master for you to fetch changes up to

Re: [U-Boot] [PATCH] usb: mv_udc: Rename to ci_udc

2014-02-05 Thread Marek Vasut
On Thursday, February 06, 2014 at 04:11:05 AM, Eric Nelson wrote: Hi Marek, On 02/05/2014 06:49 PM, Marek Vasut wrote: The mv_udc is not marvell-specific anymore. The mv_udc is used to drive generic ChipIdea CI13xxx series OTG cores, so rename the driver to ci_udc instead. Sounds

[U-Boot] [PATCH V2 3/4] ARM: rpi_b: load /uEnv.txt from MMC at startup

2014-02-05 Thread Stephen Warren
The Pi has no flash to store an environment in the usual fashion. However, the user may wish to customize the environment. We know that the SD card must be present, since that's where the boot ROM has loaded U-Boot from. So, load uEnv.txt from there early during boot. This allows the user to e.g.

[U-Boot] [PATCH V2 2/4] ARM: rpi_b: convert to use distro defaults

2014-02-05 Thread Stephen Warren
Modify the rpi_b board to include the distro defaults header, so that all the config options distros expect are enabled. Remove any #defines that enable the same options from the rpi_b.h. Signed-off-by: Stephen Warren swar...@wwwdotorg.org --- v2: No change. Patches 2/4 and 4/4 depend on various

[U-Boot] [PATCH V2 4/4] ARM: rpi_b: rework boot scripts, enable sysboot

2014-02-05 Thread Stephen Warren
Rework rpi_b's bootcmd (and sub-commands) to match Tegra's bootcmd as much as possible. This will aid in a future patch which will create a common header e.g. config_distro_bootcmd.h. While at it, enable booting from extlinux.conf using the sysboot command. The iteration and componentization

[U-Boot] [PATCH V2 1/4] pxe: allow compilation when !defined(CONFIG_CMD_NET)

2014-02-05 Thread Stephen Warren
pxe.c provides both the pxe command which relies on a network, and the sysboot command which doesn't. Fix the file to compile when network support isn't enabled. This is useful e.g. on the Raspberry Pi which has no network support yet, but will soon support the sysboot command. Signed-off-by:

Re: [U-Boot] [PATCH v2 6/8] cmd_mmc.c: Add 'partconf' command to mmc

2014-02-05 Thread Jaehoon Chung
Dear, Tom. On 02/05/2014 10:03 PM, Tom Rini wrote: On Tue, Feb 04, 2014 at 09:58:06AM +0900, Jaehoon Chung wrote: On 01/31/2014 06:31 AM, Tom Rini wrote: Add a partconf sub-command to the mmc command to allow for setting the boot_ack, boot_partition and partition_access fields of

Re: [U-Boot] [PATCH 1/3] fit: Add support for SHA256 hash

2014-02-05 Thread Heiko Schocher
Hello Marek, Am 06.02.2014 04:47, schrieb Marek Vasut: This patch adds support for SHA-256 hash into the FIT image. The usage is as with the other hashing algorithms: hash@1 { algo = sha256; }; Signed-off-by: Marek Vasutma...@denx.de --- common/image-fit.c

[U-Boot] [PATCH 1/2] exynos: clock: fixed that cfg is set to wrong value.

2014-02-05 Thread Jaehoon Chung
From: Inha Song ideal.s...@samsung.com This patch fixed that cfg value is set to wrong value. Because it didn't read the related register. (Based on Inha's patch : arm:exynos:add missing readl) Signed-off-by: Inha Song ideal.s...@samsung.com Signed-off-by: Jaehoon Chung jh80.ch...@samsung.com

[U-Boot] [PATCH 2/2] exynos: clock: use the clear and set bits macros.

2014-02-05 Thread Jaehoon Chung
From: Inha Song ideal.s...@samsung.com Use setbits/clrbits macro instead of readl/writel function. (Suggested by Wolfgang) (Based on Inha's patch : arm: exynos: change to use clrbits macro instead of readl/writel function) Singed-off-by: Inha Song ideal.s...@samsung.com Signed-off-by: Jaehoon

[U-Boot] [RFC PATCH 1/2] ARM: rpi_b: enable USB features in config

2014-02-05 Thread Stephen Warren
* Enable USB HW driver * Don't disable USB-related commands any more * Add USB-related support to bootcmd Signed-off-by: Stephen Warren swar...@wwwdotorg.org --- These two patches are RFC, since they rely on the DWC2 USB driver, from: [RFC PATCH] usb: add driver for Synopsis DWC2 USB IP block

[U-Boot] [RFC PATCH 2/2] ARM: rpi_b: query internal MAC address from firmware

2014-02-05 Thread Stephen Warren
The built-in SMSC 95xx chip doesn't know its own MAC address. Instead, we must query it from the VC firmware; it's probably encoded in fuses on the BCM2835. Signed-off-by: Stephen Warren swar...@wwwdotorg.org --- arch/arm/include/asm/arch-bcm2835/mbox.h | 14 ++

Re: [U-Boot] [PATCH v2 2/3] dts: move device tree sources to arch/$(ARCH)/dts/

2014-02-05 Thread Masahiro Yamada
Hello Simon, Hi Masahiro, On 4 February 2014 02:38, Masahiro Yamada yamad...@jp.panasonic.com wrote: Unlike Linux Kernel, U-Boot historically had *.dts files under board/$(VENDOR)/dts/ and *.dtsi files under arch/$(ARCH)/dts/. I think arch/$(ARCH)/dts dicretory is a better location

Re: [U-Boot] [PATCH v2 1/6] usb:gadget:ums: Replace malloc calls with memalign to fix cache buffer alignment

2014-02-05 Thread Lukasz Majewski
Hi Marek, On Wednesday, February 05, 2014 at 10:10:41 AM, Lukasz Majewski wrote: Calls to malloc() have been replaced by memalign. It now provides proper buffer alignment. Signed-off-by: Lukasz Majewski l.majew...@samsung.com Cc: Marek Vasut ma...@denx.de --- Changes for v2:

Re: [U-Boot] [RFC PATCH] usb: add driver for Synopsis DWC2 USB IP block

2014-02-05 Thread Marek Vasut
On Thursday, February 06, 2014 at 06:27:01 AM, Stephen Warren wrote: Tom, Wolfgang, can you please check the license of the drivers/usb/host/dwc2_otg_core_if.h below ? Thanks! [...] +void handle_error(int line, uint32_t d) +{ + hcint_data_t hcint; + hcint.d32 = d; + +

Re: [U-Boot] [PATCH v2 1/6] usb:gadget:ums: Replace malloc calls with memalign to fix cache buffer alignment

2014-02-05 Thread Marek Vasut
On Thursday, February 06, 2014 at 07:33:07 AM, Lukasz Majewski wrote: Hi Marek, On Wednesday, February 05, 2014 at 10:10:41 AM, Lukasz Majewski wrote: Calls to malloc() have been replaced by memalign. It now provides proper buffer alignment. Signed-off-by: Lukasz Majewski

[U-Boot] i.mx6 board booting

2014-02-05 Thread JYOTI DUBEY
I followed the following commands to achieve a successful booting of i.mx6 board using SD card dd if=u-boot.imx of=/dev/sdb bs=1k seek=1 The above command burnt the u-boot.imx image on the SD card though nothing was seen on SD card. Next the gtkterm configurations were set and after the board was