[U-Boot] [PATCH 2/7] net: stm32: add designware mac glue code for stm32

2016-11-01 Thread Michael Kurz
This patch adds glue code required for enabling the designware mac on stm32f7 devices. Signed-off-by: Michael Kurz --- arch/arm/include/asm/arch-stm32f7/rcc.h | 8 arch/arm/include/asm/arch-stm32f7/stm32_periph.h | 2 + arch/arm/include/asm/arch-stm32f7/syscfg.h | 39

[U-Boot] [PATCH 6/7] ARM: stm32: fix comment in stm32f7 header file

2016-11-01 Thread Michael Kurz
This patch fixes a comment typo in stm32f7 rcc.h header Signed-off-by: Michael Kurz --- arch/arm/include/asm/arch-stm32f7/rcc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/include/asm/arch-stm32f7/rcc.h b/arch/arm/include/asm/arch-stm32f7/rcc.h index dba6f23

[U-Boot] [PATCH 3/7] net: phy: add SMSC LAN8742 phy

2016-11-01 Thread Michael Kurz
This patch adds support for SMSC LAN8742 in phylib Signed-off-by: Michael Kurz --- drivers/net/phy/smsc.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/net/phy/smsc.c b/drivers/net/phy/smsc.c index 313fcdf..41ffbe9 100644 --- a/drivers/net/phy/smsc.c +++ b/drivers

[U-Boot] [PATCH 0/7] ARM: stm32: add network and qspi driver support to stm32f746-disco board

2016-11-01 Thread Michael Kurz
This series adds support for the network and the qspi devices found on the stm32f746 controller and enables those devices on the stm32f746-disco board. Michael Kurz (7): ARM: DTS: stm32: add stm32f746-disco device tree files net: stm32: add designware mac glue code for stm32 net: phy: add

[U-Boot] [PATCH 1/7] ARM: DTS: stm32: add stm32f746-disco device tree files

2016-11-01 Thread Michael Kurz
This patch adds the DTS source files needed for stm32f746-disco board based on the stm32f429/469 files from current linux kernel. Signed-off-by: Michael Kurz --- arch/arm/dts/Makefile |2 + arch/arm/dts/armv7-m.dtsi | 24 + arch/arm/dts

[U-Boot] [PATCH 4/7] ARM: stm32: enable support for smsc phy on stm32f746-disco board

2016-11-01 Thread Michael Kurz
This patch enables support for the smsc phy on the stm32f746-disco board. Signed-off-by: Michael Kurz --- include/configs/stm32f746-disco.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/stm32f746-disco.h b/include/configs/stm32f746-disco.h index 4088064..246cc2e 100644

[U-Boot] [PATCH 5/7] ARM: SPI: stm32: add stm32f746 qspi driver

2016-11-01 Thread Michael Kurz
This patch adds support for the QSPI IP found in stm32f7 devices. Signed-off-by: Michael Kurz --- This currently hard disables any multi i/o in the device tree, as it is impossible to get this working without interpreting the commands of the spi-flash framework in the xfer function and setting

[U-Boot] [PATCH 7/7] SPI: add missing flag to micron/stm N25Q128 flash chips

2016-11-01 Thread Michael Kurz
This patch adds the missing 4K erase flag to struct spi_flash_params Signed-off-by: Michael Kurz --- drivers/mtd/spi/sf_params.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/spi/sf_params.c b/drivers/mtd/spi/sf_params.c index 5b50114..accf95e 100644

Re: [U-Boot] [PATCH 2/7] net: stm32: add designware mac glue code for stm32

2016-11-02 Thread Michael Kurz
On Tue, 1 Nov 2016, Joe Hershberger wrote: On Tue, Nov 1, 2016 at 4:54 PM, Michael Kurz wrote: This patch adds glue code required for enabling the designware mac on stm32f7 devices. Signed-off-by: Michael Kurz --- arch/arm/include/asm/arch-stm32f7/rcc.h | 8 arch/arm

[U-Boot] [PATCH v2 0/7] ARM: stm32: add network and qspi driver support to stm32f746-disco board

2016-11-04 Thread Michael Kurz
- Add Acked-by tag to 'net: phy: add SMSC LAN8742 phy' - Replaced bit shifts and masks with BIT() and GENMASK() macro Michael Kurz (7): ARM: DTS: stm32: add stm32f746-disco device tree files ARM: stm32: cleanup stm32f7 files net: stm32: add designware mac glue code for stm32 net

[U-Boot] [PATCH v2 1/7] ARM: DTS: stm32: add stm32f746-disco device tree files

2016-11-04 Thread Michael Kurz
This patch adds the DTS source files needed for stm32f746-disco board based on the stm32f429/469 files from current linux kernel. Signed-off-by: Michael Kurz --- Changes in v2: None arch/arm/dts/Makefile |2 + arch/arm/dts/armv7-m.dtsi

