[U-Boot] [PATCH 6/8] board: stm32f469-discovery: Add set_env_soc_name() in board_late_init()

2018-01-31 Thread patrice.chotard
From: Patrice Chotard Add set_env_soc_name() call in board_late_init() to set environment variable "soc_name" with the name of current STM32 SoC. Signed-off-by: Christophe Priouzeau Signed-off-by: Patrice Chotard ---

[U-Boot] [PATCH 7/8] board: stm32f469-discovery: Add set_env_soc_name() in board_late_init()

2018-01-31 Thread patrice.chotard
From: Patrice Chotard Add set_env_soc_name() call in board_late_init() to set environment variable "soc_name" with the name of current STM32 SoC. Signed-off-by: Christophe Priouzeau Signed-off-by: Patrice Chotard ---

[U-Boot] [PATCH 8/8] board: stm32f429-evaluation: Add set_env_soc_name() in board_late_init()

2018-01-31 Thread patrice.chotard
From: Patrice Chotard Add set_env_soc_name() call in board_late_init() to set environment variable "soc_name" with the name of current STM32 SoC. Signed-off-by: Christophe Priouzeau Signed-off-by: Patrice Chotard ---

[U-Boot] [PATCH 1/8] mach-stm32: Add get_cpu_id support

2018-01-31 Thread patrice.chotard
From: Patrice Chotard This allows to read the CPU ID into STM32 DBGMCU_IDCODE register and create an environment variable which contains the soc name. Signed-off-by: Christophe Priouzeau Signed-off-by: Patrice Chotard

[U-Boot] [PATCH 0/8] Add get_cpu_id for STM32 SoCs

2018-01-31 Thread patrice.chotard
From: Patrice Chotard This series allows to get the cpu id of STM32 SoCs and to set the environment variable "soc_name" with the corresponding SoC name. This will be useful in some development environment to retrieve files correspondig to SoC family. Patrice Chotard

[U-Boot] [PATCH 4/8] board: stm32h743-evaluation: Add set_env_soc_name() in board_late_init()

2018-01-31 Thread patrice.chotard
From: Patrice Chotard Add set_env_soc_name() call in board_late_init() to set environment variable "soc_name" with the name of current STM32 SoC. Signed-off-by: Christophe Priouzeau Signed-off-by: Patrice Chotard ---

[U-Boot] [PATCH 5/8] board: stm32f743-discovery: Add set_env_soc_name() in board_late_init()

2018-01-31 Thread patrice.chotard
From: Patrice Chotard Add set_env_soc_name() call in board_late_init() to set environment variable "soc_name" with the name of current STM32 SoC. Signed-off-by: Christophe Priouzeau Signed-off-by: Patrice Chotard ---

[U-Boot] [PATCH 3/8] board: stm32f429-discovery: Add set_env_soc_name() in board_late_init()

2018-01-31 Thread patrice.chotard
From: Patrice Chotard Add set_env_soc_name() call in board_late_init() to set environment variable "soc_name" with the name of current STM32 SoC. Signed-off-by: Christophe Priouzeau Signed-off-by: Patrice Chotard ---

[U-Boot] [PATCH v2 1/3] mach-stm32: Add set_env_soc_name support

2018-02-05 Thread patrice.chotard
From: Patrice Chotard This allows to create and set the environment variable "soc_name" which contains the current STM32 SoC's name. Signed-off-by: Christophe Priouzeau Signed-off-by: Patrice Chotard --- v2: _

[U-Boot] [PATCH v2 3/3] board: stm32: Add set_env_soc_name() in board_late_init()

2018-02-05 Thread patrice.chotard
From: Patrice Chotard Add set_env_soc_name() call in board_late_init() to set environment variable "soc_name" with the name of current STM32 SoC. Signed-off-by: Christophe Priouzeau Signed-off-by: Patrice Chotard ---

[U-Boot] [PATCH v2 2/3] mach-stm32: Move BOARD_LATE_INIT flag to mach-stm32 Kconfig

