summaryrefslogtreecommitdiffstats
path: root/arch
Commit message (Collapse)AuthorAgeFilesLines
* MIPS: ritmix-rzx50_defconfig: enable gpio stuffAntony Pavlov2014-06-271-13/+15
| | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MIPS: dts: jz4755.dtsi: add gpioAntony Pavlov2014-06-271-0/+42
| | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MIPS: XBurst: use gpiolibAntony Pavlov2014-06-271-0/+1
| | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MIPS: mach-ath79: drop extra 'select HAVE_CLK'Antony Pavlov2014-06-251-1/+0
| | | | | | | | We already have 'select COMMON_CLK' so 'select HAVE_CLK' is redundant. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MIPS: qemu-malta_defconfig: enable gpio & i2c stuffAntony Pavlov2014-06-251-28/+32
| | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MIPS: dts: qemu-malta.dts: use i2c-gpio for accessing CBUS FPGA I2C busAntony Pavlov2014-06-251-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* MIPS: dts: qemu-malta.dts: enable CBUS FPGA I2C gpio driverAntony Pavlov2014-06-241-0/+7
| | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MIPS: malta: enable gpiolibAntony Pavlov2014-06-241-0/+1
| | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MIPS: add <asm/gpio.h> header fileAntony Pavlov2014-06-241-0/+6
| | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: i.MX efika-sb: switch otg port to utmi modeSascha Hauer2014-06-231-1/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: imx_v7_defconfig: updateSascha Hauer2014-06-231-41/+43
| | | | | | Enable blspec and menutree support which was lost. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: AM335x: Beaglebone: Fix memory setup for Beaglebone blackPhilipp Zabel2014-06-172-5/+17
| | | | | | | | | | | | | | | | Commit 0d6392de4ad824a6553c0e3e3e18edef689a7c85 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>
* ARM: Phytec-phyCARD-imx27: Add missing compatible checkSascha Hauer2014-06-121-10/+6
| | | | | | | 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>
* mips: Fix dtb build rulesSascha Hauer2014-06-112-6/+4
| | | | | | | | 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>
* treewide: remove address of the Free Software FoundationAntony Pavlov2014-06-1118-70/+0
| | | | | | | | | | | | | | | | | | 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>
* MIPS: dts: add .gitignore for generated filesAntony Pavlov2014-06-101-0/+1
| | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'pu/warnings'Sascha Hauer2014-06-068-28/+24
|\
| * mips: Add builtin dtb to dtb-ySascha Hauer2014-06-051-2/+4
| | | | | | | | | | | | Otherwise a rebuild of the dtb file is triggered each build. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * PPC: FSL DDR: Fix compiler warningSascha Hauer2014-06-051-1/+1
| | | | | | | | | | | | | | | | | | 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>
| * mips: ar9331: Add missing #address-cells/#size-cells propertiesSascha Hauer2014-06-051-0/+2
| | | | | | | | | | | | | | | | | | | | | | 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>
| * mips: dlink-dir-320: refresh defconfigSascha Hauer2014-06-051-4/+0
| | | | | | | | | | | | | | | | | | | | | | 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>
| * ARM: friendlyarm_mini2440: refresh defconfigSascha Hauer2014-06-051-17/+14
| | | | | | | | | | | | | | | | | | 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>
| * ARM: MXS: Remove unused variablesSascha Hauer2014-06-053-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | ARM: dts: Remove orphaned i.MX27 DT templateAlexander Shiyan2014-06-061-11/+0
| | | | | | | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | ARM: AM335x: Beaglebone: Use stripped down devicetree for MLOSascha Hauer2014-06-053-6/+16
| | | | | | | | | | | | | | | | | | 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>
* | tegra: refresh defconfigLucas Stach2014-06-051-9/+13
| | | | | | | | | | | | | | | | 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>
* | tegra: add NVIDIA Jetson-TK1 board supportLucas Stach2014-06-058-1/+3170
| | | | | | | | | | Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | tegra: pmc: add Tegra124 compatibleLucas Stach2014-06-051-0/+2
| | | | | | | | | | Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | pinctrl: tegra: add Tegra124 supportLucas Stach2014-06-051-0/+1
| | | | | | | | | | | | | | | | | | 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>
* | tegra: add Tegra124 Kconfig symbolLucas Stach2014-06-051-0/+3
| | | | | | | | | | Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | tegra: add architectural timer initLucas Stach2014-06-053-0/+58
| | | | | | | | | | | | | | | | 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>
* | tegra: setup L2 cache on Tegra124Lucas Stach2014-06-051-1/+12
| | | | | | | | | | | | | | Set SRAM latency to 3 clock cycles. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | tegra: hardcode entry address for main clusterLucas Stach2014-06-051-2/+16
| | | | | | | | | | | | | | | | | | 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>
* | tegra: apply cluster switch logic to all SoCs >=T30Lucas Stach2014-06-051-1/+1
| | | | | | | | | | Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | tegra: add Tegra124 PLL_X rate setupLucas Stach2014-06-051-0/+8
| | | | | | | | | | Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | tegra: change cpu internal reset layout for Tegra124Lucas Stach2014-06-051-4/+15
| | | | | | | | | | Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | tegra: fix MESLECT clock enableLucas Stach2014-06-052-1/+3
| | | | | | | | | | | | | | 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>
* | tegra: power up additional partitions on Tegra124Lucas Stach2014-06-052-6/+22
| | | | | | | | | | | | | | 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>
* | tegra: disable IDDQ for PLL_X on Tegra124Lucas Stach2014-06-052-0/+28
| | | | | | | | | | | | | | This is an additional power down control. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | tegra: add Tegra124 and AS3722 PMIC to lowlevel-dvcLucas Stach2014-06-051-0/+55
| | | | | | | | | | Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | tegra: recognize Tegra124 in common initcallsLucas Stach2014-06-051-2/+4
| | | | | | | | | | Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | tegra: recognize Tegra124 in maincomplex startupLucas Stach2014-06-051-0/+1
| | | | | | | | | | Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | tegra: lowlevel: fix ODMdata fetch on Tegra124Lucas Stach2014-06-051-15/+35
| | | | | | | | | | Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | tegra: add Tegra124 id to lowlevel functionsLucas Stach2014-06-051-0/+6
| | | | | | | | | | Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | tegra: lowlevel: setup an early stackLucas Stach2014-06-051-0/+2
| | | | | | | | | | | | | | | | 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>
* | tegra: pmc: add command to get into RCMLucas Stach2014-06-051-0/+20
|/ | | | | | | | | | | 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>
* Merge branch 'for-next/uemd'Sascha Hauer2014-06-0415-0/+322
|\
| * ARM: mb7707: add barebox mini-howtoAntony Pavlov2014-05-261-0/+29
| | | | | | | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: uemd: add module-mb7707_defconfigAntony Pavlov2014-05-261-0/+49
| | | | | | | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: uemd: add mb7707 board supportAntony Pavlov2014-05-266-0/+113
| | | | | | | | | | | | | | | | | | | | | | | | The MB 77.07 is a small (80x80 mm) single-board computer developed in Russia by the RC Module. It was developed as an educational board for К1879ХБ1Я SoC capabilities demonstration. See http://www.module.ru/en/catalog/micro/micro_pc/ for details. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>