9
0
Fork 0
Commit Graph

1480 Commits

Author SHA1 Message Date
Sascha Hauer 96a9807ed7 Merge branch 'for-next/arm' 2015-02-04 19:09:14 +01:00
Jean-Christophe PLAGNIOL-VILLARD eb4a932c77 raspberry-pi: mac address detection support
increase the mbox timeout as it take more time to retreive the mac

fix led register too

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-02-04 15:49:59 +01:00
Jean-Christophe PLAGNIOL-VILLARD ce6fff7c8b raspberry-pi: add leds support
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-02-04 15:49:58 +01:00
Jean-Christophe PLAGNIOL-VILLARD 50c06dde10 raspberry-pi: add board model detection
as the name is very long, return ps1 to the next line

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-02-04 15:49:58 +01:00
Bo Shen b3d52d5b9b ARM: atmel: at91sam9n12ek: correct udc device name
The created device name for atmel udc is at91_udc while not
at91_udc0.

Signed-off-by: Bo Shen <voice.shen@atmel.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-02-04 12:53:35 +01:00
Robert Jarzmik 39f8919efb ARM: pxa: add lubbock board support
Add support for the Intel XScale PXA255 development system platform.

Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-02-04 12:52:43 +01:00
Sascha Hauer 99dc500593 ARM: MXS: Add duckbill board support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-02-03 09:23:51 +01:00
Sascha Hauer 4d70da63a4 ARM: MXS: power-init: Add parameters to mx28_power_init()
Instead of introducing new functions each time a new power supply
situation is to be added, this patch adds parameters to mx28_power_init.

Right now there are three parameters:

- has_battery - true when this board has a battery.
- use_battery_input - true when this board is supplied from the
  battery input, but has a DC source instead of a real battery
- use_5v_input - true when this board can use the 5V input

The third one is introduced with this patch and allow to boot a board from 5v
(USB) source only. The main necessary change this needs is that the DC-DC
converter must always be sourced from DCDC_4P2 (DROPOUT_CTRL field of
HW_POWER_DCDC4P2)

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-02-03 09:23:47 +01:00
Bo Shen abf0033be7 ARM: atmel: sama5d4: nand: add has_pmecc parameter
Add the missing has_pmecc parameter for sama5d4 based boards.

Signed-off-by: Bo Shen <voice.shen@atmel.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-01-29 07:56:41 +01:00
Sascha Hauer f4e1969c19 boards: remove hardcoded MAC addresses
There should be no hardcoded MAC addresses in the default environments.
Remove them.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-01-28 09:59:10 +01:00
Christian Hemp cf6626da3e ARM: phyFLEX-i.MX6: Add support for 1GB on 1 bank
Add support phyFLEX-i.MX6 SOM with 1GB on one ram bank

Signed-off-by: Christian Hemp <c.hemp@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-01-28 09:44:09 +01:00
Sascha Hauer f3ff746d20 ARM: MXS: Create ocotp device in SoC code
The ocotp device is completely SoC internal, no need to register
it from boards. Register it from SoC code instead.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-01-28 08:18:44 +01:00
Bo Shen 2d8d5e8674 ARM: atmel: sama5d3xek: let gmac auto detect phy id
On the SAMA5D33 and SAMA5D35 the GMAC PHY ID is 1 while not 7.
So, let the GMAC auto detect phy id, or else hard code to 7,
it can not work on these two boards.

Signed-off-by: Bo Shen <voice.shen@atmel.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-01-23 08:37:30 +01:00
Bo Shen aa61a8dc61 ARM: atmel: sama5d3xek: let emac auto detect phy addr
On the SAMA5D35 the EMAC phy addr is 1 while not 0. So, let
the EMAC auto detect phy addr, or else hard code to 0, the
ethernet can not work on SAMA5D35 board.

Signed-off-by: Bo Shen <voice.shen@atmel.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-01-23 08:37:30 +01:00
Bo Shen ea1f2061bd ARM: atmel: sama5d3xek: fix conflict between w1 and led
As the 1-wire and LED d2 use the same pin (PE25) on the EK board.
So, make LED enable only when the 1-wire is disabled.

