2 * K2HK: secure kernel command file
4 * (C) Copyright 2012-2014
5 * Texas Instruments Incorporated, <www.ti.com>
7 * SPDX-License-Identifier: GPL-2.0+
13 asm(".arch_extension sec\n\t");
15 static int do_mon_install(cmd_tbl_t *cmdtp, int flag, int argc,
18 u32 addr, dpsc_base = 0x1E80000, freq;
24 freq = CONFIG_SYS_HZ_CLOCK;
26 addr = simple_strtoul(argv[1], NULL, 16);
28 rcode = mon_install(addr, dpsc_base, freq);
29 printf("## installed monitor, freq [%d], status %d\n",
35 U_BOOT_CMD(mon_install, 2, 0, do_mon_install,
36 "Install boot kernel at 'addr'",
40 static void core_spin(void)
51 int do_mon_power(cmd_tbl_t *cmdtp, int flag, int argc,
54 int rcode = 0, core_id, on;
62 core_id = simple_strtoul(argv[1], NULL, 16);
63 on = simple_strtoul(argv[2], NULL, 16);
66 rcode = mon_power_on(core_id, fn);
68 rcode = mon_power_off(core_id);
72 printf("core %d powered on successfully\n", core_id);
74 printf("core %d power on failure\n", core_id);
76 printf("core %d powered off successfully\n", core_id);
82 U_BOOT_CMD(mon_power, 3, 0, do_mon_power,
83 "Power On/Off secondary core",
84 "mon_power <coreid> <oper>\n"
85 "- coreid (1-3) and oper (1 - ON, 0 - OFF)\n"