From 1386db71e21e2d9eacc21b0986f1f91fb441b519 Mon Sep 17 00:00:00 2001 From: Christian Lamparter Date: Sat, 14 Aug 2010 23:03:42 +0200 Subject: [PATCH] carl9170 firmware: boot-up interrupt The firmware now generates an interrupt after it booted. Signed-off-by: Christian Lamparter --- carlfw/src/main.c | 5 +++++ include/shared/fwcmd.h | 1 + 2 files changed, 6 insertions(+) diff --git a/carlfw/src/main.c b/carlfw/src/main.c index 9b2a09c..f62e5ee 100644 --- a/carlfw/src/main.c +++ b/carlfw/src/main.c @@ -149,5 +149,10 @@ void __attribute__((noreturn)) start(void) " ~`!1@2#3$4%%5^6&7*8(9)0_-+={[}]|\\:;\"'<,>.?/"); #endif /* CONFIG_CARL9170FW_DEBUG */ + /* + * Tell the host, that the firmware has booted and is + * now ready to process requests. + */ + send_cmd_to_host(0, CARL9170_RSP_BOOT, 0x00, NULL); main_loop(); } diff --git a/include/shared/fwcmd.h b/include/shared/fwcmd.h index af2fbbe..be62c9c 100644 --- a/include/shared/fwcmd.h +++ b/include/shared/fwcmd.h @@ -85,6 +85,7 @@ enum carl9170_cmd_oids { CARL9170_RSP_HEXDUMP = 0xcc, CARL9170_RSP_RADAR = 0xcd, CARL9170_RSP_GPIO = 0xce, + CARL9170_RSP_BOOT = 0xcf, }; struct carl9170_set_key_cmd { -- 2.31.1