9
0
Fork 0
Commit Graph

4036 Commits

Author SHA1 Message Date
Wadim Egorov 2565cac2cf ARM: omap: barebox update nand xloadslots handler
- Added barebox nand xloadslots update handler
- This handler updates all given xload slots in nand

Signed-off-by: Wadim Egorov <w.egorov@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-05-19 09:15:39 +02:00
Sascha Hauer d8767b95d6 ARM: dts: i.MX6: drop now unused imx6qdl-pingrp.h
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-05-19 08:37:19 +02:00
Sascha Hauer a5207a633a ARM: dts: i.MX6: drop usage of pin group defines
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-05-19 08:37:19 +02:00
Sascha Hauer eeb3cd1369 ARM: dts: i.MX6qdl-nitrogen6x: Use upstream dts file
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-05-19 08:37:19 +02:00
Sascha Hauer a20779be76 ARM: dts: i.MX6qdl-microsom: Use upstream dts file
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-05-19 08:37:19 +02:00
Sascha Hauer 87fce28f39 ARM: dts: i.MX6qdl-dfi-fs700-m60: Use upstream dts file
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-05-19 08:37:18 +02:00
Sascha Hauer a1da469359 ARM: dts: i.MX6q-sabreslite: Use upstream dts file
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-05-19 08:37:18 +02:00
Sascha Hauer c60b5bbead ARM: dts: i.MX6qdl-sabresd: Use upstream dts file
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-05-19 08:37:18 +02:00
Sascha Hauer b0141a9083 ARM: dts: i.MX6q-gk802: Use upstream dts file
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-05-19 08:37:18 +02:00
Sascha Hauer 9b1126e00a ARM: dts: i.MX6dl-hummingboard: Use upstream dts file
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-05-19 08:37:18 +02:00
Sascha Hauer d2e80db0a3 ARM: dts: i.MX51 babbage: overwrite upstream FEC iomux settings
As of v3.15-rc4 these contain NO_PAD_CTRL settings which are not
suitable for an initial setup. Overwrite upstream settings until
these are fixed.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-05-19 08:37:18 +02:00
Sascha Hauer 7fe470e3e0 ARM: i.MX51 babbage: use mc13xxx_register_callback to initialize PMIC
This makes sure the PMIC is initialized once it's available. Move the
initcall to coredevice_initcall to make sure we initialize the PMIC
before the FEC driver is initialized. The ethernet phy needs vgen3
enabled in the PMIC initialization.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-05-19 08:37:13 +02:00
Sascha Hauer 579dce92c8 ARM: i.MX: iim: Check result of dev_request_mem_region
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-05-16 09:13:55 +02:00
Lucas Stach 820f37ce0a ARM: boards: beaver: import BCT cfg
From https://github.com/NVIDIA/cbootimage-configs.git

Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-05-15 14:19:25 +02:00
Lucas Stach 669a7911a8 images: tegra: build all Toradex Colibri images
Six images for the the 256MB and 512MB version with
different boot sources (MMC, NAND [different chips on
pre-/production modules]).

Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-05-15 14:19:25 +02:00
Lucas Stach 57196a5df9 ARM: boards: colibri t20: import BCT cfgs
From https://github.com/NVIDIA/cbootimage-configs.git

There are a bunch of different versions and boot options
for this board. Import BCTs for all of them.

Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-05-15 14:19:25 +02:00
Lucas Stach 1fc137d4cd ARM: tegra: beaver: adjust pinmux to make sdmmc1 work
Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-05-15 14:17:12 +02:00
Lucas Stach 5f2965cc80 ARM: tegra: beaver: activate sdmmc1 voltage rail
In order to get the SD card solt working.

Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-05-15 14:17:12 +02:00
Lucas Stach 86a752954b clk: tegra30: register i2c clocks
Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-05-15 14:17:12 +02:00
Lucas Stach 77d45d43c2 reset: add tegra reset controller
Allows us to drop the hack in the clock controller
and implement proper reset at device level.

Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-05-15 14:17:12 +02:00
Lucas Stach 7a9d497860 tegra: lowlevel: add function to fetch chipid
This is needed as a safe way to flush the ABP bus.

Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-05-15 14:17:11 +02:00
Sascha Hauer 3970661a00 ARM: AM335x: merge am335x config in a single config file
The current am335x boards can be built together. Merge the
configs to a single am335x_defconfig.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-05-15 13:56:17 +02:00
Sascha Hauer 4049aea7a8 ARM: AM335x: beaglebone: change to defaultenv_append_directory
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-05-15 13:54:56 +02:00
Sascha Hauer 14f7e1d491 ARM: AM335x: phycore: change to defaultenv_append_directory
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-05-15 13:54:53 +02:00
Sascha Hauer fb061bffe4 ARM: AM33xx: Add SPI bbu handler
We already have an update handler for the MLO on SPI, add
a update handler for the regular barebox aswell.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-05-15 12:45:23 +02:00
Sascha Hauer 22b722902c ARM: AM33xx: swap MLO SPI image automatically
The MLO image for SPI differs in the normal MLO in that the
SPI version is big endian. As both types of images are floating
around detect whether or not the image is swapped automatically.
This also adds a check whether we have a valid MLO image.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-05-15 12:45:18 +02:00
Jan Luebbe 2bea297d30 ARM: AM3xxx: Add support for building AM33xx spi images
mk-am35xx-spi-image can only build AM35xx images. Rename
the tool to mk-am3xxx-spi-image and add support for the AM33xx.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-05-15 12:45:02 +02:00
Sascha Hauer 4fea2ceb98 ARM: am33xx: Add missing include
am33xx-generic.h needs memcpy, so include string.h

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-05-15 12:45:02 +02:00
Sascha Hauer a570417687 ARM: am33xx: Pass uart_base to soft_reset function
To make am33xx_uart0_soft_reset more flexible rename it to
am33xx_uart_soft_reset and pass the UART base to it.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-05-15 12:45:02 +02:00
Jan Luebbe 96cb84cbd5 arm: omap: am33xx_generic: detect more boot sources
Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
2014-05-15 12:45:02 +02:00
Sascha Hauer caa31714b5 ARM: AM33xx: make bbu handler static inline
The static inline wrapper for am33xx_bbu_spi_nor_mlo_register_handler
lacked the 'static inline'. add it.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-05-15 12:44:39 +02:00
Holger Schurig c524f74d5b commands: NET_DHCP -> CMD_DHCP
* this compile option actually turns on a command, so name it
  accordingly
* also move the Kconfig definition into commands/Kconfig, thus
  placing getopt into the "Network commands" section
* while at it, improve Kconfig documention

Signed-off-by: Holger Schurig <holgerschurig@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-05-14 10:03:49 +02:00
Holger Schurig 5bd055b660 commands: NET_PING -> CMD_PING
* this compile option actually turns on a command, so name it
  accordingly
* also move the Kconfig definition into commands/Kconfig, thus
  placing getopt into the "Network commands" section
* while at it, improve Kconfig documention

Signed-off-by: Holger Schurig <holgerschurig@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-05-14 10:03:48 +02:00
Holger Schurig 26a34100e8 commands: HUSH_GETOPT -> CMD_GETOPT
* this compile option actually turns on a command, so name it
  accordingly
* also move the Kconfig definition into commands/Kconfig, thus
  placing getopt into the "Shell scripting commands" section
* while at it, improve Kconfig documention

Signed-off-by: Holger Schurig <holgerschurig@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-05-14 10:03:48 +02:00
Holger Schurig 6e3a969106 commands: move CMD_AT91MIX to commands/Kconfig
* this places the command into the "Information commands"
  section of Kconfig
* while at it, improve Kconfig documention

Signed-off-by: Holger Schurig <holgerschurig@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-05-14 10:03:48 +02:00
Holger Schurig c4909aa197 commands: move CMD_AT91MUX to commands/Kconfig
* this places the command into the "Information commands"
  section of Kconfig
* while at it, improve Kconfig documention

Signed-off-by: Holger Schurig <holgerschurig@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-05-14 10:03:48 +02:00
Holger Schurig d1f7aa862d commands: move CMD_AT91_BOOT_TEST to commands/Kconfig
* this places the command into the "Boot commands"
  section of Kconfig
* while at it, improve Kconfig documention

Signed-off-by: Holger Schurig <holgerschurig@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-05-14 10:03:48 +02:00
Holger Schurig efb18d817f commands: move CMD_BOOT_ORDER to commands/Kconfig
* this places the command into the "Boot commands"
  section of Kconfig
* while at it, improve Kconfig documention

Signed-off-by: Holger Schurig <holgerschurig@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-05-14 10:03:47 +02:00
Holger Schurig d4ee397fdb commands: move CMD_ARM_MMUINFO to commands/Kconfig
* this places the command into the "Information commands"
  section of Kconfig
* while at it, imprive Kconfig documention