Signed-off-by: Bo Shen <voice.shen@atmel.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-01-21 10:40:36 +01:00
Bo Shen 124e3d3ce2 ARM: atmel: sama5d4 xplained: fix mci1 power pin
Correct the mci1 power pin from PE15 to PE4.

Signed-off-by: Bo Shen <voice.shen@atmel.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-01-21 10:39:01 +01:00
Sascha Hauer c69237d383 ARM: MXS: imx28evk: Update environment and config
This switches the imx28evk to new environment and updates the
defconfig file for tons of new features.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-01-20 15:08:10 +01:00
Sascha Hauer 93ba78ece1 ARM: MXS: imx28evk: Add lowlevel support
This switches the imx28evk to multiimage support and adds the
lowlevel initialization to make the bootlets unnecessary.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-01-20 14:52:41 +01:00
Robert Jarzmik 3155f5df4d ARM: pxa: add the zylonite board
Add the first pxa3xx board, zylonite. Zylonite is the Marvell System
Development Platform.

Several version are available, based on either :
 - PXA300
 - PXA310
 - PXA320

This version was only tested on a PXA310 based board, and uses :
 - the ethernet controller
 - the nand controller

These drivers seem to be common to all zylonite boards.

Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-01-19 09:02:23 +01:00
Lucas Stach 49827f736a arm: board: virt2real: build lowlevel in proper target
Fixes build with PBL enabled.

Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-01-19 08:47:13 +01:00
Andrey Panov ff0b8822d4 ARM: IMX: Embedsky E9: Choose right environment when booting from SD or EMMC.
Signed-off-by: Andrey Panov <rockford@yandex.ru>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-01-19 08:39:42 +01:00
Andrey Smirnov 74f042c956 i.MX6: phytec: Allow multiple MMC devices to contain boot environment
Add code so that when booting from different SDHCI controllers barebox
would correctly set up where to look for bootloader environment.

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-01-16 08:11:42 +01:00
Andrey Smirnov 3d3cf5e58e i.MX6: phytec: Check environment path selection for errors
Add code to explicitly check for success of of_device_enable_path()
when selecting which media is expected to contain barebox environment.

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-01-16 08:11:42 +01:00
Andrey Smirnov 9130bd229c i.MX6: phytec: Separate SoM specific code
Separate SoM(designator PFLA02) specific and base board(designator
PBAB0x) code into two distinct functions. PHYTEC default environment
for PHYFLEX references peripherals that may or may not be used on
custom baseboards used with SoMs. Move the code appending it into a
separate function that would have effect only for boards explicitly
claiming compatibility with PHYTEC baseboards.

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-01-16 08:11:42 +01:00
Gregory Hermant baee753181 add support for the haba-knx-lite controller
Signed-off-by: Gregory Hermant <gregory.hermant@calao-systems.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-01-16 07:56:28 +01:00
Bo Shen a867b080dd ARM: atmel: sama5d4ek: correct the typo
Signed-off-by: Bo Shen <voice.shen@atmel.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-01-16 07:55:17 +01:00
Bo Shen 5d824d7796 ARM: atmel: sama5d4 xplained: correct the name
Correct the function and board name for sama5d4 xplained board.

