[PATCH 00/47] Add TMS570LC4357 support

Sebastian Huber sebastian.huber at embedded-brains.de
Thu Dec 21 14:37:33 UTC 2023


Sebastian Huber (33):
  bsps/arm: Use shared empty bsp_start_hook_0()
  bsp/tms570: Remove empty <bsp/tms570-rti.h>
  bsp/tms570: Remove empty <bsp/tms570-sci.h>
  bsp/tms570: Remove empty <bsp/tms570-vim.h>
  bsp/tms570: Relicense to BSD-2-Clause
  bsp/tms570: Use new pin define
  bsp/tms570: Add bsp_restart()
  bsp/tms570: Rename tms570_initialize_and_clear()
  bsp/tms570: Fix bsp_reset()
  bsp/tms570: Avoid errno for debug console
  bsp/tms570: Implement set/get interrupt priority
  bsp/tms570: Implement interrupt is enabled/pending
  bsp/tms570: Avoid spurious interrupts
  bsp/tms570: Add TM27 support
  bsp/tms570: Remove obsolete build option
  bsp/tms570: Avoid vector overlay memory region
  bsp/tms570: Add variant enable to build
  bsp/tms570: Add linkcmds.memory
  bsp/tms570: Add TMS570LC4357 BSP variants
  bsp/tms570: Fix PBIST clock enable
  bsp/tms570: Enable hardware init for some variants
  bsp/tms570: Simplify expression
  bsp/tms570: Conditionalize TMS570LS3137 errata
  bsp/tms570: Add errata SSWF021#45 handling
  bsp/tms570: Remove reset source handling
  bsp/tms570: Use asm code for tms570_memory_init()
  bsp/tms570: Initialize SRAM on demand
  bsp/tms570: The TMS570LC4357 has no TCRAM modules
  bsp/tms570: Add header guards
  bsp/tms570: Use shared bsp_start_hook_1()
  bsp/tms570: Use bsp_start_copy_sections_compact()
  bsp/tms570: Initialize and enable caches on demand
  bsp/tms570: Optimize tms570_debug_console_out()

