From 1b9fe868bc37a07ce13b7bbeadb049b8034be552 Mon Sep 17 00:00:00 2001 From: Akihiro Mizusawa Date: Thu, 10 Oct 2024 17:59:07 -0700 Subject: [PATCH] nv-oot: Add early boot HSP commands Add HSP commands related to RCE early boot logging. Jira CAMERASW-27443 Change-Id: Ib80a5e5157474119663a010d2b6aa476cd17cdd7 Signed-off-by: Akihiro Mizusawa Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3228077 Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3239621 Reviewed-by: Frank Chen Reviewed-by: Semi Malinen GVS: buildbot_gerritrpt Reviewed-by: Chinniah Poosapadi --- include/soc/tegra/camrtc-commands.h | 70 +++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) diff --git a/include/soc/tegra/camrtc-commands.h b/include/soc/tegra/camrtc-commands.h index e9995064..cec3056f 100644 --- a/include/soc/tegra/camrtc-commands.h +++ b/include/soc/tegra/camrtc-commands.h @@ -506,6 +506,76 @@ */ #define CAMRTC_HSP_SET_OP_POINT MK_U32(0x48) +/** + * @brief BOOT_STAGE logging message + * + * The CAMRTC_HSP_BOOT_STAGE message is a unidirectional + * message from RCE to client to log the currently running + * init function's feature ID and init level. + * + * @pre None + * + * @par Response + * @rststar + * +-------+---------------------------------------------------+ + * | Bits | Description | + * +=======+===================================================+ + * | 30:24 | CAMRTC_HSP_BOOT_STAGE | + * +-------+---------------------------------------------------+ + * | 23:16 | Init step feature ID | + * +-------+---------------------------------------------------+ + * | 15:8 | Init step level | + * +-------+---------------------------------------------------+ + * | 7:0 | Undefined | + * +-------+---------------------------------------------------+ + * @endrst + */ +#define CAMRTC_HSP_BOOT_STAGE MK_U32(0x49) + +/** + * @brief BOOT_ERROR logging message + * + * The CAMRTC_HSP_BOOT_ERROR message is a unidirectional + * message from RCE to client to log that an RCE init handler + * returned error and RCE has halted. + * + * @pre None + * + * @par Response + * @rststar + * +-------+---------------------------------------------------+ + * | Bits | Description | + * +=======+===================================================+ + * | 30:24 | CAMRTC_HSP_BOOT_ERROR | + * +-------+---------------------------------------------------+ + * | 23:0 | RTOS error | + * +-------+---------------------------------------------------+ + * @endrst + */ +#define CAMRTC_HSP_BOOT_ERROR MK_U32(0x4A) + +/** + * @brief BOOT_COMPLETE logging message + * + * The CAMRTC_HSP_BOOT_COMPLETE message is a unidirectional + * message from RCE to client to log that RCE early boot has + * completed. + * + * @pre None + * + * @par Response + * @rststar + * +-------+---------------------------------------------------+ + * | Bits | Description | + * +=======+===================================================+ + * | 30:24 | CAMRTC_HSP_BOOT_COMPLETE | + * +-------+---------------------------------------------------+ + * | 23:0 | 0x000000 | + * +-------+---------------------------------------------------+ + * @endrst + */ +#define CAMRTC_HSP_BOOT_COMPLETE MK_U32(0x4B) + /** Reserved, not to be used. */ #define CAMRTC_HSP_RESERVED_5E MK_U32(0x5E) /* bug 200395605 */