9
0
Fork 0
Commit Graph

4657 Commits

Author SHA1 Message Date
Sascha Hauer 6bcfcece08 Merge branch 'for-next/sandbox-of' 2015-03-06 08:33:50 +01:00
Sascha Hauer 0e055c254c Merge branch 'for-next/mtd-partitions' 2015-03-06 08:33:43 +01:00
Sascha Hauer ea2153ce86 Merge branch 'for-next/am335x' 2015-03-06 08:33:20 +01:00
Lucas Stach 0e06a77f5b ARM: MMU: unexport cache maintenance functions
Those should only be used internally. All users should rather
use the streaming DMA API, which does proper cache maintenance.

Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-03-06 07:53:48 +01:00
Lucas Stach 59bf5f0b5d ARM: bcm2835: mbox: convert to streaming DMA ops
Move to the common streaming DMA ops in order to get rid of
the direct usage of the ARM MMU functions for the cache
maintenance.

Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-03-06 07:53:48 +01:00
Lucas Stach cdb471b023 ARM: implement streaming DMA ops
Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-03-06 07:52:02 +01:00
Lucas Stach 381f034ed6 ARM: move DMA alloc functions to dma.h
This better separates the DMA from the MMU functionality.

Also move all drivers that only depends on asm/mmu.h for the alloc
functions over to the common header.

Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-03-06 07:52:02 +01:00
Lucas Stach 682b7d849a ARM: move virt<->phys translation to io.h
That's the place where Linux has them and other architectures would
implement this.

This will help in phasing out the direct usage of the ARM asm/mmu.h
header.

Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-03-06 07:51:47 +01:00
Lucas Stach e05f9586b3 ARM: change dma_alloc/free_coherent to match other architectures
As a lot drivers currently rely on the 1:1 virt->phys mapping on ARM
we define DMA_ADDRESS_BROKEN to mark them. In order to use them on
other architectures with a different mapping they need proper fixing.

Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-03-06 07:51:47 +01:00
Lucas Stach 6c583d0e32 MIPS: change dma_alloc/free_coherent to common prototypes
Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-03-06 07:51:47 +01:00
Lucas Stach 394a3533a8 NIOS2: use dma_addr_t in dma_alloc_coherent
This allows to consolidate the prototype of this function across
architectures. Also guard against calles that pass in NULL as the
dma handle pointer.

Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-03-06 07:51:47 +01:00
Steffen Trumtrar 458480f0a8 ARM: socfpga: socdk: statify sys_mgr_init_table
The socdk can't be build in a multiboard environment, i.e. when other
socfgpa boards are also build.

Fix this.

Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-03-06 07:43:10 +01:00
Marc Kleine-Budde 7cb9af239b sandbox: hostfile: completely switch to OF based probing
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-03-06 07:42:23 +01:00
Marc Kleine-Budde e146c5f947 sandbox: hostfile: improve --image parameter to support "dev=file"
This patch makes it possible to specify the device name of a file added to the
sandbox via the --image paramter, e.g.:

    barebox --image foo=bar.image

