9
0
Fork 0
Commit Graph

12578 Commits

Author SHA1 Message Date
Sascha Hauer ac81a0d876 Merge branch 'for-next/misc' 2015-03-09 08:30:24 +01:00
Sascha Hauer c3efa8470b Merge branch 'for-next/mips' 2015-03-09 08:30:24 +01:00
Sascha Hauer 696bd38337 Merge branch 'for-next/imx' 2015-03-09 08:30:24 +01:00
Sascha Hauer ac1bffb220 Merge branch 'for-next/fs' 2015-03-09 08:30:24 +01:00
Sascha Hauer 22e42ca3fc Merge branch 'for-next/arm' 2015-03-09 08:30:24 +01:00
Sascha Hauer 6977292a34 fs: rename inode member of struct filep to priv
Because that's what it is. 'inode' will become confusing
once we support real inodes.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-03-09 08:06:41 +01:00
Sascha Hauer 478fb5c3dd ARM: i.MX6: switch to COMMON_CLK_OF_PROVIDER
Use COMMON_CLK_OF_PROVIDER to provide clocks from the device tree.
This needs several changes:
- use the clock number defines from dt-bindings/clock/imx6qdl-clock.h
- register the (previously skipped) gates, because these are bound to
  the consumers
- select COMMON_CLK_OF_PROVIDER

With this we also no longer register the fixed clocks twice.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-03-09 06:34:21 +01:00
Sascha Hauer 2ae785dea1 ARM: i.MX: remove i.MX6 ARM2 board support
This board is an early development sample that was never sold. Remove
support for it. With this the last non device tree i.MX6 board is gone.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-03-09 06:34:20 +01:00
Sascha Hauer 05a1e4bf10 ARM: i.MX5: Do not register fixed clocks twice
When booting with device tree the fixed clocks are registered from
the device tree, so do not register them again in the clock driver.

This also removes the ckih1 and ckih2 clocks which are unused at least
when booting without device tree.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-03-09 06:34:20 +01:00
Sascha Hauer 9b133915f6 PWM: i.MX: register successfully without alias
When a PWM does not have an of alias generate a name from the
base address so that we can register it successfully.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-03-09 06:34:20 +01:00
Sascha Hauer a55c8d806e ARM: i.MX: remove __naked from imx*_barebox_entry
Since the stack is already configured when entering imx*_barebox_entry
we can remove the __naked attribute. This fixes some compilation issues
when some of the imx*_barebox_entry got too complicated to compile without
stack.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-03-09 06:34:20 +01:00
Sascha Hauer e74955c2fd ARM: i.MX: boards: Setup stack before calling imx*_barebox_entry
This allows imx*_barebox_entry to use the stack.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-03-09 06:34:17 +01:00
Sascha Hauer 1629b5835a Merge branch 'for-next/dtc' 2015-03-06 08:34:02 +01:00
Sascha Hauer e9fe7ecc5f Merge branch 'for-next/at91' 2015-03-06 08:33:57 +01:00
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 9524e7d0d7 Merge branch 'for-next/mtd' 2015-03-06 08:33:39 +01:00
Sascha Hauer ea0076fe1a Merge branch 'for-next/dts' 2015-03-06 08:33:33 +01:00
Sascha Hauer ea2153ce86 Merge branch 'for-next/am335x' 2015-03-06 08:33:20 +01:00
Marc Kleine-Budde 7033089ddf environment: envfs_{load, save}: add possibility to call with filename and dirname == NULL
This patch moves fallback to default into the envfs_{load,save} functions.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-03-06 07:43:49 +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
Sascha Hauer ae16aba24b Release v2015.03.0
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-03-06 07:18:44 +01:00
Sascha Hauer 85799d1b75 clk: Treat NULL as dummy clocks
NULL pointers should be treated as dummy clocks as done in the kernel.
Using a not fully filled in clk * array for of_clk_add_provider may result
in NULL clks. When these are passed into the clk framework we should not
crash.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-03-05 15:17:13 +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
Jan Luebbe 12888ae902 scripts/dtc: Update to upstream version 1.4.1
Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-03-05 08:46:05 +01:00
Jan Luebbe c1ab1e22c7 scripts/dtc: import update-dtc-source.sh from kernel v4.0-rc1
The original script was written by Grant Likely <grant.likely@linaro.org>.
The version for barebox also imports some libfdt sources, so that we are
able to compile the fdtget host tool. Also remove the unused non-kconfig
makefiles.

Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-03-05 08:46:05 +01:00
Hubert Feurstein 3d61b7b6a9 led: gpio: add support for default-state dt-property
This patch adds support for the default-state device tree property.

Signed-off-by: Hubert Feurstein <h.feurstein@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-03-04 11:35:50 +01:00
Sascha Hauer e2290aef31 console: Make locally used function static
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-03-04 11:32:59 +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
Lucas Stach 0b6ddeecb5 net: cpsw: prevent stray cache writeback
The cache should be invalidated when transfering ownership of a buffer
to the device. Otherwise the writeback of dirty cache lines can
corrupt the hardware written data.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Tested-by: Jan Weitzel <j.weitzel@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-03-03 08:37:24 +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
Marc Kleine-Budde f3ca81f0e0 of: add no-op functions for of_find_node_by_alias() and of_find_node_by_path_or_alias()
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
Marc Kleine-Budde 58e0e42d8e of: add no-op function for of_register_fixup()
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
Marc Kleine-Budde f6b8bb42ca of/base: fix sparse warning, don't use integer 0 as NULL pointer
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-03-03 08:25:53 +01:00
Marc Kleine-Budde c681e4a45b of_path: of_find_path(): remove unused variable len
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-03-03 08:23:46 +01:00
Marc Kleine-Budde 89fc8c31ff fs: make "offset" parameter of erase() and protect() 64 bit safe
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-03-03 08:23:46 +01:00
Marc Kleine-Budde c961485abf drivers: remove unused function dev_protect()
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-03-03 08:23:46 +01:00