diff --git a/CMakeLists.txt b/CMakeLists.txt index bd179a5..bbafa46 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -19,6 +19,7 @@ add_subdirectory(raspinfo) add_subdirectory(rpieepromab) add_subdirectory(rpi-gpu-usage) add_subdirectory(rpi-manufacture-info) +add_subdirectory(rpi-pmic) add_subdirectory(vcgencmd) add_subdirectory(vclog) add_subdirectory(vcmailbox) diff --git a/README.md b/README.md index 1d511bf..ee077fa 100644 --- a/README.md +++ b/README.md @@ -27,11 +27,11 @@ A collection of scripts and simple applications * [rpifwcrypto](rpifwcrypto/) - A command line application and shared library for the firmware cryptography service. Intended for use with Raspberry Pi Connect and secure-boot provisioner. -* [rpipmic](rpipmic/) - A command line utility to report any stored PMIC events. * [rpi-gpu-usage](rpi-gpu-usage/) - A tool for showing the per-process usage of the V3D GPU on Raspberry Pi 4 and 5. * [rpi-manufacture-info](rpi-manufacture-info/) - Displays the manufacturing information provisioned in BCM2711 and BCM2712 OTP, including the SDRAM configuration. +* [rpi-pmic](rpi-pmic/) - A command line utility to report any stored PMIC events. * [splashasm](splashasm/) - A tool for writing spi & i2c dumps for fast display at boot * [vcgencmd](vcgencmd/) - A tool to send commands to the VideoCore firmware and display the results. diff --git a/rpi-pmic/CMakeLists.txt b/rpi-pmic/CMakeLists.txt new file mode 100644 index 0000000..a145ac3 --- /dev/null +++ b/rpi-pmic/CMakeLists.txt @@ -0,0 +1,7 @@ +cmake_minimum_required(VERSION 3.10...3.27) + +include(GNUInstallDirs) + +project(rpi-pmic) + +install(PROGRAMS rpi-pmic DESTINATION ${CMAKE_INSTALL_BINDIR}) diff --git a/rpipmic/README.md b/rpi-pmic/README.md similarity index 96% rename from rpipmic/README.md rename to rpi-pmic/README.md index 952632e..3ebd3b7 100644 --- a/rpipmic/README.md +++ b/rpi-pmic/README.md @@ -1,4 +1,4 @@ -# rpipmic +# rpi-pmic Tool to report PMIC events on Raspberry Pi 5 family devices (Pi 5, Pi 500, CM5). diff --git a/rpipmic/rpipmic b/rpi-pmic/rpi-pmic old mode 100644 new mode 100755 similarity index 99% rename from rpipmic/rpipmic rename to rpi-pmic/rpi-pmic index 0a063d7..2bbaddd --- a/rpipmic/rpipmic +++ b/rpi-pmic/rpi-pmic @@ -6,7 +6,7 @@ # /proc/device-tree/chosen/power/power_reset. Events latched since boot are # read from the PMIC EVT status register via vcgencmd, if available. # -# Usage: ./rpipmic +# Usage: ./rpi-pmic set -eu