09 Nov, 2018

1 commit


26 Sep, 2018

1 commit


14 Aug, 2018

2 commits

  • Commit 1473b12ad0b3 ("lib: fdtdec: Update ram_base to store ram start
    adddress") brings regression on STM32F7 which can't boot.

    Use fdtdec_setup_mem_size_base() to setup memory base and size.
    Use fdtdec_setup_memory_banksize() to setup memory bank base and size.

    Reported-by: Mark Olsson
    Signed-off-by: Patrice Chotard
    Cc: Mark Olsson
    Reviewed-by: Vikas Manocha

    Patrice Chotard
     
  • Use gd->bd->bi_dram[0].start initialized from DT instead of using
    hardcoded CONFIG_SYS_SDRAM_BASE from config file.

    Remove unused CONFIG_SYS_RAM_BASE and CONFIG_SYS_SDRAM_BASE defines.

    Signed-off-by: Patrice Chotard

    Patrice Chotard
     

10 Aug, 2018

1 commit


21 Jul, 2018

1 commit

  • Add support of stm32mp157c-ev1, the evaluation board with pmic stpmu1
    (ev1 = mother board + daughter ed1) with device tree.
    EV1 is the selected board by default in basic defconfig.

    PS: CONFIG_PINCTRL_FULL activation avoid to increase
    SYS_MALLOC_F_LEN (Early malloc usage: 2034)

    Signed-off-by: Patrick Delaunay

    Patrick Delaunay
     

19 Jul, 2018

1 commit


27 May, 2018

1 commit

  • Add the needed information to enable the debug uart
    to have printf before the serial driver probe
    (so before probe for clock, pincontrol and reset drivers)

    To enable the debug on uart 4 (default console):
    + CONFIG_DEBUG_UART=y
    + CONFIG_DEBUG_UART_STM32=y

    Signed-off-by: Patrick Delaunay
    Signed-off-by: Patrice Chotard

    Patrick Delaunay
     

07 May, 2018

2 commits

  • When U-Boot started using SPDX tags we were among the early adopters and
    there weren't a lot of other examples to borrow from. So we picked the
    area of the file that usually had a full license text and replaced it
    with an appropriate SPDX-License-Identifier: entry. Since then, the
    Linux Kernel has adopted SPDX tags and they place it as the very first
    line in a file (except where shebangs are used, then it's second line)
    and with slightly different comment styles than us.

    In part due to community overlap, in part due to better tag visibility
    and in part for other minor reasons, switch over to that style.

    This commit changes all instances where we have multiple licenses (in
    these cases, dual license) declared in the SPDX-License-Identifier tag.
    In this case we change from listing "LICENSE-A LICENSE-B" or "LICENSE-A
    or LICENSE-B" or "(LICENSE-A OR LICENSE-B)" to "LICENSE-A OR LICENSE-B"
    as per the Linux Kernel style document. Note that parenthesis are
    allowed so when they were used before we continue to use them.

    Reviewed-by: Fabio Estevam
    Signed-off-by: Tom Rini

    Tom Rini
     
  • When U-Boot started using SPDX tags we were among the early adopters and
    there weren't a lot of other examples to borrow from. So we picked the
    area of the file that usually had a full license text and replaced it
    with an appropriate SPDX-License-Identifier: entry. Since then, the
    Linux Kernel has adopted SPDX tags and they place it as the very first
    line in a file (except where shebangs are used, then it's second line)
    and with slightly different comment styles than us.

    In part due to community overlap, in part due to better tag visibility
    and in part for other minor reasons, switch over to that style.

    This commit changes all instances where we have a single declared
    license in the tag as both the before and after are identical in tag
    contents. There's also a few places where I found we did not have a tag
    and have introduced one.

    Signed-off-by: Tom Rini

    Tom Rini
     

07 Apr, 2018

1 commit


20 Mar, 2018

1 commit

  • Add first support for STM32MP157C-ED1 board with "Basic" boot chain
    1/ Boot Rom: load SPL with STM32 image header in SYSRAM
    2/ SPL: power up and initialize the DDR and load U-Boot image
    from SDCARD in DDR
    3/ U-Boot: search and load extlinux.conf in SDCARD
    (DISTRO activated)

    Signed-off-by: Patrick Delaunay

    Patrick Delaunay
     

19 Mar, 2018

1 commit


14 Mar, 2018

2 commits


28 Jan, 2018

3 commits


10 Jan, 2018

5 commits

  • This board offers :

    _ STM32F469NIH6 microcontroller featuring 2 Mbytes of Flash memory
    and 324 Kbytes of RAM in BGA216 package
    _ On-board ST-LINK/V2-1 SWD debugger, supporting USB reenumeration capability:
    _ Mbed-enabled (mbed.org)
    _ USB functions: USB virtual COM port, mass storage, debug port
    _ 4 inches 800x480 pixel TFT color LCD with MIPI DSI interface and capacitive
    touch screen
    _ SAI Audio DAC, with a stereo headphone output jack
    _ 3 MEMS microphones
    _ MicroSD card connector
    _ I2C extension connector
    _ 4Mx32bit SDRAM
    _ 128-Mbit Quad-SPI NOR Flash
    _ Reset and wake-up buttons
    _ 4 color user LEDs
    _ USB OTG FS with Micro-AB connector
    _ Three power supply options:
    _ Expansion connectors and Arduino™ UNO V3 connectors

    Signed-off-by: Patrice Chotard

    Patrice Chotard
     
  • Use available DM stm32f7_gpio.c and pinctrl_stm32.c drivers
    instead of board GPIO initialization.

    Remove stm32_gpio.c which is no more used and migrate
    structs stm32_gpio_regs and stm32_gpio_priv into
    arch-stm32f4/gpio.h to not break compilation.

    Signed-off-by: Patrice Chotard

    Patrice Chotard
     
  • Use available DM clk_stm32f.c driver instead of dedicated
    mach-stm32/stm32f4/clock.c.

    Migrate periph_clock defines from stm32_periph.h directly in
    CLK driver. These periph_clock defines will be removed when STMMAC,
    TIMER2 and SYSCFG drivers will support DM CLK.

    Enable also CLK flag.

    Signed-off-by: Patrice Chotard

    Patrice Chotard
     
  • Remove serial_stm32.c driver and uart init from board file,
    use available DM serial_stm32x7.c driver compatible for
    STM32F4/F7 and H7 SoCs.

    The serial_stm32x7.c driver will be renamed later with a more
    generic name as it's shared with all STM32 Socs.

    Signed-off-by: Patrice Chotard

    Patrice Chotard
     
  • Use available DM stm32_sdram.c driver instead of board
    SDRAM initialization.
    For that, enable OF_CONTROL, OF_EMBED and STM32_SDRAM flags.

    Signed-off-by: Patrice Chotard

    Patrice Chotard
     

30 Nov, 2017

2 commits


06 Nov, 2017

3 commits


22 Sep, 2017

2 commits


16 Aug, 2017

2 commits

  • We are now using an env_ prefix for environment functions. Rename these
    two functions for consistency. Also add function comments in common.h.

    Quite a few places use getenv() in a condition context, provoking a
    warning from checkpatch. These are fixed up in this patch also.

    Suggested-by: Wolfgang Denk
    Signed-off-by: Simon Glass

    Simon Glass
     
  • We are now using an env_ prefix for environment functions. Rename setenv()
    for consistency. Also add function comments in common.h.

    Suggested-by: Wolfgang Denk
    Signed-off-by: Simon Glass

    Simon Glass
     

26 Jul, 2017

2 commits

  • Migrate all FMC defines from arch/arm/include/asm/arch-stm32f7/fmc.h
    to drivers/ram/stm32_sdram.c

    This will avoid to add an additionnal arch-stm32xx/fmc.h file when
    a new stm32 family soc will be introduced.

    Signed-off-by: Patrice Chotard
    Reviewed-by: Vikas Manocha
    Reviewed-by: Simon Glass

    Patrice Chotard
     
  • This allow to remove include/dm/platform_data/serial_stm32x7.h
    which was included in the past by stm32x7 driver and by
    stm32f746-disco.c board file.
    Since patch 42bf5e7c27 "serial: stm32f7: add device tree support"
    this file is no more needed in board file.

    Signed-off-by: Patrice Chotard
    Acked-by: Vikas MANOCHA

    Patrice Chotard
     

09 Jun, 2017

3 commits

  • With xip booting configuration, we don't need to copy the next image
    (U-Boot or linux xipimage) from flash to sdram area.

    Flash memory organization is like this:
    spl-U-Boot: u-boot-spl.bin : 0x0800_0000
    U-Boot : u-boot-dtb.bin : 0x0800_8000
    linux : xipImage : 0x0800_8000

    It is also possible to have U-Boot binary & linux binaries configured at
    different addresses of flash memory like U-Boot at 0x0800_8000 & linux
    xipImage at 0x0800_4000. But in any case, spl-U-Boot needs to be compiled for
    U-Boot as next binary with SPL_OS_BOOT option disabled.
    By default, spl is configured to boot linux xipImage.

    Signed-off-by: Vikas Manocha

    Vikas Manocha
     
  • Signed-off-by: Vikas Manocha

    Vikas Manocha
     
  • This commit supports booting from stm32 internal nor flash. spl U-Boot
    initializes the sdram memory, copies next image (e.g. standard U-Boot)
    to sdram & then jumps to entry point.

    Here are the flash memory addresses for U-Boot-spl & standard U-Boot:
    - spl U-Boot : 0x0800_0000
    - standard U-Boot : 0x0800_8000

    To compile u-boot without spl: Remove SUPPORT_SPL configuration
    (arch/arm/mach-stm32/Kconfig)

    Signed-off-by: Vikas Manocha
    [trini: Rework Kconfig logic a bit]
    Signed-off-by: Tom Rini

    Vikas Manocha
     

01 Jun, 2017

2 commits


08 May, 2017

1 commit