2018-02-05 Thread patrice.chotard
From: Patrice Chotard Move BOARD_LATE_INIT flag from include/configs/stm32*.h to mach-stm32/Kconfig. Enable this flag also for STM32F4 SoCs family. Signed-off-by: Patrice Chotard --- v2: _ None arch/arm/mach-stm32/Kconfig | 3 +++

[U-Boot] [PATCH v2 0/3] Add set_env_soc_name() for STM32 SoCs

2018-02-05 Thread patrice.chotard
From: Patrice Chotard This series allows to create and set the environment variable "soc_name" corresponding to the current STM32 SoCs name. We will add STM32 SoCs support in buildroot environment Our objective is to propose a flexible solution to boot linux kernel from

[U-Boot] [PATCH] clk: clk_stm32: Add .set_rate callback

2018-01-29 Thread patrice.chotard
From: Patrice Chotard Since 'commit f4fcba5c5baa ("clk: implement clk_set_defaults()")' STM32F4 family board can't boot. Above patch calls clk_set_rate() for all nodes with assigned-clock-rates property. Clock driver for STM32F family doesn't implement .set_rate callback

[U-Boot] [PATCH 2/5] arch-stm32: Move gpio.h for STM32 SoCs in include/asm/

2018-02-07 Thread patrice.chotard
From: Patrice Chotard Instead to have 3 identical gpio.h for all STM32 SoCs, migrate them in one file in include/asm. Signed-off-by: Patrice Chotard --- arch/arm/include/asm/arch-stm32f4/gpio.h | 146 +--

[U-Boot] [PATCH 3/5] arch-stm32: Factorize stm32.h for STM32F4 and F7

2018-02-07 Thread patrice.chotard
From: Patrice Chotard For STM32F4 and F7 SoCx family, a specific stm32.h file exists. Some common defines are duplicated or even unused in each of these stm32.h. Factorize all common definition in arch/arm/include/asm/stm32f.h and keep specific definitions in each

[U-Boot] [PATCH 5/5] arch-stm32: Clean arch-stm32f7/syscfg.h

2018-02-07 Thread patrice.chotard
From: Patrice Chotard Remove all unused defines Signed-off-by: Patrice Chotard --- arch/arm/include/asm/arch-stm32f7/syscfg.h | 9 - 1 file changed, 9 deletions(-) diff --git a/arch/arm/include/asm/arch-stm32f7/syscfg.h

[U-Boot] [PATCH 4/5] arch-stm32: Remove stm32_periph.h

2018-02-07 Thread patrice.chotard
From: Patrice Chotard Remove arch/arm/include/asm/arch-stm32fx/stm32_periph.h as all defines or enums are no more used. Signed-off-by: Patrice Chotard --- arch/arm/include/asm/arch-stm32f4/stm32_periph.h | 38

[U-Boot] [PATCH 1/5] arch-stm32f4: Remove fmc.h file

2018-02-07 Thread patrice.chotard
From: Patrice Chotard fmc.h file is no more used, remove it. All FMC related defines are declared in drivers/ram/stm32_sdram.c which is common to all STM32 SoCs. Signed-off-by: Patrice Chotard --- arch/arm/include/asm/arch-stm32f4/fmc.h | 75

[U-Boot] [PATCH 0/5] STM32: Clean unused and factorize .h files in arch-stm32

2018-02-07 Thread patrice.chotard
From: Patrice Chotard Removes unused .h files in arch/arm/include/asm/arch-stm32xx Factorize and clean some .h files to avoid to duplicate defines in separate .h files Patrice Chotard (5): arch-stm32f4: Remove fmc.h file arch-stm32: Move gpio.h for STM32 SoCs in

[U-Boot] [PATCH 1/2] mmc: stm32: sdmmc2: add hardware flow control support

2018-02-07 Thread patrice.chotard
From: Patrick Delaunay The hardware flow control functionality is used to avoid FIFO underrun (TX mode) and overrun (RX mode) errors. The behavior is to stop SDMMC_CK during data transfer and freeze the SDMMC state machines. Signed-off-by: Patrick Delaunay

[U-Boot] [PATCH 0/2] stm32_sdmmc2 driver update

