[PATCHv3 00/14] Add a subcommand 'release' to cmd/cpu.c

Zhiqiang Hou Zhiqiang.Hou at nxp.com
Tue Jul 30 09:29:49 CEST 2024


From: Hou Zhiqiang <Zhiqiang.Hou at nxp.com>

This patch set is to add a subcommand 'release' to the 'cpu' command
in cmd/cpu.c, making the command is able to release a core to run
baremetal and RTOS applications.

Fixed some problems of the imx8_cpu.c and added i.MX 8M series SoCs
support.

Added ARM A53 core clock registration in clock driver of i.MX 8M Mini,
Nano and Plus SoCs.

And enabled the 'cpu' command and imx CPU driver for i.MX 8M series
EVK boards and i.MX 93 EVK board.

Hou Zhiqiang (14):
  clk: imx8m: register ARM A53 core clock
  cpu: add release_core callback
  cpu: sandbox: implement release_core callback
  test: cpu: add test for release CPU core.
  cpu: imx: fix the CPU frequency in cpu_imx_get_info()
  cpu: imx: fix the CPU type field width
  cpu: imx: removed the tail '\n' of the CPU description
  cpu: imx: Add i.MX 8M series SoCs
  cpu: imx: implement release_core callback
  cmd: cpu: add release subcommand
  doc: cmd: add documentation for cpu command
  MAINTAINERS: add entry for cpu command
  configs: imx8m: enable the 'cpu' command
  configs: imx93: enable the 'cpu' command

---
V4:
 - Moved the depended patch into this thread.
 - Removed the tail '\n' of the CPU description for imx CPU driver.
 - Refined the documentation of 'cpu' command.
V3:
 - Added documentation for 'cpu' command.
 - Fixed the getting cpu frequency issue in i.MX CPU driver.
V2:
 - Implemented release_core() in sandbox and added test for the new API.
 - Increased the CPU type mask in i.MX CPU driver.
 - Added i.MX 8M series SoCs in i.MX CPU driver

 MAINTAINERS                       |   7 +++
 cmd/cpu.c                         |  44 ++++++++++++-
 configs/imx8mm_evk_defconfig      |   3 +
 configs/imx8mn_evk_defconfig      |   3 +
 configs/imx8mp_evk_defconfig      |   3 +
 configs/imx93_11x11_evk_defconfig |   1 +
 doc/usage/cmd/cpu.rst             | 101 ++++++++++++++++++++++++++++++
 drivers/clk/imx/clk-imx8mm.c      |   6 ++
 drivers/clk/imx/clk-imx8mn.c      |   7 +++
 drivers/clk/imx/clk-imx8mp.c      |   7 +++
 drivers/cpu/cpu-uclass.c          |  10 +++
 drivers/cpu/cpu_sandbox.c         |   6 ++
 drivers/cpu/imx8_cpu.c            |  38 +++++++++--
 include/cpu.h                     |  15 +++++
 test/dm/cpu.c                     |   2 +
 15 files changed, 246 insertions(+), 7 deletions(-)
 create mode 100644 doc/usage/cmd/cpu.rst

-- 
2.17.1



More information about the U-Boot mailing list