summaryrefslogtreecommitdiffstats
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | net: add support for bcm6348-enetÁlvaro Fernández Rojas2018-12-191-1/+5
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> Reviewed-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
| * | | bmips: bcm6318: add bcm6348-iudma supportÁlvaro Fernández Rojas2018-12-191-0/+14
| | | | | | | | | | | | | | | | Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
| * | | bmips: bcm63268: add bcm6348-iudma supportÁlvaro Fernández Rojas2018-12-191-0/+14
| | | | | | | | | | | | | | | | Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
| * | | bmips: bcm6362: add bcm6348-iudma supportÁlvaro Fernández Rojas2018-12-191-0/+14
| | | | | | | | | | | | | | | | Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
| * | | bmips: bcm6328: add bcm6348-iudma supportÁlvaro Fernández Rojas2018-12-191-0/+14
| | | | | | | | | | | | | | | | Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
| * | | bmips: bcm6368: add bcm6348-iudma supportÁlvaro Fernández Rojas2018-12-191-0/+14
| | | | | | | | | | | | | | | | Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
| * | | bmips: bcm6358: add bcm6348-iudma supportÁlvaro Fernández Rojas2018-12-191-0/+16
| | | | | | | | | | | | | | | | Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
| * | | bmips: bcm6348: add bcm6348-iudma supportÁlvaro Fernández Rojas2018-12-191-0/+16
| | | | | | | | | | | | | | | | Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
| * | | bmips: bcm6338: add bcm6348-iudma supportÁlvaro Fernández Rojas2018-12-191-0/+14
| |/ / | | | | | | | | | Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
* / / dm: cpu: Add timebase frequency to the platdataBin Meng2018-12-181-0/+3
|/ / | | | | | | | | | | | | | | | | | | This adds a timebase_freq member to the 'struct cpu_platdata', to hold the "timebase-frequency" value in the cpu or /cpus node. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Lukas Auer <lukas.auer@aisec.fraunhofer.de> Reviewed-by: Anup Patel <anup@brainfault.org>
* | arm: ti: boot: Increase system partition sizeSam Protsenko2018-12-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Android code base is growing, so since Android "Pie" the size of system.img grew up to be about 740 MiB. Let's increase system.img to 1 GiB to accommodate for those changes and leave some margin for future changes. We don't want to make it more than 1 GiB, because we should keep userdata partition big enough (for user files, like media etc.), and eMMC size on BeagleBoard-X15 is only 3.5 GiB. Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org> Acked-by: Praneeth Bajjuri <praneeth@ti.com>
* | Restore compatibility of image type IDsStefano Babic2018-12-171-5/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | Commit a2b96ece5be146f4995d737f047e5bbb76079b8f breaks the enumeration of the Image Types. New image types can be appended, but they cannot be inserted in the list else backward compatibility is broken. This restores the images types as before 2018.11 and move i.MX8 related images at the end. Signed-off-by: Robert Berger <robert.berger@ReliableEmbeddedSystems.com> Signed-off-by: Stefano Babic <sbabic@denx.de> CC: Tom Rini <trini@konsulko.com>
* | Merge tag 'for-master-20181216' of git://git.denx.de/u-boot-rockchipTom Rini2018-12-161-0/+13
|\ \ | | | | | | | | | | | | | | | | | | Improvements and fixes or u-boot-rockchip: - new board: adds rv1108-elgin-r1 board support - rk3288-evb: dts: remove 'vmmc' from emmc node - rk3399-puma: dts: remove obsolete DTS node 'vcc5v0_host'
| * | ARM: rockchip: Add rv1108-elgin-r1 board supportOtavio Salvador2018-12-161-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add the initial support for Elgin R1 board, which is based on the RV1108 SoC and has the following features currently supported in U-Boot: - UART - eMMC - USB Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
* | | Merge branch 'master' of git://git.denx.de/u-boot-usbTom Rini2018-12-156-43/+38
|\ \ \ | | | | | | | | | | | | - Second half of the USB Gadget DM conversion
| * | | configs: am335x_evm: Do not disable DM_USB in SPLJean-Jacques Hiblot2018-12-141-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | DM_USB is now supported in the SPL. Do not undef it Besides to support DM_USB in SPL, one now has to use SPL_DM_USB Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com>
| * | | configs: k2g_evm: Enable DFU on K2G EVMJean-Jacques Hiblot2018-12-141-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The K2G evm uses the generic DWC3 driver. DFU can thus be enabled. Enabling DFU for easier firmware update. Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com>
| * | | usb: host: replace xhci-keystone driver by the generic dwc3 driverJean-Jacques Hiblot2018-12-141-7/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The keystone platforms can use the generic DC3 driver. Removing the keystone-spcecific xchi driver and add the configuration options to enable the generic DWC3 driver on all K2 platforms. Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com>
| * | | usb: composite: Move bitmap related operations to ./include/linux/bitmap.hLukasz Majewski2018-12-144-36/+27
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The BITMAP related operations can now be moved to ./include/linux/bitmap.h file to mimic the Linux kernel directory tree. This change also allows to remove the lin_gadget_compat.h header file (which is a legacy code only for composite U-boot layer). It was also possible to remove #includes from several USB gadget drivers. Signed-off-by: Lukasz Majewski <lukma@denx.de> Reviewed-by: Stefan Agner <stefan.agner@toradex.com>
* | | tee: change return code for REE FS supplicant cmdIgor Opaniuk2018-12-151-0/+1
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If OP-TEE core is compiled with support of REE FS and RPMB at the same time (CFG_RPMB_FS ?= y; CFG_RPMB_FS ?= y), and persistent storage API is used with TEE_STORAGE_PRIVATE storage id, it will lead to TA panic. E/TC:? 0 TA panicked with code 0xffff0009 ..... E/TC:? 0 Call stack: E/TC:? 0 0x000000004002f2f8 TEE_OpenPersistentObject at lib/libutee/tee_api_objects.c:422 In this particular case TEE_ERROR_STORAGE_NOT_AVAILABLE is more suitable than TEE_ERROR_NOT_IMPLEMENTED, as it provides to a TA a possibility to handle this error code [1]. >From GPD TEE Internal Core specification [2]: TEE_ERROR_STORAGE_NOT_AVAILABLE - if the persistent object is stored in a storage area which is currently inaccessible. It may be associated with the device but unplugged, busy, or inaccessible for some other reason. [1]: https://github.com/OP-TEE/optee_os/blob/94db01ef448d1e552161c2d861d57a5f8bda0cc0/lib/libutee/tee_api_objects.c#L419 [2]: https://globalplatform.org/wp-content/uploads/2018/06/GPD_TEE_Internal_Core_API_Specification_v1.1.2.50_PublicReview.pdf Signed-off-by: Igor Opaniuk <igor.opaniuk@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
* | dm: sound: Use the correct number of channels for soundSimon Glass2018-12-131-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | At present the 'beep' sound generates a waveform for only one channel even if two are being used. This means that the beep is twice the frequency it should be. Correct this by making it a parameter. The fix in a previous commit was correct for sandbox but not for other boards. Fixes: 03f11e87a8 ("sound: Correct data output in sound_create_square_wave()") Signed-off-by: Simon Glass <sjg@chromium.org>
* | dm: sound: Complete migration to driver modelSimon Glass2018-12-131-18/+0
| | | | | | | | | | | | | | All users of sound are converted to use driver model. Drop the old code and the CONFIG_DM_SOUND option. Signed-off-by: Simon Glass <sjg@chromium.org>
* | dm: core: Add a function to read into a unsigned intSimon Glass2018-12-131-0/+58
| | | | | | | | | | | | | | | | | | | | | | The current dev_read...() functions use s32 and u32 which are convenient for device tree but not so useful for normal code, which often wants to use normal integers for values. Add a helper which supports returning an unsigned int. Also add signed versions of the unsigned readers. Signed-off-by: Simon Glass <sjg@chromium.org>
* | dm: sound: Create a uclass for soundSimon Glass2018-12-132-2/+69
| | | | | | | | | | | | | | | | | | | | | | The sound driver pulls together the audio codec and i2s drivers in order to actually make sounds. It supports setup() and play() methods. The sound_find_codec_i2s() function allows locating the linked codec and i2s devices. They can be referred to from uclass-private data. Add a uclass and a test for sound. Signed-off-by: Simon Glass <sjg@chromium.org>
* | dm: sound: Create a uclass for i2sSimon Glass2018-12-132-4/+29
| | | | | | | | | | | | | | | | | | | | | | The i2s bus is commonly used with audio codecs. It provides a way to stream digital data sychronously in both directions. U-Boot only supports audio output, so this uclass is very simple, with a single tx_data() method. Add a uclass and a test for i2s. Signed-off-by: Simon Glass <sjg@chromium.org>
* | dm: sound: Create a uclass for audio codecsSimon Glass2018-12-132-0/+49
| | | | | | | | | | | | | | | | An audio codec provides a way to convert digital data to sound and vice versa. Add a simple uclass which just supports setting the parameters for the codec. Signed-off-by: Simon Glass <sjg@chromium.org>
* | dm: sound: Rename samsung_i2s_priv to i2s_uc_privSimon Glass2018-12-131-3/+3
| | | | | | | | | | | | | | | | This structure contains information that is likely needed by any i2s driver so it seems useful to attach it to the (forthcoming) i2c uclass. For now, just rename it. Signed-off-by: Simon Glass <sjg@chromium.org>
* | dm: sound: Drop codec_typeSimon Glass2018-12-131-9/+0
| | | | | | | | | | | | | | This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
* | dm: sound: samsung: Rename i2stx_info to samsung_i2s_privSimon Glass2018-12-131-4/+4
| | | | | | | | | | | | | | | | This struct is only used by the Samsung I2C driver and should move into that driver. For now, rename it so it is clear that is driver-private info. Signed-off-by: Simon Glass <sjg@chromium.org>
* | dm: sound: Rename en_sound_codec to sound_codecSimon Glass2018-12-131-2/+2
|/ | | | | | The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
* am3517_evm: Use ttyS2 instead of ttyO2Adam Ford2018-12-121-1/+1
| | | | | | | | The serial driver in the kernel moved from ttyOx to ttySx a while ago. This patch updates the console parameter to align with the kernel change. Signed-off-by: Adam Ford <aford173@gmail.com>
* qemu-arm: Add persistent environment supportSumit Garg2018-12-121-1/+7
| | | | | | | | | | | | | | | | Currently on qemu-arm platforms environment is kept in RAM. Instead use pflash device 1 to provide persistent environment support across device reset. Also (optionally) provide support for persistent environment across qemu machine OFF/ON using following instructions: - Create envstore.img using qemu-img: qemu-img create -f raw envstore.img 64M - Add a pflash drive parameter to the command line: -drive if=pflash,format=raw,index=1,file=envstore.img Signed-off-by: Sumit Garg <sumit.garg@linaro.org>
* qemu-arm: Enable VirtIO distro targetSumit Garg2018-12-121-0/+1
| | | | | | | | With -device virtio-blk-device,drive=hd0, it could detect distro boot target. Signed-off-by: Sumit Garg <sumit.garg@linaro.org> Reviewed-by: Alexander Graf <agraf@suse.de>
* Merge tag 'fsl-qoriq-for-v2019.01-rc2' of git://git.denx.de/u-boot-fsl-qoriqTom Rini2018-12-1023-21/+256
|\ | | | | | | | | | | | | | | Add TFA boot flow for some Layerscape platforms Add support for lx2160a SoC [trini: Add a bunch of missing MAINTAINERS entries] Signed-off-by: Tom Rini <trini@konsulko.com>
| * ls1088a: Move CONFIG_FSL_QSPI to defconfigAshish Kumar2018-12-062-2/+0
| | | | | | | | | | | | Signed-off-by: Rajat Srivastava <rajat.srivastava@nxp.com> Signed-off-by: Ashish Kumar <Ashish.Kumar@nxp.com> Reviewed-by: York Sun <york.sun@nxp.com>
| * armv8: ls1088ardb_pb: Add support for board detectionPramod Kumar2018-12-061-1/+2
| | | | | | | | | | | | | | | | ls1088ardb-pb and ls1088ardb both boards are ls1088a based soc, board type detection is dynamic at boot time Signed-off-by: Pramod Kumar <pramod.kumar_1@nxp.com> Reviewed-by: York Sun <york.sun@nxp.com>
| * armv8: ls1012afrx: Add TFABOOT supportRajesh Bhagat2018-12-063-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | TFABOOT support includes: - ls1012a2g5rdb/ls1012afrdm/ls1012afrwy_tfa_defconfig to be loaded by trusted firmware - define BOOTCOMMAND for TFABOOT Signed-off-by: Pankit Garg <pankit.garg@nxp.com> Signed-off-by: Rajesh Bhagat <rajesh.bhagat@nxp.com> [YS: remove unnecessary braces] Reviewed-by: York Sun <york.sun@nxp.com>
| * armv8: ls1012aqds: fix secure boot compilationRajesh Bhagat2018-12-061-0/+1
| | | | | | | | | | | | | | | | Includes environment.h file in ls1012aqds.c Also, enables pfe validation Signed-off-by: Vinitha V Pillai <vinitha.pillai@nxp.com> Reviewed-by: York Sun <york.sun@nxp.com>
| * armv8: ls1012ardb: Add TFABOOT supportRajesh Bhagat2018-12-062-1/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | TFABOOT support includes: - ls1012ardb_tfa_defconfig to be loaded by trusted firmware - environment address and size changes for TFABOOT - define BOOTCOMMAND for TFABOOT - enable PFE validation for secure boot Signed-off-by: Rajesh Bhagat <rajesh.bhagat@nxp.com> Signed-off-by: Vinitha V Pillai <vinitha.pillai@nxp.com> Signed-off-by: Pankit Garg <pankit.garg@nxp.com> Reviewed-by: York Sun <york.sun@nxp.com>
| * armv8: ls1043aqds: Add TFABOOT supportRajesh Bhagat2018-12-061-2/+48
| | | | | | | | | | | | | | | | | | | | | | | | TFABOOT support includes: - ls1043aqds_tfa_defconfig to be loaded by trusted firmware - environment address and size changes for TFABOOT - define BOOTCOMMAND for TFABOOT Signed-off-by: Pankit Garg <pankit.garg@nxp.com> Signed-off-by: Vinitha V Pillai <vinitha.pillai@nxp.com> Signed-off-by: Rajesh Bhagat <rajesh.bhagat@nxp.com> Reviewed-by: York Sun <york.sun@nxp.com>
| * armv8: ls1043ardb: Add TFABOOT supportRajesh Bhagat2018-12-062-1/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | TFABOOT support includes: - ls1043ardb_tfa_defconfig to be loaded by trusted firmware - environment address and size changes for TFABOOT - FMAN and QE address changes for TFABOOT - define BOOTCOMMAND for TFABOOT Signed-off-by: Pankit Garg <pankit.garg@nxp.com> Signed-off-by: Vinitha V Pillai <vinitha.pillai@nxp.com> Signed-off-by: Rajesh Bhagat <rajesh.bhagat@nxp.com> Reviewed-by: York Sun <york.sun@nxp.com>
| * armv8: ls1046aqds: Add TFABOOT supportRajesh Bhagat2018-12-061-2/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | TFABOOT support includes: - ls1046aqds_tfa_defconfig to be loaded by trusted firmware - environment address and size changes for TFABOOT - FMAN address changes for TFABOOT - define BOOTCOMMAND for TFABOOT Signed-off-by: Pankit Garg <pankit.garg@nxp.com> Signed-off-by: Vinitha V Pillai <vinitha.pillai@nxp.com> Signed-off-by: Rajesh Bhagat <rajesh.bhagat@nxp.com> Reviewed-by: York Sun <york.sun@nxp.com>
| * armv8: ls1046ardb: Add TFABOOT supportRajesh Bhagat2018-12-062-0/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | TFABOOT support includes: - ls1046ardb_tfa_defconfig to be loaded by trusted firmware - environment address and size changes for TFABOOT - FMAN address changes for TFABOOT - define BOOTCOMMAND for TFABOOT Signed-off-by: York Sun <york.sun@nxp.com> Signed-off-by: Pankit Garg <pankit.garg@nxp.com> Signed-off-by: Vinitha V Pillai <vinitha.pillai@nxp.com> Signed-off-by: Rajesh Bhagat <rajesh.bhagat@nxp.com>
| * drivers: ifc: dynamic chipselect mapping supportPankit Garg2018-12-061-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | IFC driver changes to implement the chipselect mappings at run time. Defines init_early_memctl_regs and init_final_memctl_regs with chipselect dynamic mapping for nor and nand boot. Signed-off-by: Pankit Garg <pankit.garg@nxp.com> Signed-off-by: Rajesh Bhagat <rajesh.bhagat@nxp.com> [YS: fix checkpatch issues] Reviewed-by: York Sun <york.sun@nxp.com>
| * driver/ifc: replace __ilog2 with LOG2 macroRajesh Bhagat2018-12-067-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Replaces __ilog2 function call with LOG2 macro, required to use macros in global variables. Also, corrects the value passed in LOG2 for some PowerPC platforms. Minimum value that can be configured is is 64K for IFC IP. Signed-off-by: Pankit Garg <pankit.garg@nxp.com> Signed-off-by: Rajesh Bhagat <rajesh.bhagat@nxp.com> [YS: fix white space around operator] Reviewed-by: York Sun <york.sun@nxp.com>
| * env: allow flash and nand env driver to compile togetherRajesh Bhagat2018-12-041-1/+0
| | | | | | | | | | | | | | | | Define env_ptr as static in flash and nand env driver to allow these to compile together. Signed-off-by: Rajesh Bhagat <rajesh.bhagat@nxp.com> Reviewed-by: York Sun <york.sun@nxp.com>
* | Merge tag 'for-master-20181210' of git://git.denx.de/u-boot-rockchipTom Rini2018-12-102-0/+49
|\ \ | | | | | | | | | | | | | | | | | | | | | Improvements: - init DRAM for RK322x in SPL - add FAN53555 PMIC/regulator driver - update MicroCrystal RV3029 driver to Kconfig and sync from Linux - add bootcount uclass and first DM-driver for bootcount
| * | bootcount: add uclass for bootcountPhilipp Tomsich2018-12-102-0/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The original bootcount methods do not provide an interface to DM and rely on a static configuration for I2C devices (e.g. bus, chip-addr, etc. are configured through defines statically). On a modern system that exposes multiple devices in a DTS-configurable way, this is less than optimal and a interface to DM-based devices will be desirable. This adds a simple driver that is DM-aware and configurable via DTS. If ambiguous (i.e. multiple bootcount-devices are present) the /chosen/u-boot,bootcount-device property can be used to select one bootcount device. Initially, this provides support for the following DM devices: * RTC devices Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Tested-by: Klaus Goger <klaus.goger@theobroma-systems.com>
* | | Merge branch 'master' of git://git.denx.de/u-boot-i2cTom Rini2018-12-1011-23/+60
|\ \ \ | | | | | | | | | | | | | | | | - DM_I2C_COMPAT removal for all ti platforms from Jean-Jacques Hiblot - Fix in i2c command help output from Chirstoph Muellner.
| * | | lib: fdtdec: Add function re-setup the fdt more effecientlyJean-Jacques Hiblot2018-12-102-0/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In some cases it may be useful to be able to change the fdt we have been using and use another one instead. For example, the TI platforms uses an EEPROM to store board information and, based on the type of board, different dtbs are used by the SPL. When DM_I2C is used, a first dtb must be used before the I2C is initialized and only then the final dtb can be selected. To speed up the process and reduce memory usage, introduce a new function fdtdec_setup_best_match() that re-use the DTBs loaded in memory by fdtdec_setup() to select the best match. Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com> Reviewed-by: Heiko Schocher <hs@denx.de>