summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-bcm2835/core.c
Commit message (Collapse)AuthorAgeFilesLines
* bcm2835: introduce mach-bcm283xAlexander Aring2016-01-041-88/+0
| | | | | | | | | | | | This patch changes the most part of mach-bcm2835 to mach-bcm283x. This prepares to add RPi2 support which is a bcm2836. This patch changes the Kconfig entry namens to BCM283X for drivers only. These drivers should working the same in bcm2836. While updating defconfig I added LED support/trigger option. Signed-off-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* restart: replace reset_cpu with registered restart handlersSascha Hauer2015-08-271-10/+11
| | | | | | | | | | | | | | | | | | | | | | 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: bcm2835: fix checkpatch warningAntony Pavlov2015-02-041-1/+1
| | | | | | | | | | | Here is checkpatch.pl log: WARNING: space prohibited between function name and open parenthesis '(' #134: FILE: arch/arm/mach-bcm2835/core.c:75: +void __noreturn reset_cpu (unsigned long addr) Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* 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>
* bcm2835: move mci register at board levelJean-Christophe PLAGNIOL-VILLARD2013-11-041-1/+0
| | | | | | | not all board have a SD card. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: bcm2835: register the clocksource device earlierAndre Heider2013-10-221-1/+2
| | | | | | | | | | RPi's mailbox driver is used early and it needs clock functions to handle timeouts. Register the driver straight after its clkdev. Signed-off-by: Andre Heider <a.heider@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: bcm2835: cleanup clock registeringAndre Heider2013-10-221-24/+7
| | | | | | | Sync exposed names while at it. Signed-off-by: Andre Heider <a.heider@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Added sd driver for bcm2835 (Raspberry PI)wilhelm2013-05-301-0/+1
| | | | | | Replaced defines according to sdhci.h Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM bcm2835: Fix noreturn function does returnSascha Hauer2013-01-251-0/+2
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* BCM2835: add support (arch)Carlo Caione2012-10-211-0/+101
Signed-off-by: Carlo Caione <carlo.caione@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>