]> git.kernelconcepts.de Git - karo-tx-uboot.git/log
karo-tx-uboot.git
10 years agocm_t35: turn on GPIO commands
Nikita Kiryanov [Mon, 7 Oct 2013 14:28:50 +0000 (17:28 +0300)]
cm_t35: turn on GPIO commands

Turn on GPIO commands for cm-t35 and cm-t3730.

Signed-off-by: Nikita Kiryanov <nikita@compulab.co.il>
Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
10 years agocm_t35: reduce default bootdelay to 3 seconds
Nikita Kiryanov [Mon, 7 Oct 2013 14:28:49 +0000 (17:28 +0300)]
cm_t35: reduce default bootdelay to 3 seconds

Current default bootdelay of 10 seconds is too long.
Reduce default bootdelay to 3 seconds.

Signed-off-by: Nikita Kiryanov <nikita@compulab.co.il>
Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
10 years agodra7xx_evm: Enabled UART-boot mode and add dra7xx_evm_uart3 build
Minal Shah [Fri, 4 Oct 2013 18:52:02 +0000 (14:52 -0400)]
dra7xx_evm: Enabled UART-boot mode and add dra7xx_evm_uart3 build

UART booting is supported on this SoC, but via UART3 rather than UART1.
Because of this we must change the board to use UART3 for all console
access (only one UART is exposed on this board and a slight HW mod is
required to switch UARTs).

Signed-off-by: Minal Shah <minal.shah@ti.com>
[trini: Make apply to mainline, reword commit]
Signed-off-by: Tom Rini <trini@ti.com>
10 years agoTI:armv7: Change CONFIG_SYS_SPL_ARGS_ADDR to a higher address
Tom Rini [Fri, 4 Oct 2013 14:51:40 +0000 (10:51 -0400)]
TI:armv7: Change CONFIG_SYS_SPL_ARGS_ADDR to a higher address

With changes to increase the size of the device tree (required to move
more data out of the kernel and into DT), loading the args at the old
address leads to us overwriting things later on.  To correct this, load
the args file to where we load the device tree anyhow.  This is also
safe for non-DT booting as in either case we use r2 to pass in the
location of things.

Signed-off-by: Tom Rini <trini@ti.com>
10 years agoam335x: Enable CONFIG_OMAP_WATCHDOG support
Tom Rini [Tue, 1 Oct 2013 16:32:04 +0000 (12:32 -0400)]
am335x: Enable CONFIG_OMAP_WATCHDOG support

There is a board-specific portion for calling watchdog enable itself, in
main U-Boot.

Signed-off-by: Tom Rini <trini@ti.com>
10 years agocm-t35: move the display code to common place
Igor Grinberg [Mon, 16 Sep 2013 18:49:59 +0000 (21:49 +0300)]
cm-t35: move the display code to common place

Compulab OMAP3 boards use the same display initialization code.
Move the display initialization code to live under board/compulab/common
directory.

Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
Tested-by: Nikita Kiryanov <nikita@compulab.co.il>
10 years agocm-t35: move the eeprom code to common place
Igor Grinberg [Mon, 16 Sep 2013 18:49:58 +0000 (21:49 +0300)]
cm-t35: move the eeprom code to common place

Compulab boards use the same eeprom code, so move the eeprom related
code to live under board/compulab/common directory.
Also make several adjustments to eeprom functions namespace, so it will
be generic for compulab boards.

Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
Tested-by: Nikita Kiryanov <nikita@compulab.co.il>
10 years agotricorder: support 256MiB SDRAM on revision > D
Andreas Bießmann [Fri, 6 Sep 2013 13:04:58 +0000 (15:04 +0200)]
tricorder: support 256MiB SDRAM on revision > D

Signed-off-by: Andreas Bießmann <andreas.biessmann@corscience.de>
10 years agotricorder: read kernel directly from NAND
Andreas Bießmann [Fri, 6 Sep 2013 13:04:57 +0000 (15:04 +0200)]
tricorder: read kernel directly from NAND

Signed-off-by: Andreas Bießmann <andreas.biessmann@corscience.de>
10 years agotricorder: switch to alternative memtest
Thomas Weber [Fri, 6 Sep 2013 13:04:56 +0000 (15:04 +0200)]
tricorder: switch to alternative memtest

Increase the tested memory region for mtest and define
CONFIG_SYS_MEMTEST_SCRATCH for CONFIG_SYS_ALT_MEMTEST

Signed-off-by: Thomas Weber <thomas.weber@corscience.de>
Signed-off-by: Andreas Bießmann <andreas.biessmann@corscience.de>
10 years agotricorder: Make u-boot faster
Thomas Weber [Fri, 6 Sep 2013 13:04:55 +0000 (15:04 +0200)]
tricorder: Make u-boot faster

Silent u-boot and no bootdelay

Signed-off-by: Thomas Weber <thomas.weber@corscience.de>
Signed-off-by: Andreas Bießmann <andreas.biessmann@corscience.de>
10 years agotricorder: add led support
Andreas Bießmann [Fri, 6 Sep 2013 13:04:54 +0000 (15:04 +0200)]
tricorder: add led support

Signed-off-by: Andreas Bießmann <andreas.biessmann@corscience.de>
10 years agotricorder: panic() on unknown board
Andreas Bießmann [Fri, 6 Sep 2013 13:04:53 +0000 (15:04 +0200)]
tricorder: panic() on unknown board

Also hang() the board on panic().

Signed-off-by: Andreas Bießmann <andreas.biessmann@corscience.de>
10 years agotricorder: add tricordereeprom command
Andreas Bießmann [Fri, 6 Sep 2013 13:04:52 +0000 (15:04 +0200)]
tricorder: add tricordereeprom command

