[U-Boot] [PATCH v9 13/38] Makefile: refactor include path settings

2014-02-04 Thread Masahiro Yamada
This commit merges commonly-used header include paths to UBOOTINCLUDE and NOSTDINC_FLAGS variables, which are placed at the top Makefile. Signed-off-by: Masahiro Yamada --- Changes in v9: None Changes in v8: None Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4: None Cha

[U-Boot] [PATCH v9 09/38] Makefile: move BFD_ROOT_DIR to tools/gdb/Makefile

2014-02-04 Thread Masahiro Yamada
BFD_ROOT_DIR is used only in tools/gdb/Makefile Signed-off-by: Masahiro Yamada --- 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: None Changes in v2: None config.mk | 23 --- to

[U-Boot] [PATCH v9 32/38] Makefile: refactor tools-all targets

2014-02-04 Thread Masahiro Yamada
- Move "easylogo", "gdb" tagets to tools/Makefile - Delete "gdbtools" target (same as "gdb") Signed-off-by: Masahiro Yamada --- Changes in v9: None Changes in v8: None Changes in v7: None Changes in v6: None Changes in v5: - Revive "env" target Changes in v4: None Changes in v3: None Changes

[U-Boot] [PATCH v9 33/38] kbuild: use scripts/Makefile.clean

2014-02-04 Thread Masahiro Yamada
This commit refactors cleaning targets such as clean, clobber, mrpropper, distclean with scripts/Makefile.clean. By using scripts/Makefile.clean, we can recursively descend into subdirectories and delete generated files there. We do not need add a big list of generated files to the "clean" target

[U-Boot] [PATCH v9 23/38] kbuild: move some lines to more suitable place

2014-02-04 Thread Masahiro Yamada
Signed-off-by: Masahiro Yamada --- Changes in v9: None Changes in v8: None Changes in v7: None Changes in v6: - Rebase on the current u-boot/master Changes in v5: None Changes in v4: - Move the line where U_BOOT_VERSION is defined Changes in v3: None Changes in v2: None Makefile | 66

[U-Boot] [PATCH v9 04/38] board: samsung: refactor host programs

2014-02-04 Thread Masahiro Yamada
Some Samsung boards have their own tools under board/samsung//tools/. This commit refactor more makefiles with "hostprogs-y". Signed-off-by: Masahiro Yamada --- Note1: Samsung boards have tools under board/samsung//tools/ and have tools/mkexynosspl.c too. It is inconsistent, so we should choose

[U-Boot] [PATCH v9 15/38] Makefile: move some flags to spl/Makefile

2014-02-04 Thread Masahiro Yamada
Some flags are used for SPL (and TPL) build only. This commit moves them from config.mk to spl/Makefile. Signed-off-by: Masahiro Yamada --- 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: None Changes in v2: N

[U-Boot] [PATCH v9 01/38] .gitignore: ingore files generated by Kbuild

2014-02-04 Thread Masahiro Yamada
Ignore generated files by Kbuild such as .*.cmd, *.order, etc. Besides above, - Ignore *.s files We do not need to ignore with file name, asm-offsets.s - Do not ignore *.rej (for quilt) - Ignore backup files, \#*# Signed-off-by: Masahiro Yamada --- Changes in v9: None Changes in v8: None

[U-Boot] [PATCH v9 16/38] Makefile: move some flags to examples makefiles

2014-02-04 Thread Masahiro Yamada
This commit moves some flags which are used under examples/ directory only. Signed-off-by: Masahiro Yamada --- 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: None Changes in v2: None config.mk

[U-Boot] [PATCH v9 18/38] kbuild: add dummy obj-y to create built-in.o

2014-02-04 Thread Masahiro Yamada
We are going to switch over to Kbuild in upcoming commits. Each makefile must have non-empty obj- or obj-y to generate built-in.o on Kbuild. Signed-off-by: Masahiro Yamada --- Changes in v9: None Changes in v8: None Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4: None

[U-Boot] [PATCH v9 03/38] tools: convert makefiles to kbuild style

2014-02-04 Thread Masahiro Yamada
Before this commit, makefiles under tools/ directory were implemented with their own way. This commit refactors them by using "hostprogs-y" variable. Several C sources have been added to wrap other C sources to simplify Makefile. For example, tools/crc32.c includes lib/crc32.c Signed-off-by: Mas

[U-Boot] [PATCH v9 19/38] Makefile: rename scripts/Makefile.build to scripts/Makefile.build.tmp

2014-02-04 Thread Masahiro Yamada
Some build scripts including scripts/Makefile.build will be imported from Linux Kernel in the next commit. We need to adjust them for U-Boot in the following commits. To make it easier for reviewers to track the modification, this commit renames scripts/Makefile.build to scripts/Makefile.build.tmp

[U-Boot] [PATCH v9 29/38] examples: move api/ and standalone/ entry to examples/Makefile

2014-02-04 Thread Masahiro Yamada
Signed-off-by: Masahiro Yamada --- 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: None Changes in v2: None Makefile | 5 + examples/Makefile| 9 + examples/api/Mak

