summaryrefslogtreecommitdiffstats
path: root/arch/arm/boards/karo-tx6x
Commit message (Collapse)AuthorAgeFilesLines
* ARM: karo-tx6x: Fix DCD check operationsSascha Hauer2022-05-034-36/+35
| | | | | | | | | | | | | | | | | In f04deb4018 was discovered that we used the wrong names for the check operations. What we named "while_all_bits_clear" really was the operation "until_all_bits_clear" and likewise for the other operations, so this patch renamed the operations from "while_*" to "until_*". Additionally it was assumed that the users have the correct textual logic, but were compiled to the wrong result. At least for the Karo TX6X boards it was the other way round though: The texts were wrong, but the result was correct. This means, although they had the wrong text, the result was working on the hardware. Now f04deb4018 replaced "while_all_bits_clear" with "until_all_bits_set" and with this broke the DCD tables. Fix this by replacing them with the correct commands. Fixes: f04deb4018 ("i.MX/DCD compiler and interpreter: logic is different") Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: i.MX: add SPDX-License-Identifier for DCDAhmad Fatoum2022-01-057-0/+13
| | | | | | | | | | | In absence of a license statement, the default is GPL-2.0-only. Add that to the DCD files. All of // /* */ # are acceptable comment characters in the DSL. If there are nearby comments in the file, the same character is used, otherwise #. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20220103120539.1730644-8-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* treewide: add SPDX-License-Identifier for Kbuild/KconfigAhmad Fatoum2022-01-051-0/+2
| | | | | | | | | | | | | | | To verify only Kconfig/Makefile is touched: git show --numstat --format=oneline HEAD | grep -v 'Kconfig\|Makefile' will print only arch/powerpc/Kbuild. To verify nothing unexpected is added: git show -U0 | grep '^-[^-]\|^+[^+]' | sort -u Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20220103120539.1730644-3-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/misc'Sascha Hauer2020-07-271-11/+2
|\
| * arm/boards: Replace license boilerplate by SPDX identfiersUwe Kleine-König2020-07-141-11/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adapts all files that were identifed by licensecheck (https://salsa.debian.org/build-common-team/licensecheck.git) as licensed under the GPL. The copyright situation isn't trivially clear for these files, so I didn't replace the copyright statement here with machine-parseable tags. While touching these files also do some minor comment reformatting to get some uniform layout. Reviewed-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | scripts: imx-image: rename dcdofs to ivtofsSascha Hauer2020-07-144-4/+4
|/ | | | | | | | | This renames the dcdofs config option in the imx-image tool to ivtofs. dcdofs is a misnomer. The DCD (Device Configuration Data) is only one part of the data linked into the IVT (Image Vector Table), but the meaning of the option is really the latter, not the former. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* arch/arm/boards: Replace license and copyright boilerplate by SPDX identfiersUwe Kleine-König2020-05-254-52/+8
| | | | | | | | | | | | | | | | 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>
* treewide: remove references to CREDITSUwe Kleine-König2020-04-273-9/+0
| | | | | | | | The CREDITS file was removed from barebox in 2015 by commit 6570288f2d97 ("Remove the CREDITS file"). Remove references to it from several files. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: Cleanup stack offset cargo cultSascha Hauer2019-09-091-4/+4
| | | | | | | | | Most callers of arm_setup_stack substract a fixed offset of 8, 12 or 16 bytes from the stack top. This is unnecessary as on ARM we have a stack that decrements before storing values. Substracting this offset probably goes back to the U-Boot version we forked from. Stop this now. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: boards: karo-tx6x: Make locally used function staticSascha Hauer2018-10-231-1/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* arm: mach-imx: remove unused headerMichael Grzeschik2018-09-041-1/+0
| | | | | | | | The defines are also in mach/clocks-imx6.h prefixed with MXC instead of MX6. Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/imx'Sascha Hauer2018-04-064-37/+37
|\
| * i.MX/DCD compiler and interpreter: logic is differentJuergen Borleis2018-03-264-37/+37
| | | | | | | | | | | | | | | | | | | | | | Reading the manual more carefully discovers a different logic for the DCD 'check' command. They use the term "until". In order to get the manual and the software in sync, this change switches to the term "until" as well. Changing must happen at compiler and interpreter level to make it work. Signed-off-by: Juergen Borleis <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | ARM: return positive offset in get_runtime_offset()Sascha Hauer2018-03-211-4/+4
|/ | | | | | | | | | | When we are linked at 0x0 and running at 0x01000000 then get_runtime_offset() should return 0x01000000 and not 0xff000000. This makes get_runtime_offset() more consistent and better understandable. This was tested on a Freescale i.MX53 Quickstart board. Additionally relocate_to_adr() was tested since that is normally not called. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: imx: use register defines in imxcfg files instead of plain numbersUwe Kleine-König2017-07-073-326/+335
| | | | | | | | | | | | | This makes the imxcfg files more readable and also makes it possible to share more assignments between machines that just differ by the used SoC. (Though I have to admit that in the cases converted here it just more easily allows to see that the RAM config differs more than probably necessary.) This change is intended to have no effect on the built artifacts. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
* ARM: i.MX: karo-tx6: Add support for the 512MiB i.MX6s variantSascha Hauer2016-07-062-0/+156
| | | | | | This adds support for the TX6S-8x35 board variant. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: i.MX: karo-tx6: Add support for the 2GiB i.MX6q+ board variantSascha Hauer2016-04-282-0/+203
| | | | | | Different SDRAM setup, but same board otherwise. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: i.MX: karo-tx6: add pr_fmtSascha Hauer2016-03-071-0/+2
| | | | | | Add pr_fmt to print tx6 specific messages with a proper prefix. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: i.MX: karo-tx6: Setup other PMICsSascha Hauer2016-03-076-130/+509
| | | | | | | | | The TX6 boards come with 3 different PMIC variants from which we currently only support the ltc3673. Detect the other two by i2c address and set them up correctly. The code is based on the karo U-Boot port. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: i.MX: karo-tx6: Generalize 801x supportSascha Hauer2016-03-021-2/+2
| | | | | | | | | | The device tree for the 801x variant only contains displays. The displays are not part of the SoM, but instead of the baseboard, so they should be described in a baseboard dts. With this patch we rather include the common tx6x dtsi file and drop 801x from the barebox device tree names. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: i.MX: karo-tx6: Add support for the i.MX6q 1GiB variantSascha Hauer2016-03-023-1/+196
| | | | | | | The i.MX6q variant is basically the same as the i.MX6dl variant, just with another SoC and the usual i.MX6q/i.MX6dl adjustments. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: i.MX: karo-tx6: Support eMMC board variantsSascha Hauer2016-03-021-1/+25
| | | | | | | | | | | The TX6 board come with either NAND flash or eMMC as primary storage medium. This adds support for the eMMC variants. We can detect if we have NAND or eMMC by looking at the bootsource which will be configured accordingly. This way we can modify the device tree during runtime and do not have to create a new image. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* arm: boards: karo-tx6x remove definition of DIV_ROUND_UPMarkus Pargmann2015-12-101-1/+1
| | | | | | | DIV_ROUND_UP is defined in include/linux/kernel.h. Use that instead. Signed-off-by: Markus Pargmann <mpa@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* i.MX: serial: Distil common clock ungating codeAndrey Smirnov2015-05-071-9/+1
| | | | | | | | | Move all of the common clock ungating code in early UART initialization into a dedicated subroutine that can be shared by all of the users. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* i.MX: serial: Convert i.MX51 and i.MX6 to use 'imx*_uart_setup_ll'Andrey Smirnov2015-05-071-10/+1
| | | | | | | | | NOTE: Boards 'karo-tx25' and 'tqma53' can benefit from this refactoring as well, but they were not converted because of the lack of i.MX25 or i.MX53 based hardware to test on. Signed-off-by: Andrey Smirnov <andrew.smirnov@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>
* ARM: i.MX6: add support for Karo TX6X familySteffen Trumtrar2014-09-196-0/+461
The Karo TX6X family consists of different i.MX6Q/DL based System-on-Modules. Add support for the TX6u 801x modules, that have an i.MX6DL SoC. Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>