Re: [U-Boot] [PATCH] RFC: samsung: i2c: Enable new CONFIG_SYS_I2C framework

2013-11-07 Thread Piotr Wilczek
Dear Naveen, On 10/14/2013 08:06 AM, Heiko Schocher wrote: Hello Naveen, Am 30.09.2013 08:58, schrieb Naveen Krishna Chatradhi: This enables CONFIG_SYS_I2C on Samsung, updating existing s3c24x0 i2c driver to support this. Note: Not for merge, Just for review and suggestions. Signed-off-by: N

Re: [U-Boot] fw_setenv device not accessible

2013-11-07 Thread Wolfgang Denk
Dear pshambhu, In message <1383894946586-167013.p...@n7.nabble.com> you wrote: > > In u-boot i am passing mtdargs in RW mode only. but still i am unable > to change the values.Yeah its true that mtd4 device is in READ only mode, > but how can i change the access permission of the device, so

Re: [U-Boot] livetime of boards

2013-11-07 Thread Wolfgang Denk
Dear Heiko, In message <527c7716.8060...@denx.de> you wrote: > > > You, you can use a mailing list for submitting such information, but I > > doubt that it would be efficient. And I definitely do not want to see > > this on the current U-Boot ML. > > Ok, let us discuss the way we collect such i

Re: [U-Boot] fw_setenv device not accessible

2013-11-07 Thread pshambhu
Hi, In u-boot i am passing mtdargs in RW mode only. but still i am unable to change the values.Yeah its true that mtd4 device is in READ only mode, but how can i change the access permission of the device, so that i can set/change the u-boot environment variable values from the Linux platfo

Re: [U-Boot] livetime of boards

2013-11-07 Thread Heiko Schocher
Hello Wolfgang, Am 08.11.2013 07:20, schrieb Wolfgang Denk: Dear Heiko, In message<527c767d.3070...@denx.de> you wrote: Yes, this is perfectly fine. I just want to allow this at _any_ time, not only once per release (near the end of the release cycle). especially for releases where bigger

[U-Boot] am335x_evm.h

2013-11-07 Thread matti kaasinen
Hi! 1) Is there specific reason why mmc configurations were dropped from this includ/configs/am335x_evm.h? 2) Why partition number 7 has been skipped in DFU_ALT_INFO_NAND definition in above file? -Matti ___ U-Boot mailing list U-Boot@lists.denx.de http

Re: [U-Boot] [RESEND PATCH v14 07/10] arm64: core support

2013-11-07 Thread york sun
> > On Nov 7, 2013, at 9:03 PM, FengHua wrote: >>> >> I have verified these two changes on Foudation Model. It's ok, very fast. >> > I have verified this change on emulator, too. I have to enable i-cache first to speed it up. York ___ U-

Re: [U-Boot] livetime of boards

2013-11-07 Thread Wolfgang Denk
Dear Heiko, In message <527c767d.3070...@denx.de> you wrote: > > > Yes, this is perfectly fine. I just want to allow this at _any_ time, > > not only once per release (near the end of the release cycle). > > especially for releases where bigger changes get merged it may be > > precious informati

Re: [U-Boot] [PATCH 1/2] ARM: DRA: EMIF: Change DDR3 settings to use hw leveling

2013-11-07 Thread Sricharan R
Hi Tom, On Thursday 07 November 2013 08:33 PM, Tom Rini wrote: > On Thu, Nov 07, 2013 at 08:17:39PM +0530, Sricharan R wrote: > >> Currently the DDR3 memory on DRA7 ES1.0 evm board is enabled using >> software leveling. This was done since hardware leveling was not >> working. Now that the right s

Re: [U-Boot] livetime of boards

2013-11-07 Thread Heiko Schocher
Hello Wolfgang, Am 07.11.2013 20:26, schrieb Wolfgang Denk: Dear Tom, In message<20131107133159.GR5925@bill-the-cat> you wrote: I feel this is the hard part of the problem, and what we're glossing over. What has to be tested by the board maintainer? What are we going to leave to their disc

Re: [U-Boot] livetime of boards

2013-11-07 Thread Heiko Schocher
Hello Wolfgang, Am 07.11.2013 20:19, schrieb Wolfgang Denk: Dear Heiko Schocher, In message<527b8c7f.6060...@denx.de> you wrote: All you want to do here is feed a database with data. This is not what mailing lists were made for, so we should really use a more appropriate interface. Ok. B

Re: [U-Boot] livetime of boards

2013-11-07 Thread Heiko Schocher
Hello Wolfgang, Am 07.11.2013 20:15, schrieb Wolfgang Denk: Dear Heiko, In message<527b8ba7.2070...@denx.de> you wrote: Agreed too. I doubt if a mailing list makes sense to collect such data. It would probably be more efficient to provide a web based service for this. It just has to be easy

Re: [U-Boot] soft vs. hard float

2013-11-07 Thread Wolfgang Denk
Dear "Saridakis, Dean (US SSA)", In message <20131107230556.589fc4a...@theia.denx.de> you wrote: > > It looks U-Boot is generally built using soft float. I need correct. > hard-float in my system. Is this a general enough need that it'd make > sense to have a CONFIG_SYS_HARD_FLOAT to enable this

Re: [U-Boot] livetime of boards

2013-11-07 Thread Heiko Schocher
Hello Tom, Am 07.11.2013 14:31, schrieb Tom Rini: On Thu, Nov 07, 2013 at 10:37:24AM +0100, Andreas Bie?mann wrote: Hello all together, On 11/07/2013 09:17 AM, Heiko Schocher wrote: Am 06.11.2013 08:50, schrieb Wolfgang Denk: [snip] So when you're once again doing some change that requires