The new tricordereeprom command can read and write the eeprom for hardware
detection on tricorder devices.

Signed-off-by: Andreas Bießmann <andreas.biessmann@corscience.de>
10 years agotricorder: add mtdparts to environment
Andreas Bießmann [Fri, 6 Sep 2013 13:04:51 +0000 (15:04 +0200)]
tricorder: add mtdparts to environment

Before we always ran 'mtdparts default' which also set the mtdparts and mtdids
environment. But if we changed that values by intention we will overwrite
them with our default values. This is obviously bad!

Signed-off-by: Andreas Bießmann <andreas.biessmann@corscience.de>
10 years agotricorder: add cmdline history
Andreas Bießmann [Fri, 6 Sep 2013 13:04:50 +0000 (15:04 +0200)]
tricorder: add cmdline history

Signed-off-by: Andreas Bießmann <andreas.biessmann@corscience.de>
10 years agotricorder: add configuration for a flashcard u-boot
Andreas Bießmann [Fri, 6 Sep 2013 13:04:49 +0000 (15:04 +0200)]
tricorder: add configuration for a flashcard u-boot

The 'flashcard' u-boot configuration has a readonly environment and boots a
bare kernel/initrd to program the device from an clean environment.

Signed-off-by: Andreas Bießmann <andreas.biessmann@corscience.de>
10 years agotricorder: use generic provided loadaddr
Andreas Bießmann [Fri, 6 Sep 2013 13:04:48 +0000 (15:04 +0200)]
tricorder: use generic provided loadaddr

Signed-off-by: Andreas Bießmann <andreas.biessmann@corscience.de>
10 years agotricorder: update flash partitioning
Andreas Bießmann [Fri, 6 Sep 2013 13:04:47 +0000 (15:04 +0200)]
tricorder: update flash partitioning

The new flash layout respects posible bad blocks in sectors reserved for e.g.
SPL, u-boot, kernel, env a.s.o.

Additionally this patch prepares for U-Boot Falcon mode for boot time saving.

Signed-off-by: Andreas Bießmann <andreas.biessmann@corscience.de>
10 years agotricorder: remove lcdmode from bootargs
Thomas Weber [Fri, 6 Sep 2013 13:04:46 +0000 (15:04 +0200)]
tricorder: remove lcdmode from bootargs

Signed-off-by: Thomas Weber <thomas.weber@corscience.de>
Signed-off-by: Andreas Bießmann <andreas.biessmann@corscience.de>
10 years agoarm, da85x: update for the ipam390 board
Heiko Schocher [Fri, 6 Sep 2013 03:21:24 +0000 (05:21 +0200)]
arm, da85x: update for the ipam390 board

- switch to correct ecc layout used by the RBL
  enable CONFIG_NAND_6BYTES_OOB_FREE_10BYTES_ECC
- update default environment
- change A2CR to correct value for UART boot mode
- adapt cs3cfg timings for nand
- change LED bootmode signalization

Signed-off-by: Heiko Schocher <hs@denx.de>
Cc: Tom Rini <trini@ti.com>
10 years agonand, davinci: add special UBL ecc position
Heiko Schocher [Fri, 6 Sep 2013 03:21:23 +0000 (05:21 +0200)]
nand, davinci: add special UBL ecc position

enable the RBL/UBL ECC layout through
CONFIG_NAND_6BYTES_OOB_FREE_10BYTES_ECC define

see for more info:
http://processors.wiki.ti.com/index.php/DM365_Nand_ECC_layout

Signed-off-by: Heiko Schocher <hs@denx.de>
Cc: Tom Rini <trini@ti.com>
Cc: Scott Wood <scottwood@freescale.com>
10 years agoARM: OMAP4: Convert to ti_armv7_common.h
Lokesh Vutla [Tue, 3 Sep 2013 14:17:18 +0000 (19:47 +0530)]
ARM: OMAP4: Convert to ti_armv7_common.h

Update omap4_common.h to use ti_armv7_common.h

Testing:
* Boot tested on OMAP4430 ES2.1 OMAP4460 ES1.1 SDP, OMAP4 PANDA/PANDA ES
* Verified ./MAKEALL -s omap

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
10 years agoOMAP3: igep00x0: rename config file to omap3_igep00x0.h
Javier Martinez Canillas [Mon, 2 Sep 2013 08:04:02 +0000 (10:04 +0200)]
OMAP3: igep00x0: rename config file to omap3_igep00x0.h

There seems to be a naming convention for the configuration
files for boards using the same SoC family. This makes
easier to do changes that affect different boards based
on the same SoC.

Since the IGEPv2 board and the IGEP COM Module use a TI
OMAP35xx/DM37xx processor, is better to rename its board
config to use this naming scheme.

Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
Acked-by: Enric Balletbo i Serra <eballetbo@iseebcn.com>
10 years agoARM: IGEP0033: rename config file to am335x_igep0033.h
Javier Martinez Canillas [Mon, 2 Sep 2013 08:04:01 +0000 (10:04 +0200)]
ARM: IGEP0033: rename config file to am335x_igep0033.h

There seems to be a naming convention for the configuration
files for boards using the same SoC family. This makes
easier to do changes that affect different boards based
on the same SoC.

Since the IGEP COM AQUILA use a TI AM335x processor is better
to rename its board config to use this naming scheme.

Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
Acked-by: Enric Balletbo i Serra <eballetbo@iseebcn.com>
10 years agoTI:am33xx: Add bootcount support to ti_am335x_common.h
Tom Rini [Wed, 28 Aug 2013 13:00:30 +0000 (09:00 -0400)]
TI:am33xx: Add bootcount support to ti_am335x_common.h

