Re: [U-Boot] [PATCH 00/19] riscv: Adding RISC-V CPU and timer driver

2018-12-03 Thread Anup Patel
On Tue, Nov 13, 2018 at 1:47 PM Bin Meng wrote: > > This adds DM drivers to support RISC-V CPU and timer. > > The U-Boot RISC-V SBI support is still working in progress. > Some patches in this series like adding CSR numbers, exception > numbers, are prerequisites for the SBI implementation, but it

Re: [U-Boot] [PATCH 00/19] riscv: Adding RISC-V CPU and timer driver

2018-12-03 Thread Bin Meng
Hi Anup, On Mon, Dec 3, 2018 at 3:59 PM Anup Patel wrote: > > On Tue, Nov 13, 2018 at 1:47 PM Bin Meng wrote: > > > > This adds DM drivers to support RISC-V CPU and timer. > > > > The U-Boot RISC-V SBI support is still working in progress. > > Some patches in this series like adding CSR numbers,

Re: [U-Boot] [PATCH v2 13/14] cmd: efishell: export uefi variable helper functions

2018-12-03 Thread AKASHI Takahiro
On Mon, Dec 03, 2018 at 12:54:44AM +0100, Alexander Graf wrote: > > > On 05.11.18 10:06, AKASHI Takahiro wrote: > > Those function will be used for integration with 'env' command > > so as to handle uefi variables. > > > > Signed-off-by: AKASHI Takahiro > > --- > > cmd/efishell.c| 4 ++-- >

Re: [U-Boot] [PATCH v7 4/4] RISC-V: Add S-mode timer implementation

2018-12-03 Thread Anup Patel
On Mon, Dec 3, 2018 at 1:27 PM Bin Meng wrote: > > Hi Anup, > > On Mon, Dec 3, 2018 at 3:44 PM Anup Patel wrote: > > > > On Mon, Dec 3, 2018 at 1:08 PM Bin Meng wrote: > > > > > > Hi Anup, > > > > > > On Mon, Dec 3, 2018 at 3:31 PM Anup Patel wrote: > > > > > > > > On Mon, Dec 3, 2018 at 12:56

Re: [U-Boot] [PATCH v2] efi_loader: set image_base and image_size to correct values

2018-12-03 Thread AKASHI Takahiro
On Sun, Dec 02, 2018 at 11:46:29PM +0100, Alexander Graf wrote: > > > On 12.10.18 02:55, AKASHI Takahiro wrote: > > On Thu, Oct 11, 2018 at 04:18:33PM +0200, Heinrich Schuchardt wrote: > >> On 10/11/2018 01:11 PM, AKASHI Takahiro wrote: > >>> Currently, image's image_base points to an address whe

Re: [U-Boot] [PATCH v7 4/4] RISC-V: Add S-mode timer implementation

2018-12-03 Thread Bin Meng
Hi Anup, On Mon, Dec 3, 2018 at 4:12 PM Anup Patel wrote: > > On Mon, Dec 3, 2018 at 1:27 PM Bin Meng wrote: > > > > Hi Anup, > > > > On Mon, Dec 3, 2018 at 3:44 PM Anup Patel wrote: > > > > > > On Mon, Dec 3, 2018 at 1:08 PM Bin Meng wrote: > > > > > > > > Hi Anup, > > > > > > > > On Mon, Dec

Re: [U-Boot] [PATCH] cmd: bmp: manage centered display

2018-12-03 Thread Patrick DELAUNAY
Hi Anatolij, > From: Anatolij Gustschin > Sent: samedi 1 décembre 2018 15:06 > > Hi Patrick, > > On Wed, 14 Nov 2018 10:18:22 +0100 > Patrick Delaunay patrick.delau...@st.com wrote: > ... > > > > +#define BMP_ALIGN_CENTER 0x7FFF > > this already exists when including splash.h, I dropped it i

[U-Boot] [PATCH] nand: vybrid: Use calloc() instead of malloc() to allocate struct nfc

2018-12-03 Thread Lukasz Majewski
Without this change it is possible that Vybrid's NFC driver malloc() call will obtain some memory used (and correctly free'd) by some previous driver (in this case pinctrl for Vybrid). As a result some fields of struct nfc - in out case mtd->_get_device - are "pre initialized" with some random val

Re: [U-Boot] [PATCH] cmd: bmp: manage centered display

2018-12-03 Thread Anatolij Gustschin
Hi Patrick, On Mon, 3 Dec 2018 08:45:57 + Patrick DELAUNAY patrick.delau...@st.com wrote: ... > > > +#define BMP_ALIGN_CENTER 0x7FFF > > > > this already exists when including splash.h, I dropped it in v2. > > Ok, I don't see that splash.h is included in cmd/bmp.c. In mainline U-Boot it

Re: [U-Boot] [PATCH v3 1/1] efi_loader: rework fdt handling in distro boot script

2018-12-03 Thread Alexander Graf
> Am 03.12.2018 um 03:22 schrieb AKASHI Takahiro : > >> On Sun, Dec 02, 2018 at 11:58:45PM +0100, Alexander Graf wrote: >> >> >>> On 27.11.18 01:33, AKASHI Takahiro wrote: >>> The current scenario for default UEFI booting, scan_dev_for_efi, has >>> several issues: >>> * load dtb dynamically ev

[U-Boot] [PATCH 2/2] nand: vybrid: Extend the vf610 NFC NAND driver to support device tree (and DM)

