mirror of
git://projects.qi-hardware.com/xburst-tools.git
synced 2024-11-29 09:06:14 +02:00
Add a dedicated function to query debug action to board_api
On the devices where we have only 2 physical buttons, one of those buttons (i.e. POWER) is connected directly to PMU. The other button (AUX) is connected directly to S3C pin and we can get its state immediately, it is currently used to skip a boot possibility. To allow user to debug boot problems we can use the POWER button, but we cannot poll for it too many times as it slows down the boot considerably, therefore a dedicated function is needed.
This commit is contained in:
parent
f055e1e9a1
commit
6940235ae6
@ -104,6 +104,7 @@ struct board_api {
|
|||||||
void (*putc)(char);
|
void (*putc)(char);
|
||||||
void (*close)(void);
|
void (*close)(void);
|
||||||
u8 (*get_ui_keys)(void);
|
u8 (*get_ui_keys)(void);
|
||||||
|
u8 (*get_ui_debug)(void);
|
||||||
void (*set_ui_indication)(enum ui_indication);
|
void (*set_ui_indication)(enum ui_indication);
|
||||||
|
|
||||||
struct kernel_source kernel_source[8];
|
struct kernel_source kernel_source[8];
|
||||||
|
@ -234,8 +234,8 @@ static void do_params(unsigned initramfs_len,
|
|||||||
* to have the debugging options added to the commandline
|
* to have the debugging options added to the commandline
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (this_board->commandline_board_debug && this_board->get_ui_keys)
|
if (this_board->commandline_board_debug && this_board->get_ui_debug)
|
||||||
if ((this_board->get_ui_keys)() & UI_ACTION_SKIPKERNEL)
|
if ((this_board->get_ui_debug)())
|
||||||
cmdline += strlen(strcpy(cmdline, this_board->
|
cmdline += strlen(strcpy(cmdline, this_board->
|
||||||
commandline_board_debug));
|
commandline_board_debug));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user