Skip to content

arm: socfpga: Usability fixes

Marek Vasut u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest51 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
2/51net: phy: Cleanup drivers/net/phy/micrel.cdrivers/net/phy/micrel.c+3 -41 reply
3/51net: dwc: Fix cache alignment issuesdrivers/net/designware.c+4 -21 reply
3/51net: dwc: Fix cache alignment issues+0 -00 replies
4/51net: dwc: Make the cache handling less crypticdrivers/net/designware.c+23 -251 reply
5/51mmc: dw_mmc: cleanupsdrivers/mmc/dw_mmc.c+22 -121 reply
6/51mmc: dw_mmc: Fix cache alignment issueinclude/dwmmc.h+1 -11 reply
6/51mmc: dw_mmc: Fix cache alignment issue+0 -00 replies
7/51tools: socfpga: Add socfpga preloader signing to mkimagecommon/image.c include/image.h tools/Makefile +3 more+261 -01 reply
7/51tools: socfpga: Add socfpga preloader signing to mkimage+0 -00 replies
8/51arm: socfpga: Complete the list of base addressesarch/arm/include/asm/arch-socfpga/socfpga_base_addrs.h+40 -01 reply
8/51arm: socfpga: Complete the list of base addresses+0 -00 replies
9/51arm: socfpga: Clean up base address filearch/arm/include/asm/arch-socfpga/socfpga_base_addrs.h+51 -511 reply
11/51arm: socfpga: sysmgr: Clean up system managerarch/arm/cpu/armv7/socfpga/system_manager.c arch/arm/include/asm/arch-socfpga/system_manager.h+86 -340 replies
12/51arm: socfpga: clock: Implant order into bit definitionsarch/arm/include/asm/arch-socfpga/clock_manager.h+99 -670 replies
13/51arm: socfpga: clock: Drop nonsense inlining from clock manager codearch/arm/cpu/armv7/socfpga/clock_manager.c+6 -60 replies
14/51arm: socfpga: clock: Add missing stubs into board fileboard/altera/socfpga/pll_config.h+3 -00 replies
16/51arm: socfpga: clock: Trim down code duplicationarch/arm/cpu/armv7/socfpga/clock_manager.c+38 -580 replies
17/51arm: socfpga: clock: Clean up bit definitionsarch/arm/cpu/armv7/socfpga/clock_manager.c arch/arm/cpu/armv7/socfpga/spl.c arch/arm/include/asm/arch-socfpga/clock_manager.h+323 -3030 replies
18/51arm: socfpga: clock: Sync with reference codearch/arm/cpu/armv7/socfpga/clock_manager.c arch/arm/include/asm/arch-socfpga/clock_manager.h+29 -160 replies
19/51arm: socfpga: mmc: Pick the clock from clock managerdrivers/mmc/socfpga_dw_mmc.c+11 -40 replies
20/51arm: socfpga: timer: Pull the timer reload value from config filearch/arm/cpu/armv7/socfpga/timer.c include/configs/socfpga_cyclone5.h+2 -20 replies
21/51arm: socfpga: reset: Add EMAC reset functionsarch/arm/cpu/armv7/socfpga/reset_manager.c arch/arm/include/asm/arch-socfpga/reset_manager.h+20 -00 replies
22/51arm: socfpga: misc: Add proper ethernet initializationarch/arm/cpu/armv7/socfpga/misc.c arch/arm/include/asm/arch-socfpga/system_manager.h+52 -150 replies
23/51arm: socfpga: misc: Add SD controller initarch/arm/cpu/armv7/socfpga/misc.c+13 -00 replies
24/51arm: socfpga: misc: Align print_cpuinfo() outputarch/arm/cpu/armv7/socfpga/misc.c+1 -10 replies
25/51arm: socfpga: board: Correctly set ATAG positionboard/altera/socfpga/socfpga_cyclone5.c+4 -00 replies
26/51arm: socfpga: board: Align checkboard() outputboard/altera/socfpga/socfpga_cyclone5.c+1 -10 replies
27/51fpga: altera: Clean up the printing and debugdrivers/fpga/altera.c+58 -591 reply
27/51fpga: altera: Clean up the printing and debug+0 -00 replies
28/51fpga: altera: Clean up altera_validate functiondrivers/fpga/altera.c+21 -222 replies
29/51fpga: altera: More indentation trimdowndrivers/fpga/altera.c+120 -1180 replies
30/51fpga: altera: Move altera_validate to the topdrivers/fpga/altera.c+26 -320 replies
31/51fpga: altera: Make altera_validate return normal valuesdrivers/fpga/altera.c+9 -91 reply
31/51fpga: altera: Make altera_validate return normal values+0 -00 replies
32/51fpga: altera: Clean up enums in altera.hinclude/altera.h+49 -270 replies
33/51fpga: altera: Turn the switches into table lookupdrivers/fpga/altera.c+60 -1110 replies
35/51arm: socfpga: reset: Add function to reset FPGA bridgesarch/arm/cpu/armv7/socfpga/reset_manager.c arch/arm/include/asm/arch-socfpga/reset_manager.h+40 -00 replies
36/51arm: socfpga: sysmgr: Add FPGA bits into system managerarch/arm/cpu/armv7/socfpga/system_manager.c+39 -00 replies
37/51arm: cache: Add support for write-allocate D-Cachearch/arm/include/asm/system.h arch/arm/lib/cache-cp15.c+3 -00 replies
38/51arm: socfpga: cache: Define cacheline sizeinclude/configs/socfpga_cyclone5.h+2 -00 replies
39/51arm: socfpga: cache: Enable D-Cacheboard/altera/socfpga/socfpga_cyclone5.c include/configs/socfpga_cyclone5.h+2 -10 replies
40/51arm: socfpga: cache: Enable PL310 L2 cacheinclude/configs/socfpga_cyclone5.h+2 -00 replies
41/51arm: socfpga: scu: Add SCU register filearch/arm/include/asm/arch-socfpga/scu.h+23 -00 replies
42/51arm: socfpga: nic301: Add NIC-301 GPV register filearch/arm/include/asm/arch-socfpga/nic301.h+195 -00 replies
43/51arm: socfpga: pl310: Map SDRAM to 0x0arch/arm/cpu/armv7/socfpga/misc.c+14 -00 replies
44/51arm: socfpga: nic301: Add NIC-301 configuration codearch/arm/cpu/armv7/socfpga/misc.c+26 -00 replies
45/51arm: socfpga: Enable DWMMC for SOCFPGAinclude/configs/socfpga_cyclone5.h+16 -00 replies
46/51arm: socfpga: Enable SDMMC boot for SOCFPGA U-Bootinclude/configs/socfpga_cyclone5.h+18 -40 replies
47/51arm: socfpga: Move cache_enable to CPU codearch/arm/cpu/armv7/socfpga/misc.c board/altera/socfpga/socfpga_cyclone5.c+10 -30 replies
48/51arm: socfpga: Add command to control HPS-FPGA bridgesarch/arm/cpu/armv7/socfpga/misc.c+75 -00 replies
49/51arm: socfpga: Clean up SoCFPGA configurationinclude/configs/socfpga_cyclone5.h+188 -2180 replies
50/51arm: socfpga: Split SoCFPGA configurationinclude/configs/socfpga_cyclone5.h include/configs/socfpga_cyclone5_common.h+207 -2002 replies
50/51arm: socfpga: Split SoCFPGA configuration+0 -00 replies
50/51arm: socfpga: Split SoCFPGA configuration+0 -00 replies
51/51arm: socfpga: Use CMD_FS_GENERICinclude/configs/socfpga_cyclone5.h+3 -21 reply