2018-12-03 Thread Lukasz Majewski
This commit adds support for device tree and enumeration via device model for the Vybrid's NFC NAND driver. Signed-off-by: Lukasz Majewski --- drivers/mtd/nand/raw/vf610_nfc.c | 47 1 file changed, 47 insertions(+) diff --git a/drivers/mtd/nand/raw/vf61

[U-Boot] [PATCH 1/2] Kconfig: Add entry for VF610 NAND NFC device tree aware driver

2018-12-03 Thread Lukasz Majewski
This commit provides code to add proper entry to Kconfig to enable support for VF610 device tree aware driver. Signed-off-by: Lukasz Majewski --- drivers/mtd/nand/raw/Kconfig | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/mtd/nand/raw/Kconfig b/drivers/mtd/nand/raw/Kc

[U-Boot] [PATCH 0/5] Update STM32 gpio and pinctrl drivers

2018-12-03 Thread Patrice Chotard
This series adds: - Add gpio holes management in gpio and pinctrl drivers - Remove useless CONFIG_CLK flag from gpio driver - Move code outside pinctrl probe() There is a dependency with http://patchwork.ozlabs.org/project/uboot/list/?series=78259 which must be applied first. Patr

[U-Boot] [PATCH 1/5] pinctrl: stm32: Move gpio_dev list filling outside probe()

2018-12-03 Thread Patrice Chotard
Move gpio_dev list filling outside probe() to speed-up U-boot boot sequence execution. This list is populated only when needed. Signed-off-by: Patrice Chotard --- drivers/pinctrl/pinctrl_stm32.c | 63 + 1 file changed, 38 insertions(+), 25 deletions(-) d

[U-Boot] [PATCH 4/5] gpio: stm32f7: Remove CONFIG_CLK flag.

2018-12-03 Thread Patrice Chotard
As all STM32 SoCs supports CONFIG_CLK flag, it becomes useless in this driver, remove it. Signed-off-by: Patrice Chotard --- drivers/gpio/stm32f7_gpio.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpio/stm32f7_gpio.c b/drivers/gpio/stm32f7_gpio.c index 34cdafa

[U-Boot] [PATCH 2/5] gpio: stm32f7: Add gpio bank holes management

2018-12-03 Thread Patrice Chotard
In some STM32 SoC packages, GPIO bank has not always 16 gpios. Several cases can occur, gpio hole can be located at the beginning, middle or end of the gpio bank or a combination of these 3 configurations. For that, gpio bindings offer the gpio-ranges DT property which described the gpio bank mapp

[U-Boot] [PATCH 5/5] pinctrl: stm32: Update stm32_pinctrl_get_gpio_dev()

2018-12-03 Thread Patrice Chotard
Due to gpio holes management, stm32_pinctrl_get_gpio_dev() must be updated. stm32_pinctrl_get_gpio_dev() returns from a given pin selectors the corresponding bank gpio device and the gpio_offset inside this gpio bank. Update also all functions which makes usage of stm32_pinctrl_get_gpio_dev. Sig

[U-Boot] [PATCH 3/5] gpio: stm32f7: Move STM32_GPIOS_PER_BANK into gpio.h

2018-12-03 Thread Patrice Chotard
To allow access to this define by other driver, move it into gpio.h Signed-off-by: Patrice Chotard --- arch/arm/include/asm/arch-stm32/gpio.h| 2 ++ arch/arm/mach-stm32mp/include/mach/gpio.h | 2 ++ drivers/gpio/stm32f7_gpio.c | 1 - 3 files changed, 4 insertions(+), 1 deletio

[U-Boot] ensure active menuitem is inside menu

2018-12-03 Thread Frank Wunderlich
Hi, setting active menuitem currently can be outside of menu which results in invisible selection attached Patch fixes this regards Frank>From 1d9c4cb8b3e2dd9b0a7a6a2d4a21684d0a099dbf Mon Sep 17 00:00:00 2001 From: Frank Wunderlich Date: Sun, 2 Dec 2018 11:23:53 +0100 Subject: [PATCH] ensure a

Re: [U-Boot] [PATCH v7 4/4] RISC-V: Add S-mode timer implementation

2018-12-03 Thread Anup Patel
On Mon, Dec 3, 2018 at 2:16 PM Bin Meng wrote: > > Hi Anup, > > On Mon, Dec 3, 2018 at 4:12 PM Anup Patel wrote: > > > > On Mon, Dec 3, 2018 at 1:27 PM Bin Meng wrote: > > > > > > Hi Anup, > > > > > > On Mon, Dec 3, 2018 at 3:44 PM Anup Patel wrote: > > > > > > > > On Mon, Dec 3, 2018 at 1:08 P

Re: [U-Boot] ensure active menuitem is inside menu

2018-12-03 Thread Simon Goldschmidt
On Mon, Dec 3, 2018 at 11:23 AM Frank Wunderlich wrote: > > Hi, > > setting active menuitem currently can be outside of menu which results in > invisible selection > > attached Patch fixes this Have you read the section "Submitting Patches" in the README file? https://github.com/u-boot/u-boot/b

Re: [U-Boot] ensure active menuitem is inside menu

2018-12-03 Thread Frank Wunderlich
Hi Patchwork had extracted the Patch... https://patchwork.ozlabs.org/patch/1006783/ but next time i append Patch in the Mail-text Regards Frank > Gesendet: Montag, 03. Dezember 2018 um 11:50 Uhr > Von: "Simon Goldschmidt" > An: "Frank Wunderlich" > Cc: "U-Boot Mailing List" > Betreff: Re: [

Re: [U-Boot] [RESEND][PATCH] power: regulator: denied disable on always-on regulator

2018-12-03 Thread Felix Brack
On 15.11.2018 13:45, Patrice Chotard wrote: > From: Patrick Delaunay > > Don't disable regulator which are tagged as "regulator-always-on" in DT. > > Signed-off-by: Patrick Delaunay > Reviewed-by: Simon Glass > Reviewed-by: Jack Mitchell > Tested-by: Jack Mitchell > Signed-off-by: Patrice Ch

Re: [U-Boot] ensure active menuitem is inside menu

2018-12-03 Thread Simon Goldschmidt
On Mon, Dec 3, 2018 at 11:58 AM Frank Wunderlich wrote: > > Hi > > Patchwork had extracted the Patch... > > https://patchwork.ozlabs.org/patch/1006783/ Oh, sorry then. Somehow I failed to find it :-/ Regards, Simon > > but next time i append Patch in the Mail-text > > Regards Frank > > > Gesend

Re: [U-Boot] [PATCH] driver/spi: fsl_qspi: Remove non-DM stuff

2018-12-03 Thread Schrempf Frieder
Hi, On 07.09.18 06:19, Ashish Kumar wrote: > Convert fsl_qspi.c to complete DM mode. > > Signed-off-by: Ashish Kumar > Tested-by: Rajat Srivastava > Tested-by: Ye Li > --- > > Tested on LS1088ARDB(arm64). > Tested on LS1021ATWR(arm32) by Rajat > Tested on i.mx6 and i.mx7 by Ye Li > > Depends

Re: [U-Boot] [PATCH v3 5/5] arc: select BOUNCE_BUFFER for CMD_NAND on AXS10x

2018-12-03 Thread Alexey Brodkin
Hi Philipp, On Fri, 2018-11-30 at 22:13 +0100, Philipp Tomsich wrote: > The NAND driver of AXS10x depends on the availability of the bounce > buffer. As the NAND driver is gated by CMD_NAND only, we need to > select BOUNCE_BUFFER conditionally (on CMD_NAND) for TARGET_AXS101 and > TARGET_AXS103.

Re: [U-Boot] [PATCH] rockchip: rk3288: dts: remove 'vmmc' from emmc node

2018-12-03 Thread Fabio Estevam
Hi Kever, On Mon, Dec 3, 2018 at 2:00 AM Kever Yang wrote: > > The U-Boot eMMC does not need to care about the power for Rockchip > SoC, because if the board is using eMMC, the power will default on > (for bootrom), and we do not do power management for it like kernel, > so the 'vmmc', 'vqmmc' is

[U-Boot] Please pull ARC changes

2018-12-03 Thread Alexey Brodkin
Hi Tom, The following changes since commit 952061352acfd24034e6990b6b7d32cded020c0a: drivers: rtc: correctly convert seconds to time structure (2018-12-01 18:03:14 -0500) are available in the Git repository at: git://git.denx.de/u-boot-arc.git tags/arc-updates-for-2019.01-rc1 for you to f

[U-Boot] [PATCH 00/30] dm: sound: Convert to driver model

2018-12-03 Thread Simon Glass
The sound subsystem has never been converted to driver model. It is not widely used and is a little bit complicating since it needs an audio codec, an i2s device and a sound device to bring them together. Sound is the main subsystem holding back removal of CONFIG_DM_I2C_COMPAT. This series takes

[U-Boot] [PATCH 06/30] dm: sound: samsung: Rename i2stx_info to samsung_i2s_priv

2018-12-03 Thread Simon Glass
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 --- drivers/sound/samsung-i2s.c | 6 +++--- drivers/sound/sound-i2s.c | 10 +- include/i2s.h |

[U-Boot] [PATCH 01/30] sandbox: Increase the pre-relocation memory

2018-12-03 Thread Simon Glass
This is close to full now, so increase it to avoid problems with adding more devices. Signed-off-by: Simon Glass --- Kconfig| 2 ++ configs/sandbox64_defconfig| 1 - configs/sandbox_defconfig | 1 - configs/sandbox_flattree_defconfig | 1 - configs/s

[U-Boot] [PATCH 04/30] dm: sound: Rename en_sound_codec to sound_codec

2018-12-03 Thread Simon Glass
The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass --- include/sound.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/sound.h b/include/sound.h index 77bfe6a93b2..149e12dbc60 100644 --- a/include/sound.h +++ b/include/sound.h @@ -8,7

[U-Boot] [PATCH 07/30] dm: sound: Drop codec_type

2018-12-03 Thread Simon Glass
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 --- drivers/sound/max98095.c | 14 -- drivers/sound/wm8994.c | 10 -- include/sound.h | 9 - 3 files changed, 33 deletions(-) diff

[U-Boot] [PATCH 03/30] dm: sound: samsung: Make local function static

2018-12-03 Thread Simon Glass
Several functions are not exported from this file. Make them static so this is clear. Signed-off-by: Simon Glass --- drivers/sound/samsung-i2s.c | 8 drivers/sound/wm8994.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/sound/samsung-i2s.c b/drivers

[U-Boot] [PATCH 05/30] dm: sound: Drop unused pre-device-tree code

