summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-versatile
Commit message (Collapse)AuthorAgeFilesLines
* treewide: surround Kconfig file paths with double quotesMasahiro Yamada2019-03-211-1/+1
| | | | | | | | | Based on Linux commit 8636a1f9677db4f883f29a072f401303acfc2edd This will be needed when you sync Kconfig with Linux 5.0 or later. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* debug_ll: Move pl011 header file to architecture independent placeSascha Hauer2019-03-061-1/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Make generic default environment type a use choiceSascha Hauer2016-10-101-1/+0
| | | | | | | | So far it was hardcoded for each board if defenv-1 or defenv-2 is used. Make this a user choice so that a particular board no longer enforces a defenv type. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* restart: replace reset_cpu with registered restart handlersSascha Hauer2015-08-271-3/+4
| | | | | | | | | | | | | | | | | | | | | | This replaces the reset_cpu() function which every SoC or board must provide with registered handlers. This makes it possible to have multiple reset functions for boards which have multiple ways to reset the machine. Also boards which have no way at all to reset the machine no longer have to provide a dummy reset_cpu() function. The problem this solves is that some machines have external PMICs or similar to reset the system which have to be preferred over the internal SoC reset, because the PMIC can reset not only the SoC but also the external devices. To pick the right way to reset a machine each handler has a priority. The default priority is 100 and all currently existing restart handlers are registered with this priority. of_get_restart_priority() allows to retrieve the priority from the device tree which makes it possible for boards to give certain restart handlers a higher priority in order to use this one instead of the default one. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: versatile: provide clk_set_rate stubLucas Stach2015-03-111-0/+6
| | | | | | | | Some drivers depend on this symbol and this fixes a failure to link them. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/misc'Sascha Hauer2015-01-091-1/+1
|\
| * sizes.h: move include/sizes.h to include/linux/sizes.hMasahiro Yamada2015-01-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | versatilepb: allow to compile it an arm1176Jean-Christophe PLAGNIOL-VILLARD2015-01-061-4/+13
| | | | | | | | | | | | | | useful to use it for testing on qemu Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | ARM: versatile: debug_ll.h: switch to debug_ll_pl011.hAntony Pavlov2015-01-051-13/+2
| | | | | | | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | versatilepb: switch to defaultenv-2Jean-Christophe PLAGNIOL-VILLARD2015-01-051-0/+1
| | | | | | | | | | | | | | | | | | - Boot from NOR - enable UBI - use PBL Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | versatilepb: move barebox to 32 MiB and use zImageJean-Christophe PLAGNIOL-VILLARD2015-01-051-0/+3
|/ | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: versatile: switch to devicetree supportAntony Pavlov2014-06-232-13/+0
| | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: versatile: drop redundant <mach/gpio.h>Antony Pavlov2014-06-231-1/+0
| | | | | | | | | | | | | | | | 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>
* clk: remove unused __clk_[get|put]Sascha Hauer2013-04-031-7/+0
| | | | | | | This is some unused code resulting from copying stuff from the kernel. Remove it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* debug_ll: Let architectures define PUTC_LL directlySascha Hauer2012-12-051-1/+1
| | | | | | | | putc already is a regular barebox function. To avoid conflicts and confusions just let architectures define PUTC_LL directly instead of going through this addiotional redirection. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/bcm2835'Sascha Hauer2012-11-162-0/+11
|\ | | | | | | | | Conflicts: arch/arm/configs/versatilepb_defconfig
| * versatilepb: add gpio supportJean-Christophe PLAGNIOL-VILLARD2012-10-052-0/+11
| | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* | versatilepb: add i2c supportJean-Christophe PLAGNIOL-VILLARD2012-11-152-0/+8
|/ | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/remove-fsf-address'Sascha Hauer2012-10-033-10/+0
|\ | | | | | | | | | | Conflicts: drivers/net/miidev.c include/miidev.h
| * Treewide: remove address of the Free Software FoundationSascha Hauer2012-09-173-10/+0
| | | | | | | | | | | | | | The FSF address has changed in the past. Instead of updating it each time the address changes, just drop it completely treewide. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | amba-pl011: switch to amba busJean-Christophe PLAGNIOL-VILLARD2012-09-111-2/+5
|/ | | | | | switch as the same time the nomadik and versatile arch that use the driver. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* introduce io.hSascha Hauer2011-09-222-2/+2
| | | | | | | To allow for some generic io accessors introduce io.h and use this instead of asm/io.h throughout the tree. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* versatile: fix static allocation clkdevJean-Christophe PLAGNIOL-VILLARD2011-08-121-4/+4
| | | | | | | it's DEV_ID not CON_ID Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* clkdev: factorize macroJean-Christophe PLAGNIOL-VILLARD2011-08-121-6/+0
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* versatilek: switch to static allocation clkdevJean-Christophe PLAGNIOL-VILLARD2011-08-102-3/+22
| | | | | | | as we need to register it before the device Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* arm: introduce arm_add_mem_device to register dram deviceJean-Christophe PLAGNIOL-VILLARD2011-08-011-5/+1
| | | | | | this will automaticaly register the device to armlinux_add_dram Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* versatile: switch to add_generic_deviceJean-Christophe PLAGNIOL-VILLARD2011-07-231-36/+12
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* add a add_mem_device functionSascha Hauer2011-07-181-15/+5
| | | | | | | | | | | Add a helper function for boards to register their memory devices. This makes the board code smaller and also helps getting rid of map_base and struct memory_platform_data. And switch all of the memory to it Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* mem: replace DEVFS_RDWR by IORESOURCE_MEM_WRITEABLEJean-Christophe PLAGNIOL-VILLARD2011-07-181-1/+1
| | | | | | | we keep struct memory_platform_data for now on we will switch off the memories resources to struct resource Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* mach-versatile: switch debug_ll.h to GPLv2 or laterJean-Christophe PLAGNIOL-VILLARD2011-07-051-1/+1
| | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Acked-by: Bahadir Balban <bbalban@b-labs.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Add basic support from ARM Versatile/PBAlexey Zaytsev2010-12-127-0/+711
tested with qemu only qemu-system-arm -M versatilepb -monitor null -kernel barebox -net nic -net user -tftp "<uImage-path>/" -serial stdio add -nographic if you do not want the lcd via sdl Signed-off-by: Alexey Zaytsev <alexey.zaytsev@gmail.com> update: - use default env - move arm_timer.h as in the kernel - add nor flash support - udpate defconfig - fix copyright copy from linux - fix ARCH_TEXT_BASE Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>