[U-Boot] OMAP (4) boot_params

2013-04-02 Thread Michael Cashwell
Greetings, I've been fighting with SPL passing not boot_params properly to u-boot on OMAP4. There are many layers to this onion but I've tracked the bulk of the problem down to the following issues. --- SPL --- arch/arm/cpu/armv7/omap-common/hwinit-common.c sets a pointer to the SPL's &boot_p

Re: [U-Boot] [PATCH v7] mtd: cfi_flash: Fix CFI flash driver for 8-bit bus support

2013-04-02 Thread Aaron Williams
Thanks, I'll be glad to finally see this patch applied. -Aaron On 04/02/2013 05:34 AM, Stefan Roese wrote: On 27.03.2013 11:22, Jagannadha Sutradharudu Teki wrote: Hi, Any update on this. I'll apply this patch shortly. Sorry for the delay. Thanks, Stefan -- Aaron Williams Software Engi

[U-Boot] [PATCH] cfi_flash: Use uintptr_t for casts from u32 to void *

2013-04-02 Thread Stefan Roese
This fixes this build warning: Configuring for qemu_mips64 - Board: qemu-mips64, Options: SYS_BIG_ENDIAN textdata bss dec hex filename 215344 13082 218720 447146 6d2aa qemu_mips64/u-boot cfi_flash.c: In function 'flash_map': cfi_flash.c:217:9: warning: cast to pointer fro

Re: [U-Boot] PPC4XX Custom Board - Failing to read I2C

2013-04-02 Thread Stefan Roese
On 02.04.2013 23:48, txcotrader wrote: > Hello, > > I'm looking for some direction. I'm trying to update my version of u-boot > for a custom board based off of the PPC460SX. I'm struggling to understand > why I cannot get past reading the I2C on the DIMM. I'm receiving this error: > > CPU: AMCC

Re: [U-Boot] [PATCH] doc/feature-removal-schedule.txt: Add CONFIG_SYS_(CLOCKS|PADS)_ENABLE_ALL

2013-04-02 Thread Michael Cashwell
On Apr 2, 2013, at 2:56 PM, Tom Rini wrote: > On 04/02/2013 02:41 PM, Michael Cashwell wrote: > >> I'm currently using 3.0.8. That version most assuredly fails miserably >> without defining CONFIG_SYS_(CLOCKS|PADS)_ENABLE_ALL in >> u-boot. That kernel is part of the 3.0.x longterm lineage whic

Re: [U-Boot] OMAP (4) boot_params

2013-04-02 Thread Albert ARIBAUD
Hi Michael, (please wrap your line around 70 chars max) I won't comment on the 'u-boot' part of your message as it is quite SPL-vs-U-Boot- and OMAP-specific, and I prefer to leave this to people better suited for this. However, on the low level init front: On Tue, 2 Apr 2013 18:39:17 -0400, Mich

[U-Boot] [PATCH v10 01/30] mtd: nand: Introduce CONFIG_SYS_NAND_BUSWIDTH_16BIT

2013-04-02 Thread Benoît Thébaudeau
From: Fabio Estevam Introduce CONFIG_SYS_NAND_BUSWIDTH_16BIT option so that other NAND controller drivers could use it when a 16-bit NAND is deployed. drivers/mtd/nand/ndfc has CONFIG_SYS_NDFC_16BIT, so just rename it, so that other NAND drivers could reuse the same symbol. Signed-off-by: Fabio

[U-Boot] [PATCH v10 02/30] mtd: nand: mxc_nand: Fix is_16bit_nand()

2013-04-02 Thread Benoît Thébaudeau
From: Fabio Estevam Currently is_16bit_nand() is a per SoC function and it decides the bus nand width by reading some boot related registers. This method works when NAND is the boot medium, but does not work if another boot medium is used. For example: booting from a SD card and then using NAND

[U-Boot] [PATCH v10 05/30] imx: mx5: lowlevel_init: Simplify code