[U-Boot] [PATCH v9 24/38] kbuild: convert some make rules to Kbuild style

2014-02-04 Thread Masahiro Yamada
We can get Kbuild-ish log style like this: GEN include/autoconf.mk GEN include/autoconf.mk.dep We do not need XECHO any more. And also change checkstack target like Linux Kernel. Signed-off-by: Masahiro Yamada --- Changes in v9: None Changes in v8: None Changes in v7: None Changes

[U-Boot] [PATCH v9 14/38] Makefile: move more stuff to top Makefile

2014-02-04 Thread Masahiro Yamada
Signed-off-by: Masahiro Yamada --- 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: None Changes in v2: None Makefile | 20 +--- config.mk | 19 +-- 2 files changed, 18 inserti

[U-Boot] [PATCH v9 12/38] Makefile: move more flags to the top Makefile

2014-02-04 Thread Masahiro Yamada
Before this commit, most of compiler flags were defined in config.mk. But it is redundant because config.mk is included from all recursive make. This commit moves many complier flags to the top Makefile and export them. And we use new vaiarables to store them: KBUILD_CPPFLAGS, KBUILD_CFLAGS, KBUIL

[U-Boot] [PATCH v9 30/38] kbuild: refactor Makefile and spl/Makefile more

2014-02-04 Thread Masahiro Yamada
This commit refactors rules of directory descending and defines u-boot-dirs and u-boot-all-dirs. (We will need u-boot-all-dirs when using scripts/Makefile.clean) Additionally, rename LIBS-y to libs-y. Signed-off-by: Masahiro Yamada --- Changes in v9: None Changes in v8: - Rebase on the curren

[U-Boot] [PATCH v9 35/38] kbuild: check clean source and generate Makefile for out-of-tree build

2014-02-04 Thread Masahiro Yamada
For out-of-tree build - Check if the source tree is clean - Create a Makefile in the output directory Signed-off-by: Masahiro Yamada --- 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: None Changes in v2:

[U-Boot] [PATCH v9 11/38] kbuild: Use Kbuild.include

2014-02-04 Thread Masahiro Yamada
This commit adjusts some files to use Kbuild.include. - Use cc-option defined in Kbuild.include (Delete cc-option in config.mk) - Use cc-version defined in (Delete cc-version in config.mk) - Move binutils-version and dtc-version to Kbuild.include by analogy to cc-version This comm

[U-Boot] [PATCH v9 06/38] nand-spl: Use scripts/Makefile.build

2014-02-04 Thread Masahiro Yamada
Signed-off-by: Masahiro Yamada --- 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: None Changes in v2: None Makefile | 2 +- nand_spl/board/amcc/acadia/Makefile

[U-Boot] [PATCH v9 26/38] kbuild: generate {spl, tpl}-autoconf.mk only when it is necessary

2014-02-04 Thread Masahiro Yamada
Before this commit, {spl,tpl}-autoconf.mk was always generated at the top Makefile even if SPL(TPL) build was not selected. This commit moves the build rule of {spl,tpl}-autoconf.mk from the top Makefile to spl/Makefile. It prevents unnecessary {spl,tpl}-autoconf.mk from being generated. Signed-o

[U-Boot] [PATCH v9 37/38] kbuild: Do not generate .*.su files at the top directory

2014-02-04 Thread Masahiro Yamada
Without this workaround, you will see a lot of ".*.su" files at the top directory after building with a compiler which supports "-fstack-usage" option. Signed-off-by: Masahiro Yamada --- Changes in v9: None Changes in v8: None Changes in v7: None Changes in v6: None Changes in v5: None Changes i

[U-Boot] [PATCH v9 02/38] Makefile.host.tmp: add a new script to refactor tools

2014-02-04 Thread Masahiro Yamada
This commit adds scripts/Makefile.host.tmp which will be used in the next commit to convert makefiles under tools/ directory to Kbuild style. Notice this script, scripts/Makefile.host.tmp is temporary. When switching over to real Kbuild, it will be replaced with scripts/Makefile.host of Linux Ker

[U-Boot] [PATCH v9 28/38] kbuild: change the top Makefile to more Kbuild-ish structure

2014-02-04 Thread Masahiro Yamada
This commit changes the top Makefile to handle various targets nicely. Make targets are divided into four categories: - mixed-targets We can call a configuration target and build targets at one command line like follows: $ make _config u-boot They are handled one by one. -

[U-Boot] [PATCH v9 34/38] kbuild: support simultaneous board configuration and "make all"

