Re: [U-Boot] [PATCH v2] mmc: Split device init to decouple OCR-polling delay

2012-11-30 Thread Jaehoon Chung
Hi, This concept is very good. But I have one question. I think need to call mmc_init() one more, right? how did you save the boot time(200ms)? On 11/29/2012 10:21 AM, Simon Glass wrote: From: Che-Liang Chiou clch...@chromium.org Most of time that MMC driver spends on initializing a device

Re: [U-Boot] Reg Bootstrapping on x86-64 for tizen

2012-11-30 Thread manohar . betham
Hi, I did following steps to compile u-boot on x86-64. U-boot Build procedure The following command sequence is used to build the u-boot for the particular board. -To remove ALL files made by by make,configure make distclean To configure the x86 32 bit based board for the target we

Re: [U-Boot] [PATCHv2 2/4] at91sam9x5: enable USB support for 9x5ek board.

2012-11-30 Thread Richard Genoud
2012/11/29 Bo Shen voice.s...@atmel.com: Hi ! As port C doesn't support EHCI, so, I think we should deal with this carefully. ---8--- #if OHCI #else EHCI #endif ---8--- I think this will be better. yes, you're right, I'll change that ___ U-Boot

[U-Boot] [PATCHv3 0/4] enable USB on sam9x5ek boards

2012-11-30 Thread richard . genoud
From: Richard Genoud richard.gen...@gmail.com This small patchset is based on current master ( 178d0cc1a4c73c3341afbeb2a93b172de8c96bd1 ) It enables usb on at91sam9x5ek boards. Tested on at91sam9x5ek with a sam9g35 CPU (+ usb key and mouse) By default the 3 USB 1.1 ports (A, B and C) are

[U-Boot] [PATCHv3 3/4] at91sam9x5ek: regroup FAT/DOS features

2012-11-30 Thread richard . genoud
From: Richard Genoud richard.gen...@gmail.com Signed-off-by: Richard Genoud richard.gen...@gmail.com --- include/configs/at91sam9x5ek.h |6 +- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/include/configs/at91sam9x5ek.h b/include/configs/at91sam9x5ek.h index

[U-Boot] [PATCHv3 2/4] at91sam9x5: enable USB support for 9x5ek board.

2012-11-30 Thread richard . genoud
From: Richard Genoud richard.gen...@gmail.com Signed-off-by: Richard Genoud richard.gen...@gmail.com --- arch/arm/cpu/arm926ejs/at91/at91sam9x5_devices.c | 13 + arch/arm/include/asm/arch-at91/at91sam9x5.h |2 ++ board/atmel/at91sam9x5ek/at91sam9x5ek.c |3 +++

[U-Boot] [PATCHv3 4/4] at91sam9x5ek: add USB configuration

2012-11-30 Thread richard . genoud
From: Richard Genoud richard.gen...@gmail.com Signed-off-by: Richard Genoud richard.gen...@gmail.com --- include/configs/at91sam9x5ek.h | 23 +++ 1 files changed, 23 insertions(+), 0 deletions(-) diff --git a/include/configs/at91sam9x5ek.h b/include/configs/at91sam9x5ek.h

[U-Boot] [PATCHv3 1/4] usb documentation: fix typo

2012-11-30 Thread richard . genoud
From: Richard Genoud richard.gen...@gmail.com Signed-off-by: Richard Genoud richard.gen...@gmail.com --- doc/README.usb |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/doc/README.usb b/doc/README.usb index ef1d6ba..b4c3ef5 100644 --- a/doc/README.usb +++

Re: [U-Boot] [PATCHv3 2/4] at91sam9x5: enable USB support for 9x5ek board.

2012-11-30 Thread Bo Shen
On 11/30/2012 17:18, richard.gen...@gmail.com wrote: From: Richard Genoud richard.gen...@gmail.com Signed-off-by: Richard Genoud richard.gen...@gmail.com Acked-by: Bo Shen voice.s...@atmel.com --- arch/arm/cpu/arm926ejs/at91/at91sam9x5_devices.c | 13 +

Re: [U-Boot] [PATCHv3 3/4] at91sam9x5ek: regroup FAT/DOS features