[U-Boot] [PATCH v2 2/7] ARM: stm32: cleanup stm32f7 files

2016-11-04 Thread Michael Kurz
Cleanup stm32f7 files: - use BIT macro - use GENMASK macro - prefix all constants with STM32_ - remove double constants Signed-off-by: Michael Kurz --- Changes in v2: - add cleanup patch arch/arm/include/asm/arch-stm32f4/stm32.h| 2 +- arch/arm/include/asm/arch-stm32f7/fmc.h

[U-Boot] [PATCH v2 6/7] ARM: SPI: stm32: add stm32f746 qspi driver

2016-11-04 Thread Michael Kurz
This patch adds support for the QSPI IP found in stm32f7 devices. Signed-off-by: Michael Kurz --- This currently hard disables any multi i/o in the device tree, as it is impossible to get this working without interpreting the commands of the spi-flash framework in the xfer function and setting

[U-Boot] [PATCH v2 4/7] net: phy: add SMSC LAN8742 phy

2016-11-04 Thread Michael Kurz
This patch adds support for SMSC LAN8742 in phylib Signed-off-by: Michael Kurz Acked-by: Joe Hershberger --- Changes in v2: - Add Acked-by tag to 'net: phy: add SMSC LAN8742 phy' drivers/net/phy/smsc.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/net/

[U-Boot] [PATCH v2 3/7] net: stm32: add designware mac glue code for stm32

2016-11-04 Thread Michael Kurz
This patch adds glue code required for enabling the designware mac on stm32f7 devices. Signed-off-by: Michael Kurz --- Changes in v2: - Replaced bit shifts and masks with BIT() and GENMASK() macro - Moved STM32_SYSCFG_BASE into stm32.h header arch/arm/include/asm/arch-stm32f7/stm32_periph.h

[U-Boot] [PATCH v2 5/7] ARM: stm32: enable support for smsc phy on stm32f746-disco board

2016-11-04 Thread Michael Kurz
This patch enables support for the smsc phy on the stm32f746-disco board. Signed-off-by: Michael Kurz --- Changes in v2: None include/configs/stm32f746-disco.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/stm32f746-disco.h b/include/configs/stm32f746-disco.h index

[U-Boot] [PATCH v2 7/7] SPI: add missing flag to micron/stm N25Q128 flash chips

2016-11-04 Thread Michael Kurz
This patch adds the missing 4K erase flag to struct spi_flash_params Signed-off-by: Michael Kurz --- Changes in v2: None drivers/mtd/spi/sf_params.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/spi/sf_params.c b/drivers/mtd/spi/sf_params.c index 5b50114

Re: [U-Boot] [PATCH v2 2/7] ARM: stm32: cleanup stm32f7 files

2016-11-24 Thread Michael Kurz
On Thu, 24 Nov 2016, Vikas MANOCHA wrote: Hi Vikas, Hi Michael, -Original Message- From: Michael Kurz [mailto:michi.k...@gmail.com] Sent: Friday, November 04, 2016 12:21 PM To: u-boot@lists.denx.de Cc: Michael Kurz ; Kamil Lulko ; Toshifumi NISHINAGA ; Vadzim Dambrouski ; Albert

[U-Boot] [PATCH v3 0/9] ARM: stm32: add network and qspi driver support to stm32f746-disco board

2016-11-24 Thread Michael Kurz
G_BASE into stm32.h header - Add Acked-by tag to 'net: phy: add SMSC LAN8742 phy' - Replaced bit shifts and masks with BIT() and GENMASK() macro Michael Kurz (9): ARM: DTS: stm32: add stm32f746 device tree pin control files ARM: DTS: stm32: add stm32f746-disco device tree files AR

[U-Boot] [PATCH v3 2/9] ARM: DTS: stm32: add stm32f746-disco device tree files

2016-11-24 Thread Michael Kurz
This patch adds the DTS source files needed for stm32f746-disco board The files are based on the stm32f429/469 files from current linux kernel. Signed-off-by: Michael Kurz Acked-by: Vikas MANOCHA --- Changes in v3: - Split pin control files of from device tree patch - Add Acked-by tag to 

[U-Boot] [PATCH v3 1/9] ARM: DTS: stm32: add stm32f746 device tree pin control files

2016-11-24 Thread Michael Kurz
This patch adds pin control definitions for use in device tree files The definitions are based on the stm32f429/469 files from current linux kernel. Signed-off-by: Michael Kurz Acked-by: Vikas MANOCHA --- Changes in v3: - Split pin control files of from device tree patch - Add Acked-by tag to

[U-Boot] [PATCH v3 3/9] ARM: stm32: cleanup stm32f7 files

