9
0
Fork 0
Commit Graph

12198 Commits

Author SHA1 Message Date
Ezequiel Garcia 9a026a2efa net: phy: Support Marvell 88EE1545 PHY
This commit adds support for Marvell's 88E1545 PHY chip. In particular, this
allows to support QSGMII interfaces.

Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-11 14:59:43 +01:00
Ezequiel Garcia d2731007bb net: phy: marvell: Fix array identation
Just a cosmetic clean-up to fix the indentation of the entries
in the phys array.

Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-11 14:59:43 +01:00
Ezequiel Garcia 6638760c22 ARM: mvebu: Enable PUP register
As reported by Sebastian, we need to enable this explicitly for the
Tx clock on RGMII. While here, let's enable all the other peripherals.

Although this is documented to be required only for Armada XP SoC,
it has been found to be harmless on Armada 370, so we do it unconditionally
to simplify the code.

Reported-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Acked-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-11 14:59:43 +01:00
Alexander Shiyan 9a4cb25a39 treewide: Reuse init_clock() return value for clocksource drivers
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-10 08:42:19 +01:00
Sascha Hauer abf9c94b53 command: memset: Fix argument order in help text
memset takes ADDR DATA COUNT just like the C function, not
ADDR COUNT DATA.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-10 08:00:46 +01:00
Thomas Petazzoni edbd3a6ecf pci: mvebu: Fix uninitialized variable in mvebu_get_target_attr()
This is the same fix that was applied to the Linux kernel in commit
56fab6e18944 (PCI: mvebu: Fix uninitialized variable in
mvebu_get_tgt_attr()).

Fixes: 5a9ba98 ("pci: mvebu: Add PCIe driver")
Signed-off-by: Uwe Kleine-König <uwe@kleine-koenig.org>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-10 07:13:19 +01:00
Uwe Kleine-König 42bc1ac850 mtd: nand_orion: remove unused goto label
This fixes the following warning:

	drivers/mtd/nand/nand_orion.c: In function ‘orion_nand_probe’:
	drivers/mtd/nand/nand_orion.c:145:1: warning: label ‘no_res’ defined but not used [-Wunused-label]

Fixes: 1a215f5 ("nand: Add Marvell Orion NAND driver")
Signed-off-by: Uwe Kleine-König <uwe@kleine-koenig.org>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-10 07:13:18 +01:00
Sascha Hauer 10a663b4ba ARM: i.MX6 GuF Santaro: Fix SD cd/wp gpios
The gpios are plain wrong, use the correct ones.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-07 10:33:39 +01:00
Jan Luebbe ea5abfb5c1 of: use OFTREE_MEM_GENERIC for the sandbox
Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-07 08:01:48 +01:00
Jan Luebbe 0ae26a7ea4 sandbox: avoid symbol conflict for fstat
Recently, a fstat function was added to barebox. Redefine it as usual
to avoid problems for the sandbox. This fixes loading files into the
sandbox.

Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-07 08:01:28 +01:00
Lucas Stach 34828e0077 blspec: fix incompatible pointer type warning
The warning is correct in that we pass in size_t instead
of int. As we are not interested in the size of the
property at this point, just remove the assignment.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-07 08:00:29 +01:00
Lucas Stach 784b352aee arm: mach-imx: fix Eukrea CPUIMX51 Kconfig string
Was accidently preplaced by the Karo-TX 51 string,
restore the previous state.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-07 07:58:31 +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
Lucas Stach 67666f90eb ARM: implement recommended WAR for errata 709718
ARM Cortex A8 errata 709718:
"Load and store operations to shared device memory
regions may not complete in program order"