2012-11-30 Thread Bo Shen
On 11/30/2012 17:18, richard.gen...@gmail.com wrote: From: Richard Genoud richard.gen...@gmail.com Signed-off-by: Richard Genoud richard.gen...@gmail.com Acked-by: Bo Shen voice.s...@atmel.com Best Regards, Bo Shen --- include/configs/at91sam9x5ek.h |6 +- 1 files changed, 5

Re: [U-Boot] [PATCHv3 4/4] at91sam9x5ek: add USB configuration

2012-11-30 Thread Bo Shen
On 11/30/2012 17:18, richard.gen...@gmail.com wrote: From: Richard Genoud richard.gen...@gmail.com Signed-off-by: Richard Genoud richard.gen...@gmail.com Acked-by: Bo Shen voice.s...@atmel.com Best Regards, Bo Shen --- include/configs/at91sam9x5ek.h | 23 +++ 1

Re: [U-Boot] [PATCH 00/46] Enhance spear support

2012-11-30 Thread Armando Visconti
On 11/21/2012 10:24 AM, Wolfgang Denk wrote: Dear Vipin, In message50a0d0eb.4080...@st.com you wrote: The ssh key is as below THnaks a lot. The repository should be ready for your use now. Sorry it took so long. Please feel free to contact me directly if there should be any problems.

Re: [U-Boot] [PATCH 00/46] Enhance spear support

2012-11-30 Thread Wolfgang Denk
Dear Armando Visconti, In message 50b89534.6040...@st.com you wrote: Not sure what are next steps for this patchset. Is someone going to review it, or part of it? Or is Vipin expected to do something on the repository assigned to him (maybe he already did)? Vipin volunteered as custodian,

[U-Boot] [PATCH] mxs: Silence elftosb

2012-11-30 Thread Marek Vasut
The elftosb tool is now called with -d switch, which produces debug output to the stdout. The debug output is completely useless for regular operation, so silence it. Signed-off-by: Marek Vasut ma...@denx.de Cc: Stefano Babic sba...@denx.de Cc: Fabio Estevam fabio.este...@freescale.com ---

[U-Boot] [PATCH] mxs: i2c: Implement algorithm to set up arbitrary i2c speed

2012-11-30 Thread Marek Vasut
This algorithm computes the values of TIMING{0,1,2} registers for the MX28 I2C block. This algorithm was derived by using a scope, but the result seems correct. The resulting values programmed into the registers do not correlate with the contents of the datasheet. When using the values from the

Re: [U-Boot] [PATCH 00/46] Enhance spear support

