public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH v2 0/4] arm: socfpga: Convert drivers from struct to defines
@ 2019-09-10  8:37 Ley Foon Tan
  2019-09-10  8:38 ` [U-Boot] [PATCH v2 1/4] arm: dts: socfpga: Add u-boot, dm-pre-reloc for sysmgr and clkmgr nodes Ley Foon Tan
                   ` (4 more replies)
  0 siblings, 5 replies; 21+ messages in thread
From: Ley Foon Tan @ 2019-09-10  8:37 UTC (permalink / raw)
  To: u-boot

This is 2nd version of patchset to convert reset, system and clock manager
drivers to use #define instead of struct.

Tested on Cyclone 5, Arria 10 and Stratix 10 devices.

Patch 1 is new one, patch 2 to 4 have changes.

Main changes in this version are:
- Get base address from DT
- Change to use writel(), readl(), setbits_le32() and clrbits_le32().
- Add prefix to defines.
- Add "u-boot,dm-pre-reloc" to clock and system manager nodes.

History:
v1: https://patchwork.ozlabs.org/cover/1149731/

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         |  12 +-
 arch/arm/mach-socfpga/clock_manager_arria10.c | 156 +++++++------
 arch/arm/mach-socfpga/clock_manager_gen5.c    | 199 +++++++++--------
 arch/arm/mach-socfpga/clock_manager_s10.c     | 210 ++++++++++--------
 .../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                  |  42 ++++
 arch/arm/mach-socfpga/misc_arria10.c          |   9 +-
 arch/arm/mach-socfpga/misc_gen5.c             |  29 +--
 arch/arm/mach-socfpga/misc_s10.c              |   9 +-
 arch/arm/mach-socfpga/reset_manager_arria10.c |  71 +++---
 arch/arm/mach-socfpga/reset_manager_gen5.c    |  35 ++-
 arch/arm/mach-socfpga/reset_manager_s10.c     |  52 +++--
 arch/arm/mach-socfpga/scan_manager.c          |   6 +-
 arch/arm/mach-socfpga/spl_a10.c               |  12 +-
 arch/arm/mach-socfpga/spl_gen5.c              |  23 +-
 arch/arm/mach-socfpga/spl_s10.c               |  24 +-
 arch/arm/mach-socfpga/system_manager_gen5.c   |  38 ++--
 arch/arm/mach-socfpga/system_manager_s10.c    |  39 ++--
 arch/arm/mach-socfpga/wrap_pll_config_s10.c   |  11 +-
 drivers/ddr/altera/sdram_gen5.c               |  10 +-
 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, 880 insertions(+), 1049 deletions(-)

-- 
2.19.0

^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2019-10-10  0:47 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-09-10  8:37 [U-Boot] [PATCH v2 0/4] arm: socfpga: Convert drivers from struct to defines Ley Foon Tan
2019-09-10  8:38 ` [U-Boot] [PATCH v2 1/4] arm: dts: socfpga: Add u-boot, dm-pre-reloc for sysmgr and clkmgr nodes Ley Foon Tan
2019-09-16 14:09   ` Dinh Nguyen
2019-09-18  2:32     ` Ley Foon Tan
2019-10-02  9:18   ` Simon Goldschmidt
2019-09-10  8:38 ` [U-Boot] [PATCH v2 2/4] arm: socfpga: Convert reset manager from struct to defines Ley Foon Tan
2019-10-02  9:20   ` Simon Goldschmidt
2019-10-04  3:03     ` Ley Foon Tan
2019-09-10  8:38 ` [U-Boot] [PATCH v2 3/4] arm: socfpga: Convert system " Ley Foon Tan
2019-10-02  9:20   ` Simon Goldschmidt
2019-10-04  3:05     ` Ley Foon Tan
2019-09-10  8:38 ` [U-Boot] [PATCH v2 4/4] arm: socfpga: Convert clock " Ley Foon Tan
2019-10-02  9:22   ` Simon Goldschmidt
2019-10-04  2:57     ` Ley Foon Tan
2019-09-17 22:33 ` [U-Boot] [PATCH v2 0/4] arm: socfpga: Convert drivers " Dinh Nguyen
2019-09-18  2:32   ` Ley Foon Tan
2019-09-18  4:22     ` Simon Goldschmidt
2019-10-02  8:13       ` Ley Foon Tan
2019-10-02  9:23         ` Simon Goldschmidt
2019-10-09 18:42           ` Simon Goldschmidt
2019-10-10  0:47             ` Ley Foon Tan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox