summaryrefslogtreecommitdiffstats
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | mx7ulp_evk: Remove unneeded SDHC definitionsFabio Estevam2020-01-161-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As we use the driver model for ESDHC there is no need for defining CONFIG_SYS_FSL_USDHC_NUM and CONFIG_SYS_FSL_ESDHC_ADDR, so simply remove them. Signed-off-by: Fabio Estevam <festevam@gmail.com> Reviewed-by: Peng Fan <peng.fan@nxp.com>
* | | | Merge tag '2020-01-20-ti-2020.04' of ↵Tom Rini2020-01-209-9/+238
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://gitlab.denx.de/u-boot/custodians/u-boot-ti K3 J721E: * DMA support. * MMC and ADMA support. * EEPROM support. * J721e High Security EVM support. * USB DT nodes K3 AM654: * Fixed boot due to pmic probe error. * USB support and DT nodes. * ADMA support DRA7xx/AM57xx: * BBAI board support * Clean up of net platform code under board/ti AM33/AM43/Davinci: * Reduce SPL size for omap3 boards. * SPL DT support for da850-lcdk * PLL divider fix for AM335x
| * | | | configs: am65x_evm: Enable USB keyboard as second stdinVignesh Raghavendra2020-01-201-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Enable USB keyboard to be used as input device at U-Boot prompt. Both serial and USB keyboard will be active inputs simultaneously. Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
| * | | | configs: am65x_evm: Add DFU related env variablesVignesh Raghavendra2020-01-201-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add env variables that set up dfu_alt_info for MMC/EMMC/OSPI. This is required to allow update of firmware on these media. Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
| * | | | configs: ti: Factor out call to 'args_mmc' into MMC common environmentAndrew F. Davis2020-01-202-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Both 'loadfit' and 'mmcloados' start with a call to 'args_mmc' so this can be factored out to before eithers only call site. This also allows us to remove that call from 'loadfit', which should not have been calling it anyway as that command should not be MMC specific. Without the call to 'args_mmc' the command 'loadfit' becomes just a call to 'run_fit' so remove the indirection and call 'run_fit' directly, this removes the need for 'loadfit' command (which was misnamed anyway). Drop it. Signed-off-by: Andrew F. Davis <afd@ti.com> Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
| * | | | configs: j721e_evm.h: Sync J721e environment configuration with AM65xAndrew F. Davis2020-01-201-3/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some of the environment configuration in AM65x is not available in J721e due to additions on one but not the other. These two platforms are similar enough these common definitions should be factored out to a common area, prepare for this by synchronizing them. Signed-off-by: Andrew F. Davis <afd@ti.com> Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
| * | | | arm: am57xx: env: Fix DFU variablesSam Protsenko2020-01-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit 8502fe84a4fc ("configs: am57xx_evm: define CONFIG_SPL_LOAD_FIT_ADDRESS for SPL-DFU") implements incorrect ifdef logic, which leads to DFU variables absence in non-SPL environment. Fix that in order to bring back DFU variables, by reflecting the logic in include/configs/dra7xx_evm.h. Fixes: 8502fe84a4fc ("configs: am57xx_evm: define CONFIG_SPL_LOAD_F...") Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
| * | | | board: ti: beagleboneai: enable in am57xx_evm_defconfigCaleb Robey2020-01-201-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adding the configurations to the evm_defconfig file Signed-off-by: Jason Kridner <jdk@ti.com> Signed-off-by: Caleb Robey <c-robey@ti.com> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
| * | | | board: ti: beagleboneai: add initial supportCaleb Robey2020-01-201-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These are necessities for beaglebone ai boot. There is the addition of CONFIG_SUPPORT_EMMC_CONFIG to the Kconfig file. This is present upstream but not in 19.01 yet. Signed-off-by: Jason Kridner <jdk@ti.com> Signed-off-by: Caleb Robey <c-robey@ti.com> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
| * | | | configs: j721e_evm: Add configs for environment in eMMCFaiz Abbas2020-01-201-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add config to save and read back environment from eMMC. Signed-off-by: Faiz Abbas <faiz_abbas@ti.com> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
| * | | | configs: j721e_evm_a72: Add Support for GPT partitionsFaiz Abbas2020-01-201-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduce a default GPT partition table for eMMC. Signed-off-by: Faiz Abbas <faiz_abbas@ti.com> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
| * | | | lib: Import few bitmap functions from LinuxVignesh Raghavendra2020-01-202-0/+145
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Import few basic bitmap functions (bitmap_{weight,fill,set,clear,or}()) and their dependencies from Linux. These are required for upcoming DMA resource allocation support for TI's K3 SoCs. Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com> Reviewed-by: Grygorii Strashko <grygorii.strashko@ti.com> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
| * | | | environment: ti: Add DFU environment variables k3_dfu.hVignesh Raghavendra2020-01-202-0/+56
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | Setup env variables for updating firmwares on eMMC/OSPI/MMC via DFU Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
* | | | Merge tag 'u-boot-stm32-20200117' of ↵Tom Rini2020-01-201-8/+31
|\ \ \ \ | |_|_|/ |/| | | | | | | | | | | | | | | https://gitlab.denx.de/u-boot/custodians/u-boot-stm - stm32mp1: split SOC and board and cleanup config
| * | | ARM: stm32: Fill in missing loadaddrMarek Vasut2020-01-171-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since CONFIG_LOADADDR is not set, the default value of $loadaddr variable is not set in the environment either. Set the default load address to 32 MiB from the start of DRAM (same value than kernel_addr_r). Signed-off-by: Marek Vasut <marex@denx.de> Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
| * | | stm32mp1: configs: Make all boot devices in distro boot conditionalMarek Vasut2020-01-171-6/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Not all systems have all the boot devices enabled, e.g. not all systems have MTD devices and thus do not enable UBI. Make all the boot devices in the distro bootcmd conditional to avoid failures. Signed-off-by: Marek Vasut <marex@denx.de> Cc: Patrick Delaunay <patrick.delaunay@st.com> Cc: Patrice Chotard <patrice.chotard@st.com> Reviewed-by: Patrice Chotard <patrice.chotard@st.com> Reviewed-by: Patrick Delaunay <patrick.delaunay@st.com>
* | | | common: Update comment to show progressSimon Glass2020-01-171-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This file doesn't include any declarations anymore but it does include other headers. Update the header comment to mention this. Signed-off-by: Simon Glass <sjg@chromium.org>
* | | | common: Collect all the header files togetherSimon Glass2020-01-171-24/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | There are many header files included here. Put them all together since the blank lines are not useful. Signed-off-by: Simon Glass <sjg@chromium.org>
* | | | common: Move and rename CONFIG_SYS_SUPPORT_64BIT_DATASimon Glass2020-01-172-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is not really a CONFIG since it is not intended to be set by boards. Move it into the compiler header with other similar defines, and rename it. Signed-off-by: Simon Glass <sjg@chromium.org>
* | | | common: Move ROUND() into kernel.hSimon Glass2020-01-172-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | Move this macro in with all the other rounding macros. Signed-off-by: Simon Glass <sjg@chromium.org>
* | | | common: Move check_member() to kernel.hSimon Glass2020-01-172-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The kernel.h file has a number of useful macros including a few related to structures. Move check_member() there too. Signed-off-by: Simon Glass <sjg@chromium.org>
* | | | common: Move hang() to the same header as panic()Simon Glass2020-01-172-5/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | At present panic() is in the vsprintf.h header file. That does not seem like an obvious choice for hang(), even though it relates to panic(). So let's put hang() in its own header. Signed-off-by: Simon Glass <sjg@chromium.org> [trini: Migrate a few more files] Signed-off-by: Tom Rini <trini@konsulko.com>
* | | | common: Move testdram() into init.hSimon Glass2020-01-172-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | This function is called during init so move it to the init header file. Signed-off-by: Simon Glass <sjg@chromium.org>
* | | | common: Move RAM-sizing functions to init.hSimon Glass2020-01-172-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | These functions relate to memory init so move them into the init header. Signed-off-by: Simon Glass <sjg@chromium.org>
* | | | common: Rename and move source()Simon Glass2020-01-172-3/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This function has a very generic name which does not adequately describe its purpose. Rename it and move it to image.h, since it relates to reading a script from an image. Signed-off-by: Simon Glass <sjg@chromium.org>
* | | | common: Move the image globals into image.hSimon Glass2020-01-172-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | These three globals relate to image handling. Move them to the image header file. Signed-off-by: Simon Glass <sjg@chromium.org>
* | | | image: Rename load_addr, save_addr, save_sizeSimon Glass2020-01-171-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These global variables are quite short and generic. In fact the same name is more often used locally for struct members and function arguments. Add a image_ prefix to make them easier to distinguish. Signed-off-by: Simon Glass <sjg@chromium.org>
* | | | common: Move reset_cpu() to the CPU headerSimon Glass2020-01-172-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | Move this function out of common.h and into a relevant header file. Signed-off-by: Simon Glass <sjg@chromium.org>
* | | | common: Move reset_misc() function to arch headerSimon Glass2020-01-171-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This function is only used on ARM devices. Move it out of the common file and to a arch-specific header. Signed-off-by: Simon Glass <sjg@chromium.org>
* | | | common: Move get_tbclk() to time.hSimon Glass2020-01-172-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This function related to timer and most of the timer functions are in time.h, so move this function there. Signed-off-by: Simon Glass <sjg@chromium.org>
* | | | common: Move clock functions into a new fileSimon Glass2020-01-172-5/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | These three clock functions don't use driver model and should be migrated. In the meantime, create a new file to hold them. Signed-off-by: Simon Glass <sjg@chromium.org>
* | | | common: Move upmconfig() to ppc.hSimon Glass2020-01-171-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This file is only used by PowerPC so move it to an arch-specific header file. Signed-off-by: Simon Glass <sjg@chromium.org>
* | | | common: Move ll_boot_init() to init.hSimon Glass2020-01-172-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | This is an init-related function so belongs in that file. Move it. Signed-off-by: Simon Glass <sjg@chromium.org>
* | | | common: arm: Move s_init() to an ARM-specific headerSimon Glass2020-01-171-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This function is only used on ARM devices so does not belong in the global common header file. Move it to an ARM header. Signed-off-by: Simon Glass <sjg@chromium.org>
* | | | common: Move device-tree setup functions to fdt_support.hSimon Glass2020-01-172-12/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These functions relate to setting up the device tree for booting the OS. The fdt_support.h header file supports similar functions, so move these there. Signed-off-by: Simon Glass <sjg@chromium.org>
* | | | common: Move type declarations to linux/types.hSimon Glass2020-01-172-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This file already has lots of type declarations so it seems better to put all of them there. Move them. Signed-off-by: Simon Glass <sjg@chromium.org>
* | | | common: Drop the symbol_lookup() declarationSimon Glass2020-01-171-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This function is not called anywhere so we can drop the declaration. If it is needed one day, it should be added in its own header file. Signed-off-by: Simon Glass <sjg@chromium.org>
* | | | common: Drop CONFIG_HAS_POSTSimon Glass2020-01-171-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This only exists to control whether the post/ directory is build. It is just as easy to check this in the Makefile. Remove CONFIG_HAS_POST and use an ifdef in the Makefile instead. Signed-off-by: Simon Glass <sjg@chromium.org>
* | | | common: Drop CONFIG_POST_STD/ALT_LISTSimon Glass2020-01-171-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These CONFIG options are not used anymore. CONFIG_POST_ALT_LIST just causes CONFIG_POST_STD_LIST to be set and it causes tests.c to be compiled. So just make compiling tests.c unconditional. Signed-off-by: Simon Glass <sjg@chromium.org>
* | | | common: Move CONFIG_SYS_DEF_EEPROM_ADDR out of common.hSimon Glass2020-01-172-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This define seems better suited to the eeprom header file, particularly as it is only used in the eeprom.c file. Move it. Signed-off-by: Simon Glass <sjg@chromium.org>
* | | | common: Move reset_phy() to net.hSimon Glass2020-01-172-3/+8
| | | | | | | | | | | | | | | | | | | | | | | | This is a network function so let's move it into that header. Signed-off-by: Simon Glass <sjg@chromium.org>
* | | | common: Drop floppy disk supportSimon Glass2020-01-172-234/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This seems pretty old now. It has not been converted to driver model and is not used by any boards. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
* | | | common: Move jumptable_init() out of common.hSimon Glass2020-01-172-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This function is defined in exports.c so move it to its header file. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
* | | | common: Move relocate_code() to init.hSimon Glass2020-01-172-6/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is an init function so move it out of the common header. Avoid using the typedef so that we don't have to include the global_data header file. Also tidy up the function style in comments while we are here. Signed-off-by: Simon Glass <sjg@chromium.org>
* | | | common: Move functions for loading from fat/ext2 to fs.hSimon Glass2020-01-172-6/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | These are filesystem functions and belong in the filesystem header file. Move them. Signed-off-by: Simon Glass <sjg@chromium.org>
* | | | common: Move do_tftpb() to net.hSimon Glass2020-01-172-3/+11
| | | | | | | | | | | | | | | | | | | | | | | | This function belongs in the network header file. Move it. Signed-off-by: Simon Glass <sjg@chromium.org>
* | | | common: Move embedded fdt location to fdtdec.hSimon Glass2020-01-172-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | These declarations are only used in fdtdec.c so move them to its header file. Signed-off-by: Simon Glass <sjg@chromium.org>
* | | | common: Drop checkflash() and checkdram()Simon Glass2020-01-171-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | These functions are not used in U-Boot. Drop them. Signed-off-by: Simon Glass <sjg@chromium.org>
* | | | common: Move flash_perror() to flash.hSimon Glass2020-01-172-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This function belongs more in flash.h than common.h so move it. Also remove the space before the bracket in some calls. Signed-off-by: Simon Glass <sjg@chromium.org>
* | | | common: Move main_loop() to init.hSimon Glass2020-01-172-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Move this function out of common.h and into a better place. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>