summaryrefslogtreecommitdiffstats
path: root/arch
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'for-next/imx'Sascha Hauer2018-07-0923-358/+646
|\
| * ARM: dts: rdu2: Make use of "zii,eeprom-name"Andrey Smirnov2018-07-051-7/+4
| | | | | | | | | | | | | | | | | | Convert RAVE SP EEPROMs to use "zii,eeprom-name" instead of aliases in order to minimize differences with upstream Linux DT. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Reviewed-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: dts: rdu1: Make use of "zii,eeprom-name"Andrey Smirnov2018-07-051-9/+4
| | | | | | | | | | | | | | | | | | Convert RAVE SP EEPROMs to use "zii,eeprom-name" instead of aliases in order to minimize differences with upstream Linux DT. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Reviewed-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: dts: rdu1: Add node for backlight deviceAndrey Smirnov2018-07-021-0/+4
| | | | | | | | | | Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: dts: rdu1: Specify "boot-source" NVMEM cellAndrey Smirnov2018-07-021-0/+9
| | | | | | | | | | Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: dts: rdu1: Add nodes for RAVE SP EEPROMAndrey Smirnov2018-07-021-0/+28
| | | | | | | | | | Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: i.MX: Add support for ZII RDU1 boardAndrey Smirnov2018-07-029-0/+209
| | | | | | | | | | | | | | | | | | ZII RDU1 is a i.MX51 based, Babbagde board derivative supported by upstream kernel. This commit add support for it to Barebox. Signed-off-by: Nikita Yushchenko <nikita.yoush@cogentembedded.com> Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: babbage: Make PMIC initialization shareableAndrey Smirnov2018-07-026-115/+138
| | | | | | | | | | | | | | | | | | Some board designs copy i.MX51 Babbadge board's PMIC design and so require exactly the same initialization. Move correspoding code into a separate file so it can be shared. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: i.MX: bbu: support partitions starting at i.MX headerSascha Hauer2018-07-022-2/+13
| | | | | | | | | | | | | | | | The i.MX header is at an offset in the boot device, usually 0x400 bytes. This patch adds a flag to support the case that the partition the image is written to starts at that offset rather than 0x0. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: i.MX: bbu: reimplement IMX_INTERNAL_FLAG_KEEP_DOSPART flagSascha Hauer2018-07-022-45/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch reimplements the IMX_INTERNAL_FLAG_KEEP_DOSPART flag and makes it more generic. Until now we only kept a dos partition table over the update. Beginning with i.MX8 we may also want to preserve a GPT, so we have to extend the preserved area. It might also be the case that not (only) a partition table is stored in the initial area of a device, but also other unrelated data, so it's better to just keep the initial area that is unused by the i.MX ROM. It's also good to export the flag to allow boards to specify the initial area shall be preserved. When a board wants to set the flag for a mtd like device then it has to check for suitable erase sizes beforehand. We do not check this (yet). Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: i.MX: bbu: remove handler specific flags variableSascha Hauer2018-07-021-18/+17
| | | | | | | | | | | | | | Now that we can store flags in the generic handler flags we no longer need our own variable. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: rdu2: Fetch MAC address info from RAVE SP EEPROMAndrey Smirnov2018-06-292-0/+72
| | | | | | | | | | | | | | | | | | RDU2 stores MAC addresses for its Ethernet interfaces in main RAVE SP EEPROM. Add code to properly integrate it. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Reviewed-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: i.MX53: Make clock tree setup better readableSascha Hauer2018-06-281-10/+17
| | | | | | | | | | | | | | Change write register accesses to read-modify-write accesses. This makes it clearer which bits are actually changed by the code. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: dts: rdu2: Add node for backlight deviceAndrey Smirnov2018-06-261-0/+4
| | | | | | | | | | Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: dts: rdu2: Specify "boot-source" NVMEM cellAndrey Smirnov2018-06-261-0/+9
| | | | | | | | | | Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: dts: rdu2: Add nodes for RAVE SP EEPROMAndrey Smirnov2018-06-261-0/+25
| | | | | | | | | | Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: dts: rdu2: Remove obsolete 'pic' node in uart4Andrey Smirnov2018-06-261-67/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | All of the code in this commit is: a) Obsolete and intended to work with a driver that has never been submitted upstream anywhere and is no longer used b) Superceeded by the DT code in Linux DT tree Remove it all and rely on Linux DTS files to properly specify RAVE SP MFD with a watchdog child node. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: i.MX: rdu2: Make use of imx_setup_pad()Andrey Smirnov2018-06-211-7/+3
| | | | | | | | | | | | | | | | While at it, also remove pinux configuration for RX pin (completely unused) and fix strange setup_uart()'s indentation. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: i.MX: babbage: Make use of imx_setup_pad()Andrey Smirnov2018-06-211-9/+2
| | | | | | | | | | Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: dts: advantech-rom-7421: add hog pinctrl nodeChristoph Fritz2018-06-191-0/+25
| | | | | | | | | | | | | | | | | | | | | | | | The Advantech ROM-7421 has a custom watchdog reset i2c chip that has some control gpios. This watchdog is currently not used, therefore mux its control pins as pull-downs to be sure that the watchdog is disabled after e.g. a reboot. For debug purposes this patch also adds i2c1 node. Signed-off-by: Christoph Fritz <chf.fritz@googlemail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: i.MX6SX SDB: drop deprecated DT overwritesOleksij Rempel2018-06-141-58/+0
| | | | | | | | | | | | | | | | | | Latest kernel ./dts/ is providing proper pin and fec configs. This overwrites are preventing kernel from net boot if barebox is DT source. Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: i.MX: zii-vf610-spu3: Add support for BBU on eMMCAndrey Smirnov2018-06-131-0/+18
| | | | | | | | | | Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: i.MX: bbu: Add support for MMC on VFxxxAndrey Smirnov2018-06-132-0/+16
| | | | | | | | | | | | | | | | Add support for MMC on VFxxx by providing an alias to imx6_bbu_internal_mmc_register_handler(). Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: i.MX: bbu: Use pr_* functions for outputAndrey Smirnov2018-06-131-15/+15
| | | | | | | | | | | | | | | | | | Use pr_* function family for all of the logging in the file both for consistency with the rest of the code and to make all of the output be properly tagged with loglevel information. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: i.MX: bbu: Share MMC code between i.MX51 and 53Andrey Smirnov2018-06-131-15/+17
| | | | | | | | | | | | | | | | | | Both functions do exactly the same thing with only difference being type of hanler they pass one. Convert the code to use a generic function accpeting handler as additional parameter. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: i.MX: bbu: Replace magic number with a constantAndrey Smirnov2018-06-131-1/+1
| | | | | | | | | | Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: i.MX: bbu: Alias identical functionsAndrey Smirnov2018-06-131-25/+6
| | | | | | | | | | | | | | | | Some BBU functions for i.MX53 and i.MX6 are identical, so declare the latter as an alias for former to avoid code duplication. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/dts-warnings'Sascha Hauer2018-07-0963-85/+78
|\ \
| * | ARM: dts: imx6q-var-custom: remove some accidently pasted textSascha Hauer2018-06-191-7/+0
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: dts: remove @0 from environment nodesSascha Hauer2018-06-1939-39/+39
| | | | | | | | | | | | | | | | | | | | | The environment nodes do not have a reg property and as such should not have a @0 suffix. Newer dtc warns about this, so remove it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: dts: use stdout-path propertySascha Hauer2018-06-1939-39/+39
| | | | | | | | | | | | | | | | | | linx,stdout-path has been deprecated. Use stdout-path instead. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/bootm'Sascha Hauer2018-07-095-46/+128
|\ \ \
| * | | MIPS: bootm: add ELF handlerOleksij Rempel2018-06-182-0/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With this handler barebox will be able to start linux kernel as is, without additional image conversion. Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | bootm: Split bootm_load_devicetree into two functionsSascha Hauer2018-06-152-4/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It is not always desired to get the devicetree from image data and load it to a SDRAM region at the same time. Sometimes it's enough to just load it to an allocated address (in case the user has no constraints where the devicetree should be placed. This patch splits bootm_load_devicetree into bootm_get_devicetree which returns a pointer to the allocated devicetree and bootm_load_devicetree which loads the devicetree to a specified region. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ppc: bootm: Drop usage of data->oftreeSascha Hauer2018-06-151-18/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The ppc bootm code uses data->oftree to store its private data pointers. Drop this and use a local variable instead. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ppc: bootm: remove unnecessary parameterSascha Hauer2018-06-151-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | bootm_relocate_fdt takes the os address as parameter, but this can be extracted from struct image_data, so drop the parameter. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ppc: bootm: rename variablesSascha Hauer2018-06-151-12/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In bootm_relocate_fdt 'addr' is used for two different purposes, once for the os address and once for the new fdt. Make the code more readable by using two variables describing their meaning, 'os' and 'newfdt'. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: bootm: drop usage of data->oftreeSascha Hauer2018-06-151-19/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | data->oftree can be replaced with a variable local to the arm code, so drop usage of data->oftree. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | Merge branch 'for-next/arm'Sascha Hauer2018-07-095-13/+16
|\ \ \ \
| * | | | arm: arria10: enable errata 794072 and 845369Oleksij Rempel2018-07-021-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Enable workarounds for two of the errata the CPU is affected with. Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | ARM: mmu: psci: Make use of get_ttbr()Andrey Smirnov2018-06-183-5/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduce a simple inline function to get TTBR and use it in mmu.c and sm.c Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | ARM: psci: Make use of set_ttbr() in armv7_secure_monitor_install()Andrey Smirnov2018-06-181-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | ARM: psci: Remove unused code in psci_entry()Andrey Smirnov2018-06-181-6/+0
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | Remove what looks like a leftover code that doesn't appear to be referenced anywhere. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* / | | ARM: imx6qp: fix NoC QoS passthrough for new cpu type functions.Philipp Zabel2018-06-291-2/+1
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | On i.MX6QP/DP cpu_mx6_is_mx6q/d do not return true anymore. Use the new cpu_mx6_is_mx6qp/dp to reenable NoC regulator bypass. Fixes: d4c05d29d484 ("ARM: i.MX6: Add cpu type for 'plus' variants") Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | ARM: VFxxx: Record cpu boot source as a part of startupAndrey Smirnov2018-06-131-0/+2
| | | | | | | | | | | | | | | Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | ARM: i.MX: esdctl: Add support for i.MX6SoloX's memory controllerOleksij Rempel2018-06-131-0/+8
| |/ |/| | | | | | | | | | | Add code needed to dynamically detect the offset and amount of RAM. Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/mvebu'Sascha Hauer2018-06-114-59/+41
|\ \
| * | omap/am33xx_bbu: use file_write_flash() instead of its own variantUwe Kleine-König2018-06-081-35/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are two differences between file_write_flash() and write_image() (which is removed in this patch): - file_write_flash() uses write_full() vs. write() in write_image() - file_write_flash() doesn't erase the whole device but only the needed space So the new code should be more robust and maybe even faster. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | kwbimage_v0: add support to detect and boot a mvebu v0 imageUwe Kleine-König2018-06-041-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | The differences between v0 and v1 of the mvebu kwbimage are small enough that the function to boot such an image can be shared between both variants. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | dove: fix bit layout of DOVE_CPU_CTRL registerUwe Kleine-König2018-05-311-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | While creating the previous patch I checked the cpu's reference manual to see what the affected registers actually do and noticed that bits of the DOVE_CPU_CTRL actually used by the code doesn't match the bits described as AHBSlaveBase in the manual. I'm not aware of any effect (neither positive nor negative) of this patch. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>