9
0
Fork 0
Commit Graph

11285 Commits

Author SHA1 Message Date
Sebastian Hesselbarth 02e14a60ab pinctrl: mvebu: add pinctrl drivers for Dove and Kirkwood
This adds pinctrl drivers for Marvell Dove and Kirkwood SoCs based
on a common driver stub. This design is based on the corresponding
Linux driver and should ease additional drivers for Marvell Armada
SoCs.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-26 07:57:54 +02:00
Sebastian Hesselbarth 8c4d121201 ARM: mvebu: determine SoC id and revision from PCIe nodes
Marvell MVEBU SoC id and revision can be read out from any PCIe port
registers. This adds corresponding code to read out id and revision
and provides a helper function for drivers to use it.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-25 08:44:49 +02:00
Sebastian Hesselbarth 2042d9130b ARM: mvebu: select PCI specific DT bus translator
Marvell MVEBU DT files contain some nodes mapped to PCI address space,
add the translator Kconfig to be able to iomap those node's addresses.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-25 08:44:49 +02:00
Sebastian Hesselbarth f2b9c6b6d4 drivers: of: import PCI bus specific translator
DT PCI address translation needs a special handling. This imports
the corresponding translator into of/address.c but makes it selectable
through Kconfig. Compared to the Linux version, we don't check for
struct device_node's type which does not exist on Barebox but directly
for device_type property set to "pci".

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-25 08:44:49 +02:00
Sebastian Hesselbarth 74d2423dbc ARM: mvebu: remove dtb Makefile entries
MULTI_PBL images have a built-in dtb by default. With all MVEBU
SoCs converted to MULTI_PBL images, get rid of the extra Makefile
rules for appended dtbs.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
2014-06-24 08:25:43 +02:00
Sebastian Hesselbarth 98701a8df4 ARM: mvebu: convert to multiple board selection
With all SoCs converted to DT based probing, select
PBL_MULTI_IMAGES support and get rid of SoCs Kconfig
choice to allow multiple boards to be selected.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
2014-06-24 08:25:43 +02:00
Sebastian Hesselbarth 2450676f61 ARM: mvebu: convert PlatHome Openblocks AX3-4 to PBL_MULTI_IMAGES
This converts Marvell Armada XP based PlatHome Openblocks AX3-4
to PBL_MULTI_IMAGES. A DT overlay is added to keep possible
barebox-specific changes separated and added to lowlevel
board init.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
2014-06-24 08:25:43 +02:00
Sebastian Hesselbarth 3191033979 ARM: mvebu: convert Marvell Armada XP GP to PBL_MULTI_IMAGES
This converts Marvell Armada XP based Marvell Armada XP GP
to PBL_MULTI_IMAGES. A DT overlay is added to keep possible
barebox-specific changes separated and added to lowlevel
board init.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
2014-06-24 08:25:43 +02:00
Sebastian Hesselbarth 83a4437968 ARM: mvebu: convert Globalscale Mirabox to PBL_MULTI_IMAGES
This converts Marvell Armada 370 based Globalscale Mirabox
to PBL_MULTI_IMAGES. A DT overlay is added to keep possible
barebox-specific changes separated and added to lowlevel
board init.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
2014-06-24 08:25:43 +02:00
Sebastian Hesselbarth f73625b6a1 ARM: mvebu: convert USI Topkick to PBL_MULTI_IMAGES
This converts Marvell Kirkwood based USI Topkick to
PBL_MULTI_IMAGES.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
2014-06-24 08:25:43 +02:00
Sebastian Hesselbarth 9fe5cd5e29 ARM: mvebu: convert Globalscale Guruplug to PBL_MULTI_IMAGES
This converts Marvell Kirkwood based Globalscale Guruplug to
PBL_MULTI_IMAGES.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
2014-06-24 08:25:42 +02:00
Sebastian Hesselbarth 198eb8bf50 ARM: mvebu: convert Armada 370/XP devices to be probed from DT
With Armada 370/XP DT files available, convert Armada 370/XP SoC init
to register basic devices from DT only. Makefile targets for dtbs will
be removed again as soon as MULTI_PBL is available.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
2014-06-24 08:25:42 +02:00
Sebastian Hesselbarth 8cd9edec98 ARM: mvebu: convert Kirkwood devices to be probed from DT
With Kirkwood DT files available, convert Kirkwood SoC init
to register basic devices from DT only. Makefile targets for
dtbs will be removed again as soon as MULTI_PBL is available.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
2014-06-24 08:25:42 +02:00
Sebastian Hesselbarth a3b473e0d5 ARM: mvebu: sort pbl image target by board
This reorders images/Makefile.mvebu targets by board to ease integration
of new boards.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
2014-06-24 08:25:42 +02:00
Sebastian Hesselbarth 75b9860bbb ARM: dts: sort pbl entries by alphabet
Clean up pbl Makefile entries, that are out of alphabetical order.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
2014-06-24 08:25:40 +02:00
Sebastian Hesselbarth 7267215538 clocksource: mvebu: split initialization for Armada 370/XP
Timers found on Marvell Armada 370 and XP require different setup.
While timer clock on Armada 370 can be derived from a divided
reference clocks, Armada XP always uses a 25MHz reference.

