summaryrefslogtreecommitdiffstats
path: root/arch/arm/boards/beaglebone
Commit message (Collapse)AuthorAgeFilesLines
* ARM: beaglebone: init MPU speed to 800MhzMarc Reilly2021-06-151-1/+1
| | | | | | | | | This sets the core processor speed to 800Mhz (from 500). Doing this helps speed the boot up a bit until the CPU freq govenor takes over. Signed-off-by: Marc Reilly <marc@cpdesign.com.au> Link: https://lore.barebox.org/20210613222639.13190-4-marc@cpdesign.com.au 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-17/+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>
* ARN: boards: Remove duplicate includesAlexander Shiyan2019-01-181-1/+0
| | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/misc'Sascha Hauer2018-04-061-20/+6
|\
| * ARM: AM335x: Fix invalid register accessSascha Hauer2018-03-191-20/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Several DDR3 phy registers are written with the pattern x<<30 | x<<20 | x<<10 | x. The x<<30 doesn't fit into 32bit which causes a compiler warning. Looking at the reference manual only the lower 10bit of the registers have any meaning, so drop the other bogus values. This affects the registers: AM33XX_DATA0_RD_DQS_SLAVE_RATIO_0 AM33XX_DATA0_WR_DQS_SLAVE_RATIO_0 AM33XX_DATA0_WR_DQS_SLAVE_RATIO_1 AM33XX_DATA0_WRLVL_INIT_RATIO_0 AM33XX_DATA0_GATELVL_INIT_RATIO_0 AM33XX_DATA0_GATELVL_INIT_RATIO_1 AM33XX_DATA0_FIFO_WE_SLAVE_RATIO_0 AM33XX_DATA0_WR_DATA_SLAVE_RATIO_0 (AM33XX_DATA0_WR_DQS_SLAVE_RATIO_1 and AM33XX_DATA0_GATELVL_INIT_RATIO_1 do not even exist according to the reference manual, but that's another story.) Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | ARM: return positive offset in get_runtime_offset()Sascha Hauer2018-03-211-1/+1
|/ | | | | | | | | | | 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>
* 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>
* arm: am33xx: Initialize EMIF REG_PR_OLD_COUNTDaniel Schultz2017-01-301-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch is based on a patch from the U-Boot and fixes two errors with the LCDC. Original commit message from Jyri Sarha [1]: "Initialize EMIF OCP_CONFIG registers REG_COS_COUNT_1, REG_COS_COUNT_2, and REG_PR_OLD_COUNT field for Beaglebone-Black and am335x-evm. With the default values LCDC suffers from DMA FIFO underflows and frame synchronization lost errors. The initialization values are the highest that work flawlessly when heavy memory load is generated by CPU. 32bpp colors were used in the test. On BBB the video mode used 110MHz pixel clock. The mode supported by the panel of am335x-evm uses 30MHz pixel clock." The register values are generated by testing, because there is no formula to calculate them. Also from Jyri Sarha [1]: "In practice the only rule to find an optimal value is to find as high as possible REG_PR_OLD_COUNT value that does not produce LCDC FIFO underflows under worst case scenario. The worst case happens when the highest pixel clock videomode with maximum bpp is used while memory subsystem is stressed by endless stream of writes hitting the same memory memory bank (can be the same address)." It only contains the BeagleBone Black and the Phytec SoM, because I don't have other boards. [1] https://patchwork.ozlabs.org/patch/704013/ Signed-off-by: Daniel Schultz <d.schultz@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: AM335x: Make use of ARM_USE_COMPRESSED_DTBTeresa Remmet2016-02-171-6/+6
| | | | | | | | | | Use ARM_USE_COMPRESSED_DTB for all AM335x based board, to reduce the image size even more. Saves about 9kB in MLO image and 20kB in barebox image. Signed-off-by: Teresa Remmet <t.remmet@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* arm: am33xx: Master Osc clock speed handlingDaniel Schultz2016-01-261-2/+2
| | | | | | | | | Setup the plls with Master Osc. clock speed from the SYSBOOT Configuration Pin. Signed-off-by: Daniel Schultz <d.schultz@phytec.de> Signed-off-by: Teresa Remmet <t.remmet@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: am335x: Register eMMC MLO handlerDaniel Schultz2015-09-091-0/+4
| | | | | | | Register the eMMC MLO handler to the barebox_update command. Signed-off-by: Daniel Schultz <d.schultz@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/misc'Sascha Hauer2015-01-092-2/+2
|\
| * 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>
* | ARM: am335x bone: Fix Booting from eMMCSascha Hauer2015-01-061-0/+3
|/ | | | | | | | | | | | | | | | | Booting a beaglebone black from eMMC is broken since: commit 0d6392de4ad824a6553c0e3e3e18edef689a7c85 Author: Sascha Hauer <s.hauer@pengutronix.de> Date: Thu Jun 5 12:09:07 2014 +0200 ARM: AM335x: Beaglebone: Use stripped down devicetree for MLO The stripped down device tree does not have the eMMC device node which the beaglebone black needs for booting. Add this node to the common dts file, but keep it disabled. It gets enabled later with a call to am33xx_of_register_bootdevice() when the system is booted from eMMC. 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: AM335x: beaglebone: add simple script to change usb current limitJan Luebbe2014-06-231-0/+5
| | | | | Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: AM335x: beaglebone: remove obsolete configJan Luebbe2014-06-231-19/+0
| | | | | | | | The bootargs are now autogenerated by barebox and the hostname should not be preconfigured. Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: AM335x: Beaglebone: Fix memory setup for Beaglebone blackPhilipp Zabel2014-06-171-0/+17
| | | | | | | | | | | | | | | | Commit 0d6392de4ad824a6553c0e3e3e18edef689a7c85 introduced a stripped down device tree used for both white and black Beaglebone variants that included the 256 MiB memory node from am335x-bone-common.dtsi. This leads to the following error in the MLO: mmu: Critical Error: Can't request SDRAM region for ttb at 9fff4000 This patch removes the (for the Beaglebone black) invalid memory size from the common device tree and instead registers the memory bank manually in the board file. Signed-off-by: Philipp Zabel <philipp.zabel@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: AM335x: Beaglebone: Use stripped down devicetree for MLOSascha Hauer2014-06-051-5/+5
| | | | | | | | | The beaglebone white and black have different devicetrees. Both get linked into the MLO which makes it too big. Use a devicetree generated from am335x-bone-common.dtsi which both board variants can share. This reduces the binary size by about 30k. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: AM335x: beaglebone: change to defaultenv_append_directorySascha Hauer2014-05-154-0/+4
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: am33xx: Pass uart_base to soft_reset functionSascha Hauer2014-05-151-1/+1
| | | | | | | To make am33xx_uart0_soft_reset more flexible rename it to am33xx_uart_soft_reset and pass the UART base to it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: beaglebone: remove extra FDT memcpyLucas Stach2014-05-051-16/+3
| | | | | | | | Not needed anymore, as barebox now accepts FDTs outside of it's visible DRAM, as long as it's a valid pointer. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: change signature of barebox_arm_entryLucas Stach2014-05-051-9/+11
| | | | | | | | | | | 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>
* Merge branch 'for-next/arm-barebox-bootm'Sascha Hauer2014-01-071-1/+0
|\
| * 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: OMAP: early call am33xx_register_ethaddrJan Weitzel2013-12-121-2/+10
| | | | | | | | | | | | | | | | am33xx_register_ethaddr must be called before cpsw driver start. Move it from devices_initcall to coredevice_initcall. Signed-off-by: Jan Weitzel <j.weitzel@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | ARM: beaglebone: Switch to devicetree and multiimageSascha Hauer2013-12-103-132/+62
|/ | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: OMAP: Make debug_ll UART Kconfig selectableSascha Hauer2013-11-221-1/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: am33xx: Add am33xx_ prefix to SoC specific functionsSascha Hauer2013-11-221-2/+2
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: OMAP: Add SoC prefix to running_in_* functionsSascha Hauer2013-11-221-1/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* beaglebone: use most recent timings for white variantJan Luebbe2013-10-061-7/+7
| | | | | | | These values come from the U-Boot source code. Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/omap'Sascha Hauer2013-09-053-208/+182
|\ | | | | | | | | Conflicts: arch/arm/boards/pcm051/env/config
| * ARM: beaglebone: register sd/emmc with persistent nameSascha Hauer2013-09-051-2/+18
| | | | | | | | | | | | | | To get persistent names for the sd/emmc cards register them with a name in platform_data. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: beaglebone: add support for beaglebone black with DDR3 RAMJan Luebbe2013-09-053-6/+105
| | | | | | | | | | Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: beaglebone: Initialize UART for lowlevel debuggingSascha Hauer2013-09-051-0/+4
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: am33xx: make DDR PLL frequency configurableSascha Hauer2013-08-271-1/+1
| | | | | | | | | | | | Needed for 400MHz DDR3. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: am33xx: beaglebone: configure I2C EEPROMJan Luebbe2013-08-271-0/+9
| | | | | | | | | | Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: beaglebone: Clean up lowlevel codeTeresa Gámez2013-08-271-204/+52
| | | | | | | | | | | | | | | | Using here now the initialisiation functions in am33xx_generic. Signed-off-by: Teresa Gámez <t.gamez@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: omap: fix omap_save_bootinfoSascha Hauer2013-08-271-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | omap_save_bootinfo derefences the argument passed to barebox without checking it for validity. This breaks 2nd stage booting where r0 is undefined. The best we can do is to check whether the pointer is somewhere in SRAM and is word aligned. This at least makes sure that we do not oops. This introduces SoC specific xxx_save_bootinfo variants since the SRAM addresses/sizes differ between SoCs. Additionally fix the prototype for omap_save_bootinfo. It uses r0, so it must be passed this variable. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * AM33xx: Make OSC frequency board dependedTeresa Gámez2013-08-221-1/+1
| | | | | | | | | | | | | | | | | | | | The oscillator frequency varies on different AM33xx boards. Pass the osc frequency from lowlevel board code to set the correct one on every board. Signed-off-by: Teresa Gámez <t.gamez@phytec.de> Reviewed-by: Jan Luebbe <jlu@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Set model and hostname at boardlevelSascha Hauer2013-08-162-2/+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>
* arm: omap: store boot source info from ROM loaderTeresa Gámez2013-07-101-1/+4
| | | | | | | | | | | | | | | | | | The ROM loader passes the address of a buffer to the MLO in register 0. Store this data so we can find the boot source later. On the same way the bootinformation are passed to the barebox, then. It has to be enshured that r0 contains always the buffer or the boot source detection will not work. Applied this on all OMAPs. This patch is based on work of Jan Luebbe <jlu@pengutronix.de>. Compile tested on all OMAP boards. Tested on pcm049, phyCARD-A-L1 and pcm051. Signed-off-by: Teresa Gámez <t.gamez@phytec.de> Tested-by: Christoph Fritz <chf.fritz@googlemail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: AM33xx: Make mpu pll configurable by lowlevel board codeTeresa Gámez2013-07-101-1/+1
| | | | | Signed-off-by: Teresa Gámez <t.gamez@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/remove-config-h'Sascha Hauer2013-05-061-17/+0
|\
| * Remove unused config.hAlexander Shiyan2013-04-091-17/+0
| | | | | | | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | beaglebone: remove stray semicolonJan Luebbe2013-04-181-1/+1
|/ | | | | Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* OMAP: Add option to use environment from MMCTeresa Gámez2013-04-031-32/+0
| | | | | | | | | | Make loading environment from MMC generic for all OMAP. Tested on AM335x, OMAP4. Signed-off-by: Teresa Gámez <t.gamez@phytec.de> Tested-by: Jan Weitzel <j.weitzel@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* OMAP: Move bootsource functionsTeresa Gámez2013-04-031-1/+0
| | | | | | | | | | | The bootsource functions are not specific to the first stage bootloader. They may also be used for detecting the bootsource to decide where to load the environment from. Also clean up includes in board files. Signed-off-by: Teresa Gámez <t.gamez@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* AM33XX: Move muxing defines to header fileTeresa Gámez2013-03-252-3/+3
| | | | | | | | | | The muxing in the am33xx_mux.c file is not generic as the muxing setup does not fit for every board. Move the structs and functions to the mach/am33xx-mux.h so board dependend mux setups can be created. Signed-off-by: Teresa Gámez <t.gamez@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>