Signed-off-by: Bo Shen <voice.shen@atmel.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-01-16 07:55:16 +01:00
Jean-Christophe PLAGNIOL-VILLARD 9b847df7a1 defaultenv-2: fix misplace NV dir in env
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-01-13 09:10:51 +01:00
Markus Pargmann 2a0a5e73c0 ARM: boards: socfpga new mem calibration function
Use the new socfpga_mem_calibration function. This is a sideeffect of
the new script to import generated sequencer code. The return value of
the function is 1 if the calibration succeeds, 0 otherwise.

Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-01-13 08:42:16 +01:00
Markus Pargmann de79bb6a36 ARM: sockit: Define inst_rom_init static
Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-01-13 08:42:16 +01:00
Sascha Hauer 39c6c3480a Merge branch 'for-next/mxs' 2015-01-09 17:38:26 +01:00
Sascha Hauer ff6383c8e4 Merge branch 'for-next/misc' 2015-01-09 17:38:26 +01:00
Sascha Hauer a1821a06aa Merge branch 'for-next/imx' 2015-01-09 17:38:26 +01:00
Sascha Hauer f5b8ea7cad Merge branch 'for-next/arm' 2015-01-09 17:38:26 +01:00
Masahiro Yamada d8753571b2 sizes.h: move include/sizes.h to include/linux/sizes.h
This file originates in Linux.  Linux has it under include/linux/
directory since commit dccd2304cc90.
Let's move it to the same place as well in barebox.

This commit was generated by the following commands:

  find -name '*.[chS]' | xargs sed -i -e 's:<sizes.h>:<linux/sizes.h>:'
  git mv include/sizes.h include/linux/

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-01-08 14:00:26 +01:00
Jan Luebbe faccc5e82f ARM: imx233-olinuxino: update defaultenv
Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-01-07 09:55:19 +01:00
Jan Luebbe 99d800bf89 ARM: imx233-olinuxino: use LED1 as heartbeat
Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-01-07 09:54:59 +01:00
Jean-Christophe PLAGNIOL-VILLARD 556a39131f versatilepb: allow to compile it an arm1176
useful to use it for testing on qemu

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-01-06 14:51:38 +01:00
Jean-Christophe PLAGNIOL-VILLARD 013247989b arm: at91: fix ecc_mode on non atmel boards
since
commit 54bccadddd
Author: Raphaël Poggi <poggi.raph@gmail.com>

    mtd: atmel_nand: retrieve ecc_mode from pdata

break most of the non atmel AT91 boards that did not provide a ecc_mode
params in the nand pdata

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Acked-by: Raphaël Poggi <poggi.raph@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-01-06 13:46:24 +01:00
Sascha Hauer 2a0b57b9de ARM: am335x bone: Fix Booting from eMMC
Booting a beaglebone black from eMMC is broken since:

commit 0d6392de4a
Author: Sascha Hauer <s.hauer@pengutronix.de>
Date:   Thu Jun 5 12:09:07 2014 +0200

    ARM: AM335x: Beaglebone: Use stripped down devicetree for MLO

The stripped down device tree does not have the eMMC device node which
the beaglebone black needs for booting. Add this node to the common dts
file, but keep it disabled. It gets enabled later with a call to
am33xx_of_register_bootdevice() when the system is booted from eMMC.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-01-06 10:01:22 +01:00
Jean-Christophe PLAGNIOL-VILLARD c79d68bd16 versatilepb: switch to defaultenv-2
- Boot from NOR
 - enable UBI
 - use PBL

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-01-05 11:37:43 +01:00
Jean-Christophe PLAGNIOL-VILLARD 94ed83afa4 versatilepb: move barebox to 32 MiB and use zImage
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-01-05 11:37:43 +01:00
Jean-Christophe PLAGNIOL-VILLARD 4459cca6c2 efika-mx-smartbook: enable led hearbeat on mail
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-01-05 11:35:40 +01:00
Jan Luebbe 6aa45b2b22 ARM: imx233-olinuxino: generate complete bootstream
- Enable multi-image support to generate bootstream, sd-card and 2nd stage
  images.
- Handle pin-mux in lowlevel.c only.
- Use fine-tuned memory setup from u-boot.

Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-01-05 11:31:15 +01:00
Sascha Hauer 417116c783 ARM: MXS: Update Karo TX28 board support
- enable multiimage support to generate bootstream, sd-card and 2nd
  stage images
- Enable new defaultenv support
- Enable more features

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-01-05 11:31:14 +01:00
Lucas Stach a1a2d44eed arm: edmqmx6: build entry in lwl target
Only build it at the correct obj or pbl stage where
the entry is needed.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-12-17 13:47:05 +01:00
Sascha Hauer 7413dc4258 treewide: Fix typo collumn -> column
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-12-11 08:07:47 +01:00
Teresa Gámez d15dceb2d0 ARM: AM335x: Fix typo in Phytec boards
Has to be bootsource not boosource.