2018-12-03 Thread Simon Glass
CONFIG_OF_CONTROL is enabled for all boards that use sound, so remove the dead code. Signed-off-by: Simon Glass --- drivers/sound/max98095.c | 6 -- drivers/sound/wm8994.c | 6 -- 2 files changed, 12 deletions(-) diff --git a/drivers/sound/max98095.c b/drivers/sound/max98095.c index

[U-Boot] [PATCH 09/30] dm: sound: max98095: Pass private data to internal functions

2018-12-03 Thread Simon Glass
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

[U-Boot] [PATCH 02/30] snow: Expand U-Boot size

2018-12-03 Thread Simon Glass
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 --- arch/arm/dts/exynos5250-snow.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/dts/exynos5250-snow.dts b/arch/arm/dts/exynos5250-sn

[U-Boot] [PATCH 10/30] dm: sound: wm8994: Create a new common init function

2018-12-03 Thread Simon Glass
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 --- drivers/sound/wm8994.c | 56 +- 1 file changed, 33 inser

[U-Boot] [PATCH 08/30] dm: sound: wm8994: Pass private data to internal functions

2018-12-03 Thread Simon Glass
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 few

[U-Boot] [PATCH 15/30] dm: sound: wm8994: Drop g_codec_info and g_wm8994_info

2018-12-03 Thread Simon Glass
These are only used in two functions so can be made local. Signed-off-by: Simon Glass --- drivers/sound/wm8994.c | 16 +++- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/drivers/sound/wm8994.c b/drivers/sound/wm8994.c index a79f46bcc3a..be27e2b1e7e 100644 --- a/drive

[U-Boot] [PATCH 27/30] dm: sound: Add conversion to driver model

2018-12-03 Thread Simon Glass
Move the existing hardware drivers over to use driver model. Signed-off-by: Simon Glass --- arch/arm/dts/exynos5250-smdk5250.dts | 1 + arch/arm/dts/exynos5420-smdk5420.dts | 1 + drivers/sound/Makefile | 6 +- drivers/sound/max98095.c | 59 +++- dri

[U-Boot] [PATCH 16/30] dm: sound: max98095: Drop g_codec_info and g_max98095_info

2018-12-03 Thread Simon Glass
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 --- drivers/sound/max98095.c | 27 --- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/drivers/sound/max98

[U-Boot] [PATCH 11/30] dm: sound: wm899c: Split out interface setup code

2018-12-03 Thread Simon Glass
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 --- drivers/sound/wm8994.c | 34

[U-Boot] [PATCH 14/30] dm: sound: max98095: Drop global i2c-address variable

2018-12-03 Thread Simon Glass
We can put this in the private structure and avoid a global. Signed-off-by: Simon Glass --- drivers/sound/max98095.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/sound/max98095.c b/drivers/sound/max98095.c index 51556c07f5e..2ec67bf24a8 100644 --- a/driver

[U-Boot] [PATCH 22/30] dm: sound: Create a uclass for audio codecs

2018-12-03 Thread Simon Glass
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 --- arch/sandbox/dts/test.dts | 7 - arch/sandbox/include/asm/test.h | 10 ++ drivers/sound/Make

[U-Boot] [PATCH 13/30] dm: sound: wm8994: Drop global i2c-address variable

2018-12-03 Thread Simon Glass
We can put this in the private structure and avoid a global. Signed-off-by: Simon Glass --- drivers/sound/wm8994.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/sound/wm8994.c b/drivers/sound/wm8994.c index 20a48231ebd..a79f46bcc3a 100644 --- a/drivers/soun

[U-Boot] [PATCH 30/30] dm: sound: Complete migration to driver model

2018-12-03 Thread Simon Glass
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 --- cmd/sound.c | 12 --- drivers/sound/Kconfig | 6 -- drivers/sound/Makefile| 10 +- drivers/sound/max98095.c | 88 d

[U-Boot] [PATCH 23/30] dm: sound: Create a uclass for i2s

2018-12-03 Thread Simon Glass
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 --- arch/sandb

[U-Boot] [PATCH 18/30] dm: sound: Fix up header ordering

2018-12-03 Thread Simon Glass
Tidy up the ordering of header files in the sounds files. Signed-off-by: Simon Glass --- drivers/sound/max98095.c| 11 +-- drivers/sound/samsung-i2s.c | 36 ++-- drivers/sound/wm8994.c | 8 3 files changed, 27 insertions(+), 28 deletion

[U-Boot] [PATCH 12/30] dm: sound: max98095: Split out interface setup code

2018-12-03 Thread Simon Glass
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 --- drivers/sound/max98095.c | 36 ++

[U-Boot] [PATCH 17/30] dm: sound: wm8994: Drop wm8994_i2c_init()

2018-12-03 Thread Simon Glass
This function has only one line in it. Drop it. Signed-off-by: Simon Glass --- drivers/sound/wm8994.c | 12 +--- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/drivers/sound/wm8994.c b/drivers/sound/wm8994.c index be27e2b1e7e..a888a0b4c95 100644 --- a/drivers/sound/wm8994

[U-Boot] [PATCH 29/30] dm: exynos: Drop CONFIG_DM_I2C_COMPAT

2018-12-03 Thread Simon Glass
This option is not needed anymore for all exynos boards except arndale. Update the config. Signed-off-by: Simon Glass --- configs/peach-pi_defconfig | 1 - configs/peach-pit_defconfig | 1 - configs/smdk5250_defconfig | 1 - configs/smdk5420_defconfig | 1 - configs/snow_defconfig | 1 -

[U-Boot] [PATCH 25/30] dm: core: Add a function to read into a unsigned int