Signed-off-by: Holger Schurig <holgerschurig@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-05-14 10:03:47 +02:00
Holger Schurig 65fd693b72 commands: move CMD_ARM_CPUINFO to commands/Kconfig
* this places the command into the "Information commands"
  section of Kconfig
* while at it, imprive Kconfig documention

Signed-off-by: Holger Schurig <holgerschurig@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-05-14 10:03:47 +02:00
Holger Schurig 013ee1e87a commands: CMD_DIGEST -> COMPILE_DIGEST
This config just turned on the compilation of digest.c (used by 'SHA1',
'sha256sum' etc), so name it accordingly.

Signed-off-by: Holger Schurig <holgerschurig@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-05-14 10:03:47 +02:00
Holger Schurig 07d90fdd39 commands: CMD_MEMORY -> COMPILE_MEMORY
* CMD_MEMORY was defined both in common/Kconfig and commands/Kconfig
* that symbol turned not a command on, but just the compilation of
  commands/mem.c, so rename it accordingly

Signed-off-by: Holger Schurig <holgerschurig@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-05-14 10:03:47 +02:00
Holger Schurig f1f532084a commands: harmonize in-barebox documentation
This patch does probably too much, but it's hard (and very
cumbersome/time consuming) to break it out. What is does is this:

* each command has one short description, e.g. "list MUX configuration"
* made sure the short descriptions start lowercase
* each command has one usage. That string contains just the
  options, e.g. "[-npn]". It's not part of the long help text.
* that is, it doesn't say "[OPTIONS]" anymore, every usable option
  is listed by character in this (short) option string (the long
  description is in the long help text, as before)
* help texts have been reworked, to make them
  - sometimes smaller
  - sometimes describe the options better
  - more often present themselves in a nicer format
* all long help texts are now created with BUSYBOX_CMD_HELP_
  macros, no more 'static const __maybe_unused char cmd_foobar_help[]'
* made sure the long help texts starts uppercase
* because cmdtp->name and cmdtp->opts together provide the new usage,
  all "Usage: foobar" texts have been removed from the long help texts
* BUSYBOX_CMD_HELP_TEXT() provides the trailing newline by itself, this
  is nicer in the source code
