1
0
mirror of git://projects.qi-hardware.com/xburst-tools.git synced 2025-04-21 12:27:27 +03:00

qi-introduce-ui-indicators.patch

Allow a board to "indicate" events if it likes on whatever it has

On GTA02 we light AUX during boot and run the vibrator briefly when we
skip a partition or device.

Signed-off-by: Andy Green <andy@openmoko.com>
This commit is contained in:
Andy Green
2008-12-01 01:26:06 +00:00
committed by Andy Green
parent 40edd785a7
commit 710f2dbb6e
3 changed files with 78 additions and 1 deletions

View File

@@ -47,6 +47,21 @@ enum ui_actions {
UI_ACTION_SKIPKERNEL = (1 << 1),
};
enum ui_indication {
UI_IND_UPDATE_ONLY,
UI_IND_MOUNT_PART,
UI_IND_MOUNT_FAIL,
UI_IND_SKIPPING,
UI_IND_KERNEL_PULL,
UI_IND_KERNEL_PULL_OK,
UI_IND_KERNEL_PULL_FAIL,
UI_IND_INITRAMFS_PULL,
UI_IND_INITRAMFS_PULL_OK,
UI_IND_INITRAMFS_PULL_FAIL,
UI_IND_KERNEL_START,
UI_IND_MEM_TEST
};
/* describes a source for getting kernel image */
struct kernel_source {
@@ -89,6 +104,7 @@ struct board_api {
void (*putc)(char);
void (*close)(void);
u8 (*get_ui_keys)(void);
void (*set_ui_indication)(enum ui_indication);
struct kernel_source kernel_source[8];
};