This means the file "bar.image" is added as "/dev/foo" to the sandbox.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-03-06 07:42:22 +01:00
Marc Kleine-Budde 1d3cc3ac5c sandbox: move device name generation for image/env into add_image()
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-03-06 07:42:22 +01:00
Marc Kleine-Budde 8d9a8349cc sandbox: hostfile: is always mmpad'ed
...so remove conditional code.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-03-06 07:42:22 +01:00
Marc Kleine-Budde 2f56f4d050 sandbox: hostfile: use the memory resource to determine the size not the platform_data
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-03-06 07:42:22 +01:00
Marc Kleine-Budde d1490797af sandbox: hostfile: probe driver earlier
This patch convert from device_platform_driver to coredevice_platform_driver,
so that the driver is initialzied before the state framework is probed.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-03-06 07:42:22 +01:00
Marc Kleine-Budde 5a0a296464 sandbox: hostfile: move fd from platform data to priv
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-03-06 07:42:22 +01:00
Marc Kleine-Budde 378ef02bc4 sandbox: hostfile: remove struct hf_platform_data from hf_priv
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-03-06 07:42:22 +01:00
Marc Kleine-Budde a92c5e01be sandbox: hostfile: probe(): add missing pointer from cdev.dev to dev
Without this pointer the cdev will not be associated with the dev,
of_find_path() relies on this.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-03-06 07:42:21 +01:00
Marc Kleine-Budde c265ed260d sandbox: hostfile: clarify variable names
Use "filename" for the name of the file in the host system, while "devname" for
the device in the sandbox.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-03-06 07:42:21 +01:00
Marc Kleine-Budde efda5d09bb sandbox: activate OF support in defconfig
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-03-06 07:42:21 +01:00
Marc Kleine-Budde 6779d91fdf sandbox: add sample dts
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-03-06 07:42:21 +01:00
Marc Kleine-Budde 09d343e941 sandbox: add support to pass dtb to barebox
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-03-06 07:42:21 +01:00
Andrey Panov 9a9a7891e7 ARM: Rockchip: Remove unused files from mach-rockchip
Signed-off-by: Andrey Panov <rockford@yandex.ru>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-03-05 15:19:28 +01:00
Andrey Panov 290161a2f0 ARM: Rockchip: Update Radxa Rock board
Signed-off-by: Andrey Panov <rockford@yandex.ru>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-03-05 15:19:28 +01:00
Andrey Panov a0790f9875 ARM: Rockchip: Use newer DTS for Radxa Rock board
Signed-off-by: Andrey Panov <rockford@yandex.ru>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-03-05 15:19:28 +01:00
Andrey Panov 45d810e2b7 ARM: Rockchip: Update Kconfig
Signed-off-by: Andrey Panov <rockford@yandex.ru>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-03-05 15:19:28 +01:00
Lucas Stach 91acad857d arm: hummingboard: fix fallout from upstream DT usage
This board was broken since the switch to use upstream DTs with v2014.07.
Fix it up by including the right upstream DT and delete some now
unneeded files.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-03-05 08:52:55 +01:00
Lucas Stach f5eaa68abf ARM: tegra: enable barebox update in defconfig
Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-03-04 11:34:08 +01:00
Lucas Stach 4759b8dd54 ARM: tegra: add barebox update handler to Jetson board
Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-03-04 11:34:08 +01:00
Lucas Stach f582591356 ARM: tegra: add barebox update handler to Beaver board
Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-03-04 11:34:08 +01:00
Lucas Stach 4266bfcf47 ARM: tegra: add eMMC barebox update handler
Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-03-04 11:34:08 +01:00
Lucas Stach c15ac076d7 ARM: tegra124: add mmc aliases
Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-03-04 11:34:08 +01:00
Lucas Stach 4877b355c1 ARM: tegra30: add mmc aliases
Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-03-04 11:34:08 +01:00
Lucas Stach c30fa484dc ARM: tegra20: add mmc aliases
Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-03-04 11:34:08 +01:00
Sascha Hauer aac3b3a15a ARM: i.MX53 QSB: remove unused /dev/env0 partition
The environment on the QSB is configured via devicetree, but in
the code there's also a /dev/env0 registered which is unused. Remove
it.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-03-04 09:08:42 +01:00
Lucas Stach 09c4b63aa2 tegra: avp_init: write DT address register earlier
Otherwise the write would be skipped if we are already running on the main CPU
cluster. In practice this means that a second stage barebox will reuse the DT
of the first stage, instead of using it's own.

Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-03-03 08:38:20 +01:00
Marc Kleine-Budde 1b756f5226 sandbox: fix indention in help text
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-03-03 08:25:59 +01:00
Teresa Gámez 7ba2d51d6f ARM: phytec-som-am335x: Remove mmc rootfstype
Rootfs type is beeing detected. Removed the rootfstype parameter.

Signed-off-by: Teresa Gámez <t.gamez@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-03-02 07:54:13 +01:00
Teresa Gámez 15a051cd30 ARM: am335x_defconfig: Add ext4 support
Signed-off-by: Teresa Gámez <t.gamez@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-03-02 07:54:13 +01:00
Teresa Gámez a858e274b3 ARM: phytec-som-am335x: Fix rootfs bootargs
The roofs is mounted from nand when booting from spi. The VID header offset
was set fix to 2048. This is not needed any more. Removed it like it was done
for nand.

Signed-off-by: Teresa Gámez <t.gamez@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-03-02 07:54:13 +01:00
Wadim Egorov 3297df00d6 boards: phytec-som-am335x: Add phycard-som support
Add support for the phyCARD SOM.

Signed-off-by: Wadim Egorov <w.egorov@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-03-02 07:54:13 +01:00
Wadim Egorov eb657a510b ARM: am33xx: Add support for reset reason detection
Also activate in defconfig.