Enable the bootcount driver for am335x in general.  We leave adding a
bootlimit and altbootcmd to the environment to the board ports.

Signed-off-by: Tom Rini <trini@ti.com>
10 years agobootcount_davinci: Switch to scratch register #2
Tom Rini [Wed, 28 Aug 2013 13:00:29 +0000 (09:00 -0400)]
bootcount_davinci: Switch to scratch register #2

The RTC IP block here provides 3 scratch registers.  Currently when
using DeepSleep on am335x the scratch0/1 registers are used so moving
ourself to scratch2 makes cooperation easier.

Signed-off-by: Tom Rini <trini@ti.com>
10 years agoam33xx, davinci: Create and use <asm/davinci_rtc.h>
Tom Rini [Wed, 28 Aug 2013 13:00:28 +0000 (09:00 -0400)]
am33xx, davinci: Create and use <asm/davinci_rtc.h>

Create a common header file for the RTC IP block that is shared between
davinci and am33xx.

Signed-off-by: Tom Rini <trini@ti.com>
10 years agodrivers/rtc/davinci.c: Reference DAVINCI_RTC_BASE more directly
Tom Rini [Wed, 28 Aug 2013 13:00:27 +0000 (09:00 -0400)]
drivers/rtc/davinci.c: Reference DAVINCI_RTC_BASE more directly

We shouldn't rely on a define to hide this cast for us.

Signed-off-by: Tom Rini <trini@ti.com>
10 years agoboard/keymile/kmp204x/Makefile: Convert to SPDX tag
Tom Rini [Fri, 1 Nov 2013 14:27:12 +0000 (10:27 -0400)]
board/keymile/kmp204x/Makefile: Convert to SPDX tag

Signed-off-by: Tom Rini <trini@ti.com>
10 years agoboard: powerpc: convert more makefiles to Kbuild style
Tom Rini [Fri, 1 Nov 2013 14:24:19 +0000 (10:24 -0400)]
board: powerpc: convert more makefiles to Kbuild style

Cc: Masahiro Yamada <yamada.m@jp.panasonic.com>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Kim Phillips <kim.phillips@freescale.com>
Cc: York Sun <yorksun@freescale.com>
Signed-off-by: Tom Rini <trini@ti.com>
10 years agoMakefile: convert makefiles to Kbuild style and delete grep switch
Masahiro Yamada [Mon, 21 Oct 2013 02:53:41 +0000 (11:53 +0900)]
Makefile: convert makefiles to Kbuild style and delete grep switch

We have converted all makefiles needed to build $(LIBS).

Until this commit we used to grep switch so that U-Boot style
and Kbuild style makefiles coexist.
But we do not need any more.

Goint forward, use always Kbuild style Makefile when adding
a new Makefile

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
10 years agodts, api, test: convert makefiles to Kbuild style
Masahiro Yamada [Mon, 21 Oct 2013 02:53:40 +0000 (11:53 +0900)]
dts, api, test: convert makefiles to Kbuild style

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
10 years agopost: convert makefiles to Kbuild style
Masahiro Yamada [Mon, 21 Oct 2013 02:53:39 +0000 (11:53 +0900)]
post: convert makefiles to Kbuild style