[U-Boot] [PATCH] powerpc/p4080: enable support for PCIe SATA

2013-11-07 Thread shh.xie
From: Shaohui Xie Signed-off-by: Shaohui Xie --- include/configs/P4080DS.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/include/configs/P4080DS.h b/include/configs/P4080DS.h index b0cd7d5..2f89008 100644 --- a/include/configs/P4080DS.h +++ b/include/configs/P4080DS.h @@ -17,6 +17,1

[U-Boot] [U-boot] raise() function question

2013-11-07 Thread TigerLiu
Hi, experts: There is a raise() function implementation in Arch/arm/lib/eabi_compat.c . So, it is usually callbed by div0 from the c compiler libgcc ? If uboot output "raise: Signal ...", is it caused by division-by-zero ? Best wishes, ___ U-Bo

[U-Boot] [PATCH 3/7 V2] mmc: Enhance erase handling procedure

2013-11-07 Thread Haijun Zhang
Erass sequence: 1. check if erase command is support by card. If not return. 2. Check the erase range to see if it was aligned. The min erase size should be one erase group. SD card it was one block(512), mmc card it should be one erase group. 3. If not, aligned the erase rang according to the eras

[U-Boot] [PATCH 6/7 V2] Powerpc/esdhc: Add esdhc host version define

2013-11-07 Thread Haijun Zhang
Esdhc host version number is incorrect in host capacity register. The value read from was 0x14. Correct it to 0x13. Signed-off-by: Haijun Zhang --- Change for V2: - No changes arch/powerpc/include/asm/config_mpc85xx.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/incl

Re: [U-Boot] [PATCH] powerpc/esdhc: Update esdhc command execution process

2013-11-07 Thread Zhang Haijun
Abandon this, see [PATCH 7/7 V2] powerpc/esdhc: Update esdhc command execution process 于 2013/11/8 10:06, Haijun Zhang 写道: > The max timeout value esdhc host can accept was about 2.69 sec > At 50 Mhz SD_CLK period, the max busy timeout > value = 2^27 * SD_CLK period ~= 2.69 sec. > > In case eras

[U-Boot] [PATCH 4/7 V2] mmc: Update the handling of returned erase block

2013-11-07 Thread Haijun Zhang
If the block rang was not algined, We tried to algined the range, then erase the block. So the block range erased should be less or equal to the block range send. If error occured during erase procedure part of them will be erased. And use should resend the block rang to continue erase the reset of

[U-Boot] [PATCH 2/7 V2] mmc: Get secure erase information from card

2013-11-07 Thread Haijun Zhang
Read command class from csd register and secure erase support bit from ext csd register. Also calculate the erase timeout and secure erase timeout. If read ext csd error, error status should be returned instead of give some incorrect information. Error log: => => mmcinfo Device: FSL_SDHC Manufact

[U-Boot] [PATCH 7/7 V2] powerpc/esdhc: Update esdhc command execution process

2013-11-07 Thread Haijun Zhang
The max timeout value esdhc host can accept was about 2.69 sec At 50 Mhz SD_CLK period, the max busy timeout value = 2^27 * SD_CLK period ~= 2.69 sec. In case erase command CMD38 timeout is caculate by mult * 300ms * num(unit by erase group), so the time one erase group need should be more than 3

[U-Boot] [PATCH 5/7 V2] mmc: Enhance mmcinfo command

2013-11-07 Thread Haijun Zhang
Once mmc initialization was faild has_init should be set to 0, prepard for the next initialization to recover from error. Once mmcinfo command failed error should point out instead of print incorrect mmc device information. Error log: => mmcinfo Device: FSL_SDHC Manufacturer ID: 0 OEM: 0 Name: Tr

[U-Boot] soft vs. hard float

2013-11-07 Thread Saridakis, Dean (US SSA)
It looks U-Boot is generally built using soft float. I need hard-float in my system. Is this a general enough need that it'd make sense to have a CONFIG_SYS_HARD_FLOAT to enable this option? I made a quick update for mpc85xx (guarded by CONFIG_SYS_HARD_FLOAT) and I seem to be running fine. Than

[U-Boot] [PATCH] powerpc/esdhc: Update esdhc command execution process

2013-11-07 Thread Haijun Zhang
The max timeout value esdhc host can accept was about 2.69 sec At 50 Mhz SD_CLK period, the max busy timeout value = 2^27 * SD_CLK period ~= 2.69 sec. In case erase command CMD38 timeout is caculate by mult * 300ms * num(unit by erase group), so the time one erase group need should be more than 3

[U-Boot] [PATCH 1/7 V2] mmc: Add some usefull macro definition

2013-11-07 Thread Haijun Zhang
Add command class define. Add mmc erase and secure erase define. Add secure erase and trim support bit define. Signed-off-by: Haijun Zhang --- changes for V2: - Changed the comment, no other change include/mmc.h | 50 +- 1 file changed, 49

Re: [U-Boot] [PATCH 1/7] mmc: Add some usefull macro definition

2013-11-07 Thread Zhang Haijun
Hi, Jaehoon ? 2013/11/8 9:15, Jaehoon Chung ??: Dear Haijun, On 11/05/2013 03:23 PM, Haijun Zhang wrote: Add command class define. Add mmc erase and secure erase define. Add secure erase and trim support bit define. Signed-off-by: Haijun Zhang --- include/mmc.h | 49 ++