This also updates compatibles to destinguish timers for both SoCs
and fixes some whitespace issues on defines.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
2014-06-24 08:25:04 +02:00
Sebastian Hesselbarth 7e750b691c ARM: mvebu: add 25MHz fixed clock for Armada XP
Armada XP timers can be run from a 25MHz fixed clock. Add the corrsponding
clock and clock alias to SoC setup.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
2014-06-24 08:25:04 +02:00
Sebastian Hesselbarth 5be6482b48 clk: mvebu: fix Armada 370 TCLK frequencies
This fixes Armada 370 TCLK frequencies that are off by
a factor of 10.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
2014-06-24 08:25:03 +02:00
Sebastian Hesselbarth 524bb1a287 ARM: mvebu: move lowlevel code to lowlevel.c
mach-mvebu has two files containing lowlevel code. Consolidate both into
mach-mvebu/lowlevel.c. Also put the now empty mach-mvebu/common.c into
non-lowlevel obj-y as it will be used for common non-lowlevel code later.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
2014-06-24 08:25:03 +02:00
Sebastian Hesselbarth 6656115566 ARM: mvebu: delete unused mach/mvebu.h
This removes the stale mach/mvebu.h include as there is no user of it.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
2014-06-24 08:25:03 +02:00
Sebastian Hesselbarth ddc20d1537 ARM: mvebu: set default TEXT_BASE by SoC
All current boards use the same TEXT_BASE, therefore set the default
TEXT_BASE by SoC instead of by board.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
2014-06-24 08:25:03 +02:00
Sebastian Hesselbarth 90256ab908 ARM: mvebu: set model and default hostname for Dove
Set default model and hostname based on SoC name.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
2014-06-24 08:25:03 +02:00
Sascha Hauer 9313920df6 dts: update to v3.16-rc1
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-19 09:41:51 +02:00
Sascha Hauer 83e875e1f4 dts: update to v3.15-rc8
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-19 09:41:51 +02:00
Sascha Hauer 9b715c6a44 dts: update to v3.15-rc7
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-19 09:41:51 +02:00
Sascha Hauer ff3085135f dts: update to v3.15-rc6
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-19 09:41:51 +02:00
Sascha Hauer 6e64f44b23 ARM: dts: i.MX51 babbage: remove unused hoggrp
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-19 09:41:51 +02:00
Antony Pavlov 636052ce1d commands: gpio_direction_output: add missed VALUE parameter to help message
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-17 20:35:40 +02:00
Philipp Zabel cfd028800e ARM: AM335x: Beaglebone: Fix memory setup for Beaglebone black
Commit 0d6392de4a introduced a stripped
down device tree used for both white and black Beaglebone variants
that included the 256 MiB memory node from am335x-bone-common.dtsi.
This leads to the following error in the MLO:

    mmu: Critical Error: Can't request SDRAM region for ttb at 9fff4000

This patch removes the (for the Beaglebone black) invalid memory size
from the common device tree and instead registers the memory bank
manually in the board file.