Reviews trailers per patch

24 of 55 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchPavel MachekDinh NguyenStefan RoeseMichal SimekChin Liang See
SeriesA-b T-b T-b A-b
2/51A-b
3/51
3/51
4/51A-b A-b
5/51A-b
6/51
6/51
7/51
7/51
8/51A-b
8/51A-b
9/51A-b A-b
11/51
12/51
13/51A-b
14/51A-b A-b
16/51A-b
17/51
18/51
19/51A-b
20/51A-b A-b
21/51A-b
22/51
23/51
24/51
25/51
26/51A-b
27/51
27/51
28/51A-b
29/51
30/51
31/51A-b
31/51A-b
32/51
33/51
35/51A-b
36/51
37/51A-b
38/51A-b
39/51A-b
40/51A-b
41/51A-b
42/51A-b
43/51
44/51
45/51
46/51
47/51
48/51
49/51
50/51
50/51
50/51
51/51A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 5 reviewers.

Read the v1 thread

Cover letter [U-Boot] [PATCH 00/51] arm: socfpga: Usability fixes

This entire series is the second stab at making SoCFPGA usable with mainline U-Boot again. There are much fewer bits missing than in the last series, more cleanup happened and bugs were fixed. This allows me to use mainline U-Boot on my SoCFPGA systems.