2018-12-03 Thread Simon Glass
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:

[U-Boot] [PATCH 26/30] dm: sound: Start i2c IDs from 0

2018-12-03 Thread Simon Glass
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() and elsewhere. Signed-off-by: Simon Glass --- drivers/sound/max98095.h | 2 +- drivers/sound/sound-i2s.c | 6 ++ drivers/sound/wm8994.

[U-Boot] [PATCH 21/30] dm: sound: Rename samsung_i2s_priv to i2s_uc_priv

2018-12-03 Thread Simon Glass
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 --- drivers/sound/samsung-i2s.c | 4 ++-- drivers/sound/sound-i2s.c | 10 +- include/i2s.h

[U-Boot] [PATCH 20/30] dm: sound: Create an option to use driver model for sound

2018-12-03 Thread Simon Glass
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 onc

Re: [U-Boot] Please pull u-boot-dm

2018-12-03 Thread Simon Glass
Hi. On Mon, 3 Dec 2018 at 00:42, Simon Goldschmidt wrote: > > On Mon, Dec 3, 2018 at 8:27 AM Kever Yang wrote: > > > > Hi Tom, > > > > With this merge, my boards can't work correctly in SPL, the console > > output is mess up. > > > > I have test on rk3229 and rk3399 boards, and finally I ide

[U-Boot] [PATCH 28/30] dm: exynos: sound: Convert to use driver model

2018-12-03 Thread Simon Glass
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 board that is tested and known to work i

[U-Boot] [PATCH 24/30] dm: sound: Create a uclass for sound

2018-12-03 Thread Simon Glass
The sound drive 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 f

Re: [U-Boot] [PATCH v3 4/5] mmc: tegra: select BOUNCE_BUFFER unconditionally

2018-12-03 Thread Simon Glass
On Fri, 30 Nov 2018 at 14:13, Philipp Tomsich wrote: > > The driver for the SDHCI_TEGRA depends on the bounce buffer utility > functions. Unconditionally select BOUNCE_BUFFER, when this driver is > enabled. > > This also includes the post-processing to drop unused comments after > running moveconf

[U-Boot] [PATCH 19/30] dm: sound: exynos: Correct codec bus address

2018-12-03 Thread Simon Glass
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. Signed-off-by: Simon Glass --- arch/arm/dts/exynos5250-snow.dts | 4 ++-- drivers/sound/max98095.c | 3 +-- 2 files changed, 3 insertions(+),

Re: [U-Boot] [PATCH v3 1/5] Kconfig: Migrate BOUNCE_BUFFER

