9
0
Fork 0
Commit Graph

4109 Commits

Author SHA1 Message Date
Antony Pavlov 51cc423920 MIPS: dts: qemu-malta.dts: use i2c-gpio for accessing CBUS FPGA I2C bus
Also we can enable m24c02 eeprom chip in dts-file e.g.

    &i2c0 {
            status = "okay";

            eeprom: m24c02@50 {
                    compatible = "spd";
                    reg = <0x50>;
            };
    };

Alas! qemu mips malta spd m24c02 eeprom chip emulation is not perfect:
the block read operation does not work properly.

Here is an example.

If we read eeprom content byte-by-byte then there is no problem:

    barebox:/ for i in 0x08 0x09 0x0a 0x0b 0x0c 0x0d 0x0e 0x0f ;
    > do i2c_read -b 0 -a 0x50 -r $i -c 1 ; done
    0x01
    0x75
    0x54
    0x00
    0x82
    0x08
    0x00
    0x01

Compare this output with content of qemu.git/hw/mips/mips_malta.c:

    static eeprom24c0x_t spd_eeprom = {
        .contents = {
            ...
            /* 00000008: */ 0x01,0x75,0x54,0x00,0x82,0x08,0x00,0x01,

But if we read several bytes at once the we have data corruption:

    barebox:/ i2c_read -b 0 -a 0x50 -r 0x8 -c 8
    0x01 0xff 0xff 0xff 0xff 0xff 0xff 0xff

Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-25 08:34:52 +02:00
Antony Pavlov f21744fba3 MIPS: dts: qemu-malta.dts: enable CBUS FPGA I2C gpio driver
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-24 09:07:06 +02:00
Antony Pavlov c8364cea6f MIPS: malta: enable gpiolib
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-24 09:07:06 +02:00
Antony Pavlov fe2137cfd6 MIPS: add <asm/gpio.h> header file
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-24 09:07:06 +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 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 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 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 b61f924334 ARM: i.MX efika-sb: switch otg port to utmi mode
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-23 09:29:53 +02:00
Sascha Hauer 835819c6b6 ARM: i.MX: remove console= from env files
For i.MX devicetree boards the console= parameter is automatically
generated and can be dropped from the env files. If a file becomes
empty then, remove it.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-23 09:21:10 +02:00
Sascha Hauer b3a667cd84 remove unused boot-menu-add-entry
The boot-menu-add-entry script no longer exists. Remove it from
boot scripts.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-23 09:19:52 +02:00
Sascha Hauer 7aa5486aa0 ARM: imx_v7_defconfig: update
Enable blspec and menutree support which was lost.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-23 09:14:46 +02:00
Antony Pavlov b603e3472e ARM: versatilepb_defconfig: enable devicetree support
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-23 08:45:56 +02:00
Antony Pavlov 72621fddfc ARM: versatile: switch to devicetree support
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-23 08:45:56 +02:00
Antony Pavlov bfdc69adaf ARM: versatile: drop redundant <mach/gpio.h>
The arch/arm/include/asm/gpio.h header file contains

  #ifndef CONFIG_GPIOLIB
  #include <mach/gpio.h>
  #else
  #include <asm-generic/gpio.h>
  #endif

We use CONFIG_GPIOLIB=y for the only mach-versatile
Versatile/PB board so there is no need of <mach/gpio.h>.

Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-23 08:45:55 +02:00
Jan Luebbe 8316f29859 ARM: AM335x: beaglebone: add simple script to change usb current limit
Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-23 08:42:54 +02:00
Jan Luebbe ffa9580561 ARM: AM335x: beaglebone: remove obsolete config
The bootargs are now autogenerated by barebox and the hostname should
not be preconfigured.

Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-23 08:42:54 +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
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
Sascha Hauer 3f0de71d85 ARM: Phytec-phyCORE-imx27: Switch to multiimage support
Tested on the phyCORE-imx27 to boot on NOR and NAND using the
registered update handlers.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-13 06:22:39 +02:00
Sascha Hauer 8c05889ff5 ARM: Phytec-phyCORE-imx27: Register NOR/NAND update handlers
To make barebox_update work on the board.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-13 06:22:39 +02:00
Sascha Hauer 56c00256dd ARM: i.MX bbu: Add update handler for external NOR boot
External NOR boot only requires copying the image to NOR Flash.
This also adds (un)protecting the flash which is required for
NOR Flash.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-13 06:22:39 +02:00
Sascha Hauer 1e7380517b ARM: Phytec-phyCORE-imx27: Register board env during runtime
Register the board specific environment during runtime using
defaultenv_append_directory() to make it available for multi
image support.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-13 06:22:38 +02:00
Sascha Hauer 352ddc86ae ARM: uncompress.c: copy executable to SDRAM if necessary
We used to relocate the executable to the current address. This does
not work when the executable runs from a readonly location like for
example NOR Flash. Test if we run from inside the available memory and
if we do, relocate to the current address as before. Otherwise copy
the executable to the start of memory and relocate to that address.
While at it add some comments to the code.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-13 06:22:35 +02:00
Sascha Hauer 3ce85ca4eb ARM: i.MX53 QSB: Drop board defconfig
imx_v7_defconfig covers the QSB board, no need for a board defconfig.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-12 08:35:09 +02:00
Sascha Hauer b116ad124b ARM: i.MX51 babbage: Drop board defconfig
imx_v7_defconfig covers the babbage board, no need for a board defconfig.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-12 08:35:09 +02:00
Sascha Hauer 61e0928044 ARM: i.MX6 sabrelite: Drop board defconfig
imx_v7_defconfig covers the sabrelite, no need for a board defconfig.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-12 08:35:09 +02:00
Sascha Hauer 747b20641e ARM: i.MX6 sabresd: Drop board defconfig
imx_v7_defconfig covers the sabresd, no need for a board defconfig.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-12 08:35:09 +02:00
Alexander Shiyan 86662f8697 ARM: PCM038: Switch to devicetree probe
This patch removes non-DT support for PCM-038/PCM-970 and switch
to devicetree probe for these targets.

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-12 08:35:09 +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 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
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
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
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 bad06f0a1a ARM: clep7212: Make partition names more generic
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-06 06:35:43 +02:00
Alexander Shiyan f662f9b622 ARM: clps711x: Remove unused UART bit definitions
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-06 06:35:43 +02:00
Alexander Shiyan c029f83899 ARM: clps711x: Prepare common init function to DT support
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-06 06:35:43 +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 3aa17a1e18 PPC: FSL DDR: Fix compiler warning
Fixes:

arch/ppc/boards/freescale-p1022ds/ddr.c: In function 'fsl_ddr_board_info':
arch/ppc/boards/freescale-p1022ds/ddr.c:39:21: warning: assignment discards 'const' qualifier from pointer target type [enabled by default]

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-05 10:17:28 +02:00
Sascha Hauer 0ad84fb2c2 mips: ar9331: Add missing #address-cells/#size-cells properties
SPI nodes need valid #address-cells/#size-cells properties.
Fixes:

Warning (reg_format): "reg" property in /soc/spi@bf000000/m25p80@0 has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
Warning (avoid_default_addr_size): Relying on default #address-cells value for /soc/spi@bf000000/m25p80@0
Warning (avoid_default_addr_size): Relying on default #size-cells value for /soc/spi@bf000000/m25p80@0

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-05 10:16:23 +02:00
Sascha Hauer eb2c63d089 mips: dlink-dir-320: refresh defconfig
Fixes:

arch/mips/configs/dlink-dir-320_defconfig:52:warning: override: reassigning to symbol CMD_DHCP
arch/mips/configs/dlink-dir-320_defconfig:54:warning: override: reassigning to symbol CMD_PING
arch/mips/configs/dlink-dir-320_defconfig:55:warning: override: reassigning to symbol CMD_TFTP
arch/mips/configs/dlink-dir-320_defconfig:64:warning: override: reassigning to symbol FS_TFTP

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-05 10:03:55 +02:00
Sascha Hauer 4550f93fb7 ARM: friendlyarm_mini2440: refresh defconfig
Fixes:

arch/arm/configs/friendlyarm_mini2440_defconfig:38:warning: override: reassigning to symbol CMD_TFTP
arch/arm/configs/friendlyarm_mini2440_defconfig:46:warning: override: reassigning to symbol FS_TFTP

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-05 10:03:10 +02:00
Sascha Hauer e0d9920f40 ARM: MXS: Remove unused variables
Fixes:

arch/arm/boards/crystalfontz-cfa10036/cfa10036.c: In function 'cfa10036_devices_init':
arch/arm/boards/crystalfontz-cfa10036/cfa10036.c:119:9: warning: unused variable 'ret' [-Wunused-variable]
arch/arm/boards/chumby_falconwing/falconwing.c: In function 'falconwing_devices_init':
arch/arm/boards/chumby_falconwing/falconwing.c:287:9: warning: unused variable 'rc' [-Wunused-variable]
arch/arm/boards/imx233-olinuxino/imx23-olinuxino.c: In function 'imx23_olinuxino_devices_init':
arch/arm/boards/imx233-olinuxino/imx23-olinuxino.c:118:9: warning: unused variable 'rc' [-Wunused-variable]

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-05 10:02:04 +02:00
Lucas Stach 08a33804a1 tegra: refresh defconfig
Mainly for Jetson TK1 support, but -next moved
some stuff around. Also enable some filesystems.

Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-05 08:01:15 +02:00
Lucas Stach a2226db2d2 tegra: add NVIDIA Jetson-TK1 board support
Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-05 08:01:15 +02:00
Lucas Stach 77b9a2120c tegra: pmc: add Tegra124 compatible
Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-05 08:01:15 +02:00
Lucas Stach 8d9cbe17d3 pinctrl: tegra: add Tegra124 support
We can reuse the Tegra30 pinctrl driver, as the bit
layout is the same. Just add the pin and drivegroups
and some compile-time magic to avoid bloat.

Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-05 08:01:14 +02:00
Lucas Stach 65c962feb5 tegra: add Tegra124 Kconfig symbol
Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-05 08:01:14 +02:00
Lucas Stach 9a13c92e5a tegra: add architectural timer init
If the bootloader doesn't init the architectural timer
on Cortex A15 Linux falls over when trying to boot.

Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-05 08:01:14 +02:00
Lucas Stach 22920598a5 tegra: setup L2 cache on Tegra124
Set SRAM latency to 3 clock cycles.

Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-05 08:01:14 +02:00
Lucas Stach 08f5fcbad6 tegra: hardcode entry address for main cluster
I don't know why get_runtime_offset fails on T124 yet,
but this is a safe workaround, with the nice side-effect
of fixing second stage barebox loading.

Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-05 08:01:14 +02:00
Lucas Stach 8dc05ab677 tegra: apply cluster switch logic to all SoCs >=T30
Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-05 08:01:14 +02:00
Lucas Stach 566fd492ab tegra: add Tegra124 PLL_X rate setup
Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-05 08:01:14 +02:00
Lucas Stach 983f39f6ca tegra: change cpu internal reset layout for Tegra124
Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-05 08:01:14 +02:00
Lucas Stach 3d6fcedfeb tegra: fix MESLECT clock enable
Don't disable clk to unrelated devices in the process.

Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-05 08:01:14 +02:00
Lucas Stach 3e5f060696 tegra: power up additional partitions on Tegra124
Those 3 are needed to power CPU0 from the CPUG cluster.

Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-05 08:01:14 +02:00
Lucas Stach 3cc59d0e21 tegra: disable IDDQ for PLL_X on Tegra124
This is an additional power down control.

Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-05 08:01:14 +02:00
Lucas Stach acef7b8f3d tegra: add Tegra124 and AS3722 PMIC to lowlevel-dvc
Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-05 08:01:14 +02:00
Lucas Stach 858e703f8c tegra: recognize Tegra124 in common initcalls
Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-05 08:01:14 +02:00
Lucas Stach e11e7d9a15 tegra: recognize Tegra124 in maincomplex startup
Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-05 08:01:14 +02:00
Lucas Stach c8e61fa978 tegra: lowlevel: fix ODMdata fetch on Tegra124
Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-05 08:01:14 +02:00
Lucas Stach ff5f8ef49a tegra: add Tegra124 id to lowlevel functions
Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-05 08:01:14 +02:00
Lucas Stach 7819300000 tegra: lowlevel: setup an early stack
Even the lowlevel functions are growing to a
size where having a stack seem beneficial.

Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-05 08:01:14 +02:00
Lucas Stach a41187b2e9 tegra: pmc: add command to get into RCM
In RCM aka recovery mode the BootROM waits for a
usbloader to take over control. On most boards this
is triggered by holding a physical switch which may
be inconvinient at times. Add a command to switch
into RCM from software.

Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-05 08:01:14 +02:00
Sascha Hauer cd667b7468 Merge branch 'for-next/uemd' 2014-06-04 21:04:28 +02:00
Sascha Hauer ad9f56888f Merge branch 'for-next/tegra' 2014-06-04 21:04:28 +02:00
Sascha Hauer c9bbafe1dc Merge branch 'for-next/samsung'
Conflicts:
	arch/arm/configs/friendlyarm_mini2440_defconfig
2014-06-04 21:04:24 +02:00
Sascha Hauer b7a7b02af5 Merge branch 'for-next/openrisc' 2014-06-04 21:04:06 +02:00
Sascha Hauer 7ccfe4d3a0 Merge branch 'for-next/omap'
Conflicts:
	arch/arm/configs/am335x_beaglebone_defconfig
	arch/arm/configs/am335x_defconfig
2014-06-04 21:04:04 +02:00
Sascha Hauer 6331e58a2c Merge branch 'for-next/misc'
Conflicts:
	commands/devinfo.c
2014-06-04 21:03:36 +02:00
Sascha Hauer 4c37b77af4 Merge branch 'for-next/mips'
Conflicts:
	arch/mips/configs/dlink-dir-320_defconfig
2014-06-04 21:03:28 +02:00
Sascha Hauer 6ec2780419 Merge branch 'for-next/imx'
Conflicts:
	arch/arm/configs/tx25stk5_defconfig
2014-06-04 21:01:40 +02:00
Sascha Hauer 1022dfecfb Merge branch 'for-next/iim' 2014-06-04 21:01:17 +02:00
Sascha Hauer 2d13b034a2 Merge branch 'for-next/doc' 2014-06-04 21:01:16 +02:00
Lucas Stach 999802c14a ARM: hummingboard: add barebox update handler
It wasn't hard to find the right spot to copy the image
to before, but this makes it a bit more explicit.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-04 21:00:55 +02:00
Sascha Hauer bb662e2474 ARM: i.MX: iim: Add regulator support
The voltage for programming the fuses is external to the SoC and
on some boards this is controllable with a regulator, so add regulator
support to the iim driver.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-04 20:57:28 +02:00
Sascha Hauer cf32bf77de ARM: i.MX: iim: provide a MAC address convenience variable
Allow to read/write the registered MAC addresses in the iim
module directly via a device parameter.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-04 20:57:28 +02:00
Sascha Hauer f321ec1699 ARM: i.MX: iim: make fuse blowing work on i.MX5
The i.MX5 iim has an additional bit in the CCM module which
enables the supply. Add support for it.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-04 20:57:28 +02:00
Sascha Hauer e315ea6f7d ARM: i.MX: iim: don't make detour over cdev API
imx_iim_read is a iim internal function, so access the
internal functions rather than using the cdev API.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-04 20:57:28 +02:00
Sascha Hauer 310c20d927 ARM: i.MX: iim: move static variables into driver struct
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-04 20:57:28 +02:00
Sascha Hauer c9f2e96c61 ARM: i.MX: iim: use dev_* for messages
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-04 20:57:28 +02:00
Sascha Hauer d3feff68e2 ARM: i.MX: iim: pass private data struct to imx_iim_fuse_sense
To make all struct members available and to reduce the argument
count.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-04 20:57:27 +02:00
Sascha Hauer bb9e3842b2 ARM: i.MX: iim: pass private data struct to imx_iim_fuse_blow
To make all struct members available and to reduce the argument
count.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-04 20:57:27 +02:00
Sascha Hauer eec34f2a08 ARM: i.MX: iim: register iim device
With devicetree devicenames start with numbers. Parameters on these
devices are not accessible since variables can't start with numbers.
Register a logical 'iim' device which makes the permanent_write_enable
and explicit_sense_enable parameters accessible again.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-04 20:57:27 +02:00
Sascha Hauer fd56e95b18 ARM: i.MX: iim: Add namespace to functions
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-04 20:57:27 +02:00
Sascha Hauer c50bdcf71e ARM: i.MX: iim: introduce private data struct
Instead of duplicating data shared between the banks in a bank
specific struct, use a iim struct and a bank struct.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-04 20:57:24 +02:00
Lucas Stach 7b8f46983e tegra: pmc: add Tegra30 compatible
Allows reset command to work on T30.

Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-04 07:21:18 +02:00