summaryrefslogtreecommitdiffstats
path: root/arch
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'for-next/imx'Sascha Hauer2018-11-0918-28/+682
|\
| * ARM: nxp-imx8mq-evk: add barebox and env partitionsLucas Stach2018-11-092-3/+54
| | | | | | | | | | | | | | | | | | | | | | So we can have a persistent env and a bit safer barebox update. Also switch the environment and update default depending on the bootsource, as this is really helpful on an eval board where one might want to have totally different systems on eMMC and SD card. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Acked-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: nxp-imx8mq-evk: remove SDRAM reservation for ATFLucas Stach2018-11-091-11/+0
| | | | | | | | | | | | | | | | | | Recent versions of the i.MX8MQ ATF (like the one shipped with Barebox) reside in a part of OCRAM, so there is no need to reserve any part of SDRAM anymore. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: i.MX: Add liteboard supportMarcin Niestroj2018-11-0911-0/+381
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | liteboard is a development board which uses liteSOM as its base. liteSOM can't exist on its own, but is used as part of other boards - it only contains processor and memory. Hardware specification: * liteSOM: - i.MX6UL - 256M or 512M DDR3 RAM - eMMC (uSDHC2) * Ethernet PHY * USB host (usb_otg1) * MicroSD slot (uSDHC1) Signed-off-by: Marcin Niestroj <m.niestroj@grinn-global.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: rdu1: Implement RDU1 config loadingAndrey Smirnov2018-11-063-0/+187
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | RDU1 stores various configuration parameters, including FEC's MAC address, in a configuration blob that can be located in on of three places: SPI NOR, RAVE SP EEPROM or Microwire EEPROM. This patch add an initcall to load those configuration variables from a valid source (CRC8 checked) as well as expose then as "config_<var>" environment variables. This patch also adds appropriate code to register MAC address obtained from config blob. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: rdu1: Add an alias for Microwire EEPROMAndrey Smirnov2018-11-061-0/+5
| | | | | | | | | | | | | | Add an alias for Microwire EEPROM to give it a better name in /dev. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: rdu2: fix warnings in Barebox internal DTLucas Stach2018-11-021-13/+3
| | | | | | | | | | | | | | | | Drop partially wrong pcie nodes, so we pick up the correct ones from the kernel DT. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: rdu2: program e1000 iNVMLucas Stach2018-11-021-0/+30
| | | | | | | | | | | | | | | | | | Check if the iNVM is already correctly written. If it isn't write the correct value in, so the device uses the correct PCI ID for the Linux driver. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: rdu2: configure the USB port as OTGLucas Stach2018-11-021-0/+4
| | | | | | | | | | | | | | | | | | While the USB port is host-only for the Linux system, it is useful to be able to switch it into device mode for debugging purposes in Barebox. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: rdu2: config PMIC SW1AB and SW1C rails to 1.375Lucas Stach2018-11-021-0/+18
| | | | | | | | | | | | | | | | | | This is the default out-of-reset voltage, but if only the i.MX6 SoC got reset, the PMIC might still be stuck at the lower voltage for the slow operating point. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: imx7d-zii-rpu2: Add switch EEPROM aliasAndrey Smirnov2018-10-291-0/+9
| | | | | | | | | | Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: vf610-zii-ssmb-spu3: Add switch EEPROM aliasAndrey Smirnov2018-10-291-0/+11
| | | | | | | | | | Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: vf610-zii-cfu1: Add switch EEPROM aliasAndrey Smirnov2018-10-291-0/+10
| | | | | | | | | | Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: vf610-zii-dev-rev-c: Add switch EEPROM aliasAndrey Smirnov2018-10-291-0/+12
| | | | | | | | | | Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: rdu1: Add switch EEPROM aliasAndrey Smirnov2018-10-291-0/+13
| | | | | | | | | | Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: rdu2: Add switch EEPROM aliasAndrey Smirnov2018-10-291-0/+6
| | | | | | | | | | Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/gpio'Sascha Hauer2018-11-098-43/+98
|\ \
| * | ARM: rdu2: Replace board code with gpio-hog nodesAndrey Smirnov2018-11-062-38/+36
| | | | | | | | | | | | | | | Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | VF610: zii-vf610-dev: Drop switch reset GPIO configurationAndrey Smirnov2018-10-291-5/+0
| | | | | | | | | | | | | | | | | | | | | | | | This GPIO is controlled by MV88E6xxx driver, so there's no need to explicitly configure this GPIO. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: imx7d-zii-rpu2: Add switch EEPROM aliasAndrey Smirnov2018-10-291-0/+9
| | | | | | | | | | | | | | | Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: vf610-zii-ssmb-spu3: Add switch EEPROM aliasAndrey Smirnov2018-10-291-0/+11
| | | | | | | | | | | | | | | Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: vf610-zii-cfu1: Add switch EEPROM aliasAndrey Smirnov2018-10-291-0/+11
| | | | | | | | | | | | | | | Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: vf610-zii-dev-rev-c: Add switch EEPROM aliasAndrey Smirnov2018-10-291-0/+12
| | | | | | | | | | | | | | | Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: rdu1: Add switch EEPROM aliasAndrey Smirnov2018-10-291-0/+13
| | | | | | | | | | | | | | | Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: rdu2: Add switch EEPROM aliasAndrey Smirnov2018-10-291-0/+6
| |/ | | | | | | | | Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/dts'Sascha Hauer2018-11-091-1/+1
|\ \
| * | dts: update to v4.20-rc1Sascha Hauer2018-11-081-1/+1
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | ARM: at91: remove unused definesSascha Hauer2018-11-0610-133/+0
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | ARM: at91: separate restart handler registration into SoC specific codeSascha Hauer2018-11-0617-45/+111
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | ARM: at91: make at91sam926x_board_init board specificSascha Hauer2018-11-068-17/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | The base addresses used in at91sam926x_board_init() differ with each SoC. The board knows which SoC we are running on though, so create and use SoC specific variants of these functions which pass the appropriate base addresses to at91sam926x_board_init(). Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | ARM: at91: drop at91_pmc_write()/at91_pmc_read()Sascha Hauer2018-11-063-7/+24
| | | | | | | | | | | | | | | | | | | | | at91_pmc_write() and at91_pmc_read() need a compile time base address, so remove them. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | ARM: at91rm9200ek: use plain readl/writel for pmc accessesSascha Hauer2018-11-062-8/+10
| | | | | | | | | | | | | | | | | | | | | at91_pmc_write() needs a compile time base address, so rather use plain read/writel. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | ARM: at91sam926x use writel rather than pmc accessor functionSascha Hauer2018-11-061-8/+9
| | | | | | | | | | | | | | | | | | | | | | | | The pmc accessor function depends on a compile time base address, so rather use writel directly. In this case we can hardcode the base address again since all at91sam926x SoCs have the same pmc base address. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | ARM: at91: remove mach/io.hSascha Hauer2018-11-0641-78/+12
| | | | | | | | | | | | | | | | | | | | | Remove at91_sys_read() and at91_sys_write() since these are no longer used. This makes mach/io.h empty so remove that aswell. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | ARM: at91rm9200 timer: Make system timer defines SoC specificSascha Hauer2018-11-063-55/+57
| | | | | | | | | | | | | | | | | | | | | | | | - rename at91_st.h to at91rm9200_st.h - rename prefix from AT91_ to AT91RM9200_ - remove register offset from System timer defines Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | ARM: at91rm9200 timer: remove unused includeSascha Hauer2018-11-061-1/+0
| | | | | | | | | | | | | | | | | | | | | at91rm9200_time.c doesn't need anything from at91_pmc.h, remove the inclusion. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | ARM: at91: remove unused header fileSascha Hauer2018-11-062-147/+0
| | | | | | | | | | | | | | | | | | nothing from mach/at91_tc.h is used, remove it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | ARM: at91rm9200: Add SoC namespace to memory controller definesSascha Hauer2018-11-064-166/+171
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | ARM: at91: Use SoC specific base addresses where appropriateSascha Hauer2018-11-069-23/+23
| | | | | | | | | | | | | | | | | | | | | Replace AT91_ base addresses with their SoC specific variants where possible. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | ARM: at91: Add SoC namespace to matrix definesSascha Hauer2018-11-0521-557/+562
| | | | | | | | | | | | | | | | | | | | | Add SoC namespace to matrix define so we have one source less of conflicting defines. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | ARM: at91: remove common matrix header fileSascha Hauer2018-11-052-31/+1
| | | | | | | | | | | | | | | | | | | | | The common matrix header file can be removed when the users include the SoC specific one. Fix the only user and remove the file. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | ARM: at91: consolidate phy reset functionsSascha Hauer2018-11-0513-150/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Many boards have the same ethernet phy reset function, so share the code in a common function. While at it remove the AT91_RSTC offset from the rstc register defines. AT91_RSTC was the offset between the AT91_SYSTEM_BASE and the reset controller. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | ARM: at91: remove AT91_SDRAM_BASESascha Hauer2018-11-055-13/+2
| | | | | | | | | | | | | | | | | | | | | AT91_SDRAM_BASE is only used in board code which known the SDRAM base address, so we do not need a common define. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | ARM: at91: drop AT91_NB_USARTSascha Hauer2018-11-0510-20/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | AT91_NB_USART only used to return an error from at91_register_uart() if an invalid UART number is passed. This will never happen as the linker fails earlier in that case, so the runtime check can be removed and with it the now unused AT91_NB_USART define. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | ARM: at91: remove unused definesSascha Hauer2018-11-059-126/+4
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | ARM: at91sam926x: Add header for at91sam926x common base addressesSascha Hauer2018-11-051-0/+8
| | | | | | | | | | | | | | | | | | | | | There are some base addresses common to at91sam926x. Add a separate header for these. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | ARM: at91rm9200ek: Use SoC specific definesSascha Hauer2018-11-051-3/+3
| | | | | | | | | | | | | | | | | | | | | Use AT91RM9200_BASE_PIOC rather than AT91_BASE_PIOC so we can get rid of the latter later. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | ARM: at91: remove unused CONSISTENT_DMA_SIZE definesSascha Hauer2018-11-053-6/+0
| | | | | | | | | | | | | | | | | | CONSISTENT_DMA_SIZE is unused, remove it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | ARM: at91: remove unused AT_DMA_ID_ definesSascha Hauer2018-11-054-120/+0
| | | | | | | | | | | | | | | | | | The defines are unused and not properly namespaced, so remove them. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | ARM: at91: Add initial support for the EVB-KSZ9477 eval boardAhmad Fatoum2018-11-058-1/+266
|/ / | | | | | | | | | | | | | | | | | | | | | | The EVB-KSZ9477 is an evaluation board for the KSZ9477 ethernet switch. This board is equipped with a atsama5d3 SoC with 256MiB of SDRAM, 256MiB of NAND flash and a SD card slot. For now only second stage booting is supported with AT91bootstrap as first stage loader. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>