Signed-off-by: Teresa Gámez <t.gamez@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-12-11 08:05:27 +01:00
Teresa Gámez 7de8e80d9f ARM: phytec: am335x: Update enviroment comment
We do not have a root partition in spi flash any more.
Adapt comment.

Signed-off-by: Teresa Gámez <t.gamez@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-12-09 10:13:48 +01:00
Sascha Hauer 38c6f5d351 Merge branch 'for-next/socfpga' 2014-12-08 14:54:12 +01:00
Sascha Hauer b01bc4c810 Merge branch 'for-next/randconfig-1' 2014-12-08 14:54:11 +01:00
Sascha Hauer 3eade89c75 Merge branch 'for-next/persistent-vars'
Conflicts:
	arch/arm/boards/efika-mx-smartbook/defaultenv-efikasb/config
2014-12-08 14:54:09 +01:00
Sascha Hauer 86916569a8 Merge branch 'for-next/imx' 2014-12-08 14:53:59 +01:00
Sascha Hauer 1e5b933b5d Merge branch 'for-next/am335x' 2014-12-08 14:53:58 +01:00
Steffen Trumtrar 1018c7f732 ARM: socfpga: socrates: update handoff files to 14.0
Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-12-08 08:44:08 +01:00
Steffen Trumtrar e4fc177199 ARM: socfpga: sockit: update handoff files to 14.0
Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-12-08 08:44:08 +01:00
Steffen Trumtrar bd40638ef0 ARM: socfpga: move iocsr from mach to board folder
The current iocsr-config-cyclone5.c is actually board specific, although the
file name suggests otherwise.
As the file was generated for the SoCkit, move it there and add a new one
for the socrates.

Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-12-08 08:39:11 +01:00
Andrey Smirnov 81f09526a2 i.MX6: phytec: Distil common code pattern into a macro
Distil common code pattern for Phytec entry functions into a macro and
use it instead. This way a new board derivateve that differs only in device
tree file can be added with just one line.

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-12-04 08:23:00 +01:00
Andrey Smirnov 92e7d8e5c6 i.MX6: phytec: Distil different startup functions
Distil different startup functions into a generic one, different
behavioral aspects of which can be influenced by its parameters.

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-12-04 08:21:47 +01:00
Sascha Hauer 9837285c67 ARM: ep93xx: Fix typo
Initialize 4th RAM bank with CONFIG_EP93XX_SDRAM_BANK3_SIZE,
not CONFIG_EP93XX_SDRAM_BANK2_SIZE.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-28 15:21:25 +01:00
Sascha Hauer 51903e7425 ARM: friendlyarm-mini2440: fix compilation for some displays
struct fb_videomode does not have a flag member, so do not initialize
it.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-28 15:21:25 +01:00
Sascha Hauer 9196cac0bd ARM: i.MX: Add i.MX6sx sabresdb support
This adds support for the Freescale i.MX6sx sabresdb board.

Tested are:

- UART
- The three SD card slots
- USB host
- USB otg (host and device mode)
- FEC (both)

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-27 11:26:02 +01:00
Lucas Stach 154c0b70f0 arm: imx: pca100: only try to enable USB if USB_ULPI is configured
Avoids a build failure if the config does not include ULPI support.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-26 19:21:09 +01:00
Sascha Hauer a56dcaa9d4 ARM: i.MX51 efikasb: register init callback for PMIC init
So that the PMIC initialisation is called once it's available.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-20 14:57:18 +01:00
Sascha Hauer f1b3619759 ARM: i.MX51 efikasb: Use defaultenv_append_directory
To have the smartbook specific env available in the multi image.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-20 14:57:17 +01:00
Christian Hemp e8f9f5b131 imx6: Add support for phyBOARD-SUBRA
Add support for phyBOARD-SUBRA which use a phyFLEX-i.MX6 (pfla02) module.
	- i.MX6 SOLO with 512MB RAM