2013-04-02 Thread Benoît Thébaudeau
Don't use several instructions to build constant values. Signed-off-by: Benoît Thébaudeau Acked-by: Stefano Babic --- Changes in v10: None Changes in v9: None Changes in v8: None Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: - New patch. Changes

[U-Boot] [PATCH v10 03/30] nand: mxc: Prepare to add support for i.MX5

2013-04-02 Thread Benoît Thébaudeau
Add some abstraction to NFC definitions so that some parts of the current code can also be used for future i.MX5 code. Clean up a few things by the way. Signed-off-by: Benoît Thébaudeau Acked-by: Scott Wood Tested-by: Fabio Estevam --- Changes in v10: None Changes in v9: None Changes in v8: No

[U-Boot] [PATCH v10 07/30] nand: mxc: Fix debug trace in mxc_nand_read_oob_syndrome()

2013-04-02 Thread Benoît Thébaudeau
The page number indicated in the debug trace of mxc_nand_read_oob_syndrome() did not match the page being worked on. By the way, replace the GCC-specific __FUNCTION__ with __func__. Signed-off-by: Benoît Thébaudeau Acked-by: Scott Wood --- Changes in v10: None Changes in v9: None Changes in v8:

[U-Boot] [PATCH v10 06/30] imx: mx53ard: Add support for NAND Flash

2013-04-02 Thread Benoît Thébaudeau
Add support for the Samsung K9LAG08U0M NAND Flash (2-GiB MLC NAND Flash, 2-kiB pages, 256-kiB blocks, 30-ns R/W cycles, 1 CS) on mx53ard. eNFC_CLK_ROOT is set up with a cycle time of 37.5 ns (400 MHz / 3 / 5) for this board, which satisfies the 30-ns NF R/W cycle requirement. Signed-off-by: Benoî

[U-Boot] [PATCH v10 04/30] nand: mxc: Add support for i.MX5

2013-04-02 Thread Benoît Thébaudeau
Signed-off-by: Benoît Thébaudeau Acked-by: Scott Wood Tested-by: Fabio Estevam --- Changes in v10: None Changes in v9: - Drop the now unused SRC register definitions. Changes in v8: - Rebase on Fabio's patches using CONFIG_SYS_NAND_BUSWIDTH_16BIT instead of NAND Flash boot config pins to d

[U-Boot] [PATCH v10 11/30] arm1136: Remove redundant relocate_code() return

2013-04-02 Thread Benoît Thébaudeau
Signed-off-by: Benoît Thébaudeau --- Changes in v10: None Changes in v9: None Changes in v8: None Changes in v7: None Changes in v6: - New patch, extracted from "nand: mxc: Switch NAND SPL to generic SPL". Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None arch/arm

[U-Boot] [PATCH v10 10/30] arm: relocate_code() is no longer noreturn

2013-04-02 Thread Benoît Thébaudeau
Commit e05e5de7fae5bec79617e113916dac6631251156 made ARM's relocate_code() return to its caller, but it did not update its declaration accordingly. Fixing this function declaration fixes dropped C code following calls to relocate_code(). Signed-off-by: Benoît Thébaudeau --- Changes in v10: None

[U-Boot] [PATCH v10 08/30] nand: mxc: Use appropriate page number in syndrome functions

2013-04-02 Thread Benoît Thébaudeau
The syndrome functions should use the page number passed as argument instead of the page number saved upon NAND_CMD_READ0. This does not make any difference if the NAND_NO_AUTOINCR option is set, but otherwise this fixes accesses to the wrong pages. Signed-off-by: Benoît Thébaudeau Acked-by: Sco

[U-Boot] [PATCH v10 09/30] arm: start.S: Fix _TEXT_BASE for SPL