Re: [U-Boot] [PATCH] MAKEALL: fix awk warning

2013-11-07 Thread Masahiro Yamada
Hello, Andreas. I already posted a patch to fix this issue. http://patchwork.ozlabs.org/patch/285071/ Tom, when would be possible to apply my patch? Best Regards Masahiro Yamada ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailm

Re: [U-Boot] [PATCH 4/7] mmc: Update the handling of returned erase block

2013-11-07 Thread Jaehoon Chung
Dear Haijun, Check the below message, plz. cmd_mmc.c: In function ‘do_mmcops’: cmd_mmc.c:405:5: warning: comparisons like ‘X<=Y<=Z’ do not have their mathematical meaning [-Wparentheses] cmd_mmc.c:406:5: warning: comparisons like ‘X<=Y<=Z’ do not have their mathematical meaning [-Wparentheses]

Re: [U-Boot] [PATCH 1/7] mmc: Add some usefull macro definition

2013-11-07 Thread Jaehoon Chung
Dear Haijun, On 11/05/2013 03:23 PM, Haijun Zhang wrote: > Add command class define. > Add mmc erase and secure erase define. > Add secure erase and trim support bit define. > > Signed-off-by: Haijun Zhang > --- > include/mmc.h | 49 + > 1 file ch

Re: [U-Boot] [RESEND PATCH v14 07/10] arm64: core support

2013-11-07 Thread Scott Wood
On Tue, 2013-10-15 at 11:34 +0800, feng...@phytium.com.cn wrote: > +/* > + * void __asm_flush_dcache_level(level) > + * > + * clean and invalidate one level cache. > + * > + * x0: cache level > + * x1~x9: clobbered > + */ > +ENTRY(__asm_flush_dcache_level) > + lsl x1, x0, #1 > + msr

[U-Boot] [PATCH 2/3] gpio_led: check gpio_request() return value

2013-11-07 Thread Igor Grinberg
Add a check for the gpio_request() function return value and do not try to configure the GPIO if the gpio_request() call fails. Also, print an error message indicating the gpio_request() has failed. Signed-off-by: Igor Grinberg --- drivers/misc/gpio_led.c | 6 +- 1 file changed, 5 insertions

Re: [U-Boot] [PATCH v2 2/2] video: bcm2835: respect the pitch value

2013-11-07 Thread Anatolij Gustschin
On Thu, 24 Oct 2013 20:00:41 +0200 Andre Heider wrote: ... > @@ -90,6 +94,7 @@ void lcd_ctrl_init(void *lcdbase) > > w = msg_setup->physical_w_h.body.resp.width; > h = msg_setup->physical_w_h.body.resp.height; > + bcm2835_pitch = msg_setup->pitch.body.resp.pitch; > > debu

[U-Boot] [PATCH 3/3] gpio_led: add support for inverted polarity

2013-11-07 Thread Igor Grinberg
Some GPIO connected LEDs have inverted polarity. Introduce new config option: CONFIG_GPIO_LED_INVERTED_TABLE for the specifying the inverted GPIO LEDs list and add support for this in the gpio_led driver. Signed-off-by: Igor Grinberg --- README | 7 +++ drivers/misc/gpio_le

[U-Boot] [PATCH 1/3] README: document the CONFIG_GPIO_LED symbol

2013-11-07 Thread Igor Grinberg
The CONFIG_GPIO_LED symbol does not have any documentation in the README file. Document the CONFIG_GPIO_LED symbol. Signed-off-by: Igor Grinberg --- README | 8 1 file changed, 8 insertions(+) diff --git a/README b/README index 09662a4..55c71fa 100644 --- a/README +++ b/README @@ -1951

[U-Boot] [PATCH 0/3] gpio_led driver updates

2013-11-07 Thread Igor Grinberg
This simple series enhances the gpio_led driver a bit by some documentation, checking the return value of gpio_request() call, and finally adding support for inverted polarity GPIOs. Igor Grinberg (3): README: document the CONFIG_GPIO_LED symbol gpio_led: check gpio_request() return value gp

Re: [U-Boot] [RESEND PATCH v14 07/10] arm64: core support

2013-11-07 Thread York Sun
On 10/14/2013 08:34 PM, feng...@phytium.com.cn wrote: > From: David Feng > > Relocation code based on a patch by Scott Wood, which is: > Signed-off-by: Scott Wood > > Signed-off-by: David Feng > --- > arch/arm/config.mk |3 +- > arch/arm/cpu/armv8/Makefile

Re: [U-Boot] [PATCH 1/2] ARM: bcm2835: add missing mbox overscan response field

2013-11-07 Thread Stephen Warren
On 11/07/2013 06:29 AM, Albert ARIBAUD wrote: > Hi Andre, > > On Wed, 23 Oct 2013 21:46:31 +0200, Andre Heider > wrote: > >> On Wed, Oct 23, 2013 at 05:54:13PM +0100, Stephen Warren wrote: >>> On 10/22/2013 09:27 PM, Andre Heider wrote: Add the missing "right" field to struct bcm2835_mbox_t

Re: [U-Boot] [PATCH] am33xx: Stop modifying certain EMIF4D registers

2013-11-07 Thread Matt Porter
On Thu, Nov 07, 2013 at 04:16:40PM -0500, Tom Rini wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 11/07/2013 04:12 PM, Vaibhav Bedia wrote: > > Hi Tom, > > > > On Thu, Nov 7, 2013 at 11:42 AM, Tom Rini wrote: > >> Based on the definitive guide to EMIF configuration[1] certain re