Signed-off-by: Philipp Zabel <philipp.zabel@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-17 20:33:53 +02:00
Herve Codina 3ee907d89e mtd: use long long dev param for size
Signed-off-by: Herve Codina <Herve.CODINA@celad.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-13 06:27:34 +02:00
Herve Codina f2e86a2964 param: Add support for long long read only dev param
Signed-off-by: Herve Codina <Herve.CODINA@celad.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-13 06:27:34 +02:00
Sascha Hauer aca00bb719 ARM: Phytec-phyCARD-imx27: Add missing compatible check
Only run pca100 code when it's actually a pca100. While at it
consolidate two initcalls.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-12 08:33:55 +02:00
Sascha Hauer 693b92d58a Merge branch 'pu/mii-tool' 2014-06-11 08:48:45 +02:00
Sascha Hauer 40a1897e88 mips: Fix dtb build rules
Add intermediate .S files to .SECONDARY. Otherwise make deletes them
and regenerates them each build.
Also remove KBUILD_DTBS since the make system descends in dts/ anyway.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-11 08:48:39 +02:00
Sascha Hauer 7eb8f2a59c mii-tool: Fix gigabit advertise / link partner ability mixup
bmcr2 contains the gigabit advertise bits and lpa2 contains the gigabit
link partner ability bits, not the other way round.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-11 08:47:40 +02:00
Sascha Hauer e5a0223b9e mii-tool: Fix gigabit link test
media_list tests for gigabit phys like this:

if (mask & BMCR_SPEED1000)

mask does not contain the value of the BMCR register though, so the
test is completely bogus. Test for mask2 instead which is only
nonzero when the phy has gigabit capabilities.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-11 08:47:40 +02:00
Sascha Hauer 68376f82e8 mii-tool: Fix string length
media_list writes into a static string. Worst case length of this string
is 125 bytes, but the function only allocates 100 bytes. Use 256 bytes which
is long enough for some extensions.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-11 08:47:40 +02:00
Antony Pavlov 8e89bc594a treewide: remove address of the Free Software Foundation
The FSF address has changed; The FSF site says that
address is

  Free Software Foundation
  51 Franklin Street, Fifth Floor
  Boston, MA 02110-1301
  USA

(see http://www.fsf.org/about/contact/)

Instead of updating it each time the address changes,
just drop it completely treewide.

Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-11 08:35:25 +02:00
Sascha Hauer 70579ca94f mtd: partition: implement lock/unlock
CFI Nor flashes need lock/unlock which is not implemented for partitions.
Fix this.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-10 13:55:23 +02:00
Sascha Hauer 02fed023e1 mtd: partition: Fix multi eraseregion chips
The current code counts the eraseregions a new partition spans and
sets the partitions number of eraseregions accordingly, but the code
forgets to allocate and fill in the eraseregions for the partition
mtd device. This makes the erase operation crash with a NULL pointer
exception.
This patch fixes this with the same approach the kernel uses: Set
the number of eraseregions to 1 unconditionally and the eraseregion
size to the maximum of the eraseregions found in the partition.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-10 13:52:03 +02:00
Antony Pavlov 436ea81f52 MIPS: dts: add .gitignore for generated files
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-10 09:08:57 +02:00
Antony Pavlov 6af1781bbb make .gitignore files visible to git
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-10 09:08:57 +02:00
Herve Codina d2d058365c mtd: fix mtd erasesize
Set mtd erasize using max erasesize from erase regions

Signed-off-by: Herve Codina <Herve.CODINA@celad.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-10 08:38:39 +02:00
Herve Codina 4d032fd6fa mtd: Fix writesize parameter value
Signed-off-by: Herve Codina <Herve.CODINA@celad.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-10 08:38:21 +02:00
Sascha Hauer 811a79e07e Merge branch 'pu/warnings' 2014-06-06 06:37:09 +02:00
Alexander Shiyan b085ae5e64 ARM: dts: Remove orphaned i.MX27 DT template
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-06 06:36:38 +02:00
Alexander Shiyan 905d36b841 2048: Reset score on startup
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-06 06:33:53 +02:00
Sascha Hauer 0d6392de4a ARM: AM335x: Beaglebone: Use stripped down devicetree for MLO
The beaglebone white and black have different devicetrees. Both
get linked into the MLO which makes it too big. Use a devicetree
generated from am335x-bone-common.dtsi which both board variants
can share. This reduces the binary size by about 30k.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-05 12:09:11 +02:00
Sascha Hauer 13eb0229c1 mips: Add builtin dtb to dtb-y
Otherwise a rebuild of the dtb file is triggered each build.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-05 10:21:42 +02:00
Sascha Hauer 68ad2e4daa gui: IMAGE_RENDERER does not depend on VIDEO
Image renderer may not be particularly useful without framebuffer
support, but technically it does not depend on VIDEO. Fixes:

warning: (CMD_SPLASH) selects IMAGE_RENDERER which has unmet direct dependencies (VIDEO)

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-05 10:18:34 +02:00