We implement the recommended workaround in the bootloader
as it must be applied before enabling the MMU for the
first time.

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 a3a0dba450 ARM: i.MX6 GuF Santaro: Make edt touchscreen compatible more specific
The compatible string officially merged in the kernel is edt,edt-ft5206,
not edt,edt-ft5x06.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-07 07:53:57 +01:00
Sascha Hauer c91c9c923a ARM: i.MX6 GuF Santaro: Add simple-panel support
We don't know the name and vendor of the panel and since the
Kernel simple panel driver does not allow videomodes it's
just "unknown,the-display-on-the-garz-fricke-santaro".

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-07 07:51:55 +01:00
Sascha Hauer 1b88af18a7 ARM: i.MX6 GuF Santaro: Fix phy clock
Use external phy clock so that the kernel configures GPR1 bit 21
correctly.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-06 17:16:14 +01:00
Sascha Hauer 380813ff48 Documentation: Add GuF Santaro documentation
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-06 12:37:02 +01:00
Sascha Hauer 2a2ebe0c69 ARM: i.MX6: GuF Santaro: Use emmc boot1 for storing the environment
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-06 12:23:27 +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 32e879f0a3 globalvar: Add support for printing all global variables
This could previously only be done with 'devinfo global'. While
this is still possible this adds a more direct access via the
globalvar command. This variant also adds a '*' in front of
the variable if the corresponding non volatile variable exists.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-06 12:23:12 +01:00
Sascha Hauer b25d333493 Add defaultenv command
This adds a command to explicitly restore the environment (or
parts thereof) from the default environment.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-06 12:23:12 +01:00
Sascha Hauer 837e517669 cp: Add recursive copy
This adds the -r option to the cp command.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-06 10:58:55 +01:00
Sascha Hauer 9f11887009 libfile: Add copy_recursive
To recursively copy a directory tree.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-06 10:58:55 +01:00
Sascha Hauer 3249006a2f Add support for non volatile variables
This adds (back) support for non volatile variables. Non volatile
variables are variables which are stored in the environment over
reboot. They are used in the same way as the global variables, but
with a 'nv' command and device. The variables are stored under
/env/nv/, one variable per file. Adding a nv variable automatically
adds a global variable with the same name. Changing a nv variable
also changes the same global variable, but not the other way round.
This allows for example to configure the username as:

nv user=sha; saveenv

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-06 10:58:54 +01:00
Sascha Hauer fe39e8aadc magicvar: Add support for dynamically added magicvars
Add support to add a new magicvar using the magicvar command.
This is useful for magicvars assigned and used only in the
environment.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-06 10:58:54 +01:00
Sascha Hauer 70e718baa1 environment: Only save changes to the defaultenv
Instead of storing the complete files with a 'saveenv' command
only store the files that have changes to the default environment.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-06 10:58:54 +01:00
Sascha Hauer eb3ef18c8c environment: refactor saveenv
Collect all files in a list first and iterate over the list
when creating the actual environment image. Makes the next
patches easier.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-06 10:58:54 +01:00
Sascha Hauer f9ced5832c environment: remove unused variable
fd is unused, remove it.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-05 17:10:54 +01:00
Sascha Hauer 4729b4ba09 environment: drop unnecessary casts
No Need to cast void pointers.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-05 17:10:54 +01:00
Sascha Hauer 592d35a47c Merge branch 'for-next/xz' 2014-11-05 15:47:39 +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
Sascha Hauer a407a4ddaa Merge branch 'for-next/mips' 2014-11-05 15:47:39 +01:00
Sascha Hauer 68d2850f86 Merge branch 'for-next/led' 2014-11-05 15:47:38 +01:00
Sascha Hauer b7bfe42668 Merge branch 'for-next/imx' 2014-11-05 15:47:38 +01:00
Sascha Hauer da1a9005c2 Merge branch 'for-next/fs' 2014-11-05 15:47:38 +01:00
Sascha Hauer 8a55a7ddf1 Merge branch 'for-next/dts' 2014-11-05 15:47:37 +01:00
Sascha Hauer 18ded420f7 Merge branch 'for-next/am335x' 2014-11-05 15:47:37 +01:00
Sascha Hauer ab51604a66 Release v2014.11.0
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-05 15:05:11 +01:00
Zahari Doychev f95ce0fff0 common: fix mbr filetype detection
Sometimes mbr is erroneously recocognised as FAT partion. Due to this the mbr
partition parser is not being called and the partitions on the media are not
detected. This patch should  fix the problem. The checking is done as in the
linux kernel.

I have seen the problem using usb sticks. Although partitioning and formatting
them under linux. The file system type field in the mbr remains there which
causes the wrong detections as FAT32 type and not as mbr.

Signed-off-by: Zahari Doychev <zahari.doychev@linux.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-05 14:53:28 +01:00
Sascha Hauer 6aaba64b0c commands: implement 'cmp' command
This command compares two files. It does not show the differences,
it only returns successfully if both files are identical and with
an error if they differ.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-04 12:36:19 +01:00
Sascha Hauer ccb2816477 Add xz decompression support
This adds xz decompression support from the kernel. Both compressing
the barebox binary with xz and decompressing xz files on the commandline
is supported.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-04 12:18:55 +01:00
Lucas Stach c202b7c8d9 clk: tegra: don't enable UART clocks by default
Now that we are registering a proper driver for the
UARTs we no longer need to enable the clocks unconditionally.

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 566c1630c3 tegra: remove custom UART setup
The config option doesn't make any sense anymore
when building a multiimage barebox. With a proper
DT built into the image we don't need the ODMdata
mechanism to find the debug UART anymore.

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 b5ac88e8f6 serial: ns16550: add Tegra support
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 2c779cbe97 serial: ns16550: enable clock if available
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