summaryrefslogtreecommitdiffstats
path: root/arch/mips
Commit message (Collapse)AuthorAgeFilesLines
* sizes.h: move include/sizes.h to include/linux/sizes.hMasahiro Yamada2015-01-083-3/+3
| | | | | | | | | | | | | | This file originates in Linux. Linux has it under include/linux/ directory since commit dccd2304cc90. Let's move it to the same place as well in barebox. This commit was generated by the following commands: find -name '*.[chS]' | xargs sed -i -e 's:<sizes.h>:<linux/sizes.h>:' git mv include/sizes.h include/linux/ Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* command: passwd: depend on CMD_LOGIN rather than selecting itSascha Hauer2014-11-272-0/+2
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* treewide: Reuse init_clock() return value for clocksource driversAlexander Shiyan2014-11-101-2/+1
| | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/tegra'Sascha Hauer2014-11-051-2/+2
|\
| * MIPS: malta: fix pci IO resource assignmentLucas Stach2014-10-081-2/+2
| | | | | | | | | | | | | | Does the same thing as the Linux kernel now. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | mips: qemu-malta: add little-endian mode supportAntony Pavlov2014-10-102-0/+8
|/ | | | | | | | | | | | | | | | | We can't just enable SYS_SUPPORTS_LITTLE_ENDIAN for successful little-endian qemu-malta barebox build. Some byte swapping-related macros are missed, e.g.: arch/mips/mach-malta/pci.c: In function 'pcibios_init': arch/mips/mach-malta/pci.c:218:28: error: 'GT_PCI0_CMD_MBYTESWAP_BIT' undeclared (first use in this function) GT_WRITE(GT_PCI0_CMD_OFS, GT_PCI0_CMD_MBYTESWAP_BIT | ^ This patch adds necessary macros definition. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/resource-err-ptr'Sascha Hauer2014-10-021-2/+3
|\
| * resource: Let dev_request_mem_region return an error pointerSascha Hauer2014-09-161-2/+3
| | | | | | | | | | | | For all users fix or add the error check. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | MIPS: ritmix-rzx50_defconfig: update DEBUG_LL; enable IMDAntony Pavlov2014-09-151-1/+2
| | | | | | | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | MIPS: xburst: Kconfig: add commentAntony Pavlov2014-09-151-1/+1
| | | | | | | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | MIPS: add img-ci20_defconfigAntony Pavlov2014-09-111-0/+42
| | | | | | | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | MIPS: add MIPS Creator CI20 board supportAntony Pavlov2014-09-117-0/+134
| | | | | | | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | MIPS: dts: add jz4780.dtsiAntony Pavlov2014-09-111-0/+56
| | | | | | | | | | | | | | Based on file from https://github.com/MIPS/CI20_linux/tree/ci20-v3.16 Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | MIPS: xburst: debug_ll: rework common code, add JZ4780 supportAntony Pavlov2014-09-114-8/+98
| | | | | | | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | MIPS: add (another) Ingenic vendor IDAntony Pavlov2014-09-112-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The latest Ingenic CPUs (e.g. JZ4780) use new vendor ID. Based on commit from https://github.com/MIPS/CI20_linux/tree/ci20-v3.16 commit 00b672aa52f299f1d67ab18274c3f5e5d5a15767 Author: Paul Burton <paul.burton@imgtec.com> Date: Mon Jul 8 12:14:28 2013 +0100 MIPS: add (another) Ingenic vendor ID Ingenic have switched to a new vendor ID for the Xburst core used in their current SoCs such as the jz4780. Add this vendor ID and handle it in addition to their former vendor ID. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | MIPS: xburst: add JZ4780 SoC supportAntony Pavlov2014-09-112-1/+7
| | | | | | | | | | | | | | | | Old Ingenic SoCs (JZ4755, JZ4740) use MIPS32r1 ISA CPU cores than latest ones (JZ4770, JZ4780) use MIPS32r2. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | MIPS: dts: use physical addresses (as Linux does)Antony Pavlov2014-09-115-37/+37
|/ | | | | | | | With IOMEM() adapted for MIPS we can use physical addresses in device tree reg property. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/rtc'Sascha Hauer2014-08-072-0/+8
|\ | | | | | | | | | | Conflicts: arch/mips/dts/jz4755.dtsi commands/Makefile
| * MIPS: ritmix-rzx50_defconfig: enable RTC supportAntony Pavlov2014-08-021-0/+3
| | | | | | | | | | | | | | Also enable CONFIG_LONGHELP. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * MIPS: dts: jz4755.dtsi: add jz4740-rtcAntony Pavlov2014-08-021-0/+5
| | | | | | | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/misc'Sascha Hauer2014-08-075-51/+22
|\ \ | | | | | | | | | | | | Conflicts: lib/Makefile
| * | watchdog: add minimal jz4740 driverAntony Pavlov2014-08-014-40/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also move reset_cpu() for jz4755 SoC from platform code into the new driver code. At the moment mach-xburst lacks clk support so jz4740 watchdog driver looks like a template. We can improve jz4740 watchdog driver later after adding clk support. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | consistently use the same bitops.h fileSascha Hauer2014-07-171-11/+15
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We have many variants of the same bitops.h file. Consistently use the same file for all architectures which completely use the generic bitops versions. Some architectures had static inline versions of functions identically to the generic versions, these are removed and the generic versions are used directly now. Also several architectures depend on the generic find_*_bit functions but didn't have the GENERIC_FIND_NEXT_BIT Kconfig option selected. This is added where needed. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/metadata'Sascha Hauer2014-08-075-10/+6
|\ \ | | | | | | | | | | | | | | | | | | Conflicts: arch/arm/dts/Makefile common/Makefile lib/Makefile
| * | MIPS: qemu-malta_defconfig: enable metadata in barebox image (IMD)Antony Pavlov2014-08-071-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Usage: $ qemu-system-mips -nodefaults -nographic -M malta -m 256 \ -serial stdio -monitor null \ -bios ./barebox-flash-image ... barebox:/ imd /dev/nor0 release: 2014.07.0-00401-gd863821 build: #148 Sat Aug 2 09:22:16 MSK 2014 Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | MIPS: add support for metadata in barebox imagesAntony Pavlov2014-08-072-0/+4
| | | | | | | | | | | | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | make: build device trees with obj-dtb-y and pbl-dtb-ySascha Hauer2014-08-071-10/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To build an object file from a device tree currently we currently have to add them to the Makefile twice, once to dtb-y and once to obj-y. This patch introduces obj-dtb-y and pbl-dtb-y to directly compile a device tree object file for inclusion in the barebox binary or the pbl respectively. The now unneeded dtb-y targets are removed. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | move file helper functions to separate fileSascha Hauer2014-08-071-0/+1
| |/ | | | | | | | | | | | | | | | | | | We have our file helper functions in several places. Move them all to lib/libfile.c. With this we no longer have file helpers in fs/fs.c which contains the core fs functions and no functions in lib/libbb.c which are not from busybox. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | MIPS: ritmix-rzx50_defconfig: enable LED-related stuffAntony Pavlov2014-07-311-0/+6
| | | | | | | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | MIPS: dts: rzx50.dts: add LCD backlightAntony Pavlov2014-07-311-0/+10
|/ | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/mips'Sascha Hauer2014-07-0411-42/+442
|\
| * MIPS: qemu-malta_defconfig: enable PCI & network stuffAntony Pavlov2014-07-041-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | qemu usage: # ifconfig br0:1 172.20.0.1 # qemu-system-mips -nodefaults -nographic -M malta -m 256 \ -serial stdio -monitor null \ -bios ./barebox-flash-image \ -net nic,vlan=0,model=rtl8139 \ -net tap,vlan=0,script=net_br0.sh ... barebox:/ eth0.ipaddr=172.20.0.2 barebox:/ eth0.serverip=172.20.0.1 barebox:/ ping 172.20.0.1 phy0: Link is up - 100/Full host 172.20.0.1 is alive barebox:/ Sample net_br0.sh (for connecting to br0 interface, so you can connect barebox to your real network): #!/bin/sh brctl addif br0 $1 ifconfig $1 up Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * MIPS: add PCI support for GT64120-based Malta boardAntony Pavlov2014-07-045-0/+293
| | | | | | | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * MIPS: add dma_alloc_coherent()Antony Pavlov2014-07-041-0/+25
| | | | | | | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * 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>
* | Documentation: remove doxygen documentationSascha Hauer2014-06-2610-312/+0
|/ | | | | | | The doxygen documentation is long outdated. Remove it. It will be replaced with sphinx based documentation later. 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>
* 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>
* 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>
* 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>
* Merge branch 'for-next/mips'Sascha Hauer2014-06-045-74/+86
|\ | | | | | | | | Conflicts: arch/mips/configs/dlink-dir-320_defconfig