arm: socfpga: Convert drivers from struct to defines
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v6 Latest4 patches 0 repliesNew
- v54 patches 0 repliesSuperseded
- v44 patches 0 repliesSuperseded
Earlier versions · 3
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v3 | 4 patches | 0 replies | Superseded | |
| v2 | 4 patches | 0 replies | Superseded | |
| v1 | 3 patches | 0 replies | Superseded |
Changes in v6 from the cover letter
- Call to socfpga_get_*mgr_addr() function, instead of access to global variable directly.
- Update socfpga_get_base_addr() to return error code, instead of return 0.
Patches in v6 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | arm: dts: socfpga: Add u-boot, dm-pre-reloc for sysmgr and clkmgr nodesarch/ arch/ arch/ +3 more | +27 | 0 replies | |
| 2/4 | arm: socfpga: Convert reset manager from struct to definesarch/ arch/ arch/ +11 more | +150 | 1 reply | |
| 3/4 | arm: socfpga: Convert system manager from struct to definesarch/ arch/ arch/ +22 more | +267 | 1 reply | |
| 4/4 | arm: socfpga: Convert clock manager from struct to definesarch/ arch/ arch/ +7 more | +501 | 1 reply |
Reviews trailers per patch
All 4 patches have a Reviewed-by or Acked-by.
| Patch | Simon Goldschmidt |
|---|---|
| 1/4 | R-b |
| 2/4 | R-b |
| 3/4 | R-b |
| 4/4 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [U-Boot] [PATCH v6 0/4] arm: socfpga: Convert drivers from struct to defines
This is 6th version of patchset to convert reset, system and clock manager drivers to use #define instead of struct.
Patch 1 unchanged, patch 2,3,4 have changes.
Tested on Cyclone 5, Arria 10 and Stratix 10 devices.
Changes in v6:
- Call to socfpga_get_*mgr_addr() function, instead of access to global variable directly.
- Update socfpga_get_base_addr() to return error code, instead of return 0.
History:
v1: https://patchwork.ozlabs.org/cover/1149731/
v2: https://patchwork.ozlabs.org/cover/1160079/
v3: https://patchwork.ozlabs.org/cover/1174327/
v4: https://patchwork.ozlabs.org/cover/1174347/
v5: https://patchwork.ozlabs.org/cover/1190831/
Ley Foon Tan (4):
arm: dts: socfpga: Add u-boot,dm-pre-reloc for sysmgr and clkmgr nodes
arm: socfpga: Convert reset manager from struct to defines
arm: socfpga: Convert system manager from struct to defines
arm: socfpga: Convert clock manager from struct to defines
arch/arm/dts/socfpga-common-u-boot.dtsi | 8 + arch/arm/dts/socfpga.dtsi | 2 +- arch/arm/dts/socfpga_arria10.dtsi | 2 +- arch/arm/dts/socfpga_arria10_socdk.dtsi | 8 + arch/arm/dts/socfpga_stratix10.dtsi | 2 +- .../dts/socfpga_stratix10_socdk-u-boot.dtsi | 8 + arch/arm/mach-socfpga/clock_manager.c | 14 +- arch/arm/mach-socfpga/clock_manager_arria10.c | 155 +++++++------ arch/arm/mach-socfpga/clock_manager_gen5.c | 211 ++++++++++------- arch/arm/mach-socfpga/clock_manager_s10.c | 217 ++++++++++-------- .../mach-socfpga/include/mach/clock_manager.h | 2 + .../include/mach/clock_manager_arria10.h | 133 ++++------- .../include/mach/clock_manager_gen5.h | 112 ++++----- .../include/mach/clock_manager_s10.h | 115 ++++------ arch/arm/mach-socfpga/include/mach/misc.h | 1 + .../mach-socfpga/include/mach/reset_manager.h | 2 + .../include/mach/reset_manager_arria10.h | 43 +--- .../include/mach/reset_manager_gen5.h | 22 +- .../include/mach/reset_manager_s10.h | 33 +-- .../include/mach/system_manager.h | 2 + .../include/mach/system_manager_arria10.h | 94 +++----- .../include/mach/system_manager_gen5.h | 123 ++-------- .../include/mach/system_manager_s10.h | 184 ++++++--------- arch/arm/mach-socfpga/mailbox_s10.c | 6 +- arch/arm/mach-socfpga/misc.c | 61 +++++ arch/arm/mach-socfpga/misc_arria10.c | 11 +- arch/arm/mach-socfpga/misc_gen5.c | 33 +-- arch/arm/mach-socfpga/misc_s10.c | 9 +- arch/arm/mach-socfpga/reset_manager_arria10.c | 73 +++--- arch/arm/mach-socfpga/reset_manager_gen5.c | 37 ++- arch/arm/mach-socfpga/reset_manager_s10.c | 55 ++--- arch/arm/mach-socfpga/scan_manager.c | 6 +- arch/arm/mach-socfpga/spl_a10.c | 12 +- arch/arm/mach-socfpga/spl_gen5.c | 26 +-- arch/arm/mach-socfpga/spl_s10.c | 24 +- arch/arm/mach-socfpga/system_manager_gen5.c | 42 ++-- arch/arm/mach-socfpga/system_manager_s10.c | 42 ++-- arch/arm/mach-socfpga/wrap_pll_config_s10.c | 13 +- drivers/ddr/altera/sdram_gen5.c | 12 +- drivers/ddr/altera/sdram_s10.c | 6 +- drivers/fpga/socfpga_arria10.c | 7 +- drivers/fpga/socfpga_gen5.c | 4 +- drivers/mmc/socfpga_dw_mmc.c | 17 +- drivers/sysreset/sysreset_socfpga.c | 6 +- 44 files changed, 945 insertions(+), 1050 deletions(-)
Signature · 1 line
2.19.0