Signed-off-by: Wadim Egorov <w.egorov@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-03-02 07:54:13 +01:00
Teresa Gámez db228127ba ARM: phyCORE-AM335x-SOM: Update NAND partition table
We double the partition size for barebox-env and oftree to be
more robust against bad block issues.

Signed-off-by: Teresa Gámez <t.gamez@phytec.de>
Signed-off-by: Wadim Egorov <w.egorov@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-03-02 07:54:12 +01:00
Teresa Gámez f9a0ad98a1 ARM: phyFLEX-AM335x-SOM: Update NAND partition table
We double the partition size for barebox-env and oftree to be
more robust against bad block issues.

Signed-off-by: Teresa Gámez <t.gamez@phytec.de>
Signed-off-by: Wadim Egorov <w.egorov@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-03-02 07:54:12 +01:00
Wadim Egorov d0ae1330b0 boards: Add phytec-som-am335x
The main idea behind this patch is to avoid redundant board code.
Because of the module similarities of all am335x based phytec boards, we can
merge its code.
The phytec-som-am335x merges the code of all am335x based phytec SOMs.
So we will have only one "board" in the barebox for phyCORE, phyFLEX.

Signed-off-by: Wadim Egorov <w.egorov@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-03-02 07:54:12 +01:00
Teresa Gámez 6e9767f73c ARM: Fix nv variable bootargs.base
Some console parameters where faulty named bootargs.base. Which does
not have any effect. Removed them where possible and renamed the others
to linux.bootargs.console.

Signed-off-by: Teresa Gámez <t.gamez@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-03-02 07:51:35 +01:00
Michael Grzeschik 5aa65a5a17 ARM: Vincell: add usb device
Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-03-02 07:49:30 +01:00
Steffen Trumtrar fbba349cd5 ARM: socfpga: add Altera SoCFPGA Development Kit support
Add support for the Altera SoCFPGA Development Kit.
The setup is based on the GHRD from Altera.

Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-03-02 07:43:25 +01:00
Lucas Stach ec1b1b9eaa ARM: MIOA701: select POLLER
Fixes:
In function `gpio0_poweroff_probe': undefined reference to `poller_register'

Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-03-02 07:35:39 +01:00
Lucas Stach f8d5736939 ARM: Kconfig: remove stale option CPU_V7_DCACHE_SKIP
I stumbled across this option a few times already and always found it
to be at least confusing when and why it should be enabled.

Since commit b7451329b5 (ARM: OMAP3: invalidate L2 cache using ROM API)
it is actually unused and only adds confusion. Better remove it.

Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-03-02 07:30:55 +01:00
Lucas Stach 5adb65518e ARM: do not specify -static and -pie at the same time
PIE is a form of dynamic linking and thus inherently incompatible
with -static. It worked ok as the current behavior of ld.bfd is
to not respect -static if -pie has been specified.

ld.gold and future versions of ld.bfd will fail to link if both
of those incompatible switches are specified at the same time.

Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-03-02 07:11:15 +01:00
Juergen Borleis 0cf58878d5 phyCORE-MPC5200-Tiny: switch to the new environment template
Signed-off-by: Juergen Borleis <jbe@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-03-01 07:53:59 +01:00
Juergen Borleis e0a076fa66 phyCORE-PXA270: switch to the new environment template
Signed-off-by: Juergen Borleis <jbe@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-03-01 07:53:59 +01:00
Sascha Hauer b42a3e2f68 ARM: Allow to mask data aborts
Sometimes it's useful to test if a memory operation works or
aborts. This adds data_abort_mask() to ignore data aborts and
data_abort_unmask() to enable them again. This is used in the
next step for the 'md' command so that illegal addresses just
show 'xxxxxxxx' instead of crashing the system.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-02-27 13:17:31 +01:00
Michael Olbrich 0bdc1c5d11 ARM Samsung: add simple NAND barebox update handler
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-02-26 06:57:52 +01:00
Lucas Stach a0513aadb3 arm: virt_to_phys should take a volatile ptr
So users can pass in device memory pointers without provoking
warnings.

Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-02-25 08:36:48 +01:00
Michael Olbrich 920a49c81c friendlyarm-mini2440: add support for the W35 display
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-02-25 08:34:17 +01:00
Michael Olbrich 4fd1e71050 ARM Samsung: fix booting from NAND without pbl
This was broken in 558d72dc51 (ARM Samsung: fix booting from NAND with
pbl). '_text' is TEXT_BASE when building without pbl and (TEXT_BASE -
SZ_2M) when building with pbl, so this works in both cases.

Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-02-25 08:26:00 +01:00
Doug Brainard fba2adcb3d SAMA5D4EK - Now uses the new environment.
This patch switches the SAMA5D4EK development board to the newer environment method.