2012-11-30 Thread Armando Visconti
On 11/30/2012 01:34 PM, Wolfgang Denk wrote: Dear Armando Visconti, In message50b89534.6040...@st.com you wrote: Not sure what are next steps for this patchset. Is someone going to review it, or part of it? Or is Vipin expected to do something on the repository assigned to him (maybe he

Re: [U-Boot] [PATCH] mxs: i2c: Implement algorithm to set up arbitrary i2c speed

2012-11-30 Thread Wolfgang Denk
Dear Marek Vasut, In message 1354280910-17539-1-git-send-email-ma...@denx.de you wrote: This algorithm computes the values of TIMING{0,1,2} registers for the MX28 I2C block. This algorithm was derived by using a scope, but the result seems correct. Thanks! I like that! ... + uint32_t

Re: [U-Boot] [PATCH] mxs: i2c: Implement algorithm to set up arbitrary i2c speed

2012-11-30 Thread Marek Vasut
Dear Wolfgang Denk, Dear Marek Vasut, In message 1354280910-17539-1-git-send-email-ma...@denx.de you wrote: This algorithm computes the values of TIMING{0,1,2} registers for the MX28 I2C block. This algorithm was derived by using a scope, but the result seems correct. Thanks! I like

[U-Boot] [PATCH 1/2] mxs: Implement common function to setup VDDx

2012-11-30 Thread Marek Vasut
Implement common function to setup the VDDIO, VDDD and VDDA voltage. Right now, there are two almost identical functions to setup VDDIO and VDDD, which is prone to breakage. Pull out the differences into constant structure and pass them as an argument to the common function. Moreover, the

[U-Boot] [PATCH 2/2] mxs: Properly setup VDDD in power supply setup code

2012-11-30 Thread Marek Vasut
The memory setup code adjusted the VDDD voltage. Remove this adjustment and configure the VDDD voltage correctly in the power supply setup code. Signed-off-by: Marek Vasut ma...@denx.de Cc: Stefano Babic sba...@denx.de Cc: Fabio Estevam fabio.este...@freescale.com ---

[U-Boot] [PATCH v2] mxs: i2c: Implement algorithm to set up arbitrary i2c speed

2012-11-30 Thread Marek Vasut
This algorithm computes the values of TIMING{0,1,2} registers for the MX28 I2C block. This algorithm was derived by using a scope, but the result seems correct. The resulting values programmed into the registers do not correlate with the contents in datasheet. When using the values from the

[U-Boot] [PATCH v3 03/12] x86: video: Add coreboot framebuffer support

2012-11-30 Thread Simon Glass
From: Stefan Reinauer reina...@chromium.org Add a basic driver for the coreboot framebuffer. Signed-off-by: Stefan Reinauer reina...@chromium.org Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: - Update to avoid using gd which is now a #define Changes in v2: None

[U-Boot] [PATCH 0/9] USB: Gadget DFU related fixes (v3)

2012-11-30 Thread Pantelis Antoniou
Third take of USB + DFU updates. Pantelis Antoniou (9): usb: Fix bug when both DFU ETHER are defined g_dnl: Issue connect/disconnect as appropriate g_dnl: Properly terminate string list. dfu: Only perform DFU board_usb_init() for TRATS dfu: Fix crash when wrong number of arguments

[U-Boot] [PATCH 2/9] g_dnl: Issue connect/disconnect as appropriate

2012-11-30 Thread Pantelis Antoniou
Call usb_gadget_connect/usb_gadget_disconnect in g_dnl_bind/g_dnl_unbind. Signed-off-by: Pantelis Antoniou pa...@antoniou-consulting.com --- drivers/usb/gadget/g_dnl.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/drivers/usb/gadget/g_dnl.c

[U-Boot] [PATCH 3/9] g_dnl: Properly terminate string list.

2012-11-30 Thread Pantelis Antoniou
Well, not terminating the list causes very interesting crashes. As in changing the vendor product ID crashes. Fun. Signed-off-by: Pantelis Antoniou pa...@antoniou-consulting.com --- drivers/usb/gadget/g_dnl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/gadget/g_dnl.c

[U-Boot] [PATCH 1/9] usb: Fix bug when both DFU ETHER are defined

2012-11-30 Thread Pantelis Antoniou
When both CONFIG_USB_GADGET CONFIG_USB_ETHER are defined the makefile links objects twice. The cleanest way to fix is to use a new define, CONFIG_USB_UTIL which must be defined when either CONFIG_USB_ETHER or CONFIG_USB_GADGET are defined. All affected boards have been modified as well.

[U-Boot] [PATCH 4/9] dfu: Only perform DFU board_usb_init() for TRATS

2012-11-30 Thread Pantelis Antoniou
USB initialization shouldn't happen for all the boards. Signed-off-by: Pantelis Antoniou pa...@antoniou-consulting.com --- common/cmd_dfu.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/cmd_dfu.c b/common/cmd_dfu.c index 01d6b3a..327c738 100644 --- a/common/cmd_dfu.c +++

[U-Boot] [PATCH 6/9] dfu: Send correct DFU response from composite_setup

2012-11-30 Thread Pantelis Antoniou
DFU is a bit peculiar. It needs to hook to composite setup and return it's function descriptor. So when get-descriptor request comes with a type of DFU_DT_FUNC we iterate over the configs, and functions, and when we find the DFU function we call the setup method which is prepared to return the

[U-Boot] [PATCH 5/9] dfu: Fix crash when wrong number of arguments given

2012-11-30 Thread Pantelis Antoniou
Fix obvious crash when not enough arguments are given to the dfu command. Signed-off-by: Pantelis Antoniou pa...@antoniou-consulting.com --- common/cmd_dfu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/cmd_dfu.c b/common/cmd_dfu.c index 327c738..83ef324 100644 ---

[U-Boot] [PATCH 7/9] dfu: Properly zero out timeout value

2012-11-30 Thread Pantelis Antoniou
Zero out timeout value; letting it filled with undefined values ends up with the dfu host hanging. Signed-off-by: Pantelis Antoniou pa...@antoniou-consulting.com --- drivers/usb/gadget/f_dfu.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/usb/gadget/f_dfu.c

[U-Boot] [PATCH 8/9] dfu: Add a partition type target

2012-11-30 Thread Pantelis Antoniou
Dealing with raw block numbers with the dfu is very annoying. Introduce a partition method. Signed-off-by: Pantelis Antoniou pa...@antoniou-consulting.com --- drivers/dfu/dfu_mmc.c | 31 +++ 1 file changed, 31 insertions(+) diff --git a/drivers/dfu/dfu_mmc.c

[U-Boot] [PATCH 9/9] dfu: Support larger than memory transfers.

2012-11-30 Thread Pantelis Antoniou
We didn't support upload/download larger than available memory. This is pretty bad when you have to update your root filesystem for example. This patch removes the limitation (and the crashes when you transfered any file larger than 4MB). On top of that reduces the huge dfu buffer from 4MB to

Re: [U-Boot] [PATCH 4/9] dfu: Only perform DFU board_usb_init() for TRATS

2012-11-30 Thread Lukasz Majewski
Hi Pantelis, One request: Please stick to following guidelines: http://www.denx.de/wiki/U-Boot/Patches USB initialization shouldn't happen for all the boards. Signed-off-by: Pantelis Antoniou pa...@antoniou-consulting.com --- common/cmd_dfu.c | 3 +++ 1 file changed, 3 insertions(+)

[U-Boot] [PATCH] mxs: Staticize SPL functions

2012-11-30 Thread Marek Vasut
The MXS SPL didn't mark local functions static. Fix it. This also makes the SPL smaller by roughly 300 bytes. Signed-off-by: Marek Vasut ma...@denx.de Cc: Stefano Babic sba...@denx.de Cc: Fabio Estevam fabio.este...@freescale.com --- arch/arm/cpu/arm926ejs/mxs/spl_boot.c |4 +-

Re: [U-Boot] [PATCH 5/9] dfu: Fix crash when wrong number of arguments given

2012-11-30 Thread Lukasz Majewski
Hi Pantelis, Fix obvious crash when not enough arguments are given to the dfu command. Signed-off-by: Pantelis Antoniou pa...@antoniou-consulting.com --- common/cmd_dfu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/cmd_dfu.c b/common/cmd_dfu.c index

[U-Boot] [PATCH v3 0/9] USB: Gadget DFU related fixes

2012-11-30 Thread Pantelis Antoniou
Third take of USB + DFU updates. Changelog for the pendants: changes from v2: * Handle large transfers properly take #2 * Different method of avoid double linking of usb gadget usb ether. changes from v1: * Properly terminate terminate string list. * Handle large transfers properly take #1

[U-Boot] [PATCH v3 2/9] g_dnl: Issue connect/disconnect as appropriate

2012-11-30 Thread Pantelis Antoniou
Call usb_gadget_connect/usb_gadget_disconnect in g_dnl_bind/g_dnl_unbind. Signed-off-by: Pantelis Antoniou pa...@antoniou-consulting.com --- drivers/usb/gadget/g_dnl.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/drivers/usb/gadget/g_dnl.c

[U-Boot] [PATCH v3 1/9] usb: Fix bug when both DFU ETHER are defined

2012-11-30 Thread Pantelis Antoniou
When both CONFIG_USB_GADGET CONFIG_USB_ETHER are defined the makefile links objects twice. The cleanest way to fix is to use a new define, CONFIG_USB_UTIL which must be defined when either CONFIG_USB_ETHER or CONFIG_USB_GADGET are defined. All affected boards have been modified as well.

[U-Boot] [PATCH v3 3/9] g_dnl: Properly terminate string list.

2012-11-30 Thread Pantelis Antoniou
Well, not terminating the list causes very interesting crashes. As in changing the vendor product ID crashes. Fun. Signed-off-by: Pantelis Antoniou pa...@antoniou-consulting.com --- drivers/usb/gadget/g_dnl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/gadget/g_dnl.c

[U-Boot] [PATCH v3 4/9] dfu: Only perform DFU board_usb_init() for TRATS

2012-11-30 Thread Pantelis Antoniou
USB initialization shouldn't happen for all the boards. Signed-off-by: Pantelis Antoniou pa...@antoniou-consulting.com --- common/cmd_dfu.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/cmd_dfu.c b/common/cmd_dfu.c index 01d6b3a..327c738 100644 --- a/common/cmd_dfu.c +++

[U-Boot] [PATCH v3 6/9] dfu: Send correct DFU response from composite_setup

2012-11-30 Thread Pantelis Antoniou
DFU is a bit peculiar. It needs to hook to composite setup and return it's function descriptor. So when get-descriptor request comes with a type of DFU_DT_FUNC we iterate over the configs, and functions, and when we find the DFU function we call the setup method which is prepared to return the

[U-Boot] [PATCH v3 5/9] dfu: Fix crash when wrong number of arguments given

2012-11-30 Thread Pantelis Antoniou
Fix obvious crash when not enough arguments are given to the dfu command. Signed-off-by: Pantelis Antoniou pa...@antoniou-consulting.com --- common/cmd_dfu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/cmd_dfu.c b/common/cmd_dfu.c index 327c738..83ef324 100644 ---

[U-Boot] [PATCH v3 8/9] dfu: Add a partition type target

2012-11-30 Thread Pantelis Antoniou
Dealing with raw block numbers with the dfu is very annoying. Introduce a partition method. Signed-off-by: Pantelis Antoniou pa...@antoniou-consulting.com --- drivers/dfu/dfu_mmc.c | 31 +++ 1 file changed, 31 insertions(+) diff --git a/drivers/dfu/dfu_mmc.c

[U-Boot] [PATCH v3 7/9] dfu: Properly zero out timeout value

2012-11-30 Thread Pantelis Antoniou
Zero out timeout value; letting it filled with undefined values ends up with the dfu host hanging. Signed-off-by: Pantelis Antoniou pa...@antoniou-consulting.com --- drivers/usb/gadget/f_dfu.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/usb/gadget/f_dfu.c

[U-Boot] [PATCH v3 9/9] dfu: Support larger than memory transfers.

2012-11-30 Thread Pantelis Antoniou
We didn't support upload/download larger than available memory. This is pretty bad when you have to update your root filesystem for example. This patch removes the limitation (and the crashes when you transfered any file larger than 4MB). On top of that reduces the huge dfu buffer from 4MB to

Re: [U-Boot] [PATCH] mxs: Silence elftosb

2012-11-30 Thread Otavio Salvador
On Fri, Nov 30, 2012 at 11:04 AM, Marek Vasut ma...@denx.de wrote: The elftosb tool is now called with -d switch, which produces debug output to the stdout. The debug output is completely useless for regular operation, so silence it. Signed-off-by: Marek Vasut ma...@denx.de Cc: Stefano

Re: [U-Boot] [PATCH 1/2] mxs: Implement common function to setup VDDx

2012-11-30 Thread Otavio Salvador
On Fri, Nov 30, 2012 at 1:22 PM, Marek Vasut ma...@denx.de wrote: Implement common function to setup the VDDIO, VDDD and VDDA voltage. Right now, there are two almost identical functions to setup VDDIO and VDDD, which is prone to breakage. Pull out the differences into constant structure and

Re: [U-Boot] [PATCH 1/2] mxs: Implement common function to setup VDDx

2012-11-30 Thread Marek Vasut
Dear Otavio Salvador, On Fri, Nov 30, 2012 at 1:22 PM, Marek Vasut ma...@denx.de wrote: Implement common function to setup the VDDIO, VDDD and VDDA voltage. Right now, there are two almost identical functions to setup VDDIO and VDDD, which is prone to breakage. Pull out the differences

Re: [U-Boot] [PATCH 1/2] mxs: Implement common function to setup VDDx

2012-11-30 Thread Otavio Salvador
On Fri, Nov 30, 2012 at 4:35 PM, Marek Vasut ma...@denx.de wrote: Dear Otavio Salvador, On Fri, Nov 30, 2012 at 1:22 PM, Marek Vasut ma...@denx.de wrote: Implement common function to setup the VDDIO, VDDD and VDDA voltage. Right now, there are two almost identical functions to setup

Re: [U-Boot] [PATCH v4 1/2] arm: move C runtime setup code in crt0.S

2012-11-30 Thread Simon Glass
Hi Albert, On Wed, Nov 28, 2012 at 2:34 PM, Albert ARIBAUD albert.u.b...@aribaud.net wrote: Hi Simon, On Wed, 28 Nov 2012 13:18:57 -0800, Simon Glass s...@chromium.org wrote: Hi Albert, On Tue, Nov 27, 2012 at 4:43 AM, Albert ARIBAUD albert.u.b...@aribaud.net wrote: Move all the C

[U-Boot] [PATCH v2 02/10] arm: Keep track of the tlb size as well as its location

2012-11-30 Thread Simon Glass
From: Gabe Black gabebl...@chromium.org It may be necessary to know where the TLB area ends as well as where it starts. This allows board code to complete a secure memory erase without destroying the page tables. Signed-off-by: Gabe Black gabebl...@google.com Signed-off-by: Simon Glass

[U-Boot] [PATCH v2 06/10] arm: Add CONFIG_DISPLAY_BOARDINFO_LATE to display board info on LCD

2012-11-30 Thread Simon Glass
This option displays board info after stdio is running, so that it will appear on the LCD. If it is displayed earlier, the board info will appear on the serial console but not on the LCD. Here follows a blow-by-blow description. 1a. Without CONFIG_DISPLAY_BOARDINFO_LATE, on serial: U-Boot

[U-Boot] [PATCH v2 03/10] arm: Move fdt check earlier so that board_early_init_f() can use it

2012-11-30 Thread Simon Glass
We want to use the fdt inside board_early_init_f(), so check for its presence earlier in the pre-reloc init sequence. So far ARM and microblaze are the only only ones that use CONFIG_OF_CONTROL. Microblaze does not have the same init loop, and in particular does not have the board_early_init_f()

[U-Boot] [PATCH v2 01/10] arm: move flush_dcache_all() to just before disable cache

2012-11-30 Thread Simon Glass
From: Arun Mankuzhi aru...@samsung.com In Cortex-A15 architecture, when we run cache invalidate the cache clean operation executes automatically. So if there are any dirty cache lines before disabling the L2 cache these will be synchronized with the main memory when invalidate_dcache_all() runs

[U-Boot] [PATCH v2 05/10] Document the CONFIG_DISPLAY_BOARDINFO option

2012-11-30 Thread Simon Glass
Add a short note about this in the README. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: - Split out CONFIG_DISPLAY_BOARDINFO README change into separate commit README |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/README b/README index

[U-Boot] [PATCH v2 07/10] Add option to display customised memory information

2012-11-30 Thread Simon Glass
Some boards want to report more than just memory size. For example, it might be useful to display the memory type (DDR2, DDR3) or manufacturer. Add a weak function to support this requirement, accessed through a new 'meminfo' command. Any example of the DRAM: output is below, just for

[U-Boot] [PATCH v2 08/10] arm: Make interrupts.o and reset.o in libarm also appear in SPL

2012-11-30 Thread Simon Glass
From: Tom Wai-Hong Tam waih...@chromium.org SPL u-boot may call do_reset() which depends on interrupts.o and reset.o. So make them also appear in SPL. Signed-off-by: Tom Wai-Hong Tam waih...@chromium.org Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: None arch/arm/lib/Makefile

[U-Boot] [PATCH v2 09/10] arm: Move bootstage record for board_init_f() to after arch_cpu_init()

2012-11-30 Thread Simon Glass
The timer may be inited in arch_cpu_init() so it is not safe to make a bootstage mark before this is called. Arrange the code to fix this. Note: The question was raised as to why we don't keep all archs in sync. PowerPC doesn't have specific bootstage markers at present (although it does use boot

[U-Boot] [PATCH v2 10/10] arm: Tabify code for MMC initialization

2012-11-30 Thread Simon Glass
From: Taylor Hutt th...@chromium.org The two modified lines were indented with spaces. They are now indented with tabs. Signed-off-by: Taylor Hutt th...@chromium.org Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: None arch/arm/lib/board.c |4 ++-- 1 files changed, 2

[U-Boot] [PATCH v2 04/10] arm: Add CONFIG_DELAY_ENVIRONMENT to delay environment loading

2012-11-30 Thread Simon Glass
This option delays loading of the environment until later, so that only the default environment will be available to U-Boot. This can address the security risk of untrusted data being used during boot. Any time you load untrusted data you expose yourself to a bug in the code. The attacker gets

Re: [U-Boot] [PATCH v2] mmc: Split device init to decouple OCR-polling delay

2012-11-30 Thread Simon Glass
Hi, On Thu, Nov 29, 2012 at 7:20 AM, Jae hoon Chung jh80.ch...@gmail.com wrote: Hi Simon, Is it saved the 200ms? Could you tell me your environment? I will check this patch..and share the result. The environment is snow (Samsung ARM Chromebook). The time save only comes from not waiting for

Re: [U-Boot] [PATCH v2] mmc: Split device init to decouple OCR-polling delay

2012-11-30 Thread Simon Glass
Hi Jaehoon, On Fri, Nov 30, 2012 at 12:25 AM, Jaehoon Chung jh80.ch...@samsung.com wrote: Hi, This concept is very good. But I have one question. I think need to call mmc_init() one more, right? how did you save the boot time(200ms)? On 11/29/2012 10:21 AM, Simon Glass wrote: From:

Re: [U-Boot] U-Boot for MIPS AR7161

2012-11-30 Thread Dmytro
Hi Allan Drassal, Frankly, I'm not in practice faced ar71xx processors in labs, but I can give details on experience with the ar724x CPUs. First we need to determine are fully is support in ar71xx.cfg file for your device. You need connect to the JTAG and switch the device in halt mode. Next

[U-Boot] [PATCH 1/1] mtd/cfi: add support for SST 4KB sector granularity

2012-11-30 Thread Angelo Dureghello
Add support for SST 4KB sector granularity. Many recent SST flashes, i.e. SST39VF3201B and similar of this family are declared CFI-conformant from SST. They support CFI query, but implement 2 different sector sizes in the same memory: a 64KB sector (they call it block, std AMD erase cmd=0x30),

[U-Boot] [PATCH 3/4] patman: Add the concept of multiple projects

2012-11-30 Thread Doug Anderson
There are cases that we want to support different settings (or maybe even different aliases) for different projects. Add support for this by: * Adding detection for two big projects: U-Boot and Linux. * Adding default settings for Linux (U-Boot is already good with the standard patman

[U-Boot] [PATCH 2/2] patman: Add all CC addresses to the cover letter

2012-11-30 Thread Doug Anderson
If we're sending a cover letter make sure to CC everyone that we're CCing on each of the individual patches. Signed-off-by: Doug Anderson diand...@chromium.org --- tools/patman/patman.py |2 +- tools/patman/series.py | 12 +++- 2 files changed, 12 insertions(+), 2 deletions(-)

[U-Boot] [PATCH 1/4] patman: Add a call to get_maintainer.pl if it exists

2012-11-30 Thread Doug Anderson
For Linux the best way to figure out where to send a patch is with the get_maintainer.pl script. Add support for calling it from patman. Support is added unconditionally for scripts/get_maintainer.pl in case it is helpful for any other projects. Signed-off-by: Doug Anderson diand...@chromium.org

[U-Boot] [PATCH 2/4] patman: Add support for settings in .patman

2012-11-30 Thread Doug Anderson
This patch adds support for a [settings] section in the .patman file. In this section you can add settings that will affect the default values for command-line options. Support is added in a generic way such that any setting can be updated by just referring to the dest of the option that is

[U-Boot] [PATCH 4/4] patman: Add settings to the list of modules to doctest

2012-11-30 Thread Doug Anderson
The settings modules now has doctests, so run them. Signed-off-by: Doug Anderson diand...@chromium.org --- tools/patman/patman.py |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/patman/patman.py b/tools/patman/patman.py index 54a252e..6825de4 100755 ---

[U-Boot] [PATCH 1/2] patman: Cache the CC list from MakeCcFile() for use in ShowActions()

2012-11-30 Thread Doug Anderson
Currently we go through and generate the CC list for patches twice. This gets slow when (in a future CL) we add a call to get_maintainer.pl on Linux. Instead of doing things twice, just cache the CC list when it is first generated. Signed-off-by: Doug Anderson diand...@chromium.org ---

Re: [U-Boot] [PATCH v2 04/10] arm: Add CONFIG_DELAY_ENVIRONMENT to delay environment loading

2012-11-30 Thread Doug Anderson
On Fri, Nov 30, 2012 at 3:01 PM, Simon Glass s...@chromium.org wrote: This option delays loading of the environment until later, so that only the default environment will be available to U-Boot. This can address the security risk of untrusted data being used during boot. Any time you load

Re: [U-Boot] [PATCH v2] mxs: i2c: Implement algorithm to set up arbitrary i2c speed

2012-11-30 Thread Heiko Schocher
Hello Marek, On 30.11.2012 16:28, Marek Vasut wrote: This algorithm computes the values of TIMING{0,1,2} registers for the MX28 I2C block. This algorithm was derived by using a scope, but the result seems correct. The resulting values programmed into the registers do not correlate with the

Re: [U-Boot] [PATCH v2] mxs: i2c: Implement algorithm to set up arbitrary i2c speed

2012-11-30 Thread Marek Vasut
Dear Heiko Schocher, Hello Marek, [...] diff --git a/drivers/i2c/mxs_i2c.c b/drivers/i2c/mxs_i2c.c index 006fb91..b040535 100644 --- a/drivers/i2c/mxs_i2c.c +++ b/drivers/i2c/mxs_i2c.c @@ -28,6 +28,7 @@ #includecommon.h #includemalloc.h +#includei2c.h

Re: [U-Boot] U-Boot for MIPS AR7161

2012-11-30 Thread Drassal, Allan
Hi Dmytro, Thanks for your detailed response. I corrected some details in the ar71xx.cfg file and am posting them below this message. With this, I am convinced that my JTAG interface is working and the DRAM controller is getting setup correctly. Now, I am just needing some code to load into

[U-Boot] [PATCH 1/2] mxs: i2c: Restore speed setting after block reset

2012-11-30 Thread Marek Vasut
The I2C block reset configures the I2C bus speed to strange value. Read the I2C speed from the block before reseting the block and restore it afterwards, so the I2C operates correctly. This issue can be replicated by doing unsuccessful I2C transfer, after such transfer finishes, the I2C block

[U-Boot] [PATCH 2/2 V3] mxs: i2c: Implement algorithm to set up arbitrary i2c speed

2012-11-30 Thread Marek Vasut
This algorithm computes the values of TIMING{0,1,2} registers for the MX28 I2C block. This algorithm was derived by using a scope, but the result seems correct. The resulting values programmed into the registers do not correlate with the contents in datasheet. When using the values from the

Re: [U-Boot] [PATCHv3 1/4] usb documentation: fix typo

2012-11-30 Thread Marek Vasut
Dear richard.gen...@gmail.com, From: Richard Genoud richard.gen...@gmail.com Signed-off-by: Richard Genoud richard.gen...@gmail.com Applied this patch, thanks. Next time please Cc me, that way you have better chance I'll notice the patch right away ;-) --- doc/README.usb |2 +- 1

Re: [U-Boot] [PATCH v3 1/9] usb: Fix bug when both DFU ETHER are defined

2012-11-30 Thread Marek Vasut
Dear Pantelis Antoniou, When both CONFIG_USB_GADGET CONFIG_USB_ETHER are defined the makefile links objects twice. The cleanest way to fix is to use a new define, CONFIG_USB_UTIL which must be defined when either CONFIG_USB_ETHER or CONFIG_USB_GADGET are defined. All affected boards

Re: [U-Boot] [PATCH v3 4/9] dfu: Only perform DFU board_usb_init() for TRATS

2012-11-30 Thread Marek Vasut
Dear Pantelis Antoniou, USB initialization shouldn't happen for all the boards. Signed-off-by: Pantelis Antoniou pa...@antoniou-consulting.com --- common/cmd_dfu.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/cmd_dfu.c b/common/cmd_dfu.c index 01d6b3a..327c738 100644

Re: [U-Boot] [PATCH v3 0/9] USB: Gadget DFU related fixes

2012-11-30 Thread Marek Vasut
Dear Pantelis Antoniou, Third take of USB + DFU updates. Changelog for the pendants: changes from v2: * Handle large transfers properly take #2 * Different method of avoid double linking of usb gadget usb ether. changes from v1: * Properly terminate terminate string list. *

Re: [U-Boot] U-Boot for MIPS AR7161

2012-11-30 Thread Drassal, Allan
I think I made a little more progress... Using the following commands I can get output from the UART... # set GPIO 9 10 as UART mww 0xb804 0x400 mww 0xb8040028 0x100 mww 0xb8020004 0x0 mww 0xb802000c 0x83 mww 0xb802 0x51 mww 0xb8020004 0x0 mww 0xb802000c 0x3 mww