summaryrefslogtreecommitdiff
path: root/include/led.h
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2022-04-15 08:04:16 -0400
committerTom Rini <trini@konsulko.com>2022-04-15 08:04:16 -0400
commit74ae732d80f54540d3a244e0e28e66d263e6a57e (patch)
treee0ac006d78607573b9e00c1213a8e7bb56cf15a0 /include/led.h
parent42a2d90cf51acea56bf19006ed5688c93c099ff0 (diff)
parentb8617df6d5c8afb74ae8bb4b732a8b56b4f5e9ee (diff)
Merge branch '2022-04-14-assorted-updates'
- Apple M1 Ultra support, TI power domain fix, atsha204a big endian support, LED cleanups and support for default-state, increase malloc pool on sandbox, ubifs bugfix, further serial cleanup / semihost support, fix a few cases around enabling/disabling FS support in SPL, clean up duplication of table_compute_checksum()
Diffstat (limited to 'include/led.h')
-rw-r--r--include/led.h24
1 files changed, 13 insertions, 11 deletions
diff --git a/include/led.h b/include/led.h
index 8eeb5a7c6d3..43acca85719 100644
--- a/include/led.h
+++ b/include/led.h
@@ -9,13 +9,26 @@
struct udevice;
+enum led_state_t {
+ LEDST_OFF = 0,
+ LEDST_ON = 1,
+ LEDST_TOGGLE,
+#ifdef CONFIG_LED_BLINK
+ LEDST_BLINK,
+#endif
+
+ LEDST_COUNT,
+};
+
/**
* struct led_uc_plat - Platform data the uclass stores about each device
*
* @label: LED label
+ * @default_state: LED default state
*/
struct led_uc_plat {
const char *label;
+ enum led_state_t default_state;
};
/**
@@ -27,17 +40,6 @@ struct led_uc_priv {
int period_ms;
};
-enum led_state_t {
- LEDST_OFF = 0,
- LEDST_ON = 1,
- LEDST_TOGGLE,
-#ifdef CONFIG_LED_BLINK
- LEDST_BLINK,
-#endif
-
- LEDST_COUNT,
-};
-
struct led_ops {
/**
* set_state() - set the state of an LED