This patch depends on "mtd partition handling updates" patch series from Sascha Hauer <s.hauer@pengutronix.de>

Signed-off-by: Doug Brainard <dbrainard@brainardinsight.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-02-24 07:21:38 +01:00
Sascha Hauer 86759346ba boards: Use nv.linux.bootargs.console for setting the console= commandline parameter
Using a dedicated variable makes it easier to change the console= parameter
without affecting other values. Also the linux.bootargs.console variable is
already used by common/console.c. Using the same variable in the environment
avoids giving duplicate console= twice to the kernel

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Suggested-by: Teresa Gámez <t.gamez@phytec.de>
2015-02-23 08:59:13 +01:00
Sascha Hauer fc0f289e74 OMAP and i.MX boards: do not set console= commandline parameter in environment
This is not necessary since for OMAP and i.MX the console= parameter is
initialized by the serial driver.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Suggested-by: Teresa Gámez <t.gamez@phytec.de>
2015-02-23 08:59:02 +01:00
Jean-Christophe PLAGNIOL-VILLARD 69dca7b948 imx6q-embedsky-e9: we use the i2c2 for hdmi
with this the splash work

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-02-19 20:51:11 +01:00
Jean-Christophe PLAGNIOL-VILLARD 14d6be37ef imx6q-embedsky-e9: there is not PCIe on this hardware
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-02-19 20:47:52 +01:00
Jean-Christophe PLAGNIOL-VILLARD 4067c245e5 imx6q-embedsky-e9: the debug port is on uart1 not uart4
the uart4 is on the extention header

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-02-19 20:47:52 +01:00
Jean-Christophe PLAGNIOL-VILLARD fbf39b1351 imx_v7_defconfig: enable at least PNG support for splash
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-02-19 20:47:52 +01:00
Antony Pavlov fd0877696d MIPS: add gxemul-malta_defconfig
GXemul supports MIPS Malta but with some limitations.
The most notable problems:

  * PCI-enabled barebox just hangs under GXemul;
  * by default gxemul uses 5Kc processor,
    so we have to force MIPS32R1 processor usage.

To fix these problems the special gxemul-malta_defconfig
is introduced and the board's documentation is updated.

Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-02-16 06:30:57 +01:00
Antony Pavlov 57ab60d383 MIPS: qemu-malta: debug_ll: fix serial port speed
qemu-malta.dts uses clock-frequency = <1843200>,
but debug_ll.h for Malta uses another value.