This commit also deletes post/rules.mk,
which in not necessary any more.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
10 years agoboard: powerpc: convert makefiles to Kbuild style
Masahiro Yamada [Mon, 21 Oct 2013 02:53:38 +0000 (11:53 +0900)]
board: powerpc: convert makefiles to Kbuild style

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Kim Phillips <kim.phillips@freescale.com>
Cc: York Sun <yorksun@freescale.com>
Cc: Stefan Roese <sr@denx.de>
10 years agoboard: arm: convert makefiles to Kbuild style
Masahiro Yamada [Mon, 21 Oct 2013 02:53:37 +0000 (11:53 +0900)]
board: arm: convert makefiles to Kbuild style

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
Cc: Andreas Bießmann <andreas.devel@googlemail.com>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Prafulla Wadaskar <prafulla@marvell.com>
Cc: Minkyu Kang <mk7.kang@samsung.com>
Cc: Vipin Kumar <vipin.kumar@st.com>
Cc: Tom Warren <twarren@nvidia.com>
Cc: Tom Rini <trini@ti.com>
10 years agoblackfin: convert makefiles to Kbuild style
Masahiro Yamada [Mon, 21 Oct 2013 02:53:36 +0000 (11:53 +0900)]
blackfin: convert makefiles to Kbuild style

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Cc: Sonic Zhang <sonic.zhang@analog.com>
10 years agom68k: convert makefiles to Kbuild style
Masahiro Yamada [Mon, 21 Oct 2013 02:53:35 +0000 (11:53 +0900)]
m68k: convert makefiles to Kbuild style

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Cc: Jason Jin <Jason.jin@freescale.com>
10 years agox86: convert makefiles to Kbuild style
Masahiro Yamada [Mon, 21 Oct 2013 02:53:34 +0000 (11:53 +0900)]
x86: convert makefiles to Kbuild style

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Cc: Simon Glass <sjg@chromium.org>
10 years agonios2: convert makefiles to Kbuild style
Masahiro Yamada [Mon, 21 Oct 2013 02:53:33 +0000 (11:53 +0900)]
nios2: convert makefiles to Kbuild style

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Cc: Thomas Chou <thomas@wytron.com.tw>
10 years agonds32: convert makefiles to Kbuild style
Masahiro Yamada [Mon, 21 Oct 2013 02:53:32 +0000 (11:53 +0900)]
nds32: convert makefiles to Kbuild style

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Cc: Macpaul Lin <macpaul@gmail.com>
10 years agomips: convert makefiles to Kbuild style
Masahiro Yamada [Mon, 21 Oct 2013 02:53:31 +0000 (11:53 +0900)]
mips: convert makefiles to Kbuild style

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Cc: Daniel Schwierzeck <daniel.schwierzeck@googlemail.com>
10 years agomicroblaze: convert makefiles to Kbuild style
Masahiro Yamada [Mon, 21 Oct 2013 02:53:30 +0000 (11:53 +0900)]
microblaze: convert makefiles to Kbuild style

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Cc: Michal Simek <michal.simek@xilinx.com>
10 years agoopenrisc: convert makefiles to Kbuild style
Masahiro Yamada [Mon, 21 Oct 2013 02:53:29 +0000 (11:53 +0900)]
openrisc: convert makefiles to Kbuild style

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Cc: Stefan Kristiansson <stefan.kristiansson@saunalahti.fi>
10 years agoavr32: convert makefiles to Kbuild style
Masahiro Yamada [Mon, 21 Oct 2013 02:53:28 +0000 (11:53 +0900)]
avr32: convert makefiles to Kbuild style

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Cc: Andreas Bießmann <andreas.devel@googlemail.com>
10 years agosh: convert makefiles to Kbuild style
Masahiro Yamada [Mon, 21 Oct 2013 02:53:27 +0000 (11:53 +0900)]
sh: convert makefiles to Kbuild style

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Cc: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
10 years agosparc: convert makefiles to Kbuild style
Masahiro Yamada [Mon, 21 Oct 2013 02:53:26 +0000 (11:53 +0900)]
sparc: convert makefiles to Kbuild style

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Cc: Daniel Hellstrom <daniel@gaisler.com>
10 years agosh: Do not include start.o in lib$(CPU).o
Masahiro Yamada [Mon, 21 Oct 2013 02:53:25 +0000 (11:53 +0900)]
sh: Do not include start.o in lib$(CPU).o

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Cc: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
10 years agosparc: fix a link error
Masahiro Yamada [Mon, 21 Oct 2013 02:53:24 +0000 (11:53 +0900)]
sparc: fix a link error

Before this commit, arch/sparc/lib/Makefile used
both COBJS and COBJS-y.
And it missed to add COBJS-y into OBJS.
This means bootm.o was never compiled even if
CONFIG_CMD_BOOTM=y

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Cc: Daniel Hellstrom <daniel@gaisler.com>
10 years agoARM: s5pc, exynos: move Samsung ARM SoC specific code under arch/arm/
Masahiro Yamada [Thu, 17 Oct 2013 11:38:56 +0000 (20:38 +0900)]
ARM: s5pc, exynos: move Samsung ARM SoC specific code under arch/arm/

This patch moves S5PC, EXYNOS specific directory entries
from the toplevel Makefile to arch/arm/cpu/armv7/Makefile
using Kbuild descending feature.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Cc: Minkyu Kang <mk7.kang@samsung.com>
10 years agoARM: omap: move OMAP specific code under arch/arm/
Masahiro Yamada [Thu, 17 Oct 2013 11:38:55 +0000 (20:38 +0900)]
ARM: omap: move OMAP specific code under arch/arm/

This patch moves OMAP specific directory entries
from the toplevel Makefile and spl/Makefile
to arch/arm/cpu/armv7/Makefile using Kbuild descending feature.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Cc: Tom Rini <trini@ti.com>
10 years agoARM: tegra: move Tegra specific code under arch/arm/
Masahiro Yamada [Thu, 17 Oct 2013 11:38:54 +0000 (20:38 +0900)]
ARM: tegra: move Tegra specific code under arch/arm/