Tyler Miller (14):
  bsp/tms570: Add TMS570LC4357 PBIST support
  bsp/tms570: Add tms570_pbist_run_and_check()
  bsp/tms570: Remove double pin configuration
  bsp/tms570: Add TMS570LC4357 pin config support
  bsp/tms570: Add TMS570LC4357 power support
  bsp/tms570: TMS570LC4x Errata DEVICE#60
  bsp/tms570: Add HCLKCNTL register
  bsp/tms570: Honor DBGRST for TMS570LC4357
  bsp/tms570: Initialize MPU
  bsp/tms570: Board-specific tms570_pll_init()
  bsp/tms570: Board-specific tms570_map_clock_init()
  bsp/tms570: Board-specific tms570_pinmux_init()
  bsp/tms570: Board-specific tms570_emif_sdram_init()
  bsp/tms570: Update README

 bsps/arm/beagle/start/bspstarthooks.c         |   4 -
 bsps/arm/lm3s69xx/start/bspstarthook.c        |   5 -
 bsps/arm/shared/start/bspstarthook0-empty.c   |  42 ++
 bsps/arm/stm32f4/start/bspstarthook.c         |   5 -
 bsps/arm/tms570/README                        | 137 +++---
 bsps/arm/tms570/clock/clock.c                 |  32 +-
 ...ms570ls3137_hdk_with_loader-testsuite.tcfg |   9 -
 bsps/arm/tms570/console/printk-support.c      |  75 +--
 bsps/arm/tms570/console/tms570-sci.c          |  34 +-
 bsps/arm/tms570/cpucounter/cpucounterread.c   |  38 +-
 bsps/arm/tms570/include/bsp.h                 |  31 +-
 bsps/arm/tms570/include/bsp/irq.h             |  91 +++-
 bsps/arm/tms570/include/bsp/system-clocks.h   |  32 +-
 .../include/bsp/ti_herc/errata_SSWF021_45.h   |  56 +++
 bsps/arm/tms570/include/bsp/ti_herc/reg_adc.h |  10 +
 .../tms570/include/bsp/ti_herc/reg_ccmsr.h    |  10 +
 bsps/arm/tms570/include/bsp/ti_herc/reg_crc.h |  10 +
 .../arm/tms570/include/bsp/ti_herc/reg_dcan.h |  10 +
 bsps/arm/tms570/include/bsp/ti_herc/reg_dcc.h |  16 +
 bsps/arm/tms570/include/bsp/ti_herc/reg_dma.h |  10 +
 bsps/arm/tms570/include/bsp/ti_herc/reg_dmm.h |  10 +
 .../tms570/include/bsp/ti_herc/reg_efuse.h    |  10 +
 .../tms570/include/bsp/ti_herc/reg_emacc.h    |  10 +
 .../tms570/include/bsp/ti_herc/reg_emacm.h    |  10 +
 .../arm/tms570/include/bsp/ti_herc/reg_emif.h |  10 +
 bsps/arm/tms570/include/bsp/ti_herc/reg_esm.h |  10 +
 .../tms570/include/bsp/ti_herc/reg_flash.h    |  10 +
 .../tms570/include/bsp/ti_herc/reg_flex_ray.h |  10 +
 bsps/arm/tms570/include/bsp/ti_herc/reg_gio.h |  10 +
 bsps/arm/tms570/include/bsp/ti_herc/reg_htu.h |  10 +
 bsps/arm/tms570/include/bsp/ti_herc/reg_i2c.h |  10 +
 .../arm/tms570/include/bsp/ti_herc/reg_iomm.h |  54 +--
 bsps/arm/tms570/include/bsp/ti_herc/reg_lin.h |  10 +
 .../arm/tms570/include/bsp/ti_herc/reg_mdio.h |  10 +
 .../tms570/include/bsp/ti_herc/reg_n2het.h    |  10 +
 .../tms570/include/bsp/ti_herc/reg_pbist.h    |  10 +
 bsps/arm/tms570/include/bsp/ti_herc/reg_pcr.h |  10 +
 bsps/arm/tms570/include/bsp/ti_herc/reg_pll.h |  10 +
 bsps/arm/tms570/include/bsp/ti_herc/reg_pmm.h |  10 +
 bsps/arm/tms570/include/bsp/ti_herc/reg_pom.h |  10 +
 bsps/arm/tms570/include/bsp/ti_herc/reg_rti.h |  10 +
 bsps/arm/tms570/include/bsp/ti_herc/reg_rtp.h |  10 +
 bsps/arm/tms570/include/bsp/ti_herc/reg_sci.h |  10 +
 bsps/arm/tms570/include/bsp/ti_herc/reg_spi.h |  10 +
 bsps/arm/tms570/include/bsp/ti_herc/reg_stc.h |  10 +
 bsps/arm/tms570/include/bsp/ti_herc/reg_sys.h |  20 +
 .../arm/tms570/include/bsp/ti_herc/reg_sys2.h |  16 +-
 bsps/arm/tms570/include/bsp/ti_herc/reg_tcr.h |  10 +
 .../tms570/include/bsp/ti_herc/reg_tcram.h    |  10 +
 bsps/arm/tms570/include/bsp/ti_herc/reg_vim.h |  10 +
 bsps/arm/tms570/include/bsp/tms570-pinmux.h   |  30 +-
 bsps/arm/tms570/include/bsp/tms570-pins.h     |  42 +-
 bsps/arm/tms570/include/bsp/tms570-pom.h      |  34 +-
 bsps/arm/tms570/include/bsp/tms570-rti.h      |  46 --
 .../tms570/include/bsp/tms570-sci-driver.h    |  32 +-
 bsps/arm/tms570/include/bsp/tms570-sci.h      |  45 --
 bsps/arm/tms570/include/bsp/tms570-vim.h      |  48 --
 bsps/arm/tms570/include/bsp/tms570.h          |  22 +-
 bsps/arm/tms570/include/bsp/tms570_hwinit.h   |  95 +++-
 bsps/arm/tms570/include/bsp/tms570_selftest.h |  17 +-
 .../include/bsp/tms570_selftest_parity.h      |  30 +-
 .../tms570/include/bsp/tms570lc4357-pins.h    | 105 +++--
 .../tms570/include/bsp/tms570ls3137zwt-pins.h |  29 +-
 bsps/arm/tms570/include/tm27.h                | 129 ++++-
 bsps/arm/tms570/irq/irq.c                     | 222 +++++++--
 bsps/arm/tms570/start/bspreset.c              |  47 +-
 bsps/arm/tms570/start/bsprestart.c            |  42 ++
 bsps/arm/tms570/start/bspstart.c              |  34 +-
 bsps/arm/tms570/start/bspstarthooks-hwinit.c  | 268 +++++------
 bsps/arm/tms570/start/bspstarthooks.c         |  64 ++-
 bsps/arm/tms570/start/errata_SSWF021_45.c     | 366 ++++++++++++++
 bsps/arm/tms570/start/fail_notification.c     |  42 ++
 bsps/arm/tms570/start/hwinit-lc4357-hdk.c     | 329 +++++++++++++
 bsps/arm/tms570/start/hwinit-ls3137-hdk.c     | 446 ++++++++++++++++++
 bsps/arm/tms570/start/init_emif_sdram.c       |  64 ---
 bsps/arm/tms570/start/init_esm.c              |  43 +-
 bsps/arm/tms570/start/init_pinmux.c           | 263 -----------
 bsps/arm/tms570/start/init_system.c           | 194 +-------
 ..._with_loader => linkcmds.tms570lc4357_hdk} |  11 +-
 .../start/linkcmds.tms570lc4357_hdk_sdram     |  30 ++
 .../tms570/start/linkcmds.tms570ls3137_hdk    |   7 +-
 .../start/linkcmds.tms570ls3137_hdk_intram    |  16 +-
 .../start/linkcmds.tms570ls3137_hdk_sdram     |  16 +-
 bsps/arm/tms570/start/pinmux.c                |  44 +-
 bsps/arm/tms570/start/tms570-pom.c            |  34 +-
 bsps/arm/tms570/start/tms570_selftest.c       | 123 +++--
 .../tms570/start/tms570_selftest_par_can.c    |  35 +-
 .../tms570/start/tms570_selftest_par_mibspi.c |  35 +-
 .../tms570/start/tms570_selftest_par_std.c    |  35 +-
 .../arm/tms570/start/tms570_selftest_parity.c |  31 +-
 bsps/arm/tms570/start/tms570_sys_core.S       | 212 +++++++++
 bsps/arm/tms570/start/tms570_tcram_tests.c    |  18 +-
 bsps/arm/xen/start/bspstarthooks.c            |   5 -
 bsps/arm/xilinx-zynqmp/start/bspstarthooks.c  |   5 -
 bsps/powerpc/t32mppc/make.cmm                 |  19 +
 bsps/powerpc/t32mppc/win.cmm                  |  36 ++
 spec/build/bsps/arm/beagle/obj.yml            |   1 +
 spec/build/bsps/arm/lm3s69xx/obj.yml          |   1 +
 spec/build/bsps/arm/stm32f4/obj.yml           |   1 +
 ...3137hdkwithloader.yml => bsplc4357hdk.yml} |   4 +-
 .../bsps/arm/tms570/bsplc4357hdksdram.yml     |  19 +
 spec/build/bsps/arm/tms570/grp.yml            |  16 +-
 spec/build/bsps/arm/tms570/linkcmdsmemory.yml |  27 ++
 spec/build/bsps/arm/tms570/obj.yml            |   7 +-
 spec/build/bsps/arm/tms570/objhwinit.yml      |  18 +-
 .../bsps/arm/tms570/objhwinitlc4357hdk.yml    |  14 +
 .../bsps/arm/tms570/objhwinitls3137hdk.yml    |  14 +
 spec/build/bsps/arm/tms570/objnohwinit.yml    |   1 +
 spec/build/bsps/arm/tms570/optlowinit.yml     |   7 +-
 .../bsps/arm/tms570/optmemflashorigin.yml     |  18 +
 .../build/bsps/arm/tms570/optmemflashsize.yml |  20 +
 .../bsps/arm/tms570/optmemsdramorigin.yml     |  18 +
 .../build/bsps/arm/tms570/optmemsdramsize.yml |  18 +
 .../bsps/arm/tms570/optmemsramorigin.yml      |  18 +
 spec/build/bsps/arm/tms570/optmemsramsize.yml |  20 +
 .../build/bsps/arm/tms570/opttms570ls3137.yml |  16 -
 spec/build/bsps/arm/tms570/optvariant.yml     |  10 +-
 spec/build/bsps/arm/xen/bspxen.yml            |   1 +
 .../arm/xilinx-zynqmp/bspxilinxzynqmp.yml     |   1 +
 119 files changed, 3768 insertions(+), 1359 deletions(-)
 create mode 100644 bsps/arm/shared/start/bspstarthook0-empty.c
 delete mode 100644 bsps/arm/tms570/config/tms570ls3137_hdk_with_loader-testsuite.tcfg
 create mode 100755 bsps/arm/tms570/include/bsp/ti_herc/errata_SSWF021_45.h
 delete mode 100644 bsps/arm/tms570/include/bsp/tms570-rti.h
 delete mode 100644 bsps/arm/tms570/include/bsp/tms570-sci.h
 delete mode 100644 bsps/arm/tms570/include/bsp/tms570-vim.h
 create mode 100644 bsps/arm/tms570/start/bsprestart.c
 create mode 100755 bsps/arm/tms570/start/errata_SSWF021_45.c
 create mode 100644 bsps/arm/tms570/start/hwinit-lc4357-hdk.c
 create mode 100644 bsps/arm/tms570/start/hwinit-ls3137-hdk.c
 delete mode 100644 bsps/arm/tms570/start/init_emif_sdram.c
 delete mode 100644 bsps/arm/tms570/start/init_pinmux.c
 rename bsps/arm/tms570/start/{linkcmds.tms570ls3137_hdk_with_loader => linkcmds.tms570lc4357_hdk} (70%)
 create mode 100644 bsps/arm/tms570/start/linkcmds.tms570lc4357_hdk_sdram
 create mode 100644 bsps/powerpc/t32mppc/make.cmm
 create mode 100644 bsps/powerpc/t32mppc/win.cmm
 rename spec/build/bsps/arm/tms570/{bspls3137hdkwithloader.yml => bsplc4357hdk.yml} (79%)
 create mode 100644 spec/build/bsps/arm/tms570/bsplc4357hdksdram.yml
 create mode 100644 spec/build/bsps/arm/tms570/linkcmdsmemory.yml
 create mode 100644 spec/build/bsps/arm/tms570/objhwinitlc4357hdk.yml
 create mode 100644 spec/build/bsps/arm/tms570/objhwinitls3137hdk.yml
 create mode 100644 spec/build/bsps/arm/tms570/optmemflashorigin.yml
 create mode 100644 spec/build/bsps/arm/tms570/optmemflashsize.yml
 create mode 100644 spec/build/bsps/arm/tms570/optmemsdramorigin.yml
 create mode 100644 spec/build/bsps/arm/tms570/optmemsdramsize.yml
 create mode 100644 spec/build/bsps/arm/tms570/optmemsramorigin.yml
 create mode 100644 spec/build/bsps/arm/tms570/optmemsramsize.yml
 delete mode 100644 spec/build/bsps/arm/tms570/opttms570ls3137.yml

-- 
2.35.3



More information about the devel mailing list