2018-02-07 Thread patrice.chotard
From: Patrice Chotard This series adds the following stm32_sdmmc2 driver update : _ Enable hardware flow control _ Add support for st,pin-ckinsdmmc_ckin to select "ckin" clock input to sample received data. Patrick Delaunay (2): mmc: stm32: sdmmc2: add hardware flow

[U-Boot] [PATCH 2/2] mmc: stm32: sdmmc2: add support for st, pin-ckinsdmmc_ckin

2018-02-07 Thread patrice.chotard
From: Patrick Delaunay This patch adds "st,pin-ckin" support to activate sdmmc_ckin feature. When using an external driver (a voltage switch transceiver), it's advised to select SDMMC_CKIN feedback clock input to sample the received data. Signed-off-by: Patrick Delaunay

[U-Boot] [PATCH 6/7] clk: clk_stm32f: Add set_rate for LTDC clock

2018-02-08 Thread patrice.chotard
From: Patrice Chotard Implement set_rate() for LTDC clock only, set_rate for other clocks will be added if needed. This is needed by future LTDC driver improvements. Signed-off-by: Patrice Chotard --- drivers/clk/clk_stm32f.c | 100

[U-Boot] [PATCH 3/7] clk: clk_stm32f: No more need of 48Mhz from PLL_SAI

2018-02-08 Thread patrice.chotard
From: Patrice Chotard Initially, 48Mhz for SDIO clock was generated from SAI pll for STM32F469 and STM32F746 SoCs, but this solution was not suitable for STM32F429 SoCs. A generic solution is to used the PLL_Q output as 48Mhz clock for all STM32F SOCs family.

[U-Boot] [PATCH 4/7] clk: clk_stm32f: Rework SDMMC stm32_clk_get_rate() part

2018-02-08 Thread patrice.chotard
From: Patrice Chotard Rework the way SDMMC clock get rate is done in a more generic way : _ Add stm32_clk_get_pllsai_rate() which give the PLLSAI indicated output rate. _ Add stm32_clk_get_pllsai_vco_rate() which give the VCO internal rate. Signed-off-by: Patrice

[U-Boot] [PATCH 2/7] clk: clk_stm32f: Fix RCC_PLLSAICFGR mask defines

2018-02-08 Thread patrice.chotard
From: Patrice Chotard Use the correct name for RCC_PLLSAICFGR_PLLSAIx_MASK masks. Signed-off-by: Patrice Chotard --- drivers/clk/clk_stm32f.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/clk/clk_stm32f.c

[U-Boot] [PATCH 1/7] clk: clk_stm32f: Fix stm32_clk_get_rate()

2018-02-08 Thread patrice.chotard
From: Patrice Chotard Wrong parameter was passed to stm32_clk_pll48clk_rate(). sysclk (PLL_p output value) was passed instead of VCO value. Signed-off-by: Patrice Chotard --- drivers/clk/clk_stm32f.c | 12 +++- 1 file changed, 7

[U-Boot] [PATCH 0/7] clk: clk_stm32f: update and fixes

2018-02-08 Thread patrice.chotard
From: Patrice Chotard This series : _ Fixes one issue stm32_clk_get_rate() _ Update the SDMMC clock generation across all STM32F SoCs _ Adds LTDC clock generation from PLLSAI _ Adds set_rate() for LTDC clock _ Adds DSI clock support Patrice Chotard (7): clk:

[U-Boot] [PATCH] ARM: dts: stm32: limit sdio frequency to 14Mhz for stm32f429i-eval

2018-02-08 Thread patrice.chotard
From: Patrice Chotard This avoids the following errors while reading on mmc: Read data bytes CRC error: 0x2 switch to partitions #0, OK mmc0 is current device Read data bytes CRC error: 0x82002 ** Unrecognized filesystem type ** Signed-off-by: Patrice Chotard

[U-Boot] [PATCH] configs: stm32: Enable CONFIG_ENV_VARS_UBOOT_CONFIG

2018-02-06 Thread patrice.chotard
From: Patrice Chotard Enable CONFIG_ENV_VARS_UBOOT_CONFIG for all STM32 boards It allows to retrieve the SoC name into the "soc" environment variable. Signed-off-by: Christophe Priouzeau Signed-off-by: Patrice Chotard