Signed-off-by: Christian Hemp <c.hemp@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-20 14:57:14 +01:00
Christian Hemp 50bd3ea240 imx6: add support for phyBOARD-ALCOR
Add support for phyBOARD-ALCOR which use a phyFLEX-i.MX6 (pfla02) module.
        - i.MX6 Quad with 1GB RAM on two banks

Signed-off-by: Christian Hemp <c.hemp@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-20 14:56:40 +01:00
Christian Hemp 85460e26b2 am335x:phyflex: Remove phy fixup from board file
The ethernet timings are set by the devicetree. They are no longer required in the
board file.

Signed-off-by: Christian Hemp <c.hemp@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-19 07:45:36 +01:00
Christian Hemp 96f77e4e5d ARM:pfla02: Move ethernet phy timings to dts
Move the ethernet phy timinigs to phyFLEX-i.MX6 devicetree.

Signed-off-by: Christian Hemp <c.hemp@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-12 07:50:54 +01:00
Lucas Stach b6390cf623 arm: imx53-qsrb: fix initcalls on START-R board
The compatible changed when we switched to the upstream
DTs, so the initcalls would not be executed on the START-R
board.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-07 07:55:36 +01:00
Lucas Stach 5272207106 ARM: imx5: add imx5_cpu_lowlevel_init and use in all boards
This is similar to what we do on imx6 and makes sure we
apply the errata workarounds early.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-07 07:54:54 +01:00
Sascha Hauer 7962e7a0b4 defaultenv-2: Make use of nonvolatile variables
This moves the variable assignments previously done in /env/config-board
to non volatile variables in /env/nv/. This makes the settings adjustable
by the user without editing a file.

Most of the changes are simple conversions which for many boards makes
/env/config-board unnecessary. Some boards had some logic to assign
global.boot.default based on the current bootsource. This has been
moved to /env/init/bootsource. An additional check is added to not
overwrite a nv.boot.default should it exist.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-06 12:23:12 +01:00
Sascha Hauer 7b4cc54579 Merge branch 'for-next/tegra' 2014-11-05 15:47:39 +01:00
Sascha Hauer 254b64520b Merge branch 'for-next/nitrogen6x' 2014-11-05 15:47:39 +01:00
Sascha Hauer 6c68b9caf0 Merge branch 'for-next/mxs' 2014-11-05 15:47:39 +01:00
Sascha Hauer e3c49aac69 Merge branch 'for-next/misc' 2014-11-05 15:47:39 +01:00
Lucas Stach aafa2b84fe tegra: colibri-t20: set hostname in board init
Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-04 12:16:52 +01:00
Lucas Stach 7de814ca55 tegra: jetson-tk1: set hostname in board init
Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-04 10:08:47 +01:00
Lucas Stach ab558587f5 tegra: beaver: set hostname in board init
Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-04 10:08:47 +01:00
Lucas Stach a546e66838 tegra: jetson-tk1: enable 1.05V_RUN
Needed for the PCIe PLL amongst other things.

Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-04 09:50:43 +01:00
Teresa Gámez 73e6a47ec8 ARM: am335x: phyCORE-AM335x: Create new dts for MLO
Use a mlo device tree with all bootable devices disabled.
The bootsource is checked in the board file and only the
needed device is enabled and registered.

Signed-off-by: Teresa Gámez <t.gamez@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-03 15:44:59 +01:00
Dmitry Voytik f9a8d631da ARM: imx23-olinuxino: discover usb before ifup
i.MX233 in OLinuXino uses LAN9512 for Ethernet connection.
LAN9512 is connected to USB. Execute usb command before bringing
network up.

This patch makes 'ifup eth0' workable.

