summaryrefslogtreecommitdiffstats
path: root/arch/arm/boards/crystalfontz-cfa10036
Commit message (Collapse)AuthorAgeFilesLines
* ARM: mach-types: don't generate header at buildtimeAhmad Fatoum2024-01-042-2/+2
| | | | | | | | | | | | Now that we have removed 4642 machine types unused by barebox, we are just left with 65 boards. Let's just include the generated header in the source tree and stop generating the header anew at build time. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20231212120949.3459707-2-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: mxs: Move mach header files to include/mach/mxsSascha Hauer2023-03-062-5/+5
| | | | | | | | | | Currently arch specific headers can be included with longer possible as there won't be a single mach anymore. Move all mxs specific header files to include/mach/mxs/ to prepare for multi-arch support. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: mxs: remove unused mach/clock.hSascha Hauer2023-03-011-1/+0
| | | | | | | | mach/clock.h doesn't contain anything useful, remove it and drop its inclusion from files. Link: https://lore.barebox.org/20230228143031.1718565-2-s.hauer@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: MXS: fix breakage for non-DT boardsAhmad Fatoum2022-10-121-1/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | boarddata, the third argument passed from barebox PBL to barebox proper, is usually either a pointer to an optionally compressed flattened device tree or a machien type integer casted to a pointer. In order to support device trees located in the first 8192 bytes of address space, barebox has been trying to dereference boarddata, before falling back to treating it as integer. This resulted in breakage as boarddata may be an integer not divisible by 4 and thus an unaligned exception would occur. The already existing barebox_arm_boarddata mechanism sidesteps this issue: With it, the machine type integer is not passed as is, but the address of a suitably aligned structure that contains it is passed instead. Searching for MACH_TYPE in arch/arm/boards shows 5 boards to be affected in-tree, which are all fixed with this commit. Fixes: 390bc7834ffc ("ARM: start: check for machine type last") Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Tested-by: Bastian Krause <bst@pengutronix.de> Link: https://lore.barebox.org/20221011114927.546670-1-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* arch: add SPDX-License-Identifier to all .c filesAhmad Fatoum2022-01-051-0/+2
| | | | | | | | | Record GPL-2.0-only as license for all files lacking an explicit license statement. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20220103120539.1730644-11-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>
* magicvar: Replace BAREBOX_MAGICVAR_NAMED with BAREBOX_MAGICVARSascha Hauer2020-10-021-1/+1
| | | | | | | | BAREBOX_MAGICVAR now generates a unique identifier automatically, so we can convert users of BAREBOX_MAGICVAR_NAMED to the simpler BAREBOX_MAGICVAR macro. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* arch/arm/boards: Replace license and copyright boilerplate by SPDX identfiersUwe Kleine-König2020-05-253-46/+9
| | | | | | | | | | | | | | | | 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>
* ARM: mxs: cfa10036: Switch to multi image supportSascha Hauer2019-10-021-1/+1
| | | | | | Build the cfa10036 as multi image. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: Crytalfonts cfa10036: Check machine type in initcallsSascha Hauer2019-10-022-1/+9
| | | | | | | Check for the right machine type in initcalls before executing them to make the board multi image safe. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: boards: Harmonize barebox_arm_reset_vector() prototypeSascha Hauer2019-03-181-1/+1
| | | | | | | | | | | | barebox_arm_reset_vector() is a global function but we never provided a prototype anywhere. The prototypes differ for the different boards, so to provide a common prototype we must harmonize them. void barebox_arm_reset_vector(uint32_t r0, uint32_t r1, uint32_t r2) Should be suitable for all boards. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* treewide: Add missing includesSascha Hauer2019-03-181-0/+2
| | | | | | | | | Many files in the tree implement functions, but do not include the header files which provide the prototypes for these functions. This means conflicting prototypes remain undetected. Add the missing includes. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: i.MX28: Add memory size detectionSascha Hauer2018-08-141-24/+0
| | | | | | | | | | | | | | We can detect the SDRAM automatically, no need to let the boards do it manually. This also fixes device tree based i.MX28 boards like the duckbill. These boards once had a /memory node in the device tree, but now that this was changed to /memory@40000000 barebox didn't find it anymore. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Tested-by: Roland Hieber <r.hieber@pengutronix.de> Signed-off-by: Roland Hieber <r.hieber@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Revert "globalvar: make globalvar functions more consistent"Sascha Hauer2017-06-131-1/+1
| | | | This reverts commit 1b4a05c9263ae26083526acfabdea1ef96531a1d.
* globalvar: make globalvar functions more consistentSascha Hauer2017-04-111-1/+1
| | | | | | | | | Similar to the device parameter functions also make the globalvar functions more consistent. This also adds support for readonly globalvars and changes several existing globalvars which should really be readonly to readonly. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* defaultenv-2: remove unused *-menu-add-entry callsSascha Hauer2016-08-261-5/+0
| | | | | | | The *-menu-add-entry functions no longer exist in defaultenv-2, so remove the calls to these functions. 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>
* boards: Use nv.linux.bootargs.console for setting the console= commandline ↵Sascha Hauer2015-02-231-0/+0
| | | | | | | | | | | | parameter Using a dedicated variable makes it easier to change the console= parameter without affecting other values. Also the linux.bootargs.console variable is already used by common/console.c. Using the same variable in the environment avoids giving duplicate console= twice to the kernel Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Suggested-by: Teresa Gámez <t.gamez@phytec.de>
* ARM: MXS: Create ocotp device in SoC codeSascha Hauer2015-01-281-3/+0
| | | | | | | The ocotp device is completely SoC internal, no need to register it from boards. Register it from SoC code instead. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* sizes.h: move include/sizes.h to include/linux/sizes.hMasahiro Yamada2015-01-082-2/+2
| | | | | | | | | | | | | | 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>
* defaultenv-2: Make use of nonvolatile variablesSascha Hauer2014-11-064-18/+2
| | | | | | | | | | | | | | This moves the variable assignments previously done in /env/config-board to non volatile variables in /env/nv/. This makes the settings adjustable by the user without editing a file. Most of the changes are simple conversions which for many boards makes /env/config-board unnecessary. Some boards had some logic to assign global.boot.default based on the current bootsource. This has been moved to /env/init/bootsource. An additional check is added to not overwrite a nv.boot.default should it exist. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* move file helper functions to separate fileSascha Hauer2014-08-071-0/+1
| | | | | | | | | | We have our file helper functions in several places. Move them all to lib/libfile.c. With this we no longer have file helpers in fs/fs.c which contains the core fs functions and no functions in lib/libbb.c which are not from busybox. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* remove unused boot-menu-add-entrySascha Hauer2014-06-231-5/+0
| | | | | | | The boot-menu-add-entry script no longer exists. Remove it from boot scripts. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: MXS: Remove unused variablesSascha Hauer2014-06-051-1/+1
| | | | | | | | | | | | | Fixes: arch/arm/boards/crystalfontz-cfa10036/cfa10036.c: In function 'cfa10036_devices_init': arch/arm/boards/crystalfontz-cfa10036/cfa10036.c:119:9: warning: unused variable 'ret' [-Wunused-variable] arch/arm/boards/chumby_falconwing/falconwing.c: In function 'falconwing_devices_init': arch/arm/boards/chumby_falconwing/falconwing.c:287:9: warning: unused variable 'rc' [-Wunused-variable] arch/arm/boards/imx233-olinuxino/imx23-olinuxino.c: In function 'imx23_olinuxino_devices_init': arch/arm/boards/imx233-olinuxino/imx23-olinuxino.c:118:9: warning: unused variable 'rc' [-Wunused-variable] Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: change signature of barebox_arm_entryLucas Stach2014-05-051-1/+1
| | | | | | | | | | | Mostly to make it clear that boarddata needs to be something we can dereference. As this is a pretty invasive change, use the opportunity to make the signature 64bit safe. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* environment: drop envfs_register_partitionSascha Hauer2014-04-281-4/+1
| | | | | | | | The purpose of envfs_register_partition is to print an error message when the partition does not exist. Print an error message from generic code instead and drop this function. 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>
* cfa10036: fix warningEric Bénard2013-09-101-1/+1
| | | | | | | | | this fix : arch/arm/boards/crystalfontz-cfa10036/cfa10036.c: In function 'cfa10036_devices_init': arch/arm/boards/crystalfontz-cfa10036/cfa10036.c:123:3: warning: implicit declaration of function 'imx_gpio_mode' [-Wimplicit-function-declaration]cfa10036: fix warning Signed-off-by: Eric Bénard <eric@eukrea.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Set model and hostname at boardlevelSascha Hauer2013-08-162-1/+3
| | | | | | | | | | | | 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>
* globalvar: Allow to set initial valueSascha Hauer2013-08-161-2/+2
| | | | | | | Calling globalvar_add_simple() and setting a value is more than common. Add a parameter for the initial value. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/mxs'Sascha Hauer2013-07-011-5/+0
|\
| * ARM: MXS: remove board specific clock setupsSascha Hauer2013-06-201-5/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some boards have board specific special clock setups. These are now done in the SoC specific clock drivers. It is assumed that most board specific clock setup is done based on copy/paste from U-Boot. The generalized clock setup differs from some boards: - ioclk are adjusted to 480MHz - ssp clocks are adjusted to 96MHz - enet out clock is enabled Some boards adjusted the ioclk to 320MHz and the ssp clock to 160MHz. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | mci: rename capabilities flagsSascha Hauer2013-06-031-1/+1
|/ | | | | | | | | | Use MMC_CAP_ names instead of MMC_MODE_. This makes it more clear that these are capabilities of host/card and do not refer to the current mode. These are in line with the Linux Kernel except for MMC_CAP_MMC_HIGHSPEED_52MHZ which could be fixed later. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: cfa10036: Add more board ID for boot time detectionBrian Lilly2013-05-241-0/+16
| | | | | | | | | | As new breakout boards are being developped, we need to add their IDs in the device detection code, otherwise they will be treated as regular CFA-10036. Signed-off-by: Brian Lilly <brian@crystalfontz.com> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Remove unused config.hAlexander Shiyan2013-04-091-16/+0
| | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* cfa10036: Retrieve the RAM size at runtimeAlexandre Belloni2013-04-031-1/+17
| | | | | | | | | | | | The cfa-10036 comes in two flavours, with either 128MB or 256MB of RAM on it. Since it's not stored anywhere, we need to runtime detect it by introducing the cfa10036_get_ram_size function. Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com> Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/mxs'Sascha Hauer2013-03-043-5/+11
|\
| * ARM: cfa10036: Remove the boot partition and boot from extMaxime Ripard2013-03-031-3/+3
| | | | | | | | | | | | | | | | | | Support for ext filesystems has been introduced recently. We can now boot directly from our rootfs, loading the kernel and device tree images from /boot. Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * cfa10036: Update the environmentMaxime Ripard2013-02-272-5/+5
| | | | | | | | | | | | | | | | Since we added a new partition in the board, the partitions number of the boot and rootfs partition have changed as well. Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * cfa-10036: Use the second MMC partition to store the environmentMaxime Ripard2013-02-271-1/+7
| | | | | | | | | | | | | | | | | | Since the only storage medium on the cfa-10036 is the MMC card, we need to have a registered environment partition on it if we want to be able to modify at runtime. Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | switch boards to lwl-yJean-Christophe PLAGNIOL-VILLARD2013-02-211-2/+1
| | | | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | defenv2: move config-board out of /env/initSascha Hauer2013-02-141-0/+0
|/ | | | | | | | | | Having the board config file in /env/init has the problem that the settings in /env/config are overwritten in the init sequence. This moves the config-board files to /env/ and sources them explicitly from /env/bin/init before sourcing /env/config Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* arm: rename reset and common_reset to barebox_arm_reset_vector and ↵Jean-Christophe PLAGNIOL-VILLARD2013-02-081-2/+2
| | | | | | | | | arm_cpu_lowlevel_init reset is confusing with the cpu reset and impossible to grep Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM MXS boards: switch to barebox_arm_entrySascha Hauer2013-02-042-0/+13
| | | | | | All boards use hardcoded SDRAM addresses, copied from the board init file. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: cfa10036: Use the board variant to load a different device treeMaxime Ripard2012-12-141-2/+2
| | | | | | | | | The board variant found on the AT24 EEPROM holds the variant ID that we can use to identify which expansion board we are running on and thus which device tree to load and pass to the kernel. Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: cfa10036: Retrieve the board variant from the AT24Maxime Ripard2012-12-144-1/+123
| | | | | | | | | | | | The AT24 found on the expansion boards store the variant of the board it is soldered onto. That means that we are that way able to determine what expansion board is currently plugged in if any. If we can't communicate with the EEPROM, we just assume that only the CFA-10036 is there. Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: cfa10036: Add the AT24HC02 I2C EEPROMMaxime Ripard2012-12-141-0/+23
| | | | | | | | | | | | This EEPROM is found on the expansion boards available for the 10036 module. Since we won't need to do anything fancy except reading/writing from it, use bitbanging to communicate with it. This EEPROM will hold mostly the board_id so that we can determine if there is an expansion board plugged in and what expansion board it is. Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* defenv-2: bring back /env/configSascha Hauer2012-11-013-16/+7
| | | | | | | | | | | | | | The idea of having /env/init/* scripts was to make the configuration more flexible and customizable for boards. It turned out though that people (including myself) do not find the place where they should change these settings. So this patch brings back /env/config for defenv-2. The individual env/init/* scripts are removed and their content is added to /env/init/config-board. This makes the values from /env/init/config-board the board specific defaults which can be overwritten in /env/config. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* defenv-2: remove some helper scriptsSascha Hauer2012-11-011-1/+1
| | | | | | | | The added complexity of bootargs-ip-* and bootargs-root-* makes understanding defenv-2 more complicated. remove them and open code the scripts instead in their users. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/mxs'Sascha Hauer2012-10-031-0/+4
|\ | | | | | | | | Conflicts: arch/arm/boards/crystalfontz-cfa10036/cfa10036.c