[U-Boot] [PATCH v2 0/5] STM32: Clean unused and factorize .h files in arch-stm32

2018-02-09 Thread patrice.chotard
From: Patrice Chotard Removes unused .h files in arch/arm/include/asm/arch-stm32xx Factorize and clean some .h files to avoid to duplicate defines in separate .h files V2: _ create arch/arm/include/asm/arch-stm32 directory and move gpio.h and stm32f.h in it.

[U-Boot] [PATCH v2 2/5] arch-stm32: Move gpio.h for STM32 SoCs in include/asm/

2018-02-09 Thread patrice.chotard
From: Patrice Chotard Instead to have 3 identical gpio.h for all STM32 SoCs, migrate them in one file in include/asm. Signed-off-by: Patrice Chotard --- v2: _ create arch/arm/include/asm/arch-stm32 directory and move gpio.h in it.

[U-Boot] [PATCH v2 3/5] arch-stm32: Factorize stm32.h for STM32F4 and F7

2018-02-09 Thread patrice.chotard
From: Patrice Chotard For STM32F4 and F7 SoCx family, a specific stm32.h file exists. Some common defines are duplicated or even unused in each of these stm32.h. Factorize all common definition in arch/arm/include/asm/stm32f.h and keep specific definitions in each

[U-Boot] [PATCH v2 4/5] arch-stm32: Remove stm32_periph.h

2018-02-09 Thread patrice.chotard
From: Patrice Chotard Remove arch/arm/include/asm/arch-stm32fx/stm32_periph.h as all defines or enums are no more used. Signed-off-by: Patrice Chotard --- v2: _ none arch/arm/include/asm/arch-stm32f4/stm32_periph.h | 38

[U-Boot] [PATCH v2 1/5] arch-stm32f4: Remove fmc.h file

2018-02-09 Thread patrice.chotard
From: Patrice Chotard fmc.h file is no more used, remove it. All FMC related defines are declared in drivers/ram/stm32_sdram.c which is common to all STM32 SoCs. Signed-off-by: Patrice Chotard --- v2: _ none

[U-Boot] [PATCH v2 5/5] arch-stm32: Clean arch-stm32f7/syscfg.h

2018-02-09 Thread patrice.chotard
From: Patrice Chotard Remove all unused defines Signed-off-by: Patrice Chotard --- v2: _none arch/arm/include/asm/arch-stm32f7/syscfg.h | 9 - 1 file changed, 9 deletions(-) diff --git a/arch/arm/include/asm/arch-stm32f7/syscfg.h

[U-Boot] [PATCH 7/7] clk: clk_stm32f: Add DSI clock support

2018-02-08 Thread patrice.chotard
From: Patrice Chotard DSI clock is available on STM32F769-disco and STM32F469-disco board. Signed-off-by: Yannick Fertre Signed-off-by: Patrice Chotard --- drivers/clk/clk_stm32f.c | 2 +-

[U-Boot] [PATCH 5/7] clk: clk_stm32f: Configure SAI PLL to generate LTDC pixel clock

2018-02-08 Thread patrice.chotard
From: Patrice Chotard Configure SAI PLL configuration to generate LTDC pixel clock on the PLLSAIR output. PLLSAI is enabled only if CONFIG_VIDEO_STM32 flag is set. Signed-off-by: Patrice Chotard --- drivers/clk/clk_stm32f.c | 37

[U-Boot] [PATCH 3/6] clk: clk_stm32h7: Fix stm32_clk_get_rate() for timer

2018-02-07 Thread patrice.chotard
From: Patrice Chotard For timer clock, an additional prescaler is used which was not taken into account previously. Signed-off-by: Patrice Chotard --- drivers/clk/clk_stm32h7.c | 102 -- 1 file

[U-Boot] [PATCH 5/6] ARM: dts: stm32: Add timer support for STM32F7

2018-02-07 Thread patrice.chotard
From: Patrice Chotard Add missing timer node to enable timer5 for STM32F7 SoCs family Signed-off-by: Patrice Chotard --- arch/arm/dts/stm32f7-u-boot.dtsi | 8 arch/arm/dts/stm32f746.dtsi | 7 +++ 2 files changed, 15