2013-04-02 Thread Benoît Thébaudeau
_TEXT_BASE must be set to CONFIG_SPL_TEXT_BASE for generic SPL, and to CONFIG_SYS_TEXT_BASE for non-SPL builds. Signed-off-by: Benoît Thébaudeau Reviewed-by: Tom Rini --- Changes in v10: None Changes in v9: None Changes in v8: - Apply to mxs SPL too. Changes in v7: None Changes in v6: - New p

[U-Boot] [PATCH v10 12/30] arm: relocate_code(): Remove useless relocation offset computation

2013-04-02 Thread Benoît Thébaudeau
Signed-off-by: Benoît Thébaudeau --- Changes in v10: None Changes in v9: None Changes in v8: - Make sure that r9 is initialized in all cases because it may be used after relocate_code(). Changes in v7: None Changes in v6: - New patch. Changes in v5: None Changes in v4: None Changes in v3: N

[U-Boot] [PATCH v10 14/30] arm: crt0.S: Remove bogus .globl

2013-04-02 Thread Benoît Thébaudeau
The purpose of .globl is to export symbols for ld, not to declare external symbols. By the way, use the ENTRY() and ENDPROC() macros to define functions rather than using .global directly. Signed-off-by: Benoît Thébaudeau --- Changes in v10: - Rebase on current u-boot-arm/master. Changes in v9

[U-Boot] [PATCH v10 13/30] arm: relocate_code(): Use __image_copy_end for end of relocation

2013-04-02 Thread Benoît Thébaudeau
Use __image_copy_end instead of __bss_start for the end of the image to relocate. This is the same as commit 033ca72, but applied to all ARM start.S. This is a more appropriate symbol naming for an image copy & relocate feature, and this also saves a useless copy of data put between __image_copy_e

[U-Boot] [PATCH v10 15/30] autoconfig.mk: Make it possible to define configs from other configs

2013-04-02 Thread Benoît Thébaudeau
Give more flexibility to define configs that can be interpreted by make, e.g. to define fallback values of configs like in the example below. Before this change, the config lines: #define CONFIG_SPL_MAX_SIZE2048 #define CONFIG_SPL_PAD_TO CONFIG_SPL_MAX_SIZE would have been changed in au

[U-Boot] [PATCH v10 16/30] Makefile: Change CONFIG_SPL_PAD_TO to image offset

2013-04-02 Thread Benoît Thébaudeau
Change CONFIG_SPL_PAD_TO from a link address to an image offset since this is more handy and closer to the purpose of this config. Automatically define CONFIG_SPL_PAD_TO to CONFIG_SPL_MAX_SIZE (or 0 without CONFIG_SPL_MAX_SIZE). Test that CONFIG_SPL_PAD_TO >= CONFIG_SPL_MAX_SIZE if CONFIG_SPL_PAD

[U-Boot] [PATCH v10 17/30] imx: Fix automatic make targets for imx images

2013-04-02 Thread Benoît Thébaudeau
Automatically build the 'u-boot.imx' (i.e. imx header + u-boot.bin) and 'SPL' (i.e. imx header + u-boot-spl.bin) make targets for all imx processors supporting this header, so for arm926ejs, arm1136 and armv7. Some combinations were missing. At the same time, fix the build of SPL targets not suppo

[U-Boot] [PATCH v10 20/30] arm: Remove unused relocate_code() parameters

2013-04-02 Thread Benoît Thébaudeau
Commit e05e5de7fae5bec79617e113916dac6631251156 made the 2 1st parameters of ARM's relocate_code() useless since it moved the code handling them to crt0.S. So, drop these parameters. Signed-off-by: Benoît Thébaudeau --- Changes in v10: None Changes in v9: None Changes in v8: - Update the functio

[U-Boot] [PATCH v10 19/30] arm926ejs: Remove deprecated and now unused NAND SPL

2013-04-02 Thread Benoît Thébaudeau
Signed-off-by: Benoît Thébaudeau --- Changes in v10: - Rebase on current u-boot-arm/master. Changes in v9: None Changes in v8: None Changes in v7: None Changes in v6: - New patch. Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None arch/arm/cpu/arm926ejs/start.S |