2018-12-03 Thread Alexey Brodkin
Hi Philipp, On Fri, 2018-11-30 at 22:13 +0100, Philipp Tomsich wrote: > The bounce buffer is used by a few drivers (most of the MMC drivers) > to overcome limitations in their respective DMA implementation. > > This moves the configuration to Kconfig and makes it user-selectable > (even though it

Re: [U-Boot] [PATCH v3 5/5] arc: select BOUNCE_BUFFER for CMD_NAND on AXS10x

2018-12-03 Thread Philipp Tomsich
Alexey, > On 03.12.2018, at 12:20, Alexey Brodkin wrote: > > Hi Philipp, > > On Fri, 2018-11-30 at 22:13 +0100, Philipp Tomsich wrote: >> The NAND driver of AXS10x depends on the availability of the bounce >> buffer. As the NAND driver is gated by CMD_NAND only, we need to >> select BOUNCE_BUF

Re: [U-Boot] [PATCH V2 05/15] imx: rename mx8m,MX8M to imx8m,IMX8M

2018-12-03 Thread Peng Fan
Hi Jon, Your patch could not be applied to master branch, seems this patch is based on NXP vendor tree? Thanks, Peng. > -Original Message- > From: Jon Nettleton [mailto:j...@solid-run.com] > Sent: 2018年11月29日 13:02 > To: Peng Fan > Cc: sba...@denx.de; Fabio Estevam ; U-Boot > Mailing L

[U-Boot] [PULL u-boot] Please pull u-boot-amlogic-20181203

2018-12-03 Thread Neil Armstrong
in the Git repository at: git://git.denx.de/u-boot-amlogic.git tags/u-boot-amlogic-20181203 for you to fetch changes up to 8973d816588a8479eeb0e3a9f1e730922d3efc07: ARM: meson: Add regmap support for clock driver (2018-12-03 13:3

[U-Boot] [PATCH] imx8m: ddr: removed unused macros

2018-12-03 Thread Peng Fan
Remove unused DDRC register macros. Signed-off-by: Peng Fan --- To address comments: https://lists.denx.de/pipermail/u-boot/2018-November/348351.html arch/arm/include/asm/arch-imx8m/ddr.h | 188 -- 1 file changed, 188 deletions(-) diff --git a/arch/arm/include

Re: [U-Boot] [PATCH v3 5/5] arc: select BOUNCE_BUFFER for CMD_NAND on AXS10x

2018-12-03 Thread Alexey Brodkin
Hi Philipp, On Mon, 2018-12-03 at 13:28 +0100, Philipp Tomsich wrote: Alexey, On 03.12.2018, at 12:20, Alexey Brodkin mailto:alexey.brod...@synopsys.com>> wrote: Hi Philipp, On Fri, 2018-11-30 at 22:13 +0100, Philipp Tomsich wrote: The NAND driver of AXS10x depends on the availability of the bo

Re: [U-Boot] [PATCH] tools: zynqmpimage: round up partition size

2018-12-03 Thread Michal Simek
+Alex On 28. 11. 18 11:47, Michael Tretter wrote: > The FSBL copies "Total Partition Word Length" * 4 bytes from the boot.bin, > which implies that the partition size is 4 byte aligned. When writing the > partition, mkimage calculates "Total Partition Word Length" by dividing > the size by 4. This

Re: [U-Boot] [PATCH] tools: zynqmpimage: round up partition size

2018-12-03 Thread Alexander Graf
On 03.12.18 14:14, Michal Simek wrote: > +Alex > > On 28. 11. 18 11:47, Michael Tretter wrote: >> The FSBL copies "Total Partition Word Length" * 4 bytes from the boot.bin, >> which implies that the partition size is 4 byte aligned. When writing the >> partition, mkimage calculates "Total Partit

Re: [U-Boot] [PATCH v2 03/14] efi_loader: bootmgr: allow for running a given load option

2018-12-03 Thread Alexander Graf
On 03.12.18 04:20, AKASHI Takahiro wrote: > On Mon, Dec 03, 2018 at 12:22:37AM +0100, Alexander Graf wrote: >> >> >> On 05.11.18 10:06, AKASHI Takahiro wrote: >>> With an extra argument, efi_bootmgr_load() can now load an efi binary >>> based on a "Boot" variable specified. >>> >>> Signed-off

Re: [U-Boot] [PATCH v2 04/14] cmd: add efishell command

2018-12-03 Thread Alexander Graf
On 03.12.18 07:42, AKASHI Takahiro wrote: > On Mon, Dec 03, 2018 at 12:42:43AM +0100, Alexander Graf wrote: >> >> >> On 05.11.18 10:06, AKASHI Takahiro wrote: >>> Currently, there is no easy way to add or modify UEFI variables. >>> In particular, bootmgr supports BootOrder/Boot variables, it

Re: [U-Boot] [PATCH 1/2] Kconfig: Add entry for VF610 NAND NFC device tree aware driver

2018-12-03 Thread Stefan Agner
On 03.12.2018 10:24, Lukasz Majewski wrote: > This commit provides code to add proper entry to Kconfig to enable > support for VF610 device tree aware driver. Looks like a start, but ideally we should also move all the board/system specific properties to device-tree (e.g. CONFIG_SYS_NAND_VF610_NFC

Re: [U-Boot] [PATCH v3 1/5] Kconfig: Migrate BOUNCE_BUFFER

2018-12-03 Thread Philipp Tomsich
Alexey, > On 03.12.2018, at 12:17, Alexey Brodkin wrote: > > Hi Philipp, > > On Fri, 2018-11-30 at 22:13 +0100, Philipp Tomsich wrote: >> The bounce buffer is used by a few drivers (most of the MMC drivers) >> to overcome limitations in their respective DMA implementation. >> >> This moves the

Re: [U-Boot] [PATCH v3 1/5] Kconfig: Migrate BOUNCE_BUFFER

2018-12-03 Thread Philipp Tomsich
Alexey, > On 03.12.2018, at 13:35, Alexey Brodkin wrote: > > Hi Philipp, > > On Mon, 2018-12-03 at 13:32 +0100, Philipp Tomsich wrote: >> Alexey, >> >>> On 03.12.2018, at 12:17, Alexey Brodkin >> > wrote: >>> >>> Hi Philipp, >>> >>> On Fri, 2018-11-30 at 2

Re: [U-Boot] [PATCH v3 1/5] Kconfig: Migrate BOUNCE_BUFFER

2018-12-03 Thread Alexey Brodkin
Hi Philipp, On Mon, 2018-12-03 at 13:32 +0100, Philipp Tomsich wrote: Alexey, On 03.12.2018, at 12:17, Alexey Brodkin mailto:alexey.brod...@synopsys.com>> wrote: Hi Philipp, On Fri, 2018-11-30 at 22:13 +0100, Philipp Tomsich wrote: The bounce buffer is used by a few drivers (most of the MMC dr

[U-Boot] [PATCH] ARM: DTS: Resync am3517-evm.dts with Linux 4.20

2018-12-03 Thread Adam Ford
The DTS file for the AM3517 had the incorrect CD polarity. Resync with the fixed DTS file from Linux. Signed-off-by: Adam Ford diff --git a/arch/arm/dts/am3517-evm-ui.dtsi b/arch/arm/dts/am3517-evm-ui.dtsi new file mode 100644 index 00..e841918c1c --- /dev/null +++ b/arch/arm/dts/am3517

Re: [U-Boot] [PATCH v3 1/5] Kconfig: Migrate BOUNCE_BUFFER

2018-12-03 Thread Alexey Brodkin
Hi Philipp, On Mon, 2018-12-03 at 13:38 +0100, Philipp Tomsich wrote: Alexey, On 03.12.2018, at 13:35, Alexey Brodkin mailto:alexey.brod...@synopsys.com>> wrote: Hi Philipp, On Mon, 2018-12-03 at 13:32 +0100, Philipp Tomsich wrote: Alexey, On 03.12.2018, at 12:17, Alexey Brodkin mailto:alexey

[U-Boot] [PATCH] travis: Bump ARC tools to arc-2018.09

2018-12-03 Thread Alexey Brodkin
Build tested in Travis, see: https://travis-ci.org/abrodkin/u-boot/jobs/462808237 Signed-off-by: Alexey Brodkin --- .travis.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index a061f02399c0..ed07d817fa47 100644 --- a/.travis.yml +++ b/.tra

[U-Boot] [PATCH] serial: omap: Add code for early debugging

2018-12-03 Thread Felix Brack
This patch adds code missing when CONFIG_DEBUG_UART_OMAP is enabled as early debugging UART. The code is basically copied from the ns16550 driver. Signed-off-by: Felix Brack --- drivers/serial/serial_omap.c | 42 +++- 1 file changed, 41 insertions(+), 1 deletion(

Re: [U-Boot] [PATCH 1/2] net: phy: Move fixed link code to separate routine

2018-12-03 Thread Michal Simek
Hi Joe, On 27. 11. 18 7:19, Siva Durga Prasad Paladugu wrote: > This patch moves fixed-link functionality code to a separate > routine inorder to make it more modular and cleaner. > > Signed-off-by: Siva Durga Prasad Paladugu > Signed-off-by: Michal Simek > --- > drivers/net/phy/phy.c | 34 +++

[U-Boot] [PATCH] ARM: DTS: Resync LogicPD SOM-LV with Linux 4.20

2018-12-03 Thread Adam Ford
There have been a few fixes to the device trees, so this re-syncs the dts/dtsi files with Linux Signed-off-by: Adam Ford diff --git a/arch/arm/dts/logicpd-som-lv-35xx-devkit.dts b/arch/arm/dts/logicpd-som-lv-35xx-devkit.dts index 4cd72b5e61..32d0dc371f 100644 --- a/arch/arm/dts/logicpd-som-lv-3

[U-Boot] [PATCH] ARM: DTS: Resync LogicPD-Torpedo-37xx-devkit with Linux 4.20

2018-12-03 Thread Adam Ford
Migrate some small device tree fixes from Linux 4.20. Signed-off-by: Adam Ford diff --git a/arch/arm/dts/logicpd-torpedo-37xx-devkit.dts b/arch/arm/dts/logicpd-torpedo-37xx-devkit.dts index 9d5d53fbe9..c39cf2ca54 100644 --- a/arch/arm/dts/logicpd-torpedo-37xx-devkit.dts +++ b/arch/arm/dts/logic

[U-Boot] [PATCH] arm64: zynqmp: Add new header file for zcu104 RevC

2018-12-03 Thread Michal Simek
From: T Karthik Reddy Created a new header file for zcu104 RevC board and added below configurations to use MAC address from EEPROM. CONFIG_ZYNQ_GEM_EEPROM_ADDR CONFIG_ZYNQ_EEPROM_BUS Added CONFIG_ZYNQ_GEM_I2C_MAC_OFFSET=0x20 to xilinx_zynqmp_zcu104_revC_defconfig Signed-off-by:

[U-Boot] [PATCH 1/3] ARM: DTS: da850: Sync from Linux 4.20

2018-12-03 Thread Adam Ford
Re-sync with 4.20 due some some natural evolution. Signed-off-by: Adam Ford diff --git a/arch/arm/dts/da850.dtsi b/arch/arm/dts/da850.dtsi index c66cf78953..47aa53ba6b 100644 --- a/arch/arm/dts/da850.dtsi +++ b/arch/arm/dts/da850.dtsi @@ -7,10 +7,19 @@ * Free Software Foundation; either versi

[U-Boot] [PATCH 2/3] ARM: dts: da850-lcdk: Sync from Linux 4.20

2018-12-03 Thread Adam Ford
Re-synce the device tree files from Linux 4.20 Signed-off-by: Adam Ford diff --git a/arch/arm/dts/da850-lcdk.dts b/arch/arm/dts/da850-lcdk.dts index a1f4d6d5a5..0177e3ed20 100644 --- a/arch/arm/dts/da850-lcdk.dts +++ b/arch/arm/dts/da850-lcdk.dts @@ -21,8 +21,8 @@ stdout-path = "

[U-Boot] [PATCH 3/3] ARM: DTS: da850-evm: Re-sync da850-evm.dts from Linux 4.20

2018-12-03 Thread Adam Ford
There has been some natural evolution of the device tree, so resync with 4.20 Signed-off-by: Adam Ford diff --git a/arch/arm/dts/da850-evm.dts b/arch/arm/dts/da850-evm.dts index 0e82bb988f..a3c9b34672 100644 --- a/arch/arm/dts/da850-evm.dts +++ b/arch/arm/dts/da850-evm.dts @@ -27,6 +27,65 @@

Re: [U-Boot] [PATCH] tools: zynqmpimage: round up partition size

2018-12-03 Thread Michal Simek
On 03. 12. 18 14:42, Alexander Graf wrote: > > > On 03.12.18 14:14, Michal Simek wrote: >> +Alex >> >> On 28. 11. 18 11:47, Michael Tretter wrote: >>> The FSBL copies "Total Partition Word Length" * 4 bytes from the boot.bin, >>> which implies that the partition size is 4 byte aligned. When writi

Re: [U-Boot] [PATCH 1/2] Kconfig: Add entry for VF610 NAND NFC device tree aware driver

2018-12-03 Thread Lukasz Majewski
Hi Stefan, > On 03.12.2018 10:24, Lukasz Majewski wrote: > > This commit provides code to add proper entry to Kconfig to enable > > support for VF610 device tree aware driver. > > Looks like a start, Indeed - this is a start. Vybrid is a bit behind the current u-boot peace of development. I'

[U-Boot] adding saveenv-command for bananapi r2

2018-12-03 Thread Frank Wunderlich
From f5a9045316f962f397497bd169a20dc293b14641 Mon Sep 17 00:00:00 2001 From: Frank Wunderlich Date: Mon, 3 Dec 2018 15:32:58 +0100 Subject: [PATCH] adding saveenv-command for bananapi r2 BananaPi r2 can be booted from sd-card and emmc saving the environment have to choose the storage from which t

Re: [U-Boot] [PATCH] tools: zynqmpimage: round up partition size

2018-12-03 Thread Michael Tretter
On Mon, 03 Dec 2018 14:42:59 +0100, Alexander Graf wrote: > On 03.12.18 14:14, Michal Simek wrote: > > +Alex > > > > On 28. 11. 18 11:47, Michael Tretter wrote: > >> The FSBL copies "Total Partition Word Length" * 4 bytes from the boot.bin, > >> which implies that the partition size is 4 byte al

Re: [U-Boot] [PATCH 1/2] net: zynq_gem: Added 64-bit addressing support

2018-12-03 Thread Michal Simek
On 26. 11. 18 11:57, Siva Durga Prasad Paladugu wrote: > From: Vipul Kumar > > This patch adds 64-bit addressing support for zynq gem. > This means it can perform send and receive operations on > 64-bit address buffers. > > Signed-off-by: Vipul Kumar > Signed-off-by: Siva Durga Prasad Paladugu

Re: [U-Boot] [PATCH] tools: zynqmpimage: round up partition size

2018-12-03 Thread Alexander Graf
On 03.12.18 16:19, Michael Tretter wrote: > On Mon, 03 Dec 2018 14:42:59 +0100, Alexander Graf wrote: >> On 03.12.18 14:14, Michal Simek wrote: >>> +Alex >>> >>> On 28. 11. 18 11:47, Michael Tretter wrote: The FSBL copies "Total Partition Word Length" * 4 bytes from the boot.bin, whic

Re: [U-Boot] [PATCH] usb: composite: Move bitmap related operations to ./include/linux/bitmap.h

2018-12-03 Thread Stefan Agner
On 02.12.2018 09:49, Lukasz Majewski wrote: > 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 removing the lin_gadget_compat.h header file > (which is a legacy code only for composite U-boot lay

[U-Boot] [RFC] Monthly developer call?

2018-12-03 Thread Tom Rini
Hey all, It's come up a few times that perhaps we should have a regular real-time meeting of some sort, since that F2F meetings we've had historically have been so helpful. So, what I'd like to propose is a monthly meeting / video call on the 3rd Monday of the month, starting in January. For a t

[U-Boot] [PATCH 2/2] arm64: zynqmp: Enable 2 NAND chips for zc1751 dc2

2018-12-03 Thread Michal Simek
This board contains 2 nand chips that's why enable this feature. Signed-off-by: Michal Simek --- configs/xilinx_zynqmp_zc1751_xm016_dc2_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/xilinx_zynqmp_zc1751_xm016_dc2_defconfig b/configs/xilinx_zynqmp_zc1751_xm016_dc2_defcon

Re: [U-Boot] Please pull ARC changes

2018-12-03 Thread Tom Rini
On Mon, Dec 03, 2018 at 11:32:10AM +, Alexey Brodkin wrote: > Hi Tom, > > The following changes since commit 952061352acfd24034e6990b6b7d32cded020c0a: > > drivers: rtc: correctly convert seconds to time structure (2018-12-01 > 18:03:14 -0500) > > are available in the Git repository at: >

Re: [U-Boot] [PULL u-boot] Please pull u-boot-amlogic-20181203

2018-12-03 Thread Tom Rini
0a: > > drivers: rtc: correctly convert seconds to time structure (2018-12-01 > 18:03:14 -0500) > > are available in the Git repository at: > > git://git.denx.de/u-boot-amlogic.git tags/u-boot-amlogic-20181203 > > for you to fetch changes up to 8973d816588a8479eeb0e3

[U-Boot] [PATCH 1/2] mtd: nand: arasan_nfc: Add support for nand multi chip select

2018-12-03 Thread Michal Simek
From: T Karthik Reddy This patch adds support for nand multi chip select. Also adding CONFIG_SYS_NAND_MAX_CHIPS to Kconfig to specify maximum number of nand chips. Signed-off-by: Tummala Karthik Reddy Signed-off-by: Siva Durga Prasad Paladugu Signed-off-by: Michal Simek --- drivers/mtd/nand

[U-Boot] [PATCH v2] tools: zynqmpimage: round up partition size

2018-12-03 Thread Michael Tretter
The FSBL copies "Total Partition Word Length" * 4 bytes from the boot.bin, which implies that the partition size is 4 byte aligned. When writing the partition, mkimage calculates "Total Partition Word Length" by dividing the size by 4. This implicitly cuts unaligned bytes at the end of the added bi

Re: [U-Boot] [PATCH v1 1/3] ddr: vybrid: Add DDRMC calibration related registers (DQS to DQ)

2018-12-03 Thread Stefan Agner
On 02.12.2018 21:42, Lukasz Majewski wrote: > This commit provides extra defines needed for DDR memory controller > calibration (read leveling performing). > > Signed-off-by: Lukasz Majewski > --- > > arch/arm/include/asm/arch-vf610/imx-regs.h | 6 ++ > 1 file changed, 6 insertions(+) > >

  1   2   3   >