[U-Boot] [PATCH 2/6] clk: clk_stm32f: Fix stm32_clk_get_rate() for timer

2018-02-07 Thread patrice.chotard
From: Patrice Chotard For timer clock, an additionnal prescaler is used which was not taken into account previously. Signed-off-by: Patrice Chotard --- drivers/clk/clk_stm32f.c | 116 ---

[U-Boot] [PATCH 0/6] Add DM timer support for STM32 SoCs family

2018-02-07 Thread patrice.chotard
From: Patrice Chotard Add DM timer support for all STM32F7/F4/H7 SoCs family. Clock driver for STM32F4/F7 and H7 need to updated to get timer clock rate. Remove all defines or files previously used for timer usage in arch/arm/include/asm/arch-stm32fx and in

[U-Boot] [PATCH 1/6] timer: stm32: Add timer support for STM32 SoCs family

2018-02-07 Thread patrice.chotard
From: Patrice Chotard This timer driver is using GPT Timer (General Purpose Timer) available on all STM32 SOCs family. This driver can be used on STM32F4/F7 and H7 SoCs family Signed-off-by: Patrice Chotard --- drivers/timer/Kconfig | 7

[U-Boot] [PATCH 6/6] board: stm32: switch to DM STM32 timer

2018-02-07 Thread patrice.chotard
From: Patrice Chotard Use available DM stm32_timer driver instead of dedicated mach-stm32/stm32fx/timer.c. Remove all defines or files previously used for timer usage in arch/arm/include/asm/arch-stm32fx and in arch/arm/mach-stm32/stm32fx Enable DM STM32_TIMER for

[U-Boot] [PATCH 4/6] clk: clk_stm32h7: Fix prescaler for Domain 3

2018-02-07 Thread patrice.chotard
From: Patrice Chotard d1cfgr register was used to calculate the domain 3 prescaler value instead of d3cfgr. Signed-off-by: Patrice Chotard --- drivers/clk/clk_stm32h7.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git

[U-Boot] [PATCH] ARM: dts: Add support for stm32f746-evaluation board support

2018-02-16 Thread patrice.chotard
From: Patrice Chotard This board offers: _ STM32F746NGH6 microcontroller with 1 Mbyte Flash and 320+4 Kbytes RAM _ Six 5 V power supply options: Power jack ST-LINK/V2-1 USB connector User USB HS connector User USB FS1 connector

[U-Boot] [PATCH 1/3] usb: dwc2: disable external vbus supply when the device is removed

2018-03-15 Thread patrice.chotard
From: Christophe Kerello This patch adds an interface to disable the power in dwc2 driver. This new interface is called when the device is removed. Signed-off-by: Christophe Kerello Signed-off-by: Patrice Chotard

[U-Boot] [PATCH 2/3] usb: dwc2: increase timeout in wait_for_chhltd

2018-03-15 Thread patrice.chotard
From: Christophe Kerello This patch increases timeout to 2s. It was seen on 2 USB devices (Verbatim STORE N GO 070B4AED0FB22358 and USB DISK 2.0 9000729BA41DDF40) that the request sense command takes between 1.3s and and 1.5s. Signed-off-by: Christophe Kerello

[U-Boot] [PATCH 0/3] Update DWC2 driver

2018-03-15 Thread patrice.chotard
From: Patrice Chotard This series : _ adds dwc_vbus_supply_exit() to disable VBUS on device removal _ increases timeout in wait_for_chhltd() _ replaces printf() and pr_err by dev_info() and dev_err() Christophe Kerello (2): usb: dwc2: disable external vbus supply

[U-Boot] [PATCH 3/3] usb: dwc2: Replace printf, pr_err by dev_info, dev_err

2018-03-15 Thread patrice.chotard
From: Patrice Chotard Replace printf() call by dev_info() and pr_err() by dev_err() Signed-off-by: Patrice Chotard --- drivers/usb/host/dwc2.c | 20 +++- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git

[U-Boot] [PATCH 0/6] Update ohci/ehci-generic drivers

2018-03-14 Thread patrice.chotard
From: Patrice Chotard This series updates ohci-generic and ehci-generic drivers by: _ Add generic_phy_power_on() and generic_phy_power_off() needed to work with phy driver which implement these callbacks. _ Factorize PHY operations. _ Replace pr_err() with

[U-Boot] [PATCH 5/6] usb: ohci-generic: factorize PHY operation

2018-03-14 Thread patrice.chotard
From: Patrice Chotard Factorize PHY get/init/poweron and PHY poweroff/exit operations into separate function, it simplify the error path. Signed-off-by: Patrice Chotard --- drivers/usb/host/ohci-generic.c | 99

[U-Boot] [PATCH 4/6] usb: ohci-generic: handle phy power on/off

2018-03-14 Thread patrice.chotard
From: Patrice Chotard Add generic_phy_power_on() and generic_phy_power_off() calls to switch ON/OFF phy during probe and remove functions. Signed-off-by: Patrice Chotard --- drivers/usb/host/ohci-generic.c | 17 + 1 file changed,

[U-Boot] [PATCH 3/6] usb: ehci-generic: replace pr_err() by dev_err()

2018-03-14 Thread patrice.chotard
From: Patrice Chotard As we get access to struct udevice, use dev_err() instead of pr_err(). Signed-off-by: Patrice Chotard --- drivers/usb/host/ehci-generic.c | 16 +--- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git

[U-Boot] [PATCH 6/6] usb: ohci-generic: replace pr_err() by dev_err()

2018-03-14 Thread patrice.chotard
From: Patrice Chotard As we get access to struct udevice, use dev_err() instead of pr_err(). Signed-off-by: Patrice Chotard --- drivers/usb/host/ohci-generic.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git

[U-Boot] [PATCH 1/6] usb: ehci-generic: handle phy power on/off

2018-03-14 Thread patrice.chotard
From: Patrice Chotard Add generic_phy_power_on() and generic_phy_power_off() calls to switch ON/OFF phy during probe and remove functions. Signed-off-by: Christophe Kerello Signed-off-by: Patrice Chotard ---

[U-Boot] [PATCH 2/6] usb: ehci-generic: factorize PHY operation

2018-03-14 Thread patrice.chotard
From: Patrice Chotard Factorize PHY get/init/poweron and PHY poweroff/exit operations into separate function, it simplify the error path. Signed-off-by: Patrice Chotard --- drivers/usb/host/ehci-generic.c | 99

[U-Boot] [PATCH] usb: gadget: composite: fix NULL pointer when a non standard request is received

2018-03-15 Thread patrice.chotard
From: Christophe Kerello In case usb configuration is unknown (cdev->config == NULL), non standard request should not be processed. Remove also the cdev->config check below which will never happen. This issue was seen using ums feature. Signed-off-by: Christophe

[U-Boot] [PATCH] configs: stm32: Enable DOS_PARTITION for STM32F4/F7 boards

2018-02-28 Thread patrice.chotard
From: Patrice Chotard Enable DOS_PARTITION for boards STM32F429-eval, STM32F469-disco and STM32F746-disco. This allows to read FAT partition on mmc. Signed-off-by: Patrice Chotard --- configs/stm32f429-evaluation_defconfig | 1 -

[U-Boot] [PATCH] mach-stm32: Use default memory map as background region

2018-02-28 Thread patrice.chotard
From: Patrice Chotard On linux kernel side, on STM32F7 and STM32H7 SoCs, DMA requires uncachable regions. These regions are defined in DT. Since kernel linux v4.15, on ARMv7-M Cortex, kernel is able to configure MPU regions depending on DT settings. As kernel is able to

[U-Boot][PATCH v2] board: stm32mp1: add splash screen with stmicroelectronics logo

2023-08-16 Thread patrice.chotard
From: Patrick Delaunay Display the STMicroelectronics logo with features VIDEO_LOGO and SPLASH_SCREEN on STMicroelectronics boards. With CONFIG_SYS_VENDOR = "st", the logo st.bmp is selected, loaded at the address indicated by splashimage and centered with "splashpos=m,m". Signed-off-by:

<    2   3   4   5   6   7