[U-Boot] [PATCH v10 18/30] nand: mxc: Switch NAND SPL to generic SPL

2013-04-02 Thread Benoît Thébaudeau
This also fixes support for mx31pdk and tx25, which had been broken by commit e05e5de7fae5bec79617e113916dac6631251156. Signed-off-by: Benoît Thébaudeau Acked-by: Scott Wood Tested-by: Fabio Estevam --- Changes in v10: - Rebase on current u-boot-arm/master, especially following commits 3ebd1cb

[U-Boot] [PATCH v10 22/30] .gitignore: Add /SPL

2013-04-02 Thread Benoît Thébaudeau
Signed-off-by: Benoît Thébaudeau --- Changes in v10: None Changes in v9: None Changes in v8: - New patch. Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None .gitignore |1 + 1 file changed, 1 insertion(+) diff --git a/.g

[U-Boot] [PATCH v10 28/30] arm: Remove deprecated and now unused NAND SPL

2013-04-02 Thread Benoît Thébaudeau
Signed-off-by: Benoît Thébaudeau --- Changes in v10: None Changes in v9: None Changes in v8: - New patch. Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None arch/arm/config.mk |2 -- arch/arm/cpu/arm1176/start.S

[U-Boot] [PATCH v10 23/30] imx: Add u-boot-with-spl.imx make target

2013-04-02 Thread Benoît Thébaudeau
This image combines the SPL with the i.MX header and U-Boot. This is a convenient way of having a single image to program on some boot devices. The i.MX header has to be added to the SPL before appending U-Boot, so that the boot ROM loads only the SPL. Signed-off-by: Benoît Thébaudeau --- Change

[U-Boot] [PATCH v10 21/30] Makefile: Move SHELL setup to config.mk

2013-04-02 Thread Benoît Thébaudeau
make never uses the SHELL variable from the environment. Instead, it uses /bin/sh, or the value assigned to the SHELL variable by the Makefile. This makes the export of the SHELL variable useless for sub-makes (but still useful for the environment of recipes). However, we want all makes to use the

[U-Boot] [PATCH v10 26/30] Revert "mkconfig: start deprecating Makefile config targets"

2013-04-02 Thread Benoît Thébaudeau
This reverts commit 1285a2808a254f3d1a809c1a541f0c0f746e03d7 since the migration of boards from Makefile to boards.cfg is now complete. Signed-off-by: Benoît Thébaudeau --- Changes in v10: None Changes in v9: None Changes in v8: - New patch. Changes in v7: None Changes in v6: None Changes in v5

[U-Boot] [PATCH v10 24/30] imx: Add u-boot-with-nand-spl.imx make target

2013-04-02 Thread Benoît Thébaudeau
This image combines the SPL with the i.MX header, the FCB and U-Boot. For i.MX25/35/51, the FCB is ignored by the boot ROM, so this image is just useful because it can be programmed on a NAND Flash page boundary. For i.MX53, the FCB is required by the boot ROM. This does not support i.MX6 so far

[U-Boot] [PATCH v10 29/30] arm1176: Remove unused MMU setup from start.S

2013-04-02 Thread Benoît Thébaudeau
Following the removal of the smdk6400 board, the MMU setup code in arm1176/start.S becomes unused, so remove it. It will still be possible to restore it later from the Git history if necessary, in which case it should be moved out of the relocate_code() function. Signed-off-by: Benoît Thébaudeau

[U-Boot] [PATCH v10 30/30] arm: Make all linker scripts compatible with per-symbol sections

2013-04-02 Thread Benoît Thébaudeau
Let all ARM linker scripts handle properly -ffunction-sections and -fdata-sections. This will be useful for future changes in order to create symbol-specific sections in common .S files. Signed-off-by: Benoît Thébaudeau --- Changes in v10: - Rebase on current u-boot-arm/master. Changes in v9:

