Add NUGGET_PARAM_AP_UART_PASSTHRU to control AP UART
Bug: b/78538672
Test: Try it and see
Change-Id: I95db39dccede6c4b292838b6a94a59ad27ea3819
Signed-off-by: Bill Richardson <wfrichar@google.com>
diff --git a/nugget/include/app_nugget.h b/nugget/include/app_nugget.h
index 669e82c..f8e8fda 100644
--- a/nugget/include/app_nugget.h
+++ b/nugget/include/app_nugget.h
@@ -233,6 +233,34 @@
* @errors APP_ERROR_TOO_MUCH
*/
+enum nugget_ap_uart_passthru_cfg {
+ NUGGET_AP_UART_OFF, /* off */
+ NUGGET_AP_UART_IS_USB, /* USB CCD is in use over SBU */
+ NUGGET_AP_UART_ENABLED, /* AP UART is on SBU lines */
+ NUGGET_AP_UART_SSC_UART, /* This doesn't actually exist */
+ NUGGET_AP_UART_CITADEL_UART, /* Citadel UART on SBU lines (ew) */
+
+ NUGGET_AP_UART_NUM_CFGS,
+};
+#define NUGGET_PARAM_AP_UART_PASSTHRU 0x000d
+/*
+ * Enable/Disable the AP UART PASSTHRU function
+ *
+ * This always returns the current state of the AP UART passthru feature. Even
+ * if the AP UART is disabled, a SuzyQable may connected to use the SBU lines.
+ *
+ * The AP can only request that the AP UART passthru feature be enabled
+ * (NUGGET_AP_UART_ENABLED), or disabled (NUGGET_AP_UART_OFF). The other enums
+ * are for internal testing.
+ *
+ * @param args <none> OR enum nugget_ap_uart_passthru_cfg
+ * @param arg_len 0 OR 1 byte
+ * @param reply enum nugget_param_ap_uart_passthru
+ * @param reply_len 1 byte
+ *
+ * @errors APP_ERROR_BOGUS_ARGS
+ */
+
/****************************************************************************/
/* Test related commands */