summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| * | cmd: Move the "dm" command from test/dm/ to cmd/Tom Rini2018-12-153-1/+1
| | | | | | | | | | | | | | | | | | | | | The "dm" command under CONFIG_CMD_DM should live under cmd/ rather than test/dm/ so move it. Signed-off-by: Tom Rini <trini@konsulko.com>
| * | hashtable: fix length calculation in hexport_rAKASHI Takahiro2018-12-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | The commit below incorrectly fixed hexport_r(); > size = totlen + 1; One extra byte is necessary to NULL-terminate a whole buffer, "resp." Fixes: f1b20acb4a03 ("hashtable: Fix length calculation in hexport_r") Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
| * | tee: change return code for REE FS supplicant cmdIgor Opaniuk2018-12-152-2/+3
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | Merge tag 'dm-pull-14dec18' of git://git.denx.de/u-boot-dmTom Rini2018-12-1465-928/+2916
|\ \ | |/ |/| | | Complete conversion of sound to driver model
| * dm: sound: Use the correct number of channels for soundSimon Glass2018-12-133-10/+14
| | | | | | | | | | | | | | | | | | | | | | | | 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: sandbox: Allow selection of sample rate and channelsSimon Glass2018-12-133-10/+8
| | | | | | | | | | | | | | At present these parameters are hard-coded in the sdl interface code. Allow them to be specified by the driver instead. Signed-off-by: Simon Glass <sjg@chromium.org>
| * dm: sound: max98095: Tidy up error codesSimon Glass2018-12-131-24/+23
| | | | | | | | | | | | Return a valid error code instead of -1. Signed-off-by: Simon Glass <sjg@chromium.org>
| * dm: sound: Fix license headersSimon Glass2018-12-132-9/+3
| | | | | | | | | | | | Fix a few files whos license headers were not converted to SPDX. Signed-off-by: Simon Glass <sjg@chromium.org>
| * dm: sound: Complete migration to driver modelSimon Glass2018-12-1318-475/+16
| | | | | | | | | | | | | | 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: exynos: Drop CONFIG_DM_I2C_COMPATSimon Glass2018-12-136-6/+0
| | | | | | | | | | | | | | This option is not needed anymore for all exynos boards except arndale. Update the config. Signed-off-by: Simon Glass <sjg@chromium.org>
| * dm: sandbox: sound: Convert to use driver modelSimon Glass2018-12-133-11/+55
| | | | | | | | | | | | | | | | Update sandbox's device tree and config to use driver model for sound. Use the double buffer for sound output so that we don't need to wait for the sound to complete before returning. Signed-off-by: Simon Glass <sjg@chromium.org>
| * dm: exynos: sound: Convert to use driver modelSimon Glass2018-12-1315-22/+145
| | | | | | | | | | | | | | | | | | | | | | Update snow's device tree and config to use driver model for sound. Also update the others as best we can. Spring does not appear to have audio support in the kernel. The smdk5250 and smdk5420 boards use a wolfson codec which I cannot test with. So the only boards that is tested and known to work are snow, pit and pi. Signed-off-by: Simon Glass <sjg@chromium.org>
| * dm: sound: exynos: Add support for max98090Simon Glass2018-12-134-0/+1049
| | | | | | | | | | | | Add support for this new codec which is used by pit. Signed-off-by: Simon Glass <sjg@chromium.org>
| * dm: sound: Move common code out of maxim98095Simon Glass2018-12-135-135/+204
| | | | | | | | | | | | | | The register-access code is useful for any maxim codec. Move it out into its own file. Signed-off-by: Simon Glass <sjg@chromium.org>
| * exynos: Add support for exynos5420 i2s pinmuxSimon Glass2018-12-133-2/+39
| | | | | | | | | | | | | | | | Allow setting the i2s pinmux correctly on exyno5420 so that i2c can be used on that SoC. Also rename EXYNOS_AUDSS to something consistent with other naming. Signed-off-by: Simon Glass <sjg@chromium.org>
| * exynos: Add proid_is_exynos542x() for common 542xSimon Glass2018-12-137-13/+15
| | | | | | | | | | | | Add a convenience function for any Exynos 542x chip. Signed-off-by: Simon Glass <sjg@chromium.org>
| * dm: sound: Add conversion to driver modelSimon Glass2018-12-138-17/+320
| | | | | | | | | | | | Move the existing hardware drivers over to use driver model. Signed-off-by: Simon Glass <sjg@chromium.org>
| * dm: sound: Start i2c IDs from 0Simon Glass2018-12-133-6/+4
| | | | | | | | | | | | | | | | The current ID enums start from 1 but there does not seem to be any reason that they cannot start with 0. Adjust the code to avoid the +1 in codec_init(). Signed-off-by: Simon Glass <sjg@chromium.org>
| * dm: core: Add a function to read into a unsigned intSimon Glass2018-12-134-0/+118
| | | | | | | | | | | | | | | | | | | | | | 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-1310-4/+351
| | | | | | | | | | | | | | | | | | | | | | 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: sandbox: Update sound to use two buffersSimon Glass2018-12-131-25/+63
| | | | | | | | | | | | | | | | | | | | At present we use a single buffer for sound which means we cannot be playing one sound while queueing up the next. This wouldn't matter except that a long sound (more than a second) has to be created as a single buffer, thus using a lot of memory. To better mimic what real sound drivers do, add support for double buffering in sandbox. Signed-off-by: Simon Glass <sjg@chromium.org>
| * dm: sound: Create a uclass for i2sSimon Glass2018-12-139-6/+163
| | | | | | | | | | | | | | | | | | | | | | 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-139-1/+182
| | | | | | | | | | | | | | | | 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-133-10/+10
| | | | | | | | | | | | | | | | 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: Create an option to use driver model for soundSimon Glass2018-12-132-0/+7
| | | | | | | | | | | | | | | | | | | | The U-Boot sound system provides basic support for beeping. At present it does not use driver model, but it needs to be converted. Add an option to enable driver model for sound. For now it is not connected to anything. Future work will add drivers which use this option. It will then be removed once everything is converted. Signed-off-by: Simon Glass <sjg@chromium.org>
| * dm: sound: exynos: Correct codec bus addressesSimon Glass2018-12-134-12/+11
| | | | | | | | | | | | | | | | For snow the codec is at address 0x11 on the i2c bus, in 7-bit format. The device tree and code are in 8-bit format (i.e. shifted left one bit). Fix both. Fix pit in a similar way. Signed-off-by: Simon Glass <sjg@chromium.org>
| * dm: sound: Fix up header orderingSimon Glass2018-12-133-28/+27
| | | | | | | | | | | | Tidy up the ordering of header files in the sounds files. Signed-off-by: Simon Glass <sjg@chromium.org>
| * dm: sound: wm8994: Drop wm8994_i2c_init()Simon Glass2018-12-131-11/+1
| | | | | | | | | | | | This function has only one line in it. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
| * dm: sound: max98095: Drop g_codec_info and g_max98095_infoSimon Glass2018-12-131-15/+12
| | | | | | | | | | | | | | | | These are only used in two functions so can be made local. Also change the first argument of max98095_do_init() to suit. Signed-off-by: Simon Glass <sjg@chromium.org>
| * dm: sound: wm8994: Drop g_codec_info and g_wm8994_infoSimon Glass2018-12-131-9/+7
| | | | | | | | | | | | These are only used in two functions so can be made local. Signed-off-by: Simon Glass <sjg@chromium.org>
| * dm: sound: max98095: Drop global i2c-address variableSimon Glass2018-12-131-4/+4
| | | | | | | | | | | | We can put this in the private structure and avoid a global. Signed-off-by: Simon Glass <sjg@chromium.org>
| * dm: sound: wm8994: Drop global i2c-address variableSimon Glass2018-12-131-4/+4
| | | | | | | | | | | | We can put this in the private structure and avoid a global. Signed-off-by: Simon Glass <sjg@chromium.org>
| * dm: sound: max98095: Split out interface setup codeSimon Glass2018-12-131-12/+24
| | | | | | | | | | | | | | | | | | With driver model we want to do a minimal probe when the device is probed and then set up the codec interface later when a sound is actully played. Split this setup code out into its own function to help with this. Signed-off-by: Simon Glass <sjg@chromium.org>
| * dm: sound: wm899c: Split out interface setup codeSimon Glass2018-12-131-11/+23
| | | | | | | | | | | | | | | | | | With driver model we want to do a minimal probe when the device is probed and then set up the codec interface later when a sound is actully played. Split this setup code out into its own function to help with this. Signed-off-by: Simon Glass <sjg@chromium.org>
| * dm: sound: wm8994: Create a new common init functionSimon Glass2018-12-131-23/+33
| | | | | | | | | | | | | | | | With driver model we cannot pass in the global struct, but instead want to pass in the driver-private data. Split some of the code out of wm8994_init() to handle this. Signed-off-by: Simon Glass <sjg@chromium.org>
| * dm: sound: max98095: Pass private data to internal functionsSimon Glass2018-12-131-74/+78
| | | | | | | | | | | | | | | | | | | | | | | | At present the driver-private data is global. To allow this code to be used with driver model, change it to pass the data down to each function. Use the name 'priv' consistently throughout. Also rename max98095_update_bits() to max98095_bic_or() which is more descriptive and shorter, thus breaking fewer lines with the parameter addition. Signed-off-by: Simon Glass <sjg@chromium.org>
| * dm: sound: wm8994: Pass private data to internal functionsSimon Glass2018-12-131-142/+154
| | | | | | | | | | | | | | | | | | | | | | | | At present the driver-private data is global. To allow this code to be used with driver model, change it to pass the data down to each function. Use the name 'priv' consistently throughout. Also rename wm8994_update_bits() to wm8994_bic_or() which is more descriptive and shorter, thus breaking fewer lines with the parameter addition. Signed-off-by: Simon Glass <sjg@chromium.org>
| * dm: sound: Drop codec_typeSimon Glass2018-12-133-33/+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-133-12/+12
| | | | | | | | | | | | | | | | 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: Drop unused pre-device-tree codeSimon Glass2018-12-132-12/+0
| | | | | | | | | | | | | | CONFIG_OF_CONTROL is enabled for all boards that use sound, so remove the dead code. 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>
| * dm: sound: samsung: Make local function staticSimon Glass2018-12-132-5/+5
| | | | | | | | | | | | | | Several functions are not exported from this file. Make them static so this is clear. Signed-off-by: Simon Glass <sjg@chromium.org>
| * snow: Expand U-Boot sizeSimon Glass2018-12-131-1/+1
| | | | | | | | | | | | | | Now that we have EFI, etc. enabled, U-Boot is larger than it was. Expand the region allocated for it. Signed-off-by: Simon Glass <sjg@chromium.org>
| * sandbox: Increase the pre-relocation memorySimon Glass2018-12-136-5/+2
|/ | | | | | | This is close to full now, so increase it to avoid problems with adding more devices. Signed-off-by: Simon Glass <sjg@chromium.org>
* Merge branch 'master' of git://git.denx.de/u-boot-i2cTom Rini2018-12-131-0/+7
|\
| * i2c: tegra: Fix regression by implementing a dummy probe_chip() callbackJean-Jacques Hiblot2018-12-121-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | Commit f32a8007ef0f ("dm: i2c: Make i2c_get_chip_for_busnum() fail if the chip is not detected") introduced a regression for the NVIDIA Jetson TX2. For some reason the xfer callback of the tegra i2c driver doesn't support probing the I2C devices with a 0-length message. Fixing the regression by providing a dummy implementation of probe_chip() that does nothing. Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com> Tested-by: Stephen Warren <swarren@nvidia.com>
* | Merge branch '2018-12-12-master-imports'Tom Rini2018-12-1232-144/+112
|\ \ | |/ |/| | | | | | | - Various small TI platform updates - Two unit test fixes - qemu-arm updates
| * 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>
| * firmware: psci: introduce SPL_ARM_PSCI_FWPeng Fan2018-12-122-1/+5
| | | | | | | | | | | | | | Introduce a new macro SPL_ARM_PSCI_FW Signed-off-by: Peng Fan <peng.fan@nxp.com> Reviewed-by: Stefano Babic <sbabic@denx.de>
| * test: overlay: NULL passed as fdtHeinrich Schuchardt2018-12-121-19/+9
| | | | | | | | | | | | | | | | | | | | | | The uts created in do_ut_overlay() is not the one used in cmd_ut_category(). Currently all tests are therefore called with uts->priv = NULL and fail. Using a static variable is the easiest fix here. Fixes: e93232e15ec9 ("test: overlay: Use cmd_ut_category()") Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>