Re: [U-Boot] [PATCH] am33xx: Stop modifying certain EMIF4D registers

2013-11-07 Thread Tom Rini
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 11/07/2013 04:12 PM, Vaibhav Bedia wrote: > Hi Tom, > > On Thu, Nov 7, 2013 at 11:42 AM, Tom Rini wrote: >> Based on the definitive guide to EMIF configuration[1] certain registers >> that we have been modifying (and are documented registers) shou

Re: [U-Boot] [PATCH 05/14] ARM: AM43XX: board: add support for reading onboard EEPROM

2013-11-07 Thread Vaibhav Bedia
On Thu, Nov 7, 2013 at 4:06 PM, Tom Rini wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 11/07/2013 03:56 PM, Vaibhav Bedia wrote: >> Hi Tom, >> >> On Wed, Nov 6, 2013 at 4:37 PM, Tom Rini wrote: >>> + >>> + if (header->magic != 0xEE3355AA) { >> >> Why is the

Re: [U-Boot] [PATCH] am33xx: Stop modifying certain EMIF4D registers

2013-11-07 Thread Vaibhav Bedia
Hi Tom, On Thu, Nov 7, 2013 at 11:42 AM, Tom Rini wrote: > Based on the definitive guide to EMIF configuration[1] certain registers > that we have been modifying (and are documented registers) should be > left in their reset values rather than modified. This has been tested > on AM335x GP EVM an

Re: [U-Boot] [PATCH 07/14] ARM: AM43xx: Select clk source for Timer2

2013-11-07 Thread Vaibhav Bedia
Hi Lokesh, On Thu, Nov 7, 2013 at 8:43 AM, Lokesh Vutla wrote: > Hi Vaibhav, > On Wednesday 06 November 2013 06:10 PM, Vaibhav Bedia wrote: >> On Mon, Nov 4, 2013 at 11:20 PM, Lokesh Vutla wrote: >>> Selecting the Master osc clk as Timer2 clock source. >> >> I obviously missed the first round of

Re: [U-Boot] [PATCH 05/14] ARM: AM43XX: board: add support for reading onboard EEPROM

2013-11-07 Thread Tom Rini
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 11/07/2013 03:56 PM, Vaibhav Bedia wrote: > Hi Tom, > > On Wed, Nov 6, 2013 at 4:37 PM, Tom Rini wrote: >> + >> + if (header->magic != 0xEE3355AA) { > > Why is the header the same as AM335x? Shouldn't it be something > li

Re: [U-Boot] livetime of boards

2013-11-07 Thread Wolfgang Denk
Dear Tom, In message <20131107205133.GT5925@bill-the-cat> you wrote: > > What we need to be careful of here is making sure whatever we grow is > both useful and not overly complicated. What I honestly wonder about is > automated testing for commands (crc32 pops to mind only because I just > fixe

Re: [U-Boot] [PATCH 05/14] ARM: AM43XX: board: add support for reading onboard EEPROM

2013-11-07 Thread Vaibhav Bedia
Hi Tom, On Wed, Nov 6, 2013 at 4:37 PM, Tom Rini wrote: > + > + if (header->magic != 0xEE3355AA) { Why is the header the same as AM335x? Shouldn't it be something like 0xEE3344AA or whatever? >>> No, the header is still same. It is 0xEE3355AA. >>> >> >> My question wa

Re: [U-Boot] livetime of boards

2013-11-07 Thread Tom Rini
On Thu, Nov 07, 2013 at 08:26:57PM +0100, Wolfgang Denk wrote: > Dear Tom, > > In message <20131107133159.GR5925@bill-the-cat> you wrote: > > > > I feel this is the hard part of the problem, and what we're glossing > > over. What has to be tested by the board maintainer? What are we going > > t

Re: [U-Boot] livetime of boards

2013-11-07 Thread Wolfgang Denk
Dear Tom, In message <20131107133159.GR5925@bill-the-cat> you wrote: > > I feel this is the hard part of the problem, and what we're glossing > over. What has to be tested by the board maintainer? What are we going > to leave to their discretion? Will am335x_evm not count if I don't dig > up t

Re: [U-Boot] livetime of boards

2013-11-07 Thread Wolfgang Denk
Dear Heiko Schocher, In message <527b8c7f.6060...@denx.de> you wrote: > > > All you want to do here is feed a database with data. This is not > > what mailing lists were made for, so we should really use a more > > appropriate interface. > > Ok. But this status report can be in readable text fo

Re: [U-Boot] livetime of boards

2013-11-07 Thread Wolfgang Denk
Dear Heiko, In message <527b8ba7.2070...@denx.de> you wrote: > > > Agreed too. I doubt if a mailing list makes sense to collect such > > data. It would probably be more efficient to provide a web based > > service for this. It just has to be easy to submit reports, and to > > query the status for

Re: [U-Boot] [PATCH] designware_i2c: disable i2c controller during target address setup

2013-11-07 Thread Albert ARIBAUD
Hi Alexey, On Thu, 7 Nov 2013 17:52:18 +0400, Alexey Brodkin wrote: > As it is stated in DesignWare I2C databook: writes to IC_TAR (0x4) > register succeed only when IC_ENABLE[0] is set to 0. > > Signed-off-by: Alexey Brodkin > > Cc: Tom Rini > cc: Armando Visconti > Cc: Stefan Roese > Cc

[U-Boot] [PATCH] am33xx: Stop modifying certain EMIF4D registers

2013-11-07 Thread Tom Rini
Based on the definitive guide to EMIF configuration[1] certain registers that we have been modifying (and are documented registers) should be left in their reset values rather than modified. This has been tested on AM335x GP EVM and Beaglebone White. [1]: http://processors.wiki.ti.com/index.php/A

[U-Boot] [PATCH v6 07/17] dm: Add README for driver model

2013-11-07 Thread Simon Glass
This adds a README to help with understanding of this series. Signed-off-by: Simon Glass --- Changes in v6: - Rename platform_data to platdata - Revise and update README Changes in v5: None Changes in v4: None Changes in v3: - Updated README.txt to cover changes since version 2 Changes in v2: -

[U-Boot] [PATCH v6 04/17] sandbox: config: Don't use 64-bit physical memory

2013-11-07 Thread Simon Glass
Sandbox uses an emulated memory map which is quite small. We don't need the CONFIG_PHYS_64BIT option since we can address memory with a 32-bit offset into our ram_buf. Adjust the phys_addr_t and phys_size_t types accordingly. Signed-off-by: Simon Glass --- Changes in v6: None Changes in v5: None

[U-Boot] [PATCH v6 11/17] dm: Add basic tests

2013-11-07 Thread Simon Glass
Add some tests of driver model functionality. Coverage includes: - basic init - binding of drivers to devices using platform_data - automatic probing of devices when referenced - availability of platform data to devices - lifecycle from bind to probe to remove to unbind - renumbering within a ucla

[U-Boot] [PATCH v6 14/17] dm: Add GPIO support and tests

2013-11-07 Thread Simon Glass
Add driver model support for GPIOs. Since existing GPIO drivers do not use driver model, this feature must be enabled by CONFIG_DM_GPIO. After all GPO drivers are converted over we can perhaps remove this config. Tests are provided for the sandbox implementation, and are a sufficient sanity check

[U-Boot] [PATCH v6 12/17] dm: Add a 'dm' command for testing

2013-11-07 Thread Simon Glass
This command is not required for driver model operation, but can be useful for testing. It provides simple dumps of internal data structures. Signed-off-by: Simon Glass Signed-off-by: Marek Vasut Signed-off-by: Pavel Herrmann Signed-off-by: Viktor Křivák Signed-off-by: Tomas Hlavacek --- Chan

[U-Boot] [PATCH v6 02/17] sandbox: Make map_to_sysmem() use a constant pointer

2013-11-07 Thread Simon Glass
Very often a constant pointer is passed to this function, so we should declare this, since map_to_sysmem() does not change the pointer. Signed-off-by: Simon Glass --- Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None arch/sandbox/include/asm/io.

[U-Boot] [PATCH v6 01/17] sandbox: Add timer_read_counter() to avoid link error

2013-11-07 Thread Simon Glass
The recent timer refactor caused sandbox to fail to build with an error. lib/libgeneric.o: In function `get_ticks': /home/sjg/c/src/third_party/u-boot/files/lib/time.c:45: undefined reference to `timer_read_counter' Add a definition for timer_read_counter() to avoid this. Signed-off-by: Simon G

[U-Boot] [PATCH v6 16/17] dm: Enable gpio command to support driver model

2013-11-07 Thread Simon Glass
Now that named GPIO banks are supported, along with a way of obtaining the status of a GPIO (input or output), we can provide an enhanced GPIO command for driver model. Where the driver provides its own operation for obtaining the GPIO state, this is used, otherwise a generic version is sufficient.

[U-Boot] [PATCH v6 10/17] dm: Set up driver model after relocation

2013-11-07 Thread Simon Glass
Make driver model available after relocation, by setting up data structures and scanning for devices using compiled-in platform_data and (when available) the device tree. Signed-off-by: Simon Glass --- Changes in v6: - Rename platform_data to platdata Changes in v5: None Changes in v4: None Chan

[U-Boot] [PATCH v6 03/17] sandbox: Correct data sizes and printf() strings in fdtdec.c

2013-11-07 Thread Simon Glass
There are a few warnings in this file when building for sandbox. Addresses coming from the device tree need to be treated as ulong as elsewhere in U-Boot and we must use map_sysmem() to convert to a pointer when needed. Signed-off-by: Simon Glass --- Changes in v6: None Changes in v5: None Change

[U-Boot] [PATCH v6 13/17] dm: Add a demonstration/example driver

2013-11-07 Thread Simon Glass
As an example of how to write a uclass and a driver, provide a demo version of each, accessible through the 'demo' command. To use these with driver model, define CONFIG_CMD_DEMO and CONFIG_DM_DEMO. The two demo drivers are enabled with CONFIG_DM_DEMO_SIMPLE and CONFIG_DM_DEMO_SHAPE. Signed-off-

[U-Boot] [PATCH v6 05/17] sandbox: Build a device tree file for sandbox

2013-11-07 Thread Simon Glass
Add support for building a device tree for sandbox's CONFIG_OF_HOSTFILE option to make it easier to use device tree with sandbox. This adjusts the Makefile to build a u-boot.dtb file which can be passed to sandbox U-Boot with: ./u-boot -d u-boot.dtb Signed-off-by: Simon Glass --- Changes in

[U-Boot] [PATCH v6 06/17] Add cmd_process_error() to report and process errors

2013-11-07 Thread Simon Glass
U-Boot now uses errors defined in include/errno.h which are negative integers. Commands which fail need to report the error and return 1 to indicate failure. Add this functionality in cmd_process_error(). For now this merely reports the error number. It would be possible also to produce a helpful

[U-Boot] [PATCH v6 15/17] sandbox: Convert GPIOs to use driver model

2013-11-07 Thread Simon Glass
Convert sandbox over to use driver model GPIOs. Signed-off-by: Simon Glass --- Changes in v6: - Rename platform_data to platdata - Use ofdata_to_platdata feature Changes in v5: None Changes in v4: None Changes in v3: - Update sandbox GPIO header file comments Changes in v2: None arch/sandbox/

[U-Boot] [PATCH v6 09/17] sandbox: config: Enable driver model

2013-11-07 Thread Simon Glass
Use driver model in sandbox to permit running of driver model unit test. Signed-off-by: Simon Glass --- Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None include/configs/sandbox.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/confi

[U-Boot] [PATCH v6 0/17] Driver model implementation, tests, demo and GPIO

2013-11-07 Thread Simon Glass
Note: If you are reviewing this code, but don't have a lot of time, please consider starting with the 'demo' driver (patch 'dm: Add a demonstration/example driver') since it clearly shows how devices and uclasses work. Much of this series consists of test code and plumbing, so is of less interest

Re: [U-Boot] [PATCH 1/4] udoo: Add Ethernet support.

2013-11-07 Thread Joe Hershberger
On Thu, Nov 7, 2013 at 8:58 AM, Stefano Babic wrote: > Hi Giuseppe, > > On 07/11/2013 13:37, Giuseppe Pagano wrote: > +int mx6_rgmii_rework(struct phy_device *phydev) +{ + /* To advertise only 10 Mbs */ + phy_write(phydev, MDIO_DEVAD_NONE, 0x4, 0x61); + phy_write(phy

Re: [U-Boot] [PATCH 1/2] ARM: DRA: EMIF: Change DDR3 settings to use hw leveling

2013-11-07 Thread Tom Rini
On Thu, Nov 07, 2013 at 08:17:39PM +0530, Sricharan R wrote: > Currently the DDR3 memory on DRA7 ES1.0 evm board is enabled using > software leveling. This was done since hardware leveling was not > working. Now that the right sequence to do hw leveling is identified, > use it. This is required fo

[U-Boot] [PATCH V3 2/2] trats2: enable ums support on Trats2

2013-11-07 Thread Piotr Wilczek
This patch adds support for USB and enables 'ums' command on Trats2 board. Signed-off-by: Piotr Wilczek Signed-off-by: Kyungmin Park CC: Minkyu Kang Acked-by: Jaehoon Chung --- This patch depends on the lated u-boot-usb/master. Changes for v3: - no changes Changes for v2: - rebased on cur

[U-Boot] [PATCH V3 1/2] driver:usb:s3c_udc: add support for Exynos4x12

2013-11-07 Thread Piotr Wilczek
This patch add new defines for usb phy for Exynos4x12. Signed-off-by: Piotr Wilczek Signed-off-by: Kyungmin Park CC: Minkyu Kang --- Chnages for v3: - removed unnecessary empty line Changes for v2: - no changes drivers/usb/gadget/regs-otg.h|5 + drivers/usb/gadget/s3c_udc_otg.

Re: [U-Boot] [PATCH 1/4] udoo: Add Ethernet support.

2013-11-07 Thread Stefano Babic
Hi Giuseppe, On 07/11/2013 13:37, Giuseppe Pagano wrote: >>> +int mx6_rgmii_rework(struct phy_device *phydev) >>> +{ >>> + /* To advertise only 10 Mbs */ >>> + phy_write(phydev, MDIO_DEVAD_NONE, 0x4, 0x61); >>> + phy_write(phydev, MDIO_DEVAD_NONE, 0x9, 0x0c00); >>> + >> >> Why only 10 Mb/s

Re: [U-Boot] [PATCH 1/4] udoo: Add Ethernet support.

2013-11-07 Thread Stefano Babic
Hi Giuseppe, On 07/11/2013 13:37, Giuseppe Pagano wrote: >>> +int mx6_rgmii_rework(struct phy_device *phydev) >>> +{ >>> + /* To advertise only 10 Mbs */ >>> + phy_write(phydev, MDIO_DEVAD_NONE, 0x4, 0x61); >>> + phy_write(phydev, MDIO_DEVAD_NONE, 0x9, 0x0c00); >>> + >> >> Why only 10 Mb/s

[U-Boot] [PATCH 1/2] ARM: DRA: EMIF: Change DDR3 settings to use hw leveling

2013-11-07 Thread Sricharan R
Currently the DDR3 memory on DRA7 ES1.0 evm board is enabled using software leveling. This was done since hardware leveling was not working. Now that the right sequence to do hw leveling is identified, use it. This is required for EMIF clockdomain to idle and come back during lowpower usecases. Si

[U-Boot] [PATCH 2/2] ARM: DRA7/OMAP5: EMIF: Add workaround for bug 0039

2013-11-07 Thread Sricharan R
When core power domain hits oswr, then DDR3 memories does not come back while resuming. This is because when EMIF registers are lost, then the controller takes care of copying the values from the shadow registers. If the shadow registers are not updated with the right values, then this results in i

[U-Boot] [PATCH 0/2] OMAP5/DRA7: EMIF fixes for lowpower usecases

2013-11-07 Thread Sricharan R
1) Currently the DDR3 memory on DRA7 ES1.0 evm board is enabled using software leveling. This was done since hardware leveling was not working. Now that the right sequence to do hw leveling is identified, use it. This is required for EMIF clockdomain to idle and come back during lo

Re: [U-Boot] livetime of boards

2013-11-07 Thread Andreas Bießmann
Dear Tom Rini, On 11/07/2013 02:31 PM, Tom Rini wrote: > On Thu, Nov 07, 2013 at 10:37:24AM +0100, Andreas Bie?mann wrote: >> Hello all together, >> >> On 11/07/2013 09:17 AM, Heiko Schocher wrote: >>> Am 06.11.2013 08:50, schrieb Wolfgang Denk: > [snip] So when you're once again doing some c

[U-Boot] [PATCH v2 2/2] arm: remove unneeded symbol offsets and _TEXT_BASE

2013-11-07 Thread Albert ARIBAUD
Remove the last uses of symbol offsets in ARM U-Boot. Remove some needless uses of _TEXT_BASE. Remove all _TEXT_BASE definitions. Signed-off-by: Albert ARIBAUD --- Changes in v2: - fixed use of _rel_dyn_end instead of _end README | 6 -- arch/arm/cpu/ar

[U-Boot] [PATCH v2 1/2] arm: make _end compiler-generated

2013-11-07 Thread Albert ARIBAUD
This prevents references to _end from generating absolute relocation records. Signed-off-by: Albert ARIBAUD --- Changes in v2: None arch/arm/cpu/arm1136/u-boot-spl.lds| 6 +- arch/arm/cpu/arm920t/ep93xx/u-boot.lds | 5 - arch/arm/cpu/arm926ejs/mxs/u-boot-spl.lds

[U-Boot] [PATCH] designware_i2c: disable i2c controller during target address setup

2013-11-07 Thread Alexey Brodkin
As it is stated in DesignWare I2C databook: writes to IC_TAR (0x4) register succeed only when IC_ENABLE[0] is set to 0. Signed-off-by: Alexey Brodkin Cc: Tom Rini cc: Armando Visconti Cc: Stefan Roese Cc: Albert ARIBAUD Cc: Heiko Schocher Cc: Vipin KUMAR Cc: Tom Rix Cc: Mischa Jonker ---

[U-Boot] [PATCH] cmd_eeprom: fix i2c_{read|write} usage if env is in I2C EEPROM

2013-11-07 Thread Alexey Brodkin
Data "offset" is not used directly in case of I2C EEPROM. Istead it is split into "block number" and "offset within mentioned block". Which are "addr[0]" and "addr[1]" respectively. Signed-off-by: Alexey Brodkin Cc: Jean-Christophe PLAGNIOL-VILLARD cc: Peter Tyser Cc: Heiko Schocher Cc: Wolfg

[U-Boot] [PATCH] designware_i2c: remove 10msec delay in i2c_xfer_finish

2013-11-07 Thread Alexey Brodkin
This delay applies to any data transfer on I2C bus. For example 1kB data read with per-byte access (which happens if environment is stored in I2C EEPROM) takes more than 10 seconds. Moreover data bus driver has to care about bus state and data transfer, but not about internal states of attached d

Re: [U-Boot] [PATCH 07/14] ARM: AM43xx: Select clk source for Timer2

2013-11-07 Thread Lokesh Vutla
Hi Vaibhav, On Wednesday 06 November 2013 06:10 PM, Vaibhav Bedia wrote: > On Mon, Nov 4, 2013 at 11:20 PM, Lokesh Vutla wrote: >> Selecting the Master osc clk as Timer2 clock source. > > I obviously missed the first round of patches for AM43xx here. Why is > timer2 being used here? Don't we use

Re: [U-Boot] livetime of boards

2013-11-07 Thread Tom Rini
On Thu, Nov 07, 2013 at 10:37:24AM +0100, Andreas Bie?mann wrote: > Hello all together, > > On 11/07/2013 09:17 AM, Heiko Schocher wrote: > > Am 06.11.2013 08:50, schrieb Wolfgang Denk: [snip] > >> So when you're once again doing some change that requires touching > >> files for some othe rboards,

Re: [U-Boot] [PATCH 1/2] ARM: bcm2835: add missing mbox overscan response field

2013-11-07 Thread Albert ARIBAUD
Hi Andre, On Wed, 23 Oct 2013 21:46:31 +0200, Andre Heider wrote: > On Wed, Oct 23, 2013 at 05:54:13PM +0100, Stephen Warren wrote: > > On 10/22/2013 09:27 PM, Andre Heider wrote: > > > Add the missing "right" field to struct bcm2835_mbox_tag_overscan. > > > > This one patch, > > Acked-by: Step

[U-Boot] [PATCH v1] arm: keep all sections in ELF file

2013-11-07 Thread Albert ARIBAUD
Current LDS files /DISCARD/ a lot of sections when linking ELF files, causing diagnostic tools such as readelf or objdump to produce partial output. Keep all section at link stage, filter only at objcopy time so that .bin remains minimal. Signed-off-by: Albert ARIBAUD --- This is a repost of the

Re: [U-Boot] livetime of boards

2013-11-07 Thread Heiko Schocher
Hello Wolfgang, Am 07.11.2013 13:12, schrieb Wolfgang Denk: Dear Heiko, In message<527b7ee6.4030...@denx.de> you wrote: Hmm... I hope we get a lot of such EMails ... and think, this is not a big problem ... Or, maybe, if we get a lot of such EMails, maybe we open a u-boot-testing list? NAK

Re: [U-Boot] livetime of boards

2013-11-07 Thread Heiko Schocher
Hello Wolfgang, Am 07.11.2013 13:01, schrieb Wolfgang Denk: Dear "Andreas Bießmann", In message<527b7883.1080...@gmail.com> you wrote: [...] maintainer could then see if he needs to pull out a board or if one else run the test before. I fully agree - everybody should be able to provide

Re: [U-Boot] [PATCH v8 0/5] mtd: nand: omap: optimize and clean-up of OMAP NAND driver

2013-11-07 Thread matti kaasinen
Hi Pekon, It seems after patching without BCH16 patches that at least OMAP_ECC_BCH8_CODE_HW can't be compatible with Linux 3.8.13 mode. U-Boot drivers/mtd/nand/omap_gpmc.c:omap_select_ecc_scheme states that nand->ecc.bytes = 14 whereas in OMAP_ECC_BCH8_CODE_HW_DETECTION_SW mode setting seems to b

Re: [U-Boot] [PATCH 2/4] udoo: Add SATA disk support.

2013-11-07 Thread Giuseppe Pagano
On Thu, 2013-11-07 at 09:40 +0100, Stefano Babic wrote: > Hi Giuseppe, > > On 06/11/2013 21:37, Giuseppe Pagano wrote: > > Add Sata support on uDoo Board. > > > > Signed-off-by: Giuseppe Pagano > > Cc: sba...@denx.de > > > > --- > > +#ifdef CONFIG_CMD_SATA > > +int setup_sata(void) > > +{

[U-Boot] [PATCH] hash.c: Correct non-hash subcommand crc32 addr-save support

2013-11-07 Thread Tom Rini
In the case of not having CONFIG_CMD_HASH but having CONFIG_CMD_CRC32 enabled (and not CONFIG_CRC32_VERIFY), we end up in this part of the code path on hash_command(). However, we will only have exactly 3 args here, and 3 > 3 is false, and we will not try and store the hash at the address given as

Re: [U-Boot] [PATCH 1/4] udoo: Add Ethernet support.

2013-11-07 Thread Giuseppe Pagano
Hi Stefano, On Thu, 2013-11-07 at 09:38 +0100, Stefano Babic wrote: > Hi Giuseppe, > > On 06/11/2013 21:33, Giuseppe Pagano wrote: > > Add Ethernet and networking support on uDoo board (FEC + phy Micrel) > > > > > > Signed-off-by: Giuseppe Pagano > > Cc: sba...@denx.de > > > > +int mx6_rgmii

Re: [U-Boot] [PATCH 4/5] ARM: OMAP5: Add SATA platform glue

2013-11-07 Thread Roger Quadros
On 11/07/2013 12:11 AM, Tom Rini wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 11/06/2013 09:47 AM, Roger Quadros wrote: >> Add platform glue logic for the SATA controller. >> >> Signed-off-by: Roger Quadros > [snip] >> diff --git a/arch/arm/cpu/armv7/omap-common/Makefile >> b/

Re: [U-Boot] [PATCH 2/5] ARM: OMAP5: Add Pipe3 PHY driver

2013-11-07 Thread Roger Quadros
On 11/06/2013 11:48 PM, Tom Rini wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 11/06/2013 09:47 AM, Roger Quadros wrote: >> Pipe3 PHY is used by SATA, USB3 and PCIe modules. This is >> a driver for the Pipe3 PHY. >> >> Signed-off-by: Roger Quadros > [snip] >> +#define perror(fmt

Re: [U-Boot] livetime of boards

2013-11-07 Thread Heiko Schocher
Hello Wolfgang, Am 07.11.2013 13:06, schrieb Wolfgang Denk: Dear Heiko Schocher, In message<527b7cb0.6040...@denx.de> you wrote: Note also that one goal of boards.cfg is to not have multiple files around that have to remain consistent. Yep, exactly. Thats why I think we could collect this

Re: [U-Boot] livetime of boards

2013-11-07 Thread Andreas Bießmann
Dear Wolfgang Denk, On 11/07/2013 01:01 PM, Wolfgang Denk wrote: > In message <527b7883.1080...@gmail.com> you wrote: >> >> The saved information how often a board was runtime tested with the >> correct SHA1 of the u-boot/master could be quite useful. >> In the end just the last tested commit will

Re: [U-Boot] livetime of boards

2013-11-07 Thread Wolfgang Denk
Dear Heiko, In message <527b7ee6.4030...@denx.de> you wrote: > > Hmm... I hope we get a lot of such EMails ... and think, this is not > a big problem ... Or, maybe, if we get a lot of such EMails, maybe we > open a u-boot-testing list? NAK. Mailing lists are good for some kind of information -

Re: [U-Boot] livetime of boards

2013-11-07 Thread Wolfgang Denk
Dear Heiko Schocher, In message <527b7cb0.6040...@denx.de> you wrote: > > > Note also that one goal of boards.cfg is to not have multiple files > > around that have to remain consistent. > > Yep, exactly. Thats why I think we could collect this in boards.cfg. No, we really want to have a databa

Re: [U-Boot] livetime of boards

2013-11-07 Thread Wolfgang Denk
Dear "Andreas Bießmann", In message <527b7883.1080...@gmail.com> you wrote: > > The saved information how often a board was runtime tested with the > correct SHA1 of the u-boot/master could be quite useful. > In the end just the last tested commit will be interesting but it could > give some info

  1   2   >