rockchip: hotkey: add fdt dump
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: I9bb158f13b723decae01069f4324289c599e0e5f
This commit is contained in:
parent
9beff1069b
commit
b173f38e43
|
|
@ -13,6 +13,7 @@ enum hotkey_t {
|
|||
HK_CLI_OS_GO,
|
||||
HK_CMDLINE,
|
||||
HK_FASTBOOT,
|
||||
HK_FDT,
|
||||
HK_INITCALL,
|
||||
HK_REGULATOR,
|
||||
HK_ROCKUSB_DNL,
|
||||
|
|
|
|||
|
|
@ -450,6 +450,8 @@ int init_kernel_dtb(void)
|
|||
ufdt_blob = (void *)gd->fdt_blob;
|
||||
gd->fdt_blob = (void *)fdt_addr;
|
||||
|
||||
hotkey_run(HK_FDT);
|
||||
|
||||
/*
|
||||
* There is a phandle miss match between U-Boot and kernel dtb node,
|
||||
* we fixup it in U-Boot live dt nodes.
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@ DECLARE_GLOBAL_DATA_PTR;
|
|||
#define CTRL_P 0x10 /* parameter(cmdline) dump */
|
||||
#define CTRL_R 0x12 /* regulator initial state dump */
|
||||
#define CTRL_S 0x13 /* shell(cli) on BOOTM_STATE_OS_GO */
|
||||
#define CTRL_T 0x14 /* print fdt */
|
||||
|
||||
bool is_hotkey(enum hotkey_t id)
|
||||
{
|
||||
|
|
@ -66,6 +67,10 @@ void hotkey_run(enum hotkey_t id)
|
|||
if (gd->console_evt == CTRL_I)
|
||||
env_update("bootargs", "initcall_debug debug");
|
||||
break;
|
||||
case HK_FDT:
|
||||
if (gd->console_evt == CTRL_T)
|
||||
run_command("fdt print", 0);
|
||||
break;
|
||||
#if defined(CONFIG_CONSOLE_DISABLE_CTRLC) && \
|
||||
defined(CONFIG_BOOTDELAY) && (CONFIG_BOOTDELAY <= 0)
|
||||
case HK_CLI_OS_PRE:
|
||||
|
|
|
|||
Loading…
Reference in New Issue