The big missing part is the SPL generation, which still needs a lot of additional work. We also miss the Cadence QSPI controller driver.

This set contains patches for a few subsystems, which are utilized by the SoCFPGA, but the most part is the SoCFPGA chip support. This series now contains cleanup for the mayhem in drivers/fpga/altera.c code, which was terrible, but is now much better.

Charles Manning (1):
tools: socfpga: Add socfpga preloader signing to mkimage

Chin Liang See (2):
arm: socfpga: Enable DWMMC for SOCFPGA
arm: socfpga: Enable SDMMC boot for SOCFPGA U-Boot

Marek Vasut (32):
net: dwc: Fix cache alignment issues
net: dwc: Make the cache handling less cryptic
mmc: dw_mmc: Fix cache alignment issue
arm: socfpga: Clean up base address file
arm: socfpga: sysmgr: Clean up system manager
arm: socfpga: clock: Implant order into bit definitions
arm: socfpga: clock: Drop nonsense inlining from clock manager code
arm: socfpga: clock: Add missing stubs into board file
arm: socfpga: clock: Trim down code duplication
arm: socfpga: clock: Clean up bit definitions
arm: socfpga: clock: Sync with reference code
arm: socfpga: timer: Pull the timer reload value from config file
arm: socfpga: reset: Add EMAC reset functions
arm: socfpga: board: Align checkboard() output
fpga: altera: Clean up the printing and debug
fpga: altera: Clean up altera_validate function
fpga: altera: More indentation trimdown
fpga: altera: Move altera_validate to the top
fpga: altera: Make altera_validate return normal values
fpga: altera: Clean up enums in altera.h
fpga: altera: Turn the switches into table lookup
arm: socfpga: reset: Add function to reset FPGA bridges
arm: socfpga: sysmgr: Add FPGA bits into system manager
arm: cache: Add support for write-allocate D-Cache
arm: socfpga: cache: Define cacheline size
arm: socfpga: cache: Enable D-Cache
arm: socfpga: cache: Enable PL310 L2 cache
arm: socfpga: scu: Add SCU register file
arm: socfpga: nic301: Add NIC-301 GPV register file
arm: socfpga: pl310: Map SDRAM to 0x0
arm: socfpga: Move cache_enable to CPU code
arm: socfpga: Use CMD_FS_GENERIC