[U-Boot] [PATCH v10 25/30] arm: Remove support for smdk6400

2013-04-02 Thread Benoît Thébaudeau
The migration of boards from Makefile to boards.cfg was due for v2012.03, but smdk6400 did not follow, and it does not build, so move it to scrapyard. It will still be possible to restore it from the Git history before fixing it. Signed-off-by: Benoît Thébaudeau --- Changes in v10: - Rebase on c

[U-Boot] [PATCH 0/4] Exynos5: Add cpu freq and tmu throttling

2013-04-02 Thread Akshay Saraswat
This patch set adds cpu frequency scaling and tmu throttling for exynos5. Akshay Saraswat (4): pmic: max77686: add pmic_set_voltage api for max77686 Exynos5: cpufreq: Implement frequency scaling for exynos5 smdk5250: enable support for tmu throttling Exynos5: config: enable cpu freq arch

[U-Boot] [PATCH 1/4] pmic: max77686: add pmic_set_voltage api for max77686

2013-04-02 Thread Akshay Saraswat
This patch adds pmic_set_voltage api in max77686. As the name suggests, this api is required for switching voltage from one level to another. Signed-off-by: Akshay Saraswat --- drivers/power/pmic/pmic_max77686.c | 61 ++ include/power/max77686_pmic.h | 12

[U-Boot] [PATCH 2/4] Exynos5: cpufreq: Implement frequency scaling for exynos5

2013-04-02 Thread Akshay Saraswat
Exynos5 currently runs at full speed i.e. 1.7 GHz everytime. Scaling down the clock speed in certain situations, may help in reducing the ARM temperature and power consumption. Signed-off-by: Akshay Saraswat --- arch/arm/include/asm/arch-exynos/cpufreq.h | 54 ++ drivers/power/Makefile

[U-Boot] [PATCH 4/4] Exynos5: config: enable cpu freq

2013-04-02 Thread Akshay Saraswat
This patch enables cpu freq support for exynos5 by adding config for it. Signed-off-by: Akshay Saraswat --- include/configs/exynos5250-dt.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/configs/exynos5250-dt.h b/include/configs/exynos5250-dt.h index 496a194..18d3e04 100644 --- a

[U-Boot] [PATCH 3/4] smdk5250: enable support for tmu throttling

2013-04-02 Thread Akshay Saraswat
Adding tmu throttling support to smdk5250. Signed-off-by: Akshay Saraswat --- board/samsung/smdk5250/smdk5250.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/board/samsung/smdk5250/smdk5250.c b/board/samsung/smdk5250/smdk5250.c index 8b09e1d..301dcf8 100644 --- a/boar

Re: [U-Boot] [PATCH v9 18/30] nand: mxc: Switch NAND SPL to generic SPL

2013-04-02 Thread Benoît Thébaudeau
Hi Albert, On Monday, April 1, 2013 5:53:55 PM, Albert ARIBAUD wrote: > Hi Benoît, > > On Mon, 1 Apr 2013 15:13:05 +0200 (CEST), Benoît Thébaudeau > wrote: > > > OK, then it's probably better if I send v10 ASAP. I may not have access to > > my > > repo before this date, and I have not kept my v

Re: [U-Boot] [PATCH] mx6: fsl_esdhc: Fix waiting for DMA operation completion

2013-04-02 Thread Gabbasov, Andrew
> From: Eric Nelson [eric.nel...@boundarydevices.com] > Sent: Wednesday, April 03, 2013 01:38 > To: Gabbasov, Andrew > Cc: u-boot@lists.denx.de; Behme, Dirk - Bosch > Subject: Re: [U-Boot] [PATCH] mx6: fsl_esdhc: Fix waiting for DMA operation > completion > > Thanks Andrew, > > On 04/02/2013 11:

<    1   2