2016-11-24 Thread Michael Kurz
Cleanup stm32f7 files: - use BIT macro - use GENMASK macro - use rcc struct instead of macro additions Signed-off-by: Michael Kurz --- Changes in v3: - Removed 'prefix all constants with STM32_' - Reverted move of header into source file (rcc.h -> clock.c) Changes in v2: - Add

[U-Boot] [PATCH v3 4/9] ARM: stm32: fix stm32f7 sdram fmc base address

2016-11-24 Thread Michael Kurz
Fix base address of fmc sdram controller. The base address is defined twice, once in fmc.h and once in stm32.h. Fix wrong definition in stm32.h. Remove the definiton in fmc.h and use the definition in stm32.h Signed-off-by: Michael Kurz Series-changes 3: - Split cleanup patch --- Changes in

[U-Boot] [PATCH v3 7/9] net: phy: add SMSC LAN8742 phy

2016-11-24 Thread Michael Kurz
This patch adds support for SMSC LAN8742 in phylib Signed-off-by: Michael Kurz Acked-by: Joe Hershberger --- Changes in v3: None Changes in v2: - Add Acked-by tag to 'net: phy: add SMSC LAN8742 phy' drivers/net/phy/smsc.c | 12 1 file changed, 12 insertions(+) di

[U-Boot] [PATCH v3 9/9] ARM: SPI: stm32: add stm32f746 qspi driver

2016-11-24 Thread Michael Kurz
This patch adds support for the QSPI IP found in stm32f7 devices. Signed-off-by: Michael Kurz --- This currently hard disables any multi i/o in the device tree, as it is impossible to get this working without interpreting the commands of the spi-flash framework in the xfer function and setting

[U-Boot] [PATCH v3 6/9] net: stm32: add designware mac glue code for stm32

2016-11-24 Thread Michael Kurz
This patch adds glue code required for enabling the designware mac on stm32f7 devices. Signed-off-by: Michael Kurz Acked-by: Joe Hershberger --- Changes in v3: - Add Acked-by tag to 'add designware mac glue code for stm32' Changes in v2: - Replaced bit shifts and masks with BIT() a

[U-Boot] [PATCH v3 5/9] ARM: stm32: use clock setup function defined in clock.c

2016-11-24 Thread Michael Kurz
Use the clock setup function defined in clock.c instead of setting the clock bits directly in the drivers. Remove register definitions of RCC in rcc.h as these are already defined in the struct in stm32.h Signed-off-by: Michael Kurz --- Changes in v3: - Split clock setup changes of from

[U-Boot] [PATCH v3 8/9] ARM: stm32: enable support for smsc phy on stm32f746-disco board

2016-11-24 Thread Michael Kurz
This patch enables support for the smsc phy on the stm32f746-disco board. Signed-off-by: Michael Kurz Acked-by: Vikas MANOCHA Series-changes 3: - Add Acked-by tag to 'enable support for smsc phy on...' --- Changes in v3: None Changes in v2: None include/configs/stm32f746-disco.

Re: [U-Boot] [PATCH v3 1/9] ARM: DTS: stm32: add stm32f746 device tree pin control files

2016-12-05 Thread Michael Kurz
Hi Vikas, On Wed, 30 Nov 2016, Vikas MANOCHA wrote: Hi Michael, -Original Message- From: Michael Kurz [mailto:michi.k...@gmail.com] Sent: Thursday, November 24, 2016 11:11 AM To: u-boot@lists.denx.de Cc: Michael Kurz ; Albert Aribaud ; Vikas MANOCHA Subject: [PATCH v3 1/9] ARM: DTS

Re: [U-Boot] [PATCH v3 2/9] ARM: DTS: stm32: add stm32f746-disco device tree files

2016-12-05 Thread Michael Kurz
Hi Vikas, On Thu, 1 Dec 2016, vikas wrote: Hi Michael, On 11/24/2016 11:10 AM, Michael Kurz wrote: This patch adds the DTS source files needed for stm32f746-disco board The files are based on the stm32f429/469 files from current linux kernel. Signed-off-by: Michael Kurz Acked-by: Vikas

Re: [U-Boot] [PATCH v3 3/9] ARM: stm32: cleanup stm32f7 files

2016-12-05 Thread Michael Kurz
Hi Vikas, On Thu, 1 Dec 2016, Vikas MANOCHA wrote: Thanks Joe for your feedback, -Original Message- From: Joe Hershberger [mailto:joe.hershber...@gmail.com] Sent: Thursday, December 01, 2016 11:13 AM To: Vikas MANOCHA Cc: Michael Kurz ; u-boot@lists.denx.de; Toshifumi NISHINAGA

Re: [U-Boot] [PATCH v3 6/9] net: stm32: add designware mac glue code for stm32

2016-12-05 Thread Michael Kurz
Hi Vikas, On Thu, 1 Dec 2016, vikas wrote: Hi, On 11/24/2016 11:10 AM, Michael Kurz wrote: This patch adds glue code required for enabling the designware mac on stm32f7 devices. ethernet is not working at my end, is it working at your end. Just tested it again with a clean clone of u