Pavel Machek (16):
net: Remove unused CONFIG_DW_SEARCH_PHY from configs
net: phy: Cleanup drivers/net/phy/micrel.c
mmc: dw_mmc: cleanups
arm: socfpga: Complete the list of base addresses
arm: socfpga: Add watchdog disable for socfpga
arm: socfpga: clock: Add code to read clock configuration
arm: socfpga: mmc: Pick the clock from clock manager
arm: socfpga: misc: Add proper ethernet initialization
arm: socfpga: misc: Add SD controller init
arm: socfpga: misc: Align print_cpuinfo() output
arm: socfpga: board: Correctly set ATAG position
arm: socfpga: fpga: Add SoCFPGA FPGA programming interface
arm: socfpga: nic301: Add NIC-301 configuration code
arm: socfpga: Add command to control HPS-FPGA bridges
arm: socfpga: Clean up SoCFPGA configuration
arm: socfpga: Split SoCFPGA configuration

 arch/arm/cpu/armv7/socfpga/Makefile                |   3 +-
 arch/arm/cpu/armv7/socfpga/clock_manager.c         | 340 ++++++++++++++++-----
 arch/arm/cpu/armv7/socfpga/fpga_manager.c          |  78 +++++
 arch/arm/cpu/armv7/socfpga/misc.c                  | 235 +++++++++++++-
 arch/arm/cpu/armv7/socfpga/reset_manager.c         |  67 ++++
 arch/arm/cpu/armv7/socfpga/spl.c                   | 174 ++++++-----
 arch/arm/cpu/armv7/socfpga/system_manager.c        |  57 +++-
 arch/arm/cpu/armv7/socfpga/timer.c                 |   2 +
 arch/arm/include/asm/arch-socfpga/clock_manager.h  | 306 ++++++++++++-------
 arch/arm/include/asm/arch-socfpga/fpga_manager.h   |  77 +++++
 arch/arm/include/asm/arch-socfpga/nic301.h         | 195 ++++++++++++
 arch/arm/include/asm/arch-socfpga/reset_manager.h  |   9 +
 arch/arm/include/asm/arch-socfpga/scu.h            |  23 ++
 .../include/asm/arch-socfpga/socfpga_base_addrs.h  |  62 +++-
 arch/arm/include/asm/arch-socfpga/system_manager.h | 111 +++++--
 arch/arm/include/asm/system.h                      |   1 +
 arch/arm/lib/cache-cp15.c                          |   2 +
 board/altera/socfpga/pll_config.h                  |   3 +
 board/altera/socfpga/socfpga_cyclone5.c            |   6 +-
 common/image.c                                     |   1 +
 drivers/fpga/Makefile                              |   1 +
 drivers/fpga/altera.c                              | 308 ++++++++-----------
 drivers/fpga/socfpga.c                             | 301 ++++++++++++++++++
 drivers/mmc/dw_mmc.c                               |  34 ++-
 drivers/mmc/socfpga_dw_mmc.c                       |  15 +-
 drivers/net/designware.c                           |  46 +--
 drivers/net/phy/micrel.c                           |   7 +-
 include/altera.h                                   |  82 +++--
 include/configs/axs101.h                           |   1 -
 include/configs/socfpga_cyclone5.h                 | 318 ++++---------------
 include/configs/socfpga_cyclone5_common.h          | 196 ++++++++++++
 include/dwmmc.h                                    |   2 +-
 include/image.h                                    |   1 +
 tools/Makefile                                     |   1 +
 tools/imagetool.c                                  |   2 +
 tools/imagetool.h                                  |   1 +
 tools/socfpgaimage.c                               | 255 ++++++++++++++++
 37 files changed, 2503 insertions(+), 820 deletions(-)
 create mode 100644 arch/arm/cpu/armv7/socfpga/fpga_manager.c
 create mode 100644 arch/arm/include/asm/arch-socfpga/fpga_manager.h
 create mode 100644 arch/arm/include/asm/arch-socfpga/nic301.h
 create mode 100644 arch/arm/include/asm/arch-socfpga/scu.h
 create mode 100644 drivers/fpga/socfpga.c
 create mode 100644 include/configs/socfpga_cyclone5_common.h
 create mode 100644 tools/socfpgaimage.c
Cc Chin Liang See <[email protected]>
Cc Dinh Nguyen <[email protected]>
Cc Albert Aribaud <[email protected]>
Cc Tom Rini <[email protected]>
Cc Wolfgang Denk <[email protected]>
Cc Pavel Machek <[email protected]>
Signature · 1 line
2.0.0