[PATCH 01/13] qi-add-ui-api.patch

Andy Green andy at openmoko.com
Mon Dec 1 02:15:45 CET 2008


Introduce the ability for boards to have UI inputs for purposes decided by
Qi

Signed-off-by: Andy Green <andy at openmoko.com>
---

 include/qi.h |   15 ++++++++-------
 1 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/include/qi.h b/include/qi.h
index e11489a..c8971e6 100644
--- a/include/qi.h
+++ b/include/qi.h
@@ -42,6 +42,11 @@ enum filesystem {
 	FS_EXT2
 };
 
+enum ui_actions {
+	UI_ACTION_ADD_DEBUG 	= (1 << 0),
+	UI_ACTION_SKIPKERNEL	= (1 << 1),
+};
+
 /* describes a source for getting kernel image */
 
 struct kernel_source {
@@ -76,20 +81,16 @@ struct board_api {
 	const char *commandline_board_debug;
 	const char *noboot;
 	const char *append;
+
 	const struct board_variant const * (*get_board_variant)(void);
 	int (*is_this_board)(void);
 	void (*early_port_init)(void);
 	void (*port_init)(void);
 	void (*putc)(char);
 	void (*close)(void);
-	struct kernel_source kernel_source[8];
-};
-
-/* these are the boards we support for a given CPU */
+	u8 (*get_ui_keys)(void);
 
-struct cpu_supported_boards {
-	const u32 cpu_id;
-	const struct board_api **boards;
+	struct kernel_source kernel_source[8];
 };
 
 /* this is the board we are running on */




More information about the openmoko-kernel mailing list