2014-02-04 Thread Masahiro Yamada
This commit fixes two problems: [1] We could not do board configuration and "make all" in one command line. For example, the following did not work as we expect: $ make sandbox_config all Configuring for sandbox board... make: Nothing to be done for `all'. [2] mixed-target build did no

[U-Boot] [PATCH v9 36/38] board: sandburst: delete FORCEBUILD

2014-02-04 Thread Masahiro Yamada
We had switched to Kbuild, so we do not need to delete sandburst board files at every build. U-Boot conventional build system did not check the update of command line option, -DBUILDUSER. Kbuild can handle it nicely and re-builds object files when command line options are changed. (The file ".*.c

[U-Boot] [PATCH v9 25/38] kbuild: move include directives of board configuration files

2014-02-04 Thread Masahiro Yamada
This commit changes the location of include directives of board configuration files. The purpose of this change is: - Slim down $(TOPDIR)/config.mk - Prevent $(TOPDIR)/Makefile from including the same configuration file twice - Do not include include/config.mk multiple times because ARC

[U-Boot] [PATCH v9 05/38] examples: Use scripts/Makefile.build

2014-02-04 Thread Masahiro Yamada
Signed-off-by: Masahiro Yamada --- 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: None Changes in v2: None Makefile | 5 + examples/api/Makefile| 21 +--- exa

[U-Boot] [PATCH v9 0/38] Switch over to real Kbuild

2014-02-04 Thread Masahiro Yamada
We switched to Kbuild style makefiles at v2014.01-rc1 release. With that modification, we can write makefiles simpler. But it is NOT real Kbuild. We need more progress. As the next step, this series imports (+ adjusts) build scripts from Linux Kernel under scripts/ directory. By applying this ser

[U-Boot] [PATCH v9 07/38] Makfile: move suffix rules to Makefile.build

2014-02-04 Thread Masahiro Yamada
This commit moves suffix rules from config.mk to scripts/Makefile.build, which will allow us to switch smoothly to real Kbuild. Note1: post/lib_powerpc/fpu/Makefile has its own rule to compile C sources. We need to tweak it to keep the same behavior. Note2: There are two file2 with the same name:

[U-Boot] [PATCH v9 31/38] Makefile: Do not pass MTD_VERSION from the top Makefile

2014-02-04 Thread Masahiro Yamada
$(MTD_VERSION) is used in tools/env/Makefile If you specify a variable at a command line like: $ make MTD_VERSION=old env or specify it thru an envrionment variable like: $ export MTD_VERSION=old $ make env it is inherited to the sub-make too. We do not need to pass it from the top Makefile

[U-Boot] [PATCH v9 27/38] Makefile: remove a cleaning target "tidy"

2014-02-04 Thread Masahiro Yamada
Before this commit, "make tidy" did "make clean" + delete "*.depend*" files. But, we do not have "*.depend*" files any more, which means "make tidy" is the same as "make clean". This commit removes the redandant target "tidy". Signed-off-by: Masahiro Yamada --- Changes in v9: None Changes in v

[U-Boot] [PATCH v9 20/38] kbuild: import more build scripts from Linux v3.13 tag

2014-02-04 Thread Masahiro Yamada
This commit imports build scripts from Linux Kernel v3.13 as they are. I know they include some trailing spaces but I am intentionally keeping them untouched. Signed-off-by: Masahiro Yamada --- Changes in v9: None Changes in v8: None Changes in v7: None Changes in v6: None Changes in v5: None C

[U-Boot] [PATCH v9 10/38] kbuild: import Kbuild.include from linux v3.13 tag

2014-02-04 Thread Masahiro Yamada
Signed-off-by: Masahiro Yamada --- Changes in v9: None Changes in v8: None Changes in v7: None Changes in v6: - Import from linux v3.13 Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None scripts/Kbuild.include | 278 +++

[U-Boot] [PATCH v9 08/38] Makefile: move some variable definitions to the top Makefile

2014-02-04 Thread Masahiro Yamada
This commit moves some variable definitions from config.mk to the top Makefile: - HOSTCC, HOSTCFLAGS, HOSTLDFLAGS - AS, LD, CC, CPP, etc. - SHELL (renamed to CONFIG_SHELL) I'd like to slim down config.mk file because it is included from all recursive make. It is redundant to re-define the v

[U-Boot] [PATCH v9 22/38] kbuild: delete temporary build scripts

2014-02-04 Thread Masahiro Yamada
We had switched to Kbuild. We do not need old build scripts any more. Signed-off-by: Masahiro Yamada --- 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: None Changes in v2: None rules.mk |

[U-Boot] [PATCH v9 38/38] tools/env: cross-compile fw_printenv without setting HOSTCC

2014-02-04 Thread Masahiro Yamada
fw_printenv is a program which mostly runs on the target Linux. Before switching to Kbuild, we needed to set HOSTCC at the command line like this: make HOSTCC= env Going forward we can cross compile it by specifying CROSS_COMPILE: make CROSS_COMPILE= env This looks more natural. Signed-o

[U-Boot] [PATCH v4 4/9] arc: bdinfo, image and arc-specific init functions declarations support

2014-02-04 Thread Alexey Brodkin
Signed-off-by: Alexey Brodkin Cc: Vineet Gupta Cc: Francois Bedard Cc: Wolfgang Denk Cc: Heiko Schocher --- No changes for v4. common/cmd_bdinfo.c | 18 ++ common/image.c | 1 + include/common.h| 3 +++ include/image.h | 1 + 4 files changed, 23 insertions(+)

[U-Boot] [PATCH v4 3/9] arc: add library functions

2014-02-04 Thread Alexey Brodkin
These are library functions used by ARC700 architecture. Signed-off-by: Alexey Brodkin Cc: Vineet Gupta Cc: Francois Bedard Cc: Wolfgang Denk Cc: Heiko Schocher --- No changes for v4. arch/arc/lib/Makefile | 16 ++ arch/arc/lib/bootm.c | 106 ++

[U-Boot] [PATCH v4 1/9] arc: add architecture header files

2014-02-04 Thread Alexey Brodkin
These are header files used by ARC700 architecture. Also note that "arch-arc700/hardware.h" is only required for compilation of "designware_i2c" driver which refers to "asm/arch/hardware.h". It would be good to fix mentioned driver sometime soon but it will cause changes in ARM board configs that

[U-Boot] [PATCH v4 0/9] Add support for the ARC700 architecture

2014-02-04 Thread Alexey Brodkin
This patch series adds support for the Synopsys DesignWare ARC700 architecture. DesignWare ARC700 is family of 32-bit CPUs developed by Synopsys, Inc. Since version 3.9 ARC architecture is supported in mainline Linux developemnt. And now to get better support in commonly used boot-loader we are i

[U-Boot] [PATCH v4 5/9] arc: add support for standalone programs

2014-02-04 Thread Alexey Brodkin
Signed-off-by: Alexey Brodkin Cc: Vineet Gupta Cc: Francois Bedard Cc: Wolfgang Denk Cc: Heiko Schocher --- Changes for v4: * Clean-up of EXPORT_FUNC for ARC. examples/standalone/stubs.c | 13 + 1 file changed, 13 insertions(+) diff --git a/examples/standalone/stubs.c b/examp

[U-Boot] [PATCH v4 2/9] arc: add cpu files

2014-02-04 Thread Alexey Brodkin
Signed-off-by: Alexey Brodkin Cc: Vineet Gupta Cc: Francois Bedard Cc: Wolfgang Denk Cc: Heiko Schocher --- No changes for v4. arch/arc/config.mk | 31 + arch/arc/cpu/arc700/Makefile | 13 +++ arch/arc/cpu/arc700/cache.c | 138 ++ arch/arc/cp

[U-Boot] [PATCH v4 6/9] arc: add Arcangel4 board support

2014-02-04 Thread Alexey Brodkin
Arcangel4 is a FPGA-based development board that is used for prototyping and verificationof of both ARC hardware (CPUs) and software running upon CPU. This board avaialble in 2 flavours: * Little-endian (arcangel4) * Big-endian (arcangel4-be) Signed-off-by: Alexey Brodkin Cc: Vineet Gupta Cc

[U-Boot] [PATCH v4 8/9] arc: add architecture to MAKEALL

2014-02-04 Thread Alexey Brodkin
Signed-off-by: Alexey Brodkin Cc: Vineet Gupta Cc: Francois Bedard Cc: Wolfgang Denk Cc: Heiko Schocher --- No changes for v4. MAKEALL | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAKEALL b/MAKEALL index 562071a..54b0d89 100755 --- a/MAKEALL +++ b/MAKEALL @@ -529,6 +529,12 @@ L

[U-Boot] [PATCH v4 9/9] arc: add README for architecture

2014-02-04 Thread Alexey Brodkin
Signed-off-by: Alexey Brodkin Cc: Vineet Gupta Cc: Francois Bedard Cc: Wolfgang Denk Cc: Heiko Schocher --- No changes for v4. doc/README.ARC | 27 +++ 1 file changed, 27 insertions(+) create mode 100644 doc/README.ARC diff --git a/doc/README.ARC b/doc/README.ARC n

[U-Boot] [PATCH v4 7/9] arc: add AXS101 board support

2014-02-04 Thread Alexey Brodkin
AXS101 is a new generation of devlopment boards from Synopsys that houses ASIC with ARC700 and lots of DesignWare peripherals: * DW APB UART * DW Mobile Storage (MMC/SD) * DW I2C * DW GMAC Signed-off-by: Alexey Brodkin Cc: Vineet Gupta Cc: Francois Bedard Cc: Wolfgang Denk Cc: Heiko Scho

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

2014-02-04 Thread Stefano Babic
Hi Tim, On 03/02/2014 20:30, Tim Harvey wrote: >> This is always printed, not only on your board - even from other board, >> if any, that will use this pmic. If you want that your board always >> prints the pmic revision, move this output to your board file - maybe in >> checkboard(). > > I notic

[U-Boot] Internal Boot mode

2014-02-04 Thread JYOTI DUBEY
Can anybody tell what all happens inside an i.mx6 board when we try to boot it in internal mode? Is it that in internal mode the board does not look into the flash at all to discover the u-boot image and the image must be provided only from the serial port? If yes then what steps should be followed

Re: [U-Boot] [PATCH 3/3] exynos: pinmux: remove unnecessary routine

2014-02-04 Thread Rajeshwari Birje
Hi Minkyu Kang, On Mon, Feb 3, 2014 at 12:53 PM, Minkyu Kang wrote: > On 29/01/14 18:01, Rajeshwari Birje wrote: >> Hi Minkyu Knag, >> >> On Wed, Jan 29, 2014 at 1:34 PM, Minkyu Kang wrote: >>> Because of the list of peripherals is not sequential, >>> such a routine does not check for valid corr

[U-Boot] [PATCH v2 1/3] dts: re-write dts/Makefile more simply with Kbuild

2014-02-04 Thread Masahiro Yamada
Useful rules in scripts/Makefile.lib allows us to easily generate a device tree blob and wrap it in assembly code. We do not need to parse a linker script to get output format and arch. This commit deletes ./u-boot.dtb since it is a copy of dts/dt.dtb Signed-off-by: Masahiro Yamada --- Changes

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

2014-02-04 Thread Masahiro Yamada
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 and *.dtsi files. For example, before this commit, board/xilinx/dts directory had both MicroBla

[U-Boot] [PATCH v2 0/3] Simplify dts/Makefile and support multiple DTBs generation

2014-02-04 Thread Masahiro Yamada
1/3 re-writes dts/Makefile more simply. It does not change the behavior except removal of ./u-boot.dts 2/3 moves *.dts from board/$(VENDOR)/dts to arch/$(ARCH)/dts 3/3 adds multipe DTBs generation This patch uses my Kbuild series as a prerequisite. "Switch over to real Kbuild" series version 9

[U-Boot] [PATCH v2 3/3] dts: generate multiple device tree blobs

2014-02-04 Thread Masahiro Yamada
It is convenient to have all device trees on the same SoC compiled. It allows for later easy repackaging without the need to re-run the make file. - Build device trees with the same SoC under arch/$(ARCH)/dts - Copy the one specified by CONFIG_DEFAULT_DEVICE_TREE or DEVICE_TREE=... to dts/

Re: [U-Boot] [PATCH] dts: re-write dts/Makefile more simply with Kbuild

2014-02-04 Thread Masahiro Yamada
Hello Simon, I saw the patch you posted http://patchwork.ozlabs.org/patch/315846/ and I understood what you want to do. (But I don't like to search similar device trees with file name prefixes.) Do you like ARM Linux style? dtb-$(CONFIG_EXYNOS5) += exynos5250-arndale.dtb \ exynos5250-s

Re: [U-Boot] Internal Boot mode

2014-02-04 Thread Stefano Babic
Hi Jyoti, On 04/02/2014 10:07, JYOTI DUBEY wrote: > Can anybody tell what all happens inside an i.mx6 board when we try to boot > it in internal mode? You have already got several answers pointing to the provided documentation. Please read it. The boot process is descripted with details in Chapte

Re: [U-Boot] [PATCH 3/3] kernel-doc: fix some errors

2014-02-04 Thread Masahiro Yamada
Hello Simon, > > - Delete fs.xml from DOCBOOKS to fix an error > > Commit e3ff797c added fs.xml to DOCBOOKS > > but missed to add doc/DocBook/fs.tmpl You added "fs.xml" to doc/DocBook/Makefile in commit e3ff797c. but the template file is missing. So I thought you had forgotten to git

[U-Boot] V2 implementation of generic distro options

2014-02-04 Thread Dennis Gilmore
In this set of patches I am adding a generic set of config options for Distros to work with. this enables for simplified support of systems by distros. Fixed in V2 is updating the guard to match the renamed filename since the RFC series. I have left out any implementations in this set of patches

[U-Boot] [PATCH V2 2/2] config: add config_distro_defaults.h

2014-02-04 Thread Dennis Gilmore
describe a set of default features that distros can rely on being available. having this common definition means that distros can easily support systems implementing them. Signed-off-by: Dennis Gilmore --- include/config_distro_defaults.h | 55 1 file cha

[U-Boot] [PATCH V2 1/2] cmd_pxe.c add any option for filesystem with sysboot uses generic load

2014-02-04 Thread Dennis Gilmore
Signed-off-by: Dennis Gilmore --- common/cmd_pxe.c | 22 +++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/common/cmd_pxe.c b/common/cmd_pxe.c index c27ec35..20569bb 100644 --- a/common/cmd_pxe.c +++ b/common/cmd_pxe.c @@ -11,6 +11,7 @@ #include #include #

Re: [U-Boot] [PATCH] pci: mx6: Implement reset callback

2014-02-04 Thread Marek Vasut
On Tuesday, February 04, 2014 at 01:57:48 AM, Eric Nelson wrote: [...] > > Hope it helps :) Sometimes you need to do a few cycles until the hardware > > hangs. I found this out when I was debugging another custom board here. > > I think we will have a rock-solid PCIe implementation on MX6 for 3.14

Re: [U-Boot] [PATCH v1 0/2] mtd: nand: omap: booting from NAND using u-boot

2014-02-04 Thread Gupta, Pekon
Hi Brian, >From: Gupta, Pekon >>I'm preparing a 3.14 pull request soon, and since you seem committed to >>fixing and properly testing a known regression here, I'd like to see >>this go in. But given the late timing and the unanswered questions, I >>think it's unlikely to go in -rc1. Perhaps I can

[U-Boot] NAND bad block table

2014-02-04 Thread Michal Simek
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 option in Linux/u-boot BBM is last 4 blocks? It doesn't mean that if the last 4 blocks are broken than

[U-Boot] Question about Coding-Style

2014-02-04 Thread Hannes Petermaier
Hello, I've read on the U-Boot website about coding style. They say 'All contributions to U-Boot should conform to the Linux kernel coding style'. Further i've read this link and there are at least 2 things which i have troubles with. 1) a tab-ident is 8 spaces (in eclipse for example with the bu

[U-Boot] help for sabre lite

2014-02-04 Thread Mathieu Barbe
hi, I'm a new user of u-boot and sabre lite. http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] help for sabre lite

2014-02-04 Thread Eric Nelson
On 02/04/2014 12:12 AM, Mathieu Barbe wrote: hi, I'm a new user of u-boot and sabre lite. Hi Mathieu, This list is not the right place for first-level support, which should come from your board vendor (likely to be us). You can get a lot of background about U-Boot on SABRE Lite here:

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

2014-02-04 Thread Otavio Salvador
On Thu, Jan 30, 2014 at 7:32 PM, Tom Rini wrote: > 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. Mayb

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

2014-02-04 Thread Otavio Salvador
On Tue, Feb 4, 2014 at 12:08 PM, Otavio Salvador wrote: > On Thu, Jan 30, 2014 at 7:32 PM, Tom Rini wrote: >> 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

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

2014-02-04 Thread Tom Rini
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 02/04/2014 09:08 AM, Otavio Salvador wrote: > On Thu, Jan 30, 2014 at 7:32 PM, Tom Rini wrote: >> 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

Re: [U-Boot] [PATCH v9 0/38] Switch over to real Kbuild

2014-02-04 Thread Otavio Salvador
On Tue, Feb 4, 2014 at 6:24 AM, Masahiro Yamada wrote: > > We switched to Kbuild style makefiles at v2014.01-rc1 release. > With that modification, we can write makefiles simpler. > But it is NOT real Kbuild. We need more progress. > > As the next step, this series imports (+ adjusts) build script

Re: [U-Boot] Question about Coding-Style

2014-02-04 Thread Stefano Babic
Hi Hannes, On 04/02/2014 13:50, Hannes Petermaier wrote: > Hello, > > I've read on the U-Boot website about coding style. They say 'All > contributions to U-Boot should conform to the Linux kernel coding style'. > Further i've read this link and there are at least 2 things which i have > troubles

Re: [U-Boot] Question about Coding-Style

2014-02-04 Thread Michael Trimarchi
Hi Il 04/feb/2014 15:15 "Stefano Babic" ha scritto: > > Hi Hannes, > > On 04/02/2014 13:50, Hannes Petermaier wrote: > > Hello, > > > > I've read on the U-Boot website about coding style. They say 'All > > contributions to U-Boot should conform to the Linux kernel coding style'. > > Further i've

Re: [U-Boot] Question about Coding-Style

2014-02-04 Thread Hannes Petermaier
Stefano, many thanks. This will be a hard challenge for me to obey to the rules :-) The 80 character thing is reported from checkpatch.pl as WARNING, not as ERROR - so there will be a chance of the patch to become accepted by a custodian. In between i tried to reformat by Code to obey to these r

[U-Boot] [PATCH v2] ext4fs: Add ext4 extent cache for read operations

2014-02-04 Thread Ionut Nicu
In an ext4 filesystem, the inode corresponding to a file has a 60-byte area which contains an extent header structure and up to 4 extent structures (5 x 12 bytes). For files that need more than 4 extents to be represented (either files larger than 4 x 128MB = 512MB or smaller files but very fragm

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

2014-02-04 Thread Tom Rini
On Tue, Feb 04, 2014 at 12:15:44PM -0200, Otavio Salvador wrote: > On Tue, Feb 4, 2014 at 12:08 PM, Otavio Salvador > wrote: > > On Thu, Jan 30, 2014 at 7:32 PM, Tom Rini wrote: > >> The open and close mmc sub-commands implement a hard-coded set of values > >> specific to the SMDK5250 platform.

Re: [U-Boot] Question about Coding-Style

2014-02-04 Thread Tom Rini
On Tue, Feb 04, 2014 at 12:50:18PM -, Hannes Petermaier wrote: > Hello, > > I've read on the U-Boot website about coding style. They say 'All > contributions to U-Boot should conform to the Linux kernel coding style'. > Further i've read this link and there are at least 2 things which i have >

Re: [U-Boot] Question about Coding-Style

2014-02-04 Thread Stefano Babic
Hi Hannes, On 04/02/2014 15:50, Hannes Petermaier wrote: > The 80 character thing is reported from checkpatch.pl as WARNING, not as > ERROR - so there will be a chance of the patch to become accepted by a > custodian. No, it will *not* be accepted. There must be a very good reason to accept it.

Re: [U-Boot] Question about Coding-Style

2014-02-04 Thread Tom Rini
On Tue, Feb 04, 2014 at 04:02:56PM +0100, Stefano Babic wrote: > Hi Hannes, > > On 04/02/2014 15:50, Hannes Petermaier wrote: [snip] > > Another thing is linewrapping of output strings, to obey to the rules i > > have to format the string as following: > > > > if (i2c_probe(TPS65217_CHIP_PM)) { >

[U-Boot] [GIT PULL] clk command

2014-02-04 Thread Michal Simek
Hi Tom, please pull this one patch to your tree. It is adding new clk command which I want to use for zynq. When it is applied I will prepare zynq specific patches which will go through arm tree. i.MXes are other users for this as was pointed by Stefano. He also gave me his ACK for this. Thanks,

[U-Boot] [GIT PULL] microblaze changes

2014-02-04 Thread Michal Simek
Hi Tom, please pull these Microblaze changes to your tree. Thanks, Michal The following changes since commit 07e2822d158940a0e8ba45b6ab0344ffa1011a07: board: nios2: Check if flash is configured before calling early_flash_cmd_reset() (2014-01-29 16:44:18 -0500) are available in the git repos

[U-Boot] [GIT PULL] Microblaze/Zynq network fixes

2014-02-04 Thread Michal Simek
Hi Joe, I have two pending patches for xilinx ethernet drivers. Can you please add them to your net tree? Thanks, Michal The following changes since commit b44bd2c73c4cfb6e3b9e7f8cf987e8e39aa74a0b: Prepare v2014.01 (2014-01-20 17:52:59 -0500) are available in the git repository at: git:/

[U-Boot] [GIT PULL] Uartlite patch

2014-02-04 Thread Michal Simek
Hi Tom, I have one pending uartlite patch which I would like to add to the mainline. Can you please add it to your tree? Thanks, Michal The following changes since commit b44bd2c73c4cfb6e3b9e7f8cf987e8e39aa74a0b: Prepare v2014.01 (2014-01-20 17:52:59 -0500) are available in the git reposito

[U-Boot] [PATCH] zynq: Fix elf header generation

2014-02-04 Thread Michal Simek
This patch is here because of: "arm: keep all sections in ELF file" (sha1: 47ed5dd031d7d2c587e6afd386e79ccec1a1b7f7) Our tools expect to have elf with only LOAD header. Without this fix also PHDR, INTERP and DYNAMIC headers are available in ELF. Signed-off-by: Michal Simek --- Albert: We have d

Re: [U-Boot] [PATCH] xilinx_spi: Move timeout calculation out of the loop

2014-02-04 Thread Michal Simek
On 01/22/2014 09:48 AM, Michal Simek wrote: > Timeout calculation should be out of the data loop. > This patch increase spi bandwidth for 30%. > > Signed-off-by: Michal Simek > --- > > drivers/spi/xilinx_spi.c | 8 +--- > 1 file changed, 5 insertions(+), 3 deletions(-) Jagan: Can you pleas

[U-Boot] [PATCH v4 5/5] sf: Update bank configuration

2014-02-04 Thread Jagannadha Sutradharudu Teki
Updated bank configuration code to more readable. Signed-off-by: Jagannadha Sutradharudu Teki --- drivers/mtd/spi/sf_probe.c | 21 +++-- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/drivers/mtd/spi/sf_probe.c b/drivers/mtd/spi/sf_probe.c index 22b6335..c0a3a35

[U-Boot] [PATCH v4 0/5] sf: Optimize spi_flash features code

2014-02-04 Thread Jagannadha Sutradharudu Teki
Shrinked spi_slave and spi_flash code with respect to added flash features. V4: - Use braces in bit fileds m << n becomes (m << n) - Use mode instead of "mode_bits" V3: - Return -ENOMEM for calloc fails V2: - Divide dual_flash code into two patches. Jagannadha Sutradharudu Teki (5): sf: ops: S

[U-Boot] [PATCH v4 3/5] sf: Use slave mode for dual_flash connection

2014-02-04 Thread Jagannadha Sutradharudu Teki
SF uses mode from driver side for informing whether flash can operated in single or dual connections. Signed-off-by: Jagannadha Sutradharudu Teki --- drivers/mtd/spi/sf_probe.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/spi/sf_probe.c b/drivers/mtd/s

[U-Boot] [PATCH v4 2/5] sf: Optimize flash features code

2014-02-04 Thread Jagannadha Sutradharudu Teki
- Shrink spi_slave {} - Shrink spi_flash_params {} - Documentation for sf features Signed-off-by: Jagannadha Sutradharudu Teki --- doc/SPI/README.sf-features| 121 + drivers/mtd/spi/sf.c | 4 +- drivers/mtd/spi/sf_internal.h | 1 - drivers/mtd/spi/sf_

[U-Boot] [PATCH v4 4/5] doc: SPI: Update the dual_flash info

2014-02-04 Thread Jagannadha Sutradharudu Teki
Updated the dual_flash documentation as it uses mode from spi drivers to inform the sf framework. Signed-off-by: Jagannadha Sutradharudu Teki --- doc/SPI/README.dual-flash | 5 +++-- doc/SPI/README.sf-features | 3 +++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/doc/SPI/READM

[U-Boot] [PATCH v4 1/5] sf: ops: Squash the malloc+memset combo

2014-02-04 Thread Jagannadha Sutradharudu Teki
Squash the malloc()+memset() combo in favor of calloc(). Signed-off-by: Jagannadha Sutradharudu Teki --- drivers/mtd/spi/sf_ops.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/spi/sf_ops.c b/drivers/mtd/spi/sf_ops.c index 1f1bb36..ef91b92 100644 --- a/dr

Re: [U-Boot] [PATCH v1 5/6] mmc: kona: Add Kona mmc driver

2014-02-04 Thread Darwin Rambo
On 14-02-03 05:12 PM, Jaehoon Chung wrote: > On 02/04/2014 06:03 AM, Darwin Rambo wrote: >> Add support for the Kona SDHCI found on Broadcom mobile SoCs. >> >> Signed-off-by: Darwin Rambo >> Reviewed-by: Steve Rae >> Reviewed-by: Tim Kryger >> --- >> drivers/mmc/Makefile |1 + >> driv

Re: [U-Boot] [PATCH v2 4/6] i2c: kona: Add Kona I2C driver

2014-02-04 Thread Darwin Rambo
On 14-02-03 11:22 PM, Heiko Schocher wrote: > Hello Darwin, > > Am 03.02.2014 23:12, schrieb Darwin Rambo: >> Add support for the Kona I2C controller found on Broadcom mobile SoCs. >> >> Signed-off-by: Darwin Rambo >> Reviewed-by: Steve Rae >> Reviewed-by: Tim Kryger >> --- > > What has changed

[U-Boot] [PATCH v2 00/12] Series v2.

2014-02-04 Thread Mateusz Zalega
This is an updated version of patch series regarding DFU, MMC, USB Gadget and Samsung Goni board, originally sent on 10 January 2014. --- Changes since v1: - reordered "USB: gadget: added a saner gadget downloader registration API" - fixed a bug related to usb_cable_connected() which broke previ

[U-Boot] [PATCH v2 07/12] arm:goni:dfu Add support for DFU to Goni target

2014-02-04 Thread Mateusz Zalega
Proper adjustment for supporting DFU by Goni target has been made. The s5p_goni.h file has been updated. Moreover, the code for low level USB initialization has been added to Goni board code. The malloc pool has been enlarged in order to support larger buffer sizes needed by DFU implementation. S

[U-Boot] [PATCH v2 04/12] dfu: fix boards wo USB cable detection

2014-02-04 Thread Mateusz Zalega
Former usb_cable_connected() patch broke compilation of boards which do not support this feature. Signed-off-by: Mateusz Zalega Cc: Lukasz Majewski --- common/cmd_usb_mass_storage.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/cmd_usb_mass_storage.c b/common/cmd_usb_mass_storage

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

2014-02-04 Thread Mateusz Zalega
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 Zalega Cc: Lukasz Majewski Cc: Marek Vasut --- Changes since v1: - reordered --- common/cmd_dfu.c

[U-Boot] [PATCH v2 10/12] dfu:mmc: raw data write fix

2014-02-04 Thread Mateusz Zalega
When user attempted to perform a raw write using DFU (vide dfu_fill_entity_mmc) with MMC interface not initialized before, get_mmc_blk_size() reported invalid (zero) block size - it wasn't possible to write ie. a new u-boot image. This commit fixes that by initializing device in get_mmc_blk_size()

[U-Boot] [PATCH v2 03/12] arm:goni: Update configuration for goni target

2014-02-04 Thread Mateusz Zalega
Configuration file for GONI has been updated to support FAT file system, new mmc partitioning scheme and read linux kernel from eMMC instead of OneNAND. Change-Id: I00e55bc970512986f50b1f943021ba9de683795e Signed-off-by: Arkadiusz Wlodarczyk Signed-off-by: Kyungmin Park Signed-off-by: Mateusz Za

[U-Boot] [PATCH v2 05/12] am335x: dfu: disable DFU in am335x_evm SPL build

2014-02-04 Thread Mateusz Zalega
Future patches will make DFU too large to fit in this board's SPL build. Signed-off-by: Mateusz Zalega Cc: Tom Rini Cc: Lukasz Majewski --- include/configs/am335x_evm.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h index 73a9a

[U-Boot] [PATCH v2 08/12] arm:goni: enable GPT command

2014-02-04 Thread Mateusz Zalega
Signed-off-by: Mateusz Zalega Cc: Minkyu Kang --- include/configs/s5p_goni.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/configs/s5p_goni.h b/include/configs/s5p_goni.h index 24a0fcc..d25c494 100644 --- a/include/configs/s5p_goni.h +++ b/include/configs/s5p_goni.h @@ -72,6 +

  1   2   >