* BUSYBOX_CMD_HELP_OPT() provides the trailing newline by itself
* made sure no line gets longer than 77 characters
* delibertely renamed cmdtp->usage, so that we can get compile-time
  errors (e.g. in out-of-tree modules that use register_command()
* the 'help' command can now always emit the usage, even without
  compiled long help texts
* 'help -v' gives a list of commands with their short description, this
  is similar like the old "help" command before my patchset
* 'help -a' gives out help of all commands

Signed-off-by: Holger Schurig <holgerschurig@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-05-14 10:03:43 +02:00
Beniamino Galvani e70492fac2 ARM: radxa-rock: set hostname after devicetree initialization
hostname_init() must be called after the devicetree root node has been
initialized, otherwise the check on board compatible always returns
false.

Signed-off-by: Beniamino Galvani <b.galvani@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-05-14 09:10:51 +02:00
Holger Schurig ab23d0bb3f commands: group 'help' output
The old output of "help" was just producing a long list, that usually
scrolled of the screen (even on a X11 terminal). This list is more
compact, and also sorted by groups.

The old output format (plus grouping) is now available with 'help -v'.

Example:

   Information commands:
     ?, devinfo, help, iomem, meminfo, version
   Boot commands:
     boot, bootm, go, loadb, loads, loadx, loady, saves, uimage
   ...

Signed-off-by: Holger Schurig <holgerschurig@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-05-14 07:59:55 +02:00
Sascha Hauer 9f8aab600d drop CONFIG_PARTITION_NEED_MTD
With CONFIG_PARTITION_NEED_MTD enabled we use mtd rather than devfs
directly to create partitions on mtd devices. Since:

| commit b32cd8df87
| Author: Sascha Hauer <s.hauer@pengutronix.de>
| Date:   Wed Apr 9 15:49:32 2014 +0200
|
|     mtd: nand: bb: use mtd api directly
|
|     The devfs layer just adds an addition indirection between mtd
|     and the bb devices with no purpose. Drop it.
|
|     Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>

The bad block aware device creation doesn't work if this option
is disabled. With this we remove CONFIG_PARTITION_NEED_MTD and always
use mtd partitions on mtd devices.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-05-13 09:19:46 +02:00
Sascha Hauer 85c29d2860 ARM: i.MX: Phytec-phyCARD-i.MX27: Use upstream dts files
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-05-10 18:32:42 +02:00
Sascha Hauer e632356be4 ARM: create a imx_defconfig
This creates a imx_defconfig which in future can catch all
non thumb i.MX boards not covered by imx_v7_defconfig. Right
now the Karo TX25 and Phytec phyCARD i.MX27 can so multi image
support. They are enabled in the new config and the previous
board specific config is removed.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-05-10 18:30:01 +02:00
Sascha Hauer 4540f5e26e ARM: i.MX: Phytec-phyCARD-i.MX27: Switch to multi-image support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-05-10 18:30:01 +02:00
Sascha Hauer 505a1b4e7e ARM: i.MX5: ccm: combine initcalls and drop ifdefs
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-05-10 18:29:58 +02:00
Sascha Hauer 29c366dceb ARM: dts: i.MX53: Add ipu alias
The barebox IPU driver needs it.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-05-09 17:41:46 +02:00
Sascha Hauer 311d656f1e ARM: i.MX5: Add IPU clocks
Add the clocks for the IPU on i.MX5. Since these are many only
add them when the driver is enabled.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-05-09 17:41:46 +02:00
Sascha Hauer 104219616f ARM: i.MX: implement pllv2 set/round_rate support
Code straight from the kernel.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-05-09 17:41:45 +02:00
Sascha Hauer e27b8db069 ARM: i.MX53 tqma53: Set model from devicetree
The model is correctly set from the devicetree, no need to do it
from code.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-05-09 17:41:45 +02:00
Sascha Hauer 1f0db00f81 ARM: i.MX53: Add pwm support
Aliases and clocks are needed to support the i.MX53 PWMs.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-05-09 17:41:45 +02:00
Sascha Hauer 961a8298a6 ARM: tqma53: Add phy_type property to usb ports
The barebox chipidea driver needs this.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-05-09 17:41:45 +02:00
Sascha Hauer a10023c0db ARM: i.MX53: Use clock number defines from dt-bindings
i.MX5 has clock number defines in dt-bindings, use them rather
then manually keeping the clock enums in sync.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-05-09 17:41:45 +02:00
Sascha Hauer 68d6b605b6 ARM: tqma53: Add barebox_update support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-05-09 17:41:44 +02:00
Sascha Hauer d238e3ace5 ARM: i.MX: bbu: remove dcd arguments from bbu registration
The i.MX barebox update handlers take an optional dcd table as argument.
This can be used to add the correct dcd data to the image before flashing
it.
This mechanism is quite complicated and largely unused, so remove it. With
this it is only possible to flash the exact image passed to barebox_update,
which is what is mostly done anyway.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-05-09 17:41:41 +02:00
Sascha Hauer f5b552f1fe ARM: dts: Add generated files to clean rule
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-05-09 09:11:49 +02:00
Michael Olbrich adbdf751ed ARM: dts: i.MX53: tqma53: Readd barebox specifics
Some of the barebox specific changes that were added in commit
e0316b4dd7 got lost during the switch to use
upstream dtsi files in commit bb7cf71cff.

Especially the memory size is important since we have two different memory
sizes which have to be handled.

Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-05-09 08:44:09 +02:00
Silvio Fricke 18273bceb4 ARM: i.MX6: dts: edmqmx6: use new dts approach
Signed-off-by: Silvio Fricke <silvio.fricke@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-05-08 09:36:27 +02:00
Lucas Stach fb6e4db3ce ARM: tegra30: ramp vdd_core to 1,2V
This isn't much different from the default 1,16V
and I haven't seen this make a difference on any
board, but it seems to be required for some T30 SKUs.

Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-05-08 09:35:50 +02:00
Lucas Stach acbecd1987 ARM: tegra30: slow down CPU to 600 MHz
It's not safe to ramp up the CPU clock speed to
1,4 GHz on all T30 SKUs, as this may result in failure
to start the kernel properly. Start CPU at 600 MHz,
which is safe even for the slowest SKUs.

Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-05-08 09:35:50 +02:00
Sascha Hauer a9886d1e6b ARM: dts: remove unused i.MX pinfunc header files
These are now taken from the upstream files.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-05-07 12:40:50 +02:00
Lucas Stach 5545b82e72 ARM: phycard-imx6: fixup for barebox_arm_entry signature change
This board wasn't changed properly, as it was merged in the short
timeframe where the signature change waited to be applied. Change
it now to get rid of the compiler warning.

Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-05-07 09:45:18 +02:00
Lucas Stach 0839e3f402 ARM: bootm: fix default uImage placement
For small systems we would put the zImage at 32KiB after
the start of memory, and put the DT a bit after the uImage.
The kernel will always try to relocate itself and overwrite
the DT.

Try to be more clever at uImage placement to avoid
triggering the kernel relocation.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-05-05 15:09:09 +02:00
Lucas Stach d79618aa66 ARM: bootm: be more clever while deciding where to put zImage
For small systems we would put the zImage at 8MiB after
the start of memory, and put the DT a bit after the zImage.
When we encounter an image which is bigger than 8MiB
uncompressed, the kernel would try to relocate itself
and overwrite the DT.

Try to be more clever at zImage placement to avoid
triggering the kernel relocation.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-05-05 15:09:09 +02:00
Lucas Stach 15db8b76c6 ARM: imx: move malloc area to upper memory bank by default
If we have two discontinuous memory banks we want to move
the malloc area into the upper bank by default to leave as
much free space in the lower bank, where we have to place
kernel, oftree and initrd.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-05-05 15:09:09 +02:00
Lucas Stach 60a9cd5c32 ARM: phycore-am33xx: remove extra FDT memcpy
Not needed anymore, as barebox now accepts FDTs outside
of it's visible DRAM, as long as it's a valid pointer.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-05-05 15:09:09 +02:00
Lucas Stach 739b916a4f ARM: eDM-QMX6: remove extra FDT memcpy
Not needed anymore, as barebox now accepts FDTs outside
of it's visible DRAM, as long as it's a valid pointer.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-05-05 15:09:09 +02:00
Lucas Stach 0bc94089df ARM: beaglebone: remove extra FDT memcpy
Not needed anymore, as barebox now accepts FDTs outside
of it's visible DRAM, as long as it's a valid pointer.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-05-05 15:09:09 +02:00
Lucas Stach 4f381b1aaa ARM: change signature of barebox_arm_entry
Mostly to make it clear that boarddata needs to be
something we can dereference.

As this is a pretty invasive change, use the opportunity
to make the signature 64bit safe.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-05-05 15:09:09 +02:00
Beniamino Galvani 0668b9fe0a ARM: Rockchip: use upstream dtsi files
Signed-off-by: Beniamino Galvani <b.galvani@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-05-05 15:09:09 +02:00
Sascha Hauer 7b7631791e Merge branch 'for-next/tegra'
Conflicts:
	arch/arm/dts/tegra20-colibri.dtsi
	arch/arm/dts/tegra20-paz00.dts
	arch/arm/dts/tegra20.dtsi
	drivers/clk/tegra/clk-periph.c
2014-05-05 13:34:21 +02:00
Sascha Hauer cdfca5dccb Merge branch 'for-next/rockchip' 2014-05-05 13:33:09 +02:00
Sascha Hauer bf1d71d5e1 Merge branch 'for-next/misc' 2014-05-05 13:32:37 +02:00
Sascha Hauer 8fb1d4e075 Merge branch 'for-next/mips'
Conflicts:
	arch/mips/boards/loongson-ls1b/serial.c
2014-05-05 11:06:17 +02:00
Sascha Hauer f8327af20c Merge branch 'for-next/ioresource' 2014-05-05 11:05:51 +02:00
Sascha Hauer b568687bc3 Merge branch 'for-next/imx' 2014-05-05 11:05:51 +02:00
Sascha Hauer 2274c6ea77 Merge branch 'for-next/env' 2014-05-05 11:05:50 +02:00
Sascha Hauer d27b97820c Merge branch 'for-next/dts' 2014-05-05 11:05:50 +02:00
Uladzimir Bely 825fca396f imx6: ocotp: Add On-Chip OTP registers write support
FUSEs (OTP registers) can be written via /dev/imx-ocotp character device.

For example, writing MAC 12:34:56:78:9A:BC can be performed as
    > mw -l -d /dev/imx-ocotp 0x8c 0x00001234
    > mw -l -d /dev/imx-ocotp 0x88 0x56789ABC
and reading as
    > md -l -s /dev/imx-ocotp 0x88+8
    00000088: 56789ABC 00001234
, where 0x88 (0x22*4) and 0x8C (0x23*4) are offsets of MAC OTP registers.

Notice: FUSEs are PROM, so "0" (unprogrammed) bits
can be replaced with "1" (but not vice versa) only once.

Also, for MAC there are convinient parameters:
    > ocotp0.permanent_write_enable=1
    > ocotp0.mac_addr=12:34:56:78:9A:BC
    imx_ocotp 21bc000.ocotp: reloading shadow registers...
    imx_ocotp 21bc000.ocotp: reloading shadow registers...
    > echo $ocotp0.mac_addr
    12:34:56:78:9A:BC

Signed-off-by: Uladzimir Bely <u.bely@sam-solutions.net>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-05-05 09:35:05 +02:00
Christian Hemp e0afbe3f84 imx:mmdc:Move imx6-reg include to imx6-mmdc header
Move the imx6-reg.h include to the imx6-mmdc header.

Signed-off-by: Christian Hemp <c.hemp@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-05-05 09:02:10 +02:00
Christian Hemp 3e571c1f86 imx6: Add support for phyCARD-i.MX6
Add support for Phytec phyCARD-i.MX6.
	- 1GB RAM on two banks
	- 1GB RAM on one bank
	- 2GB RAM on two banks

Signed-off-by: Christian Hemp <c.hemp@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-30 19:45:11 +02:00
Lucas Stach 159f1ea7ce ARM: boards: Makefile: fix whitespace
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-30 15:33:27 +02:00
Eric Bénard ccc4eac632 RiOTboard: add new board
this board is produced by Embest/Element 14 and is based on i.MX6 Solo
The following features are tested :
- UART2 (console)
- eMMC
- SDCard
- uSDCard
- Ethernet
- USB Host (through 4 ports hub)
- I2C 1/2/3
- 2 LEDs

Boot on eMMC and through USB loader are tested.

For more informations on this board : http://www.riotboard.org/

Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-29 09:12:35 +02:00
Sascha Hauer 41ae766fb9 ARM: dove: Use upstream dtsi file
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Tested-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
2014-04-29 09:07:21 +02:00
Sascha Hauer 7b4fb140fc ARM: Tegra20: Use upstream dtsi files
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-29 09:07:21 +02:00
Sascha Hauer 99a720c5e2 ARM: AM33xx: Use upstream dtsi file
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-29 09:07:21 +02:00
Sascha Hauer d557214815 ARM: i.MX27: Use upstream dtsi file
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-29 09:07:21 +02:00
Sascha Hauer cb228a82aa ARM: i.MX25: Use upstream dtsi file
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-29 09:07:21 +02:00
Sascha Hauer 903b1d4309 ARM: Rockchip: switch to multiimage support
- Add images/Makefile.rockchip
- Allow multiple boards to be selected
- protect initcalls with appropriate of_machine_is_compatible
- rename board specific config to SoC config
- Add dtb file to compilation
- turn barebox_arm_reset_vectorto ENTRY_FUNCTION
- pass dtb to barebox_arm_entry

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-29 08:40:40 +02:00
Beniamino Galvani 3bef9916a3 ARM: rockchip: add radxa-rock board
Signed-off-by: Beniamino Galvani <b.galvani@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-29 08:15:41 +02:00
Beniamino Galvani a9c8371a85 ARM: dts: add Rockchip devicetree files
Signed-off-by: Beniamino Galvani <b.galvani@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-29 08:15:41 +02:00
Beniamino Galvani b28e8d7e61 pinctrl: add rockchip pinctrl and gpio drivers
Signed-off-by: Beniamino Galvani <b.galvani@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-29 08:15:41 +02:00
Beniamino Galvani af4c8a0128 clk: add rockchip clock gate driver
Signed-off-by: Beniamino Galvani <b.galvani@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-29 08:15:24 +02:00
Beniamino Galvani 32a2a673c6 clk: gate: add flags argument to clock gate constructor
This adds a clk_gate_flags argument to clock gate creation functions
to allow the introduction of new clock gate modifiers.

Signed-off-by: Beniamino Galvani <b.galvani@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-29 08:15:24 +02:00
Beniamino Galvani 75c0f6f879 ARM: rockchip: add PLL initialization function
Signed-off-by: Beniamino Galvani <b.galvani@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-29 08:12:33 +02:00
Beniamino Galvani 036f0f1c60 ARM: add basic support for Rockchip SoCs
This patch adds a basic support for the ARM-based Rockchip SoCs of the
RK3xxx family.

Signed-off-by: Beniamino Galvani <b.galvani@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-29 08:12:33 +02:00
Alexander Shiyan 7f5c73b939 ARM: Remove excess "select GENERIC_GPIO"
GENERIC_GPIO is selected automatically by GPIOLIB

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-29 08:11:46 +02:00
Sascha Hauer bb7cf71cff ARM: i.MX53: Use upstream dtsi files
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-28 14:18:29 +02:00
Sascha Hauer 95b13377be ARM: i.MX6: Use upstream dtsi files
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-28 14:18:29 +02:00
Sascha Hauer 04a3e57996 ARM: dts: i.MX51: Use upstream dts files
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-28 14:18:29 +02:00
Sascha Hauer f9b8b4ac81 dts: i.MX51 efika sb: Roll back pingroup changes
The pingrp defines never made it upstream, so roll back the changes
and use the individual pin defines for the Efika sb instead.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-28 14:18:28 +02:00
Sascha Hauer 5d0362c5d3 dts: Use dt-bindings from kernel
barebox used to have its own include/dt-bindings with files copied
from the corresponding kernel files. Use upstream dt-bindings directly
instead.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-28 14:18:25 +02:00
Christian Hemp 724ea7e6c3 imx6: read back memory size
To reduce the devicetree files for one board with different memory sizes the
memory size can be read back from i.MX6.

Signed-off-by: Christian Hemp <c.hemp@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-28 12:02:55 +02:00
Sascha Hauer 1a8800458b mtd: nand: create bb devices automatically
When a mtd device can have bad blocks we want to create a
bb device, so do this automatically. This allows us to
drop bb device creation from the environment.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-28 11:45:09 +02:00
Sascha Hauer 54bea204e2 environment: drop envfs_register_partition
The purpose of envfs_register_partition is to print an error
message when the partition does not exist. Print an error message
from generic code instead and drop this function.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-28 11:37:42 +02:00
Christian Hemp 3858b933b5 imx6:mmdc: Move register defines to header file
Move mmdc register defines to mmdc header file.

Signed-off-by: Christian Hemp <c.hemp@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-28 08:09:31 +02:00
Lucas Stach fca64d3fda ARM: nitrogen6x: remove VPU/IPU QoS from DCD
Not needed anymore, as barebox sets this up itself now.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-28 08:08:41 +02:00
Lucas Stach 4c13cf95b2 defconfig: tegra: add some useful options
Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-23 11:40:59 +02:00
Lucas Stach 776d7c9996 ARM: dts: tegra: add full Beaver pinmux
Not fully validated yet, but seems to work.

Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-23 11:40:59 +02:00
Lucas Stach 3a1934eaa9 ARM: tegra: add NVidia Beaver board support
Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-23 11:40:59 +02:00
Lucas Stach 66b0cd41cb ARM: tegra: add basic Tegra3 DT
Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-23 11:40:59 +02:00
Lucas Stach f09394ab1a pinctrl: tegra: add Tegra3 driver
Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-23 11:39:57 +02:00
Lucas Stach e61f9e458d tegra: recognize T30 in debug UART code
Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-23 11:39:14 +02:00
Lucas Stach fa94149a5b tegra: add Tegra3 mem initcall
Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-23 11:39:14 +02:00
Lucas Stach 90542372c4 tegra: add Tegra3 ramsize detection
Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-23 11:39:14 +02:00
Lucas Stach cdc5b61c6d tegra: add Tegra3 kconfig symbol
Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-23 11:39:14 +02:00
Lucas Stach 0fe976103e tegra: source MSELECT clock from CLK_M
We need to reprogram PLL_P at a later time, so
we have to make sure MSELECT is able to operate
correctly when we stop PLL_P.

Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-23 11:39:14 +02:00
Lucas Stach bd4cbd927c tegra: disable more lowlevel unsafe switch optimizations
fno-jump-tables isn't enough to guard against
gcc switch optimizations that are unsafe to use
in code that runs before relocation.

The switch-tree-conversion opt pass may generate
lookup tables that are placed in the data section
and accessed via absolute adressing, which fails
prior to relocation.

Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-23 11:39:13 +02:00
Lucas Stach 9c63e92baa treewide: fix signedness mixups in printf format specifiers
This most likely doesn't fix any real bugs, but it's the
right thing to do and reduces the noise level with static
checkers.

Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-23 09:05:51 +02:00
Lucas Stach 86afb22eae ARM: at91: add missing break
Otherwise SAM A5d35 would be detected as A5d36.

Signed-off-by: Lucas Stach <dev@lynxeye.de>
Acked-by: Bo Shen <voice.shen@atmel.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-23 09:04:29 +02:00
Michel Stam 9f556d4b6f x86: ns16550: Rework driver to allow for x86 I/O space
The current implementation fakes a memory-mapped I/O device
at 0x3f8 and 0x2f8, then uses platform read/write functions
to do the actual reading and writing. These platform functions
only exist for the x86 platform; better to move the I/O
routines into the driver and have the driver request I/O ports
using request_ioport_region.

Signed-off-by: Michel Stam <michel@reverze.net>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-09 19:31:42 +02:00
Sascha Hauer 940237285e openrisc: Use generic io accessors
openrisc does nothing special in the io accessors, so use the generic
ones as the kernel.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-09 19:31:41 +02:00
Sascha Hauer 8f6bc22f3b mips: io: include generic io.h
To get definitions for inb/outb and friends.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Cc: Antony Pavlov <antonynpavlov@gmail.com>
2014-04-09 08:31:07 +02:00
Sascha Hauer 48f1fa806f ppc: io: Add _IO_BASE define
To make inb/outb and friends work.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-09 08:31:06 +02:00
Lucas Stach feffac4782 ARM: dts: edmqmx6: add SPI SCLK pinmux
Otherwise reading or writing to the SPI flash doesn't
work.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-08 08:19:55 +02:00
Michel Stam 9c8f73ba86 x86: Add support for IDE on the legacy I/O ports
Signed-off-by: Michel Stam <michel@reverze.net>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-08 08:17:55 +02:00
Michel Stam 4d94f56c6c common: Allow for I/O mapped I/O
Rework the current framework so that I/O mapped I/O resources are
also possible.

Signed-off-by: Michel Stam <michel@reverze.net>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-08 08:17:55 +02:00
Antony Pavlov b7cc37eedf MIPS: loongson-ls1b: switch to device tree
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-08 08:03:45 +02:00
Antony Pavlov cd8a28dcbf MIPS: add Loongson Tech LS1B Demo Board dts file
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-08 08:03:45 +02:00
Antony Pavlov d7f3922a39 MIPS: add Longson LS1B SoC dtsi file
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-08 08:03:45 +02:00
Antony Pavlov 824d32f7d4 MIPS: tplink-mr3020_defconfig: add SPI support
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-07 11:22:32 +02:00
Antony Pavlov 5ba3f77003 MIPS: tplink-mr3020.dts: add S25FL032PIF SPI flash chip
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-07 11:22:32 +02:00
Antony Pavlov 0ddaa340a4 MIPS: ar9331.dtsi: add SPI master
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-07 11:22:32 +02:00
Lucas Stach 8cffe66263 ARM: dts: update colibri + iris DTs to Linux 3.14
Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-07 08:36:03 +02:00
Lucas Stach 50747b40ec ARM: dts: update paz00 DT to Linux 3.14
Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-07 08:36:03 +02:00
Lucas Stach 81726b6c6f ARM: dts: update Tegra20 base dtsi to Linux 3.14
Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-07 08:36:03 +02:00
Wjatscheslaw Stoljarski 9303b17369 imx53: add imx53_add_cspi
Signed-off-by: Wjatscheslaw Stoljarski <wjatscheslaw.stoljarski@kiwigrid.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-07 08:36:03 +02:00
Wjatscheslaw Stoljarski 158050e1cf imx53: add imx53_add_cspi
Signed-off-by: Wjatscheslaw Stoljarski <wjatscheslaw.stoljarski@kiwigrid.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-05 18:28:27 +02:00
Sascha Hauer 0a5529d0ed Merge branch 'for-next/ppc' 2014-04-04 10:06:22 +02:00
Sascha Hauer 245bc10ca5 Merge branch 'for-next/misc' 2014-04-04 10:06:22 +02:00
Sascha Hauer 3753efa427 Merge branch 'for-next/imx-phyflex'
Conflicts:
	arch/arm/boards/phytec-phyflex-imx6/board.c
2014-04-04 10:06:20 +02:00
Sascha Hauer 4997646b20 Merge branch 'for-next/imx' 2014-04-04 10:06:14 +02:00
Sascha Hauer 712b555f6c Merge branch 'for-next/davinci' 2014-04-04 10:06:14 +02:00
Sascha Hauer b587c87aac Merge branch 'for-next/mips' 2014-04-04 10:05:46 +02:00
Sascha Hauer 74b5a3dbb3 Merge branch 'for-next/imx-ipu-v3' 2014-04-04 09:57:30 +02:00
Sascha Hauer 279fb4346b ARM: Phytec phyCORE i.MX35: Update defconfig
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-04 08:53:23 +02:00