This patch moves Tegra specific directory entries
from the toplevel Makefile and spl/Makefile
to arch/arm/cpu/*/Makefile using Kbuild descending feature.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Cc: Tom Warren <TWarren@nvidia.com>
10 years agofs: move some file system to fs/Makefile
Masahiro Yamada [Thu, 17 Oct 2013 11:38:53 +0000 (20:38 +0900)]
fs: move some file system to fs/Makefile

This commit moves some subdirectories of fs
from the toplevel Makefile to fs/Makefile
using Kbuild descending feature.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Acked-by: Simon Glass <sjg@chromium.org>
10 years agodrivers: move some drivers to drivers/Makefile
Masahiro Yamada [Thu, 17 Oct 2013 11:38:52 +0000 (20:38 +0900)]
drivers: move some drivers to drivers/Makefile

This commit moves some drivers subdirectory entry
from the toplevel Makefile to drivers/Makefile
using Kbuild descending feature.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
10 years agoMakefile: support descending down to subdirectories
Masahiro Yamada [Thu, 17 Oct 2013 11:38:51 +0000 (20:38 +0900)]
Makefile: support descending down to subdirectories

This patch tweaks scripts/Makefile.build to allow
the build system to descend into subdirectories like Kbuild.

To use this feature, use "obj-y += foo/" syntax.

Example:
    obj-$(CONFIG_FOO) += foo/

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Cc: Simon Glass <sjg@chromium.org>
10 years agoboard: ti: convert makefiles to Kbuild style
Masahiro Yamada [Thu, 17 Oct 2013 08:35:05 +0000 (17:35 +0900)]
board: ti: convert makefiles to Kbuild style

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Cc: Tom Rini <trini@ti.com>
10 years agopowerpc: convert makefiles to Kbuild style
Masahiro Yamada [Thu, 17 Oct 2013 08:35:04 +0000 (17:35 +0900)]
powerpc: convert makefiles to Kbuild style

Note:
arch/powerpc/cpu/mpc8260/Makefile is originally like follows:

    ---<snip>---
    START   = start.o kgdb.o
    COBJS   = traps.o serial_smc.o serial_scc.o cpu.o cpu_init.o speed.o \
    ---<snip>---
    COBJS-$(CONFIG_ETHER_ON_SCC) = ether_scc.o
    ---<snip>---
    $(LIB): $(OBJS)
            $(call cmd_link_o_target, $(OBJS) $(obj)kgdb.o)

The link rule `$(call cmd_link_o_target, $(OBJS) $(obj)kgdb.o)'
is weird.
kbdg.o is not included in $(OBJS) but linked into $(LIB)
and $(LIB) is not dependent on kgdb.o.
(Broken dependency tracking)

So,
    START   = start.o kgdb.o
shoud have been
    START   = start.o
    SOBJS   = kgdb.o

That is why this commit adds kgdb.o to obj-y, not to extra-y.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Stefan Roese <sr@denx.de>
10 years agosandbox: convert makefiles to Kbuild style
Masahiro Yamada [Thu, 17 Oct 2013 08:35:03 +0000 (17:35 +0900)]
sandbox: convert makefiles to Kbuild style

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Cc: Simon Glass <sjg@chromium.org>
Acked-by: Simon Glass <sjg@chromium.org>
10 years agodisk: convert a makefile to Kbuild style
Masahiro Yamada [Thu, 17 Oct 2013 08:35:02 +0000 (17:35 +0900)]
disk: convert a makefile to Kbuild style

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
10 years agolib: convert makefiles to Kbuild style
Masahiro Yamada [Thu, 17 Oct 2013 08:35:01 +0000 (17:35 +0900)]
lib: convert makefiles to Kbuild style

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
10 years agonet: convert a makefile to Kbuild style
Masahiro Yamada [Thu, 17 Oct 2013 08:35:00 +0000 (17:35 +0900)]
net: convert a makefile to Kbuild style

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
10 years agocommon: convert makefiles to Kbuild style
Masahiro Yamada [Thu, 17 Oct 2013 08:34:59 +0000 (17:34 +0900)]
common: convert makefiles to Kbuild style

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
10 years agofs: convert makefiles to Kbuild style
Masahiro Yamada [Thu, 17 Oct 2013 08:34:58 +0000 (17:34 +0900)]
fs: convert makefiles to Kbuild style

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
10 years agodrivers: convert makefiles to Kbuild style
Masahiro Yamada [Thu, 17 Oct 2013 08:34:57 +0000 (17:34 +0900)]
drivers: convert makefiles to Kbuild style

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
10 years agodrivers: usb: convert makefiles to Kbuild style
Masahiro Yamada [Thu, 17 Oct 2013 08:34:56 +0000 (17:34 +0900)]
drivers: usb: convert makefiles to Kbuild style

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
10 years agodrivers: mtd: convert makefiles to Kbuild style
Masahiro Yamada [Thu, 17 Oct 2013 08:34:55 +0000 (17:34 +0900)]
drivers: mtd: convert makefiles to Kbuild style

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
10 years agodrivers: net: convert makefiles to Kbuild style
Masahiro Yamada [Thu, 17 Oct 2013 08:34:54 +0000 (17:34 +0900)]
drivers: net: convert makefiles to Kbuild style

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
10 years agoARM: imx-common: convert makefiles to Kbuild style
Masahiro Yamada [Thu, 17 Oct 2013 08:34:53 +0000 (17:34 +0900)]
ARM: imx-common: convert makefiles to Kbuild style

Multiple targets are included in arch/arm/imx-common/Makefile
In order to refactor it,
we need to tweak Makefile and spl/Makefile.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
10 years agoconfigs: imx: Make CONFIG_SYS_PROMPT uniform across FSL boards
Fabio Estevam [Thu, 31 Oct 2013 16:46:41 +0000 (14:46 -0200)]
configs: imx: Make CONFIG_SYS_PROMPT uniform across FSL boards

There is no real benefit in adding the board name into U-boot's prompt.

Use the simple "=> " prompt across FSL boards.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Otavio Salvador <otavio@ossystems.com.br>
10 years agoi.MX6: nitrogen6x: fix erase size in 6x_upgrade.txt
Eric Nelson [Wed, 9 Oct 2013 19:25:15 +0000 (12:25 -0700)]
i.MX6: nitrogen6x: fix erase size in 6x_upgrade.txt

The 6x_upgrade script is used to upgrade U-Boot in SPI-NOR
on Nitrogen6x/SABRE Lite boards using U-Boot's 'sf' command.

U-Boot is placed at offset 0x400 in flash, and the script
currently only erases 0x50000 bytes. Since the current
head is 319k, any additional features enabled in the
configuration will exceed the space erased and cause errors
re-programming the device.

This patch increases the erase size to the full size of
the region allocated for the U-Boot binary.

Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>
Acked-by: Stefano Babic <sbabic@denx.de>
10 years agoARM: mxs: Configure 2 Gbit DDR2 RAM for BG0900
Christoph G. Baumann [Mon, 28 Oct 2013 11:29:31 +0000 (12:29 +0100)]
ARM: mxs: Configure 2 Gbit DDR2 RAM for BG0900

The BG0900 module has 2Gbit DRAM module on it, adjust the DataBahn
DRAM controller registers so the DRAM module will be correctly
recognised.

Signed-off-by: Christoph G. Baumann <c.baumann@ppc-ag.de>
Cc: Marek Vasut <marex@denx.de>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Fabio Estevam <fabio.estevam@freescale.com>
10 years agoARM: mxs: Enable DCDC converter for battery boot
Marek Vasut [Mon, 28 Oct 2013 11:29:30 +0000 (12:29 +0100)]
ARM: mxs: Enable DCDC converter for battery boot

In case the board detected sufficient voltage for battery boot,
make sure the DCDC converter is ON and the board is not running
only from linregs, otherwise an instability will be observed.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Fabio Estevam <fabio.estevam@freescale.com>
10 years agomx6: Remove PAD_CTL_DSE_120ohm from i.MX6DL's IPU1_DI0_PIN4 pin
Otavio Salvador [Mon, 21 Oct 2013 23:34:57 +0000 (21:34 -0200)]
mx6: Remove PAD_CTL_DSE_120ohm from i.MX6DL's IPU1_DI0_PIN4 pin

This removes the PAD_CTL_DSE_120ohm as done for i.MX6Q's IPU1_DI0_PIN4
pin definition and makes it aligned with 3.0.35-4.1.0 and 3.12
mainline kernel.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
10 years agomx5: lowlevel_init: Remove unused macro
Fabio Estevam [Mon, 30 Sep 2013 21:28:54 +0000 (18:28 -0300)]
mx5: lowlevel_init: Remove unused macro

setup_wdog macro is not used anywhere, so just remove it.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Stefano Babic <sbabic@denx.de>
10 years agoARM: mx5: Enable L2 cache
Fabio Estevam [Mon, 30 Sep 2013 16:16:52 +0000 (13:16 -0300)]
ARM: mx5: Enable L2 cache

Enable L2 cache for improving the system performance.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
10 years agoimx_watchdog: do not soft-reset while watchdog init
Anatolij Gustschin [Mon, 30 Sep 2013 10:52:38 +0000 (12:52 +0200)]
imx_watchdog: do not soft-reset while watchdog init

Currently the driver clears WCR_SRS bit when enabling
the watchdog and this causes a software reset. Do not
clear WCR_SRS.

Signed-off-by: Anatolij Gustschin <agust@denx.de>
10 years agoARM: convert makefiles to Kbuild style
Masahiro Yamada [Thu, 17 Oct 2013 08:34:52 +0000 (17:34 +0900)]
ARM: convert makefiles to Kbuild style

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
10 years agoarm720t: convert makefiles to Kbuild style
Masahiro Yamada [Thu, 17 Oct 2013 08:34:51 +0000 (17:34 +0900)]
arm720t: convert makefiles to Kbuild style

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
10 years agoarm920t: convert makefiles to Kbuild style
Masahiro Yamada [Thu, 17 Oct 2013 08:34:50 +0000 (17:34 +0900)]
arm920t: convert makefiles to Kbuild style

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
10 years agoarm926ejs: convert makefiles to Kbuild style
Masahiro Yamada [Thu, 17 Oct 2013 08:34:49 +0000 (17:34 +0900)]
arm926ejs: convert makefiles to Kbuild style

Note1:
In arch/arm/cpu/arm926ejs/spear/Makefile
START := start.o
was changed
extra-$(CONFIG_SPL_BUILD) := start.o
because spear/start.o is only used for SPL.

Note2:
START := start.o
was missing from arch/arm/cpu/arm926ejs/mxs/Makefile.
This commit simply adds
extra-$(CONFIG_SPL_BUILD) := start.o

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
10 years agoarmv7: convert makefiles to Kbuild style
Masahiro Yamada [Thu, 17 Oct 2013 08:34:48 +0000 (17:34 +0900)]
armv7: convert makefiles to Kbuild style

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
10 years agoMakefile: prepare for using Kbuild-style Makefile
Masahiro Yamada [Thu, 17 Oct 2013 08:34:47 +0000 (17:34 +0900)]
Makefile: prepare for using Kbuild-style Makefile

Every makefile in sub directories has common lines
at the top and the bottom.
This commit pushes the common parts into script/Makefile.build.

Going forward sub-makefiles only need to describe this part:

    COBJS := ...
    COBJS += ...
    SOBJS := ...

But using obj-y is preferable to prepare for switching to Kbuild.

The conventional (non-Kbuild) Makefile style is still supported.
This is achieved by greping the Makefile before entering into it.
U-Boot conventional sub makefiles always include some other makefiles.
So the build system searches a line beginning with "include" keyword
in the makefile in order to distinguish which style it is.
If the Makefile include a "include" line, we assume it is a conventional
U-Boot style. Otherwise, it is treated as a Kbuild-style makefile.

With this tweak, we can switch sub-makefiles
from U-Boot style to Kbuild style little by little.

obj-y := foo/
syntax (descending into the sub directory) is not supportd yet.
It will be implemented in the upcomming commit.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: Tom Rini <trini@ti.com>
10 years agonand_util.c: Correct licensing
Tom Rini [Thu, 31 Oct 2013 13:24:00 +0000 (09:24 -0400)]
nand_util.c: Correct licensing

Prior to SPDX licensing this file was GPL-2.0 with Freescale granting
rights for "or later" for their contributed code.  We incorrectly moved
this file to GPL-2.0+, so correct it to GPL-2.0.  In addition we cannot
easily denote in the file where or what code is "or later", so just set
that aside for now and the file as a whole is GPL-2.0 regardless.

Cc: Scott Wood <scottwood@freescale.com>
Signed-off-by: Tom Rini <trini@ti.com>
10 years agopowerpc/esdhc: Add 3.3v voltage support in esdhc capacity register
Haijun.Zhang [Thu, 31 Oct 2013 01:38:19 +0000 (09:38 +0800)]
powerpc/esdhc: Add 3.3v voltage support in esdhc capacity register

T4240QDS eSDHC host capabilities reigster should have VS33 bit define.
Add quirk CONFIG_SYS_FSL_MMC_HAS_CAPBLT_VS33 to deal with capacity
missing

Signed-off-by: Roy Zang <tie-fei.zang@freescale.com>
Signed-off-by: Haijun Zhang <Haijun.Zhang@freescale.com>
Acked-by: Pantelis Antoniou <panto@antoniou-consulting.com>
10 years agoesdhc: memset mmc struct before putting into use
Haijun.Zhang [Thu, 31 Oct 2013 01:38:18 +0000 (09:38 +0800)]
esdhc: memset mmc struct before putting into use

struct mmc should be clear to all '0' after malloc to avoid
unexpect variable value.

Like mmc->has_init = xxx.
In this case mmcinfo will believe the card had been initialized before
and skip the initialization.

Test on P5040 and T4240,
Error Log:

=> mmcinfo
Device: FSL_SDHC
Manufacturer ID: 0
OEM: 0
Name: Tran Speed: 0
Rd Block Len: 0
MMC version 0.0
High Capacity: No
Capacity: 0 Bytes
Bus Width: 0-bit
=>

Signed-off-by: Haijun Zhang <Haijun.Zhang@freescale.com>
Signed-off-by: Xie Shaohui-B21989 <B21989@freescale.com>
Tested-by: Ryan Barnett <rjbarnet@rockwellcollins.com>
Acked-by: Pantelis Antoniou <panto@antoniou-consulting.com>
10 years agoPowerpc/esdhc: Add simple description of esdhc register
Haijun.Zhang [Wed, 30 Oct 2013 03:37:55 +0000 (11:37 +0800)]
Powerpc/esdhc: Add simple description of esdhc register

Add some descriptions for esdhc register for easily using.

Signed-off-by: Haijun Zhang <haijun.zhang@freescale.com>
Acked-by: Pantelis Antoniou <panto@antoniou-consulting.com>
10 years agopowerpc/esdhc: Map register for eSDHC Host Controller V3.0
Haijun.Zhang [Wed, 30 Oct 2013 03:37:54 +0000 (11:37 +0800)]
powerpc/esdhc: Map register for eSDHC Host Controller V3.0

eSDHC host controller has new register to support SD Spec 3.0.
And the according host controller version was Freescale eSDHC
Version 3.0.

Signed-off-by: Haijun Zhang <haijun.zhang@freescale.com>
Acked-by: Pantelis Antoniou <panto@antoniou-consulting.com>
10 years agoDWMMC: SMDK5420: Disable SMU for eMMC
Rajeshwari Shinde [Tue, 29 Oct 2013 07:23:13 +0000 (12:53 +0530)]
DWMMC: SMDK5420: Disable SMU for eMMC

SMDK5420 has a new Security Management Unit added
for dwmmc driver, hence, configuring the control
registers to support booting via eMMC.

Signed-off-by: Alim Akhtar <alim.akhtar@samsung.com>
Signed-off-by: Rajeshwari Shinde <rajeshwari.s@samsung.com>
Acked-by: Simon Glass <sjg@chromium.org>
Acked-by: Jaehoon Chung <jh80.chung@samsung.com>
Acked-by: Pantelis Antoniou <panto@antoniou-consulting.com>
10 years agommc: sdhci: Avoid commands errors by simple timeout adaptation.
Przemyslaw Marczak [Tue, 8 Oct 2013 16:12:09 +0000 (18:12 +0200)]
mmc: sdhci: Avoid commands errors by simple timeout adaptation.

Old command timeout value was too small and it caused I/O errors which
led to uncompleted read/write/erase operations and filesystem errors.
Timeout adaptation fixes this issue.

Changes in sdhci_send_command() function:
- change timeout variable to static
- increase default command timeout to 100 ms
- add definition of max command timeout value,
  which can be redefined in each board config file
- wait for card ready state for max defined time
  if it doesn't exceed defined maximum or return COMM_ERR

Once successfully increased timeout value will be used in next function
call. This fix was tested on Goni, Trats, Trats2 boards by testing UMS
on MMC storage.

Changes v2:
- move global variable cmd_timeout into function sdhci_send_command()
- change condition "==" to ">=" when comparing time with timeout
- print information about timeout increasing and card busy timeout

Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
Cc: Pantelis Antoniou <panto@antoniou-consulting.com>
10 years agommc: dw_mmc: change the callback function name.
Jaehoon Chung [Sun, 6 Oct 2013 09:59:31 +0000 (18:59 +0900)]
mmc: dw_mmc: change the callback function name.

To prevent the confusion, use the get_mmc_clk() instead of mmc_clk().
get_mmc_clk() is more exactly name.

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Acked-by: Pantelis Antoniou <panto@antoniou-consulting.com>
10 years agommc: Fix erase_grp_size for partitioned card
Oliver Metz [Tue, 1 Oct 2013 18:32:07 +0000 (20:32 +0200)]
mmc: Fix erase_grp_size for partitioned card

EXT_CSD_ERASE_GROUP_DEF is lost every time after a reset or
 power off. Set it if device has enhanced partitions.

Signed-off-by: Oliver Metz <oliver@freetz.org>
Acked-by: Pantelis Antoniou <panto@antoniou-consulting.com>
10 years agoMerge branch 'master' of git://git.denx.de/u-boot-video
Tom Rini [Wed, 30 Oct 2013 12:36:48 +0000 (08:36 -0400)]
Merge branch 'master' of git://git.denx.de/u-boot-video

10 years agovideo, formike: change tag/val write
Heiko Schocher [Tue, 22 Oct 2013 09:06:24 +0000 (11:06 +0200)]
video, formike: change tag/val write

write first the "tag" 8 bit value and then the "val" 8-bit
to the display.

Tested on the rut board.

Signed-off-by: Heiko Schocher <hs@denx.de>
Cc: Anatolij Gustschin <agust@denx.de>
10 years agovideo, cfb_console: make background and foreground color configurable
Heiko Schocher [Tue, 22 Oct 2013 09:06:06 +0000 (11:06 +0200)]
video, cfb_console: make background and foreground color configurable

make CONSOLE_BG_COL/CONSOLE_FG_COL configurable through board config file.
Clear video screen in video_init().

Signed-off-by: Heiko Schocher <hs@denx.de>
Cc: Anatolij Gustschin <agust@denx.de>
10 years agovideo: ipu_disp: Fix clock polarity logic
Fabio Estevam [Tue, 29 Oct 2013 17:46:21 +0000 (15:46 -0200)]
video: ipu_disp: Fix clock polarity logic

Currently the HDMI splash screen image quality on mx6solo does not show a
very stable image.

By comparing the IPU driver from U-boot with the one from FSL 4.1.0 BSP,
we can see that there is an inverted logic for setting the DI_GEN_POL_CLK bit.

>From FSL BSP [1] we have:

if (!sig.clk_pol)
di_gen |= DI_GEN_POLARITY_DISP_CLK;

Applying the same logic into U-boot fixes the HDMI image stability.

[1] git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/tree/drivers/mxc/ipu3/ipu_disp.c?h=imx_3.0.35_4.1.0

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Tested-by: Eric Nelson <eric.nelson@boundarydevices.com>
Acked-by: Eric Nelson <eric.nelson@boundarydevices.com>
Acked-by: Stefano Babic <sbabic@denx.de>
10 years agompc85xx: introduce the kmp204x reference design support
Valentin Longchamp [Fri, 18 Oct 2013 09:47:24 +0000 (11:47 +0200)]
mpc85xx: introduce the kmp204x reference design support

This patch introduces the support for Keymile's kmp204x reference
design. This design is based on Freescale's P2040/P2041 SoC.

The peripherals used by this design are:
- DDR3 RAM with SPD support
- SPI NOR Flash as boot medium
- NAND Flash
- 2 PCIe busses (hosts 1 and 3)
- 3 FMAN Ethernet devices (FMAN1 DTSEC1/2/5)
- 3 Local Bus windows, with one dedicated to the QRIO reset/power mgmt
  FPGA
- 2 HW I2C busses
- last but not least, the mandatory serial port

The board/keymile/kmp204x code is mostly based on Freescale's P2041rdb
support and was changed according to our design (that means essentially
removing what is not present on the designs and a few adaptations).

There is currently only one prototype board that is based on this design
and this patch also introduces it. The board is called kmlion1.

Signed-off-by: Stefan Bigler <stefan.bigler@keymile.com>
Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
kmp204x: update the ENV #define

The comments had to be refined as well as the total size

Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
[York Sun: fix ddr.c]
Acked-by: York Sun <yorksun@freescale.com>
10 years agofsl/mpc85xx: define common serdes_clock_to_string function
Valentin Longchamp [Fri, 18 Oct 2013 09:47:23 +0000 (11:47 +0200)]
fsl/mpc85xx: define common serdes_clock_to_string function

This allows to share some common code for the boards that use a corenet
base SoC.

Two different versions of the function are available in
fsl_corenet_serdes.c and fsl_corenet2_serdes.c files.

Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
[York Sun: fix t1040qds.c]
Acked-by: York Sun <yorksun@freescale.com>
10 years agomtd/fsl_elbc: take NAND_ECC_SOFT_BCH config option into account
Valentin Longchamp [Fri, 18 Oct 2013 09:47:22 +0000 (11:47 +0200)]
mtd/fsl_elbc: take NAND_ECC_SOFT_BCH config option into account

NAND_ECC_SOFT was the only option available while the SOFT_BCH option
may also be used.

Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
Acked-by: Scott Wood <scottwood@freescale.com>
10 years agonet/fman: add a fm_enable_port function
Valentin Longchamp [Fri, 18 Oct 2013 09:47:21 +0000 (11:47 +0200)]
net/fman: add a fm_enable_port function

This can be useful if one wants to disable an interface in u-boot
because u-boot should not manage it but then later reenable it for FDT
fixing or if the kernel uses this interface.

Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
[York Sun: fix conflict in fm_eth.h]
Acked-by: York Sun <yorksun@freescale.com>
10 years agompc8xxx: set x2 DDR3 refresh rate if SPD config requires it
Valentin Longchamp [Fri, 18 Oct 2013 09:47:20 +0000 (11:47 +0200)]
mpc8xxx: set x2 DDR3 refresh rate if SPD config requires it

If the DDR3 module supports industrial temperature range and requires
the x2 refresh rate for that temp range, the refresh period must be
3.9us instead of 7.8 us.

This was successfuly tested on kmp204x board with some MT41K128M16 DDR3
RAM chips (no module used, chips directly soldered on board with an SPD
EEPROM).

Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
[York Sun: fix minor conflicts in fsl_ddr_dimm_params.h,
   lc_common_dimm_params.c, common_timing_params.h]
Acked-by: York Sun <yorksun@freescale.com>