Signed-off-by: Dmitry Voytik <voytikd@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-03 15:41:32 +01:00
Wadim Egorov bc88e2105a phyFLEX: Select RMII2_CRS_DV on GPMC_A9 pin
Signed-off-by: Wadim Egorov <w.egorov@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-03 13:29:00 +01:00
Teresa Gámez bde31da8e2 boards: defaultenv: Fix nand bootargs for AM335x boards.
Update nand bootargs for phyFLEX-AM335x and phyCORE-AM335x
to support modern kernels.

Signed-off-by: Teresa Gámez <t.gamez@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-03 13:28:41 +01:00
Bo Shen bc0f7e9c41 ARM: atmel: add sama5d4 xplained ultra board support
The sama5d4 xplained ultra board support following features:
  - NAND flash support
  - SPI flash support
  - MMC card support (MCI1)
  - LCD display support (with QT1070)
  - Ethernet support

Signed-off-by: Bo Shen <voice.shen@atmel.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-03 09:29:11 +01:00
Lucas Stach 502eaba1c6 arm: boards: variscite-mx6: check i2c return value
ret wasn't checked previously.

Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-10-21 13:04:22 +02:00
Teresa Gámez 926d391b8a phyCORE-AM335x: Add barebox image without SPI NOR
Boards like phyBOARD-WEGA RDK have an phyCORE-AM335x
connected with no SPI NOR flash. Added dts to support this.

Signed-off-by: Teresa Gámez <t.gamez@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-10-14 11:22:54 +02:00
Teresa Gámez 9da0a1481f ARM: dts: split phyCORE-AM335x device tree
To support different module variants, split the phyCORE dts
in dts and dtsi. Configurable parts which are supported by
barebox are spi nor flash and i2c eeprom.

Signed-off-by: Teresa Gámez <t.gamez@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-10-14 11:21:45 +02:00
Teresa Gámez ad1aaf3e8f phyCORE-AM335x: Update default enviroment
- Set default bootsource to the $boosource variable
- Pass ip to kernel on all boot options
- mount rootfs rw

Signed-off-by: Teresa Gámez <t.gamez@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-10-14 11:19:17 +02:00
Sascha Hauer 8a5db78315 ARM: nitrogen6x: remove clock gate manipulation from DCD
The clock driver will ungate all clocks anyway during startup, so
manipulating them in the DCD has no effect.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-10-08 16:03:54 +02:00
Sascha Hauer a620e40313 ARM: nitrogen6x: Add support for 2GB board variants
The nitrogen6x have variants with 2GB SDRAM. Add support for them. The
imxcfg files are from U-Boot.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-10-08 16:03:49 +02:00
Sascha Hauer ee0909bd14 ARM: nitrogen6x: Fix Duallite RAM Timing
The i.MX6DL only supports up to 800MHz RAM timing, so add the corresponding
file from U-Boot and use it.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-10-08 16:03:39 +02:00
Sascha Hauer 19fe6c1e43 ARM: nitrogen6x: update 1066MHz 4x128M16 timing from U-Boot
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-10-08 16:03:29 +02:00
Sascha Hauer 0fde244eed ARM: nitrogen6x: whitespace cleanup
Align hex values under each other.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-10-08 15:24:25 +02:00
Stefan Müller-Klieser a6b696108c boards: Add phytec-phyflex-am335x
Add support for PHYTEC's phyFLEX-AM335x.

Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
[clean ups]
Signed-off-by: Teresa Gámez <t.gamez@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-10-08 11:09:46 +02:00
Lucas Stach 54a60640bb ARM: tegra: beaver: enable PEX voltage rail
Supply for the PCIe PLL.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-10-08 08:39:01 +02:00
Lucas Stach 4e4d40c1ae i2c: tegra: move to fs initcall
i2c is needed to enable voltage rails that are later
needed by other drivers.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-10-08 08:39:01 +02:00
Sascha Hauer 52a0febb3d Merge branch 'for-next/phycore-imx6' 2014-10-02 08:54:42 +02:00
Sascha Hauer 5aa553e4b6 Merge branch 'for-next/omap' 2014-10-02 08:54:42 +02:00
Sascha Hauer 2a2a8b9052 Merge branch 'for-next/imx' 2014-10-02 08:54:41 +02:00