summaryrefslogtreecommitdiffstats
path: root/arch/arm/boards/freescale-mx6-sabrelite/board.c
Commit message (Collapse)AuthorAgeFilesLines
* ARM: mx6-sabrelite: remove obsolete sabrelite_mem_init()Marco Felsch2020-09-291-12/+0
| | | | | | | | | | | The memory init is done by of_probe_memory() first which is part of the core_initcall's because the device tree has an valid memory node. Otherwise the memory-controller driver (esdctl) would add it by reading the information from the controller which are set by the DCD data. Therefore we can drop it from the local board file. Signed-off-by: Marco Felsch <m.felsch@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: boards: mx6-sabrelite: [cosmetic] make use of IMX_GPIO_NRMarco Felsch2020-09-291-10/+10
| | | | | | | | Convert the global number to the more readable IMX_GPIO_NR() macro, no functional changes. Signed-off-by: Marco Felsch <m.felsch@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* arch/arm/boards: Replace license and copyright boilerplate by SPDX identfiersUwe Kleine-König2020-05-251-12/+3
| | | | | | | | | | | | | | | | This adapts all files that were identifed by licensecheck (https://salsa.debian.org/build-common-team/licensecheck.git) as licensed under the GPL. The advantage is that these specifiers are machine-parseable which helps license conformance, e.g. for packaging barebox in Debian. While touching these files also do some minor comment reformatting to get some uniform layout. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Reviewed-by: Roland Hieber <rhi@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* include: Move fec eth platform_data to include/platform_dataSascha Hauer2016-04-151-1/+0
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: imx6: rename SPI NOR device to /dev/spinor0Philipp Zabel2015-07-311-2/+2
| | | | | | | | | | Barebox currently names the SPI NOR device "/dev/sst25vf016b", but the barebox update handler still points to "/dev/m25p80", causing barebox_update to fail. Choose a descriptive name instead. Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> 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>
* arm: imx6: move imx6_init_lowlevel to single initcallLucas Stach2014-07-011-12/+1
| | | | | | | | | | | | | | | Instead of repeating the same lowlevel init for every board move it to it's own initcall. Avoids code bloat and shaves off almost 1.5kB of uncompressed barebox size for a default imx_v7_defconfig build. For boards wherethe hostname setup was done in the postcore initcall we move this to a device initcall to get it out of the way. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: i.MX: bbu: remove dcd arguments from bbu registrationSascha Hauer2014-05-091-1/+1
| | | | | | | | | | | The i.MX barebox update handlers take an optional dcd table as argument. This can be used to add the correct dcd data to the image before flashing it. This mechanism is quite complicated and largely unused, so remove it. With this it is only possible to flash the exact image passed to barebox_update, which is what is mostly done anyway. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: i.MX6 Sabrelite: Fix ethernetSascha Hauer2014-04-031-16/+48
| | | | | | | | | | The board code does a phy reset. This implicitly requests the phy reset gpio. This gpio is also registered in the devicetree as phy reset gpio, so the fec driver probe can't request the gpio and bails out with -EBUSY. Fix this by freeing the phy reset gpio in the board code. While at it use gpio_request_array for the gpios. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/imx'Sascha Hauer2014-02-031-3/+6
|\ | | | | | | | | Conflicts: arch/arm/boards/dmo-mx6-realq7/lowlevel.c
| * ARM: imx6: add support for DL variant of SabreLite BoardLucas Stach2014-01-231-3/+6
| | | | | | | | | | Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | ARM: i.MX6 Sabrelite: add missing of_machine_is_compatible checksSascha Hauer2014-01-221-0/+8
|/ | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: remove armlinux_set_bootparams() calls from boardsSascha Hauer2014-01-061-1/+0
| | | | | | | As the place for the atags now is determined automatically the call from the boards can be removed. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM i.MX6: sabrelite: register SPI flash barebox update handlerPhilipp Zabel2013-11-201-0/+3
| | | | | Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM i.MX6: sabrelite: move flash partitions into device treePhilipp Zabel2013-11-201-2/+0
| | | | | Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM i.MX6: sabrelite: usb is probed from device treePhilipp Zabel2013-11-201-5/+0
| | | | | Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM i.MX6: sabrelite: switch to multiboard supportPhilipp Zabel2013-11-201-2/+11
| | | | | Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/boardinfo'Sascha Hauer2013-09-051-0/+2
|\ | | | | | | | | | | | | Conflicts: arch/mips/boards/qemu-malta/init.c commands/bootm.c drivers/of/base.c
| * Set model and hostname at boardlevelSascha Hauer2013-08-161-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | With multiboard support the compiletime generated BOARDINFO string gets more and more meaningless. This removes it from Kconfig and replaces it with a variable that can be set at boardlevel. Also many boards have a standard setting for the hostname in the environment. This patch also moves the standard to C code by calling barebox_set_hostname(). Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | ARM: include <gpio.h> instead of <mach/gpio.h>Sascha Hauer2013-08-161-2/+1
|/ | | | | | The gpio api should be used from <gpio.h> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: i.MX6 sabre: register MAC address from dtSascha Hauer2013-07-221-23/+0
| | | | | | Use DT description to register the fec MAC address. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: i.MX6 sabrelite: switch to devicetree probingSascha Hauer2013-05-311-132/+24
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: fec: use standard phy type definesSascha Hauer2013-03-091-1/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM i.MX6 USB phy: Fix phy function namesSascha Hauer2013-01-201-2/+2
| | | | | | | The imx6_usb_phy1* functions are misnamed. It's usb phy2 that is configured here, so rename the functions accordingly. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* m25p80: re-import it againt mtd_add_hostJean-Christophe PLAGNIOL-VILLARD2012-11-201-1/+1
| | | | | | | | | | | | so we now create the cdev via mtd This will also simplify sync with linux to avoid the m25p8000 or m25p00 the cdev is still named name m25p and the drivers m25p80 Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM i.MX: get rid of imx-regs.hSascha Hauer2012-10-171-1/+1
| | | | | | | | | - remove now unused __REG definitions - include individual SoC register files instead of imx-regs.h - move IMX_GPIO_NR to generic.h - finally remove imx-regs.h Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM i.MX boards: Use IMX_GPIO_NRSascha Hauer2012-10-051-1/+1
| | | | | | Rather than GPIO_PORT* which will vanish. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/remove-fsf-address'Sascha Hauer2012-10-031-5/+0
|\ | | | | | | | | | | Conflicts: drivers/net/miidev.c include/miidev.h
| * Treewide: remove address of the Free Software FoundationSascha Hauer2012-09-171-5/+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>
* | net: introduce phylibJean-Christophe PLAGNIOL-VILLARD2012-09-251-26/+14
|/ | | | | | | | | | | | | | | | Adapt phylib from linux switch all the driver to it reimplement mii bus This will allow to have - phy drivers - to only connect the phy at then opening of the device - if the phy is not ready or not up fail on open Same behaviour as in linux and will allow to share code and simplify porting. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* ARM i.MX6: fix usb_ehci warnings for sabreliteSteffen Trumtrar2012-09-161-0/+1
| | | | | | | | | | | This fixes the following warnings: arch/arm/boards/freescale-mx6-sabrelite/board.c: In function 'sabrelite_ehci_init': arch/arm/boards/freescale-mx6-sabrelite/board.c:265:2: warning: implicit declaration of function 'imx6_usb_phy1_disable_oc' [-Wimplicit-function-declaration] arch/arm/boards/freescale-mx6-sabrelite/board.c:266:2: warning: implicit declaration of function 'imx6_usb_phy1_enable' [-Wimplicit-function-declaration] Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM i.MX6: Add i2c iomux to sabreliteSteffen Trumtrar2012-08-311-0/+12
| | | | | Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM i.MX6: Add usb-ehci to sabreliteSteffen Trumtrar2012-08-311-0/+20
| | | | | Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM i.MX: Add support for the Freescale i.MX6 sabrelite boardSascha Hauer2012-07-311-0/+265
This adds support for the Freescale i.MX6 sabrelite board with: - FEC - SD2/3 - SPI flash Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>