This patch fixes this inconsistency.

Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-02-16 06:30:57 +01:00
Antony Pavlov c107eb8465 MIPS: qemu-malta_defconfig: set BAUDRATE=38400
MIPS Malta's YAMON PROM monitor uses serial port speed=38400
(see Malta(tm) User's Manual for details).

Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-02-16 06:30:57 +01:00
Andrey Panov 2464c7f7d7 ARM: Rockchip: Add DEBUG_LL based on mach-socfpga
Signed-off-by: Andrey Panov <rockford@yandex.ru>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-02-13 07:21:56 +01:00
Sascha Hauer c0225222c1 ARM: remove unused variable
arm_architecture is unused, remove it.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-02-11 09:50:50 +01:00
Bo Shen 6c2a1c6769 ARM: atmel: at91sam9n12: add subtype support
As the at91sam9n12 series includes at91sam9n12, at91sam9cn11,
at91sam9cn12. So, add subtype to distinguish them.

Signed-off-by: Bo Shen <voice.shen@atmel.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-02-11 09:38:07 +01:00
Bo Shen 34e4f98539 ARM: atmel: sama5d4 xplained: correc env path
Correct the environment path for sama5d4 xplained board.

Signed-off-by: Bo Shen <voice.shen@atmel.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-02-10 10:36:07 +01:00
Antony Pavlov b7120bb88d openrisc: barebox.lds.S: fix BFD format names
Here is Franck Jullien's comment (see
http://lists.infradead.org/pipermail/barebox/2015-February/022259.html):

  > Until now, the official openrisc toolchain was called or32.
  > However, the new one (and maintained one)  is called or1k. So we need
  > to change "elf32-or32" to "elf32-or1k" in barebox.lds.S.

Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Cc: Franck Jullien <franck.jullien@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-02-10 10:35:32 +01:00
Sascha Hauer 4497013f0a ARM: Phytec phyCORE OMAP4460: Split xload defconfigs
The configs grew too big to support both NAND and MMC at the
same time, so split them.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-02-10 09:55:43 +01:00
Wadim Egorov c145c929cb ARM: dts: Add a new compatible type for am335x phytec SOMs
Added a new compatible type for am335x phytec SOMs

  "phytec,am335x-som"

Signed-off-by: Wadim Egorov <w.egorov@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-02-06 08:14:54 +01:00
Wadim Egorov eb47b05c27 ARM: am335x: phyFLEX-AM335x: Split DT and add MLO DT
To support different module variants, this patch splits the phyFLEX DT
in dts and dtsi.

And we are also adding a DT for the MLO, which has all bootable devices
disabled. The bootsource is checked in the board file and only the needed
device is enabled and registered.

Signed-off-by: Wadim Egorov <w.egorov@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-02-06 08:14:54 +01:00
Sascha Hauer 35405138c8 Merge branch 'for-next/socfpga' 2015-02-04 19:09:16 +01:00
Sascha Hauer 2afe398a62 Merge branch 'for-next/raspberry-pi' 2015-02-04 19:09:15 +01:00
Sascha Hauer 1b95290433 Merge branch 'for-next/pxa' 2015-02-04 19:09:15 +01:00
Sascha Hauer 7b0f932bcd Merge branch 'for-next/mxs' 2015-02-04 19:09:15 +01:00
Sascha Hauer ce961e3412 Merge branch 'for-next/misc' 2015-02-04 19:09:15 +01:00
Sascha Hauer a7c92d6c5d Merge branch 'for-next/imx' 2015-02-04 19:09:15 +01:00
Sascha Hauer 96a9807ed7 Merge branch 'for-next/arm' 2015-02-04 19:09:14 +01:00
Sascha Hauer 6844742ad9 Merge branch 'for-next/am335x' 2015-02-04 19:09:14 +01:00
Antony Pavlov e1f025671d ARM: bcm2835: fix checkpatch warning
Here is checkpatch.pl log:

    WARNING: space prohibited between function name and open parenthesis '('
    #134: FILE: arch/arm/mach-bcm2835/core.c:75:
    +void __noreturn reset_cpu (unsigned long addr)

Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-02-04 15:49:59 +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 f72725e352 regulator: add bcm2835 driver
this will allow to handle IP power automatically and not at board level

Mainline kernel need this as they do not have the regulator driver support

as some IP such as USB are not power on at boot

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
Robert Jarzmik d965263d2a ARM: pxa: add pxa25x support
Add support for the PXA25X SoC family, the oldest of the PXA serie.

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
Masahiro Yamada cf71588560 nios2: ignore arch/nios2/cpu/barebox.lds by git
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-02-04 12:51:56 +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
Masahiro Yamada 5020f86af9 blackfin: fix undefined reference with CONFIG_CMD_MAGICVAR
For Blackfin, C symbols are prefixed with '_'.

If CONFIG_CMD_MAGICVAR is enabled for Blackfin, the following error occurs:

commands/built-in.o: In function `do_magicvar':
commands/magicvar.c:(.text+0x3326): undefined reference to `__barebox_magicvar_start'
commands/magicvar.c:(.text+0x332a): undefined reference to `__barebox_magicvar_end'
commands/magicvar.c:(.text+0x332e): undefined reference to `__barebox_magicvar_start'
commands/magicvar.c:(.text+0x3332): undefined reference to `__barebox_magicvar_end'
make: *** [barebox] Error 1

Add '_' to __barebox_magicvar_start and __barebox_magicvar_end,
like the other symbols in this linker script.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-02-02 11:46:31 +01:00
Masahiro Yamada a1b347f24c blackfin: consolidate arch/blackfin/include/asm/linkage.h
Since include/linux/linkage.h includes <asm/linkage.h>, the basic
coding style we should follow is:

 - <linux/linkage.h> should contain default macro defines
 - <asm/linkage.h> can define arch-specific macros and override the
   default ones in <linux/linkage.h>

The arch/blackfin/include/asm/linkage.h has redundant defines that
are already defined in <linux/linkage.h>.
Replace it with the one imported from Linux 3.19-rc6.

Generally, <asm/linkage.h> should not be included directly.
Fix two files to include <linux/linkage.h> instead.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-02-02 11:46:31 +01:00