9
0
Fork 0
Commit Graph

10864 Commits

Author SHA1 Message Date
Sascha Hauer 6bef4dd595 dts: update to v3.15-rc3
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-05-05 10:03:29 +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 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
Sascha Hauer a115d5f943 serial: ns16550: omap: set register shift from code
The upstream dts files do not contain the register shift. As
we have Omap specific init code anyway we can just set the register
shift from there instead of relying on the devicetree properties.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-28 09:08:46 +02:00
Sascha Hauer 00ce25c6dc Add devicetree source files as of Linux-3.15-rc2
This adds the Linux dts files to barebox. The dts files are
generated from Ian Campbells device-tree-rebasing.git:

git://xenbits.xen.org/people/ianc/device-tree-rebasing.git

The dts are found in dts/ in the barebox repository and
will be updated from upstream regularly, probably for each upstream
-rc.

To keep the synchronization with upstream easy no changes to
the original files are allowed under dts/. Instead changes to
upstream dts files will be done using overlays in arch/$ARCH/dts/.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-28 09:08:46 +02:00
Silvio Fricke 0af79fbb67 make: fix searchpath of generated autoconf.h
If barebox is builded out-of-tree we don't find the autogenerated
autoconf.h because we search in the srctree.

With this patch we don't get this error message:

cc1: fatal error: /[...]/barebox/include/generated/autoconf.h: No such file or directory

Signed-off-by: Silvio Fricke <silvio.fricke@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-23 12:14:21 +02:00
Antony Pavlov 877a50c599 commands: loady: fix Y-Modem/G option name in help message
Actually loady command uses '-g' option for Y-Modem/G mode
selection; see loady() function:

    while ((opt = getopt(argc, argv, "b:t:g")) > 0) {
        switch (opt) {
    ...
        case 'g':
            is_ymodemg = 1;
            break;

By mistake help message show '-y' option for Y-Modem/G mode
selection.

This patch fixes the problem.

Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-23 11:19:51 +02:00
Owen Kirby 7311cc9bd2 Fix AT91 UDC driver on boards without vbus.
From 4ea2bd2e1ca18136d7cfd61643bc8d8187b1495f Mon Sep 17 00:00:00 2001
From: Owen Kirby <osk@exegin.com>
Date: Wed, 16 Apr 2014 17:45:18 -0700
Subject: [PATCH] Fix AT91 UDC driver on boards without vbus.

While porting Barebox to one of our boards, we found that the AT91 UDC driver
will fail to connect to USB hosts, and will spam the console with errors if
the VBUS pin isn't connected.

Signed-off-by: Owen Kirby <osk@exegin.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-23 09:24:06 +02:00
Lucas Stach b7f627bb34 commands: uimage: remove redundant error message
uimage_verify already prints an error message if the CRC
is wrong. Romove the never reached redundant message in
the caller.

Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-23 09:21:17 +02:00
Lucas Stach 4ab9051bd3 don't cast negative error codes to unsigned size_t
The cast prevents us from doing proper error checking.

Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-23 09:21:17 +02:00
Sascha Hauer 521ffee526 video: imx-ipu-v3: remove unneeded 'dmfc' check
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Suggested-by: Fabio Estevam <festevam@gmail.com>
2014-04-23 09:19:44 +02:00
Lucas Stach 3e74fd9d05 video: displaytimings: remove two broken error messages
The error messages would dereference the just checked NULL
ptr. As those messages don't add much value without further
info just remove them.

Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-23 09:05:52 +02:00
Lucas Stach 4d5ad7c9c6 imx-image: don't leak file handle
Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-23 09:05:52 +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
Sascha Hauer e6410cd9c4 devfs-core: return new cdev also for mtd partitions
__devfs_add_partition returns the newly created cdev, but in case
of mtd partitions it accidently returns 0. Fix this.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-09 22:27:21 +02:00
Sascha Hauer 80bfa0b7cb of_gpio: return error if no device found
of_get_named_gpio_flags used to return 'ret' when no device
is found, but 'ret' is zero here. Return an error instead.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-09 22:26:26 +02:00
Sascha Hauer 55fb660e0b loadenv: detect truncated environment files
Properly detect when an environment file is truncated. This can happen
when a previous saveenv failed because the environment partition is too
small.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-09 17:00:37 +02:00
Sascha Hauer aa49d86b2d saveenv: Properly detect write errors
The return value check of the write call is completely bogus. We
check if we have written at minimum sizeof(struct envfs_super) bytes
instead of all bytes. Properly check for all bytes written instead
and allow write to write less bytes than requested.
Do not use write_full because this file is compiled for userspace
aswell.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-09 17:00:29 +02:00
Sascha Hauer 8d0b6dd410 loadenv: ignore -ENOENT when removing /env
With the -s option loadenv first removes /env. Ignore it when this
directory does not exist.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-09 17:00:24 +02:00
Sascha Hauer 00e4664675 unlink_recursive: return negative error value
In case of an error unlink_recursive returns errno which is positive.
Return -errno instead.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-09 09:36:34 +02:00
Sascha Hauer 7b8779541f fb: Fix use of unitialized variable
'ret' is only initialized when info->fbops->fb_activate_var exists, so
only use it in this case.

Reported-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-08 08:37:30 +02:00
Alexander Shiyan 0530a2ea8f spi: i.MX: Fix direction for CS GPIOs
Direction for CS GPIOs (for some targets) is undefined.
This patch fixes this issue.

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-08 08:20:27 +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
Sascha Hauer 0a5529d0ed Merge branch 'for-next/ppc' 2014-04-04 10:06:22 +02:00
Sascha Hauer 149e9d8121 Merge branch 'for-next/mtd' 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 a5c3b05b4d Merge branch 'for-next/menutree' 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 a5a82ca2cd Merge branch 'for-next/boot' 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 1273cc2d47 param: Add dev_add_param_mac
This adds a convenience function to register a MAC address device
parameter. The only current user is converted to use it.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-04 09:04:31 +02:00
Sascha Hauer 07fc511576 Release v2014.04.0
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-04 08:59:31 +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
Sascha Hauer effb814306 ARM: i.MX53 QSB: Remove wrong return
For a version 1.0 board the rest of loco_late_init should be executed
to completely configure the board.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-04 08:46:47 +02:00
Sascha Hauer 5dcb117e82 mtd: omap gpmc: Turn debug message into dev_dbg
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-04 08:40:00 +02:00
Sascha Hauer d70c5a3837 ARM: i.MX6 Sabrelite: Fix ethernet
The board code does a phy reset. This implicitly requests the phy reset
gpio. This gpio is also registered in the devicetree as phy reset gpio,
so the fec driver probe can't request the gpio and bails out with -EBUSY.
Fix this by freeing the phy reset gpio in the board code. While at it use
gpio_request_array for the gpios.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-03 15:36:02 +02:00
Sascha Hauer 10385d70df ARM: i.MX6 Phytec phyFLEX: Add Nand update support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-03 07:56:29 +02:00
Sascha Hauer 964966be6a ARM: i.MX6: Add Nand boot bbu handler
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-03 07:56:25 +02:00