[U-Boot] [PATCH v4 0/9] ARM: stm32: add network and qspi driver support to stm32f746-disco board

2017-01-22 Thread Michael Kurz
- Moved STM32_SYSCFG_BASE into stm32.h header - Add Acked-by tag to 'net: phy: add SMSC LAN8742 phy' - Replaced bit shifts and masks with BIT() and GENMASK() macro Michael Kurz (9): ARM: DTS: stm32: add stm32f746 device tree pin control files ARM: DTS: stm32: add stm32f746-disco de

[U-Boot] [PATCH v4 2/9] ARM: DTS: stm32: add stm32f746-disco device tree files

2017-01-22 Thread Michael Kurz
This patch adds the DTS source files needed for stm32f746-disco board The files are based on the stm32f429/469 files from current linux kernel. Source for "arch/arm/dts/armv7-m.dtsi": Linux: "arch/arm/boot/dts/armv7-m.dtsi" Signed-off-by: Michael Kurz Acked-by: Vikas MANOC

[U-Boot] [PATCH v4 1/9] ARM: DTS: stm32: add stm32f746 device tree pin control files

2017-01-22 Thread Michael Kurz
This patch adds pin control definitions for use in device tree files The definitions are based on the stm32f746 files from current linux kernel "include/dt-bindings/pinctrl/stm32f746-pinfunc.h". Signed-off-by: Michael Kurz Acked-by: Vikas MANOCHA --- Changes in v4: - Correct comm

[U-Boot] [PATCH v4 4/9] ARM: stm32: fix stm32f7 sdram fmc base address

2017-01-22 Thread Michael Kurz
The fmc base address is defined twice, once in fmc.h and once in stm32.h. Fix wrong definition in stm32.h. Remove the definiton in fmc.h. Signed-off-by: Michael Kurz Acked-by: Vikas Manocha --- Changes in v4: - Reword commit message - Add Acked-by tag to 'fix stm32f7 sdram fmc base ad

[U-Boot] [PATCH v4 5/9] ARM: stm32: use clock setup function defined in clock.c

2017-01-22 Thread Michael Kurz
Use the clock setup function defined in clock.c instead of setting the clock bits directly in the drivers. Remove register definitions of RCC in rcc.h as these are already defined in the struct in stm32.h Signed-off-by: Michael Kurz Reviewed-by: Joe Hershberger Reviewed-by: Vikas Manocha

[U-Boot] [PATCH v4 3/9] ARM: stm32: cleanup stm32f7 files

2017-01-22 Thread Michael Kurz
Cleanup stm32f7 files: - use BIT macro - use GENMASK macro - use rcc struct instead of macro additions Add missing stm32f7 register in rcc struct Signed-off-by: Michael Kurz --- Changes in v4: - Split struct stm32_rcc_regs into two structs (common and stm32f7 specific) Changes in v3

[U-Boot] [PATCH v4 7/9] net: phy: add SMSC LAN8742 phy

2017-01-22 Thread Michael Kurz
This patch adds support for SMSC LAN8742 in phylib Signed-off-by: Michael Kurz Acked-by: Joe Hershberger --- Changes in v4: None Changes in v3: None Changes in v2: - Add Acked-by tag to 'net: phy: add SMSC LAN8742 phy' drivers/net/phy/smsc.c | 12 1 file changed, 12

[U-Boot] [PATCH v4 8/9] ARM: stm32: enable support for smsc phy on stm32f746-disco board

2017-01-22 Thread Michael Kurz
This patch enables support for the smsc phy on the stm32f746-disco board. Signed-off-by: Michael Kurz Acked-by: Vikas MANOCHA Series-changes 3: - Add Acked-by tag to 'enable support for smsc phy on...' --- Changes in v4: None Changes in v3: None Changes in v2: None inclu

[U-Boot] [PATCH v4 9/9] ARM: SPI: stm32: add stm32f746 qspi driver

2017-01-22 Thread Michael Kurz
This patch adds support for the QSPI IP found in stm32f7 devices. Signed-off-by: Michael Kurz --- Changes in v4: - Remove dts patch as the dts import patch now disables the quad interface Changes in v3: - Moved qspi rcc bits into rcc header - Drop 'add missing flag to micron/stm N25Q128

[U-Boot] [PATCH v4 6/9] net: stm32: add designware mac glue code for stm32

2017-01-22 Thread Michael Kurz
This patch adds glue code required for enabling the designware mac on stm32f7 devices. Signed-off-by: Michael Kurz Acked-by: Joe Hershberger --- Changes in v4: None Changes in v3: - Add Acked-by tag to 'add designware mac glue code for stm32' Changes in v2: - Replaced bit shifts