command: Remove the cmd_tbl_t typedef
We should not use typedefs in U-Boot. They cannot be used as forward declarations which means that header files must include the full header to access them. Drop the typedef and rename the struct to remove the _s suffix which is now not useful. This requires quite a few header-file additions. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <command.h>
|
||||
#include <cpu_func.h>
|
||||
#include <div64.h>
|
||||
#include <env.h>
|
||||
@@ -376,7 +377,8 @@ void get_arc_info(void)
|
||||
do_get_arc_info();
|
||||
}
|
||||
|
||||
static int do_arc_cmd(cmd_tbl_t * cmdtp, int flag, int argc, char *const argv[])
|
||||
static int do_arc_cmd(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
char *const argv[])
|
||||
{
|
||||
const char *cmd;
|
||||
int ret = -1;
|
||||
|
||||
@@ -226,7 +226,7 @@ int drv_video_init(void)
|
||||
/*---------------------------------------------------------------------------*/
|
||||
|
||||
#ifdef CONFIG_VIDEO
|
||||
int do_brightness(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
||||
int do_brightness(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
|
||||
{
|
||||
int rcode = 0;
|
||||
ulong side;
|
||||
|
||||
@@ -246,7 +246,8 @@ void reset_phy(void)
|
||||
#if defined(CONFIG_KIRKWOOD_GPIO)
|
||||
/* Return GPIO push button status */
|
||||
static int
|
||||
do_read_push_button(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
||||
do_read_push_button(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
char *const argv[])
|
||||
{
|
||||
return !kw_gpio_get_value(NET2BIG_V2_GPIO_PUSH_BUTTON);
|
||||
}
|
||||
|
||||
@@ -110,7 +110,7 @@ void reset_phy(void)
|
||||
#if defined(CONFIG_KIRKWOOD_GPIO)
|
||||
/* Return GPIO button status */
|
||||
static int
|
||||
do_read_button(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
||||
do_read_button(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
|
||||
{
|
||||
return kw_gpio_get_value(NETSPACE_V2_GPIO_BUTTON);
|
||||
}
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <command.h>
|
||||
#include <div64.h>
|
||||
#include <env.h>
|
||||
#include <net.h>
|
||||
@@ -21,7 +22,7 @@
|
||||
#define SYNO_CHKSUM_TAG "CHK="
|
||||
|
||||
|
||||
static int do_syno_populate(int argc, char * const argv[])
|
||||
static int do_syno_populate(int argc, char *const argv[])
|
||||
{
|
||||
unsigned int bus = CONFIG_SF_DEFAULT_BUS;
|
||||
unsigned int cs = CONFIG_SF_DEFAULT_CS;
|
||||
@@ -152,7 +153,7 @@ static const char * const pwr_mng_bit_func[] = {
|
||||
NULL,
|
||||
};
|
||||
|
||||
static int do_syno_clk_gate(int argc, char * const argv[])
|
||||
static int do_syno_clk_gate(int argc, char *const argv[])
|
||||
{
|
||||
u32 pwr_mng_ctrl_reg = reg_read(POWER_MNG_CTRL_REG);
|
||||
const char *func, *state;
|
||||
@@ -195,8 +196,8 @@ static int do_syno_clk_gate(int argc, char * const argv[])
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int do_syno(cmd_tbl_t *cmdtp, int flag,
|
||||
int argc, char * const argv[])
|
||||
static int do_syno(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
char *const argv[])
|
||||
{
|
||||
const char *cmd;
|
||||
int ret = 0;
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
|
||||
#include <common.h>
|
||||
#include <cpu_func.h>
|
||||
#include <env.h>
|
||||
#include <errno.h>
|
||||
#include <init.h>
|
||||
#include <linux/libfdt.h>
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
|
||||
#include <common.h>
|
||||
#include <dm.h>
|
||||
#include <env.h>
|
||||
#include <env_internal.h>
|
||||
#include <init.h>
|
||||
#include <net.h>
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
|
||||
#include <common.h>
|
||||
#include <dm.h>
|
||||
#include <env.h>
|
||||
#include <env_internal.h>
|
||||
#include <init.h>
|
||||
#include <net.h>
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
* Author: Fabio Estevam <fabio.estevam@freescale.com>
|
||||
*/
|
||||
|
||||
#include <command.h>
|
||||
#include <image.h>
|
||||
#include <init.h>
|
||||
#include <asm/arch/clock.h>
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
#include <common.h>
|
||||
#include <cpsw.h>
|
||||
#include <dm.h>
|
||||
#include <env.h>
|
||||
#include <env_internal.h>
|
||||
#include <errno.h>
|
||||
#include <i2c.h>
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <command.h>
|
||||
#include <env.h>
|
||||
#include <init.h>
|
||||
#include <net.h>
|
||||
@@ -988,7 +989,7 @@ static int read_keys(char *buf)
|
||||
return numpressed;
|
||||
}
|
||||
|
||||
static int do_kbd(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
||||
static int do_kbd(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
|
||||
{
|
||||
char envvalue[ARRAY_SIZE(buttons)+1];
|
||||
int numpressed = read_keys(envvalue);
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
|
||||
#include <common.h>
|
||||
#include <bootstage.h>
|
||||
#include <command.h>
|
||||
#include <env.h>
|
||||
#include <env_internal.h>
|
||||
#include <flash.h>
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
**/
|
||||
|
||||
#include <common.h>
|
||||
#include <command.h>
|
||||
#include <asm/cache.h>
|
||||
#include <asm/io.h>
|
||||
|
||||
@@ -224,7 +225,7 @@ static void atf_print_part_table(void)
|
||||
}
|
||||
}
|
||||
|
||||
int do_atf(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
||||
int do_atf(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
|
||||
{
|
||||
ssize_t ret;
|
||||
size_t size, offset;
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
* Andreas Bießmann <andreas.biessmann@corscience.de>
|
||||
*/
|
||||
#include <common.h>
|
||||
#include <command.h>
|
||||
#include <eeprom.h>
|
||||
#include <i2c.h>
|
||||
#include <u-boot/crc.h>
|
||||
@@ -186,7 +187,7 @@ int tricorder_eeprom_write(unsigned devaddr, const char *name,
|
||||
return ret;
|
||||
}
|
||||
|
||||
int do_tricorder_eeprom(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
|
||||
int do_tricorder_eeprom(struct cmd_tbl *cmdtp, int flag, int argc, char *argv[])
|
||||
{
|
||||
if (argc == 3) {
|
||||
ulong dev_addr = simple_strtoul(argv[2], NULL, 16);
|
||||
|
||||
@@ -32,6 +32,7 @@
|
||||
* http://www.ethernut.de/
|
||||
*/
|
||||
#include <common.h>
|
||||
#include <command.h>
|
||||
#include <asm/arch/at91sam9260.h>
|
||||
#include <asm/arch/at91_common.h>
|
||||
#include <asm/arch/gpio.h>
|
||||
@@ -215,7 +216,7 @@ void ethernut5_print_voltage(void)
|
||||
/*
|
||||
* Process the board specific 'pwrman' command.
|
||||
*/
|
||||
int do_pwrman(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
||||
int do_pwrman(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
|
||||
{
|
||||
u8 val;
|
||||
int i;
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <command.h>
|
||||
#include <console.h>
|
||||
#include <ioports.h>
|
||||
#include <mpc83xx.h>
|
||||
@@ -36,7 +37,7 @@ void generate_answer(struct caddy_cmd *cmd, uint32_t status, uint32_t *result)
|
||||
caddy_interface->answer_in = ptr;
|
||||
}
|
||||
|
||||
int do_caddy(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
||||
int do_caddy(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
|
||||
{
|
||||
unsigned long base_addr;
|
||||
uint32_t ptr;
|
||||
|
||||
@@ -89,7 +89,7 @@ static void cpld_dump_regs(void)
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG_SPL_BUILD
|
||||
int cpld_cmd(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
||||
int cpld_cmd(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
|
||||
{
|
||||
int rc = 0;
|
||||
unsigned char value;
|
||||
|
||||
@@ -8,8 +8,8 @@
|
||||
#include <env.h>
|
||||
#include <fsl_validate.h>
|
||||
|
||||
int do_esbc_halt(cmd_tbl_t *cmdtp, int flag, int argc,
|
||||
char * const argv[])
|
||||
int do_esbc_halt(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
char *const argv[])
|
||||
{
|
||||
if (fsl_check_boot_mode_secure() == 0) {
|
||||
printf("Boot Mode is Non-Secure. Not entering spin loop.\n");
|
||||
@@ -24,8 +24,8 @@ loop:
|
||||
}
|
||||
|
||||
#ifndef CONFIG_SPL_BUILD
|
||||
static int do_esbc_validate(cmd_tbl_t *cmdtp, int flag, int argc,
|
||||
char * const argv[])
|
||||
static int do_esbc_validate(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
char *const argv[])
|
||||
{
|
||||
char *hash_str = NULL;
|
||||
uintptr_t haddr;
|
||||
|
||||
@@ -171,7 +171,8 @@ void pixis_sysclk_set(unsigned long sysclk)
|
||||
PIXIS_WRITE(sclk[2], sclk2);
|
||||
}
|
||||
|
||||
int pixis_reset_cmd(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
||||
int pixis_reset_cmd(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
char *const argv[])
|
||||
{
|
||||
unsigned int i;
|
||||
unsigned long sysclk;
|
||||
|
||||
@@ -266,8 +266,8 @@ static void set_px_go_with_watchdog(void)
|
||||
/* Disable the watchdog
|
||||
*
|
||||
*/
|
||||
static int pixis_disable_watchdog_cmd(cmd_tbl_t *cmdtp, int flag, int argc,
|
||||
char * const argv[])
|
||||
static int pixis_disable_watchdog_cmd(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
char *const argv[])
|
||||
{
|
||||
/* Disable the VELA sequencer and the watchdog */
|
||||
clrbits_8(pixis_base + PIXIS_VCTL, 9);
|
||||
@@ -285,7 +285,8 @@ U_BOOT_CMD(
|
||||
|
||||
/* Enable or disable SGMII mode for a TSEC
|
||||
*/
|
||||
static int pixis_set_sgmii(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
||||
static int pixis_set_sgmii(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
char *const argv[])
|
||||
{
|
||||
int which_tsec = -1;
|
||||
unsigned char mask;
|
||||
@@ -411,7 +412,8 @@ static unsigned long strfractoint(char *strptr)
|
||||
return intval + decval;
|
||||
}
|
||||
|
||||
static int pixis_reset_cmd(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
||||
static int pixis_reset_cmd(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
char *const argv[])
|
||||
{
|
||||
unsigned int i;
|
||||
char *p_cf = NULL;
|
||||
|
||||
@@ -233,7 +233,8 @@ void __weak qixis_dump_switch(void)
|
||||
puts("Reverse engineering switch is not implemented for this board\n");
|
||||
}
|
||||
|
||||
static int qixis_reset_cmd(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
||||
static int qixis_reset_cmd(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
char *const argv[])
|
||||
{
|
||||
int i;
|
||||
|
||||
|
||||
@@ -383,7 +383,7 @@ static void set_mac_address(unsigned int index, const char *string)
|
||||
update_crc();
|
||||
}
|
||||
|
||||
int do_mac(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
||||
int do_mac(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
|
||||
{
|
||||
char cmd;
|
||||
|
||||
|
||||
@@ -925,9 +925,9 @@ exit:
|
||||
|
||||
}
|
||||
|
||||
static int do_vdd_override(cmd_tbl_t *cmdtp,
|
||||
static int do_vdd_override(struct cmd_tbl *cmdtp,
|
||||
int flag, int argc,
|
||||
char * const argv[])
|
||||
char *const argv[])
|
||||
{
|
||||
ulong override;
|
||||
|
||||
@@ -941,9 +941,8 @@ static int do_vdd_override(cmd_tbl_t *cmdtp,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int do_vdd_read(cmd_tbl_t *cmdtp,
|
||||
int flag, int argc,
|
||||
char * const argv[])
|
||||
static int do_vdd_read(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
char *const argv[])
|
||||
{
|
||||
if (argc < 1)
|
||||
return CMD_RET_USAGE;
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <env.h>
|
||||
#include <init.h>
|
||||
#include <miiphy.h>
|
||||
#include <netdev.h>
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <command.h>
|
||||
#include <cpu_func.h>
|
||||
#include <hang.h>
|
||||
#include <image.h>
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <env.h>
|
||||
#include <init.h>
|
||||
|
||||
DECLARE_GLOBAL_DATA_PTR;
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <command.h>
|
||||
#include <cpu_func.h>
|
||||
#include <hang.h>
|
||||
#include <image.h>
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <env.h>
|
||||
#include <errno.h>
|
||||
#include <init.h>
|
||||
#include <asm/mach-imx/iomux-v3.h>
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <command.h>
|
||||
#include <cpu_func.h>
|
||||
#include <hang.h>
|
||||
#include <image.h>
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
|
||||
#include <common.h>
|
||||
#include <dm.h>
|
||||
#include <init.h>
|
||||
#include <ram.h>
|
||||
#include <spl.h>
|
||||
#include <asm/io.h>
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <command.h>
|
||||
#include <fdt_support.h>
|
||||
#include <hang.h>
|
||||
#include <i2c.h>
|
||||
@@ -394,8 +395,8 @@ static int convert_flash_bank(int bank)
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int flash_bank_cmd(cmd_tbl_t *cmdtp, int flag, int argc,
|
||||
char * const argv[])
|
||||
static int flash_bank_cmd(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
char *const argv[])
|
||||
{
|
||||
if (argc != 2)
|
||||
return CMD_RET_USAGE;
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
|
||||
#include <common.h>
|
||||
#include <clock_legacy.h>
|
||||
#include <command.h>
|
||||
#include <fdt_support.h>
|
||||
#include <i2c.h>
|
||||
#include <init.h>
|
||||
@@ -612,8 +613,8 @@ static void convert_flash_bank(char bank)
|
||||
cpld_data->system_rst = CONFIG_RESET;
|
||||
}
|
||||
|
||||
static int flash_bank_cmd(cmd_tbl_t *cmdtp, int flag, int argc,
|
||||
char * const argv[])
|
||||
static int flash_bank_cmd(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
char *const argv[])
|
||||
{
|
||||
if (argc != 2)
|
||||
return CMD_RET_USAGE;
|
||||
@@ -633,8 +634,8 @@ U_BOOT_CMD(
|
||||
"bank[0-upper bank/1-lower bank] (e.g. boot_bank 0)"
|
||||
);
|
||||
|
||||
static int cpld_reset_cmd(cmd_tbl_t *cmdtp, int flag, int argc,
|
||||
char * const argv[])
|
||||
static int cpld_reset_cmd(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
char *const argv[])
|
||||
{
|
||||
struct cpld_data *cpld_data = (void *)(CONFIG_SYS_CPLD_BASE);
|
||||
|
||||
@@ -692,8 +693,8 @@ static void print_serdes_mux(void)
|
||||
printf("B.\n");
|
||||
}
|
||||
|
||||
static int serdes_mux_cmd(cmd_tbl_t *cmdtp, int flag, int argc,
|
||||
char * const argv[])
|
||||
static int serdes_mux_cmd(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
char *const argv[])
|
||||
{
|
||||
if (argc != 2)
|
||||
return CMD_RET_USAGE;
|
||||
|
||||
@@ -133,7 +133,7 @@ void cpld_rev_bit(unsigned char *value)
|
||||
*value = rev_val;
|
||||
}
|
||||
|
||||
int do_cpld(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
||||
int do_cpld(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
|
||||
{
|
||||
int rc = 0;
|
||||
|
||||
|
||||
@@ -129,7 +129,7 @@ void cpld_rev_bit(unsigned char *value)
|
||||
*value = rev_val;
|
||||
}
|
||||
|
||||
int do_cpld(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
||||
int do_cpld(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
|
||||
{
|
||||
int rc = 0;
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <command.h>
|
||||
#include <image.h>
|
||||
#include <init.h>
|
||||
#include <net.h>
|
||||
@@ -708,8 +709,8 @@ int misc_init_r(void)
|
||||
}
|
||||
|
||||
#ifndef CONFIG_SPL_BUILD
|
||||
static int pin_mux_cmd(cmd_tbl_t *cmdtp, int flag, int argc,
|
||||
char * const argv[])
|
||||
static int pin_mux_cmd(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
char *const argv[])
|
||||
{
|
||||
if (argc < 2)
|
||||
return CMD_RET_USAGE;
|
||||
|
||||
@@ -87,7 +87,7 @@ static void cpld_dump_regs(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
int cpld_cmd(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
||||
int cpld_cmd(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
|
||||
{
|
||||
int rc = 0;
|
||||
|
||||
|
||||
@@ -72,7 +72,7 @@ static void cpld_dump_regs(void)
|
||||
putc('\n');
|
||||
}
|
||||
|
||||
int do_cpld(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
||||
int do_cpld(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
|
||||
{
|
||||
int rc = 0;
|
||||
|
||||
|
||||
@@ -368,8 +368,8 @@ static u32 t1023rdb_ctrl(u32 ctrl_type)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int switch_cmd(cmd_tbl_t *cmdtp, int flag, int argc,
|
||||
char * const argv[])
|
||||
static int switch_cmd(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
char *const argv[])
|
||||
{
|
||||
if (argc < 2)
|
||||
return CMD_RET_USAGE;
|
||||
|
||||
@@ -82,7 +82,7 @@ static void cpld_dump_regs(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
int do_cpld(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
||||
int do_cpld(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
|
||||
{
|
||||
int rc = 0;
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ void cpld_set_defbank(void)
|
||||
CPLD_WRITE(reset_ctl, CPLD_LBMAP_RESET);
|
||||
}
|
||||
|
||||
int do_cpld(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
||||
int do_cpld(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
|
||||
{
|
||||
int rc = 0;
|
||||
|
||||
|
||||
@@ -902,9 +902,9 @@ void qixis_dump_switch(void)
|
||||
}
|
||||
}
|
||||
|
||||
static int do_vdd_adjust(cmd_tbl_t *cmdtp,
|
||||
static int do_vdd_adjust(struct cmd_tbl *cmdtp,
|
||||
int flag, int argc,
|
||||
char * const argv[])
|
||||
char *const argv[])
|
||||
{
|
||||
ulong override;
|
||||
|
||||
|
||||
@@ -95,7 +95,7 @@ static void cpld_dump_regs(void)
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG_SPL_BUILD
|
||||
int do_cpld(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
||||
int do_cpld(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
|
||||
{
|
||||
int rc = 0;
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <command.h>
|
||||
#include <env.h>
|
||||
#include <env_internal.h>
|
||||
#include <flash.h>
|
||||
@@ -206,7 +207,7 @@ static void copy_or_generate_uuid(char *fd_ptr, const char *env_var_name)
|
||||
* Helper function to provide some sane factory-data values for testing
|
||||
* purpose, when these values are not programmed correctly
|
||||
*/
|
||||
int do_fd_write(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
||||
int do_fd_write(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
|
||||
{
|
||||
struct factory_data_values *fd;
|
||||
struct spi_flash *sf;
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <command.h>
|
||||
#include <errno.h>
|
||||
#include <hexdump.h>
|
||||
#include <i2c.h>
|
||||
@@ -158,7 +159,8 @@ static struct ventana_eeprom_config *get_config(const char *name)
|
||||
static u8 econfig_bytes[sizeof(ventana_info.config)];
|
||||
static int econfig_init = -1;
|
||||
|
||||
static int do_econfig(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
||||
static int do_econfig(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
char *const argv[])
|
||||
{
|
||||
struct ventana_eeprom_config *cfg;
|
||||
struct ventana_board_info *info = &ventana_info;
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
* Author: Tim Harvey <tharvey@gateworks.com>
|
||||
*/
|
||||
|
||||
#include <command.h>
|
||||
#include <linux/errno.h>
|
||||
#include <common.h>
|
||||
#include <i2c.h>
|
||||
@@ -176,8 +177,8 @@ int gsc_boot_wd_disable(void)
|
||||
}
|
||||
|
||||
#if defined(CONFIG_CMD_GSC) && !defined(CONFIG_SPL_BUILD)
|
||||
static int do_gsc_sleep(cmd_tbl_t *cmdtp, int flag, int argc,
|
||||
char * const argv[])
|
||||
static int do_gsc_sleep(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
char *const argv[])
|
||||
{
|
||||
unsigned char reg;
|
||||
unsigned long secs = 0;
|
||||
@@ -218,7 +219,8 @@ error:
|
||||
return CMD_RET_FAILURE;
|
||||
}
|
||||
|
||||
static int do_gsc_wd(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
||||
static int do_gsc_wd(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
char *const argv[])
|
||||
{
|
||||
unsigned char reg;
|
||||
|
||||
@@ -257,7 +259,7 @@ static int do_gsc_wd(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
||||
return CMD_RET_SUCCESS;
|
||||
}
|
||||
|
||||
static int do_gsc(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
||||
static int do_gsc(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
|
||||
{
|
||||
if (argc < 2)
|
||||
return gsc_info(1);
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <command.h>
|
||||
#include <dm.h>
|
||||
#include <init.h>
|
||||
#include <miiphy.h>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#include <common.h>
|
||||
#include <command.h>
|
||||
#include <console.h> /* ctrlc */
|
||||
#include <asm/io.h>
|
||||
|
||||
@@ -89,7 +90,7 @@ void hydra_initialize(void)
|
||||
#define REFL_PATTERN (0xdededede)
|
||||
#define REFL_PATTERN_INV (~REFL_PATTERN)
|
||||
|
||||
int do_hydrate(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
||||
int do_hydrate(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
|
||||
{
|
||||
uint k = 0;
|
||||
void __iomem *pcie2_base = (void __iomem *)(MVEBU_REG_PCIE_BASE +
|
||||
|
||||
@@ -264,7 +264,7 @@ static void io_reflect(struct udevice *dev)
|
||||
* Syntax:
|
||||
* ioreflect {fpga} {reportrate}
|
||||
*/
|
||||
int do_ioreflect(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
||||
int do_ioreflect(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
|
||||
{
|
||||
uint fpga;
|
||||
uint rate = 0;
|
||||
@@ -321,7 +321,7 @@ int do_ioreflect(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
||||
* Syntax:
|
||||
* ioreflect {reportrate}
|
||||
*/
|
||||
int do_ioreflect(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
||||
int do_ioreflect(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
|
||||
{
|
||||
struct udevice *fpga;
|
||||
struct regmap *map;
|
||||
@@ -374,7 +374,7 @@ int do_ioreflect(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
||||
* Syntax:
|
||||
* ioloop {fpga} {size} {rate}
|
||||
*/
|
||||
int do_ioloop(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
||||
int do_ioloop(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
|
||||
{
|
||||
uint fpga;
|
||||
uint size;
|
||||
@@ -440,7 +440,7 @@ int do_ioloop(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
||||
* Syntax:
|
||||
* ioloop {size} {rate}
|
||||
*/
|
||||
int do_ioloop(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
||||
int do_ioloop(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
|
||||
{
|
||||
uint size;
|
||||
uint rate = 0;
|
||||
@@ -501,7 +501,7 @@ int do_ioloop(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
||||
#endif /* CONFIG_GDSYS_LEGACY_DRIVERS */
|
||||
|
||||
#ifndef CONFIG_GDSYS_LEGACY_DRIVERS
|
||||
int do_iodev(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
||||
int do_iodev(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
|
||||
{
|
||||
struct udevice *ioep = NULL;
|
||||
struct udevice *board;
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
#ifdef CONFIG_GDSYS_LEGACY_DRIVERS
|
||||
|
||||
#include <common.h>
|
||||
#include <command.h>
|
||||
#include <i2c.h>
|
||||
#include <malloc.h>
|
||||
|
||||
@@ -259,7 +260,8 @@ static int osd_write_videomem(unsigned screen, unsigned offset,
|
||||
return charcount;
|
||||
}
|
||||
|
||||
static int osd_print(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
||||
static int osd_print(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
char *const argv[])
|
||||
{
|
||||
unsigned screen;
|
||||
|
||||
@@ -396,7 +398,7 @@ int osd_probe(unsigned screen)
|
||||
return 0;
|
||||
}
|
||||
|
||||
int osd_write(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
||||
int osd_write(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
|
||||
{
|
||||
unsigned screen;
|
||||
|
||||
@@ -449,7 +451,7 @@ int osd_write(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
||||
return 0;
|
||||
}
|
||||
|
||||
int osd_size(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
||||
int osd_size(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
|
||||
{
|
||||
unsigned screen;
|
||||
unsigned x;
|
||||
@@ -500,4 +502,4 @@ U_BOOT_CMD(
|
||||
") size_y(max. " __stringify(MAX_Y_CHARS) ")\n"
|
||||
);
|
||||
|
||||
#endif /* CONFIG_GDSYS_LEGACY_DRIVERS */
|
||||
#endif /* CONFIG_GDSYS_LEGACY_DRIVERS */
|
||||
|
||||
@@ -10,13 +10,14 @@
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <command.h>
|
||||
#include <dm.h>
|
||||
#include <hexdump.h>
|
||||
#include <video_osd.h>
|
||||
#include <malloc.h>
|
||||
|
||||
static int do_osd_write(cmd_tbl_t *cmdtp, int flag, int argc,
|
||||
char * const argv[])
|
||||
static int do_osd_write(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
char *const argv[])
|
||||
{
|
||||
struct udevice *dev;
|
||||
uint x, y;
|
||||
@@ -68,8 +69,8 @@ static int do_osd_write(cmd_tbl_t *cmdtp, int flag, int argc,
|
||||
return CMD_RET_SUCCESS;
|
||||
}
|
||||
|
||||
static int do_osd_print(cmd_tbl_t *cmdtp, int flag, int argc,
|
||||
char * const argv[])
|
||||
static int do_osd_print(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
char *const argv[])
|
||||
{
|
||||
struct udevice *dev;
|
||||
uint x, y;
|
||||
@@ -99,8 +100,8 @@ static int do_osd_print(cmd_tbl_t *cmdtp, int flag, int argc,
|
||||
return CMD_RET_SUCCESS;
|
||||
}
|
||||
|
||||
static int do_osd_size(cmd_tbl_t *cmdtp, int flag, int argc,
|
||||
char * const argv[])
|
||||
static int do_osd_size(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
char *const argv[])
|
||||
{
|
||||
struct udevice *dev;
|
||||
uint x, y;
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
|
||||
#include <common.h>
|
||||
#include <board.h>
|
||||
#include <command.h>
|
||||
#include <dm.h>
|
||||
#include <env.h>
|
||||
#include <fdt_support.h>
|
||||
|
||||
@@ -223,7 +223,7 @@ void hw_watchdog_reset(void)
|
||||
}
|
||||
|
||||
#ifdef CONFIG_TRAILBLAZER
|
||||
int do_bootd(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
||||
int do_bootd(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
|
||||
{
|
||||
return run_command(env_get("bootcmd"), flag);
|
||||
}
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <command.h>
|
||||
|
||||
int arch_misc_init(void)
|
||||
{
|
||||
|
||||
@@ -157,8 +157,8 @@ int board_eth_init(bd_t *bis)
|
||||
* read out the board id and the hw key from the intventory EEPROM and set
|
||||
* this values as environment variables.
|
||||
*/
|
||||
static int do_setboardid(cmd_tbl_t *cmdtp, int flag, int argc,
|
||||
char *const argv[])
|
||||
static int do_setboardid(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
char *const argv[])
|
||||
{
|
||||
unsigned char buf[32];
|
||||
char *p;
|
||||
@@ -203,8 +203,8 @@ U_BOOT_CMD(km_setboardid, 1, 0, do_setboardid, "setboardid", "read out bid and "
|
||||
* application and in the init scripts (?)
|
||||
* return 0 in case of match, 1 if not match or error
|
||||
*/
|
||||
static int do_checkboardidhwk(cmd_tbl_t *cmdtp, int flag, int argc,
|
||||
char *const argv[])
|
||||
static int do_checkboardidhwk(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
char *const argv[])
|
||||
{
|
||||
unsigned long ivmbid = 0, ivmhwkey = 0;
|
||||
unsigned long envbid = 0, envhwkey = 0;
|
||||
@@ -344,8 +344,8 @@ U_BOOT_CMD(km_checkbidhwk, 2, 0, do_checkboardidhwk,
|
||||
* if the testpin of the board is asserted, return 1
|
||||
* * else return 0
|
||||
*/
|
||||
static int do_checktestboot(cmd_tbl_t *cmdtp, int flag, int argc,
|
||||
char *const argv[])
|
||||
static int do_checktestboot(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
char *const argv[])
|
||||
{
|
||||
int testpin = 0;
|
||||
char *s = NULL;
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
|
||||
#include <common.h>
|
||||
#include <config.h>
|
||||
#include <env.h>
|
||||
#include <init.h>
|
||||
|
||||
DECLARE_GLOBAL_DATA_PTR;
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <command.h>
|
||||
#include <cpu_func.h>
|
||||
#include <init.h>
|
||||
#include <asm/armv8/mmu.h>
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <command.h>
|
||||
#include <env.h>
|
||||
#include <flash.h>
|
||||
#include <init.h>
|
||||
@@ -245,7 +246,7 @@ int board_late_init(void)
|
||||
}
|
||||
|
||||
#ifdef CONFIG_DEPRECATED
|
||||
int do_write_mac(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
||||
int do_write_mac(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
|
||||
{
|
||||
int i, ret;
|
||||
char mac_string[256];
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <command.h>
|
||||
#include <env.h>
|
||||
#include <flash.h>
|
||||
#include <init.h>
|
||||
@@ -261,7 +262,7 @@ int board_late_init(void)
|
||||
}
|
||||
|
||||
#ifdef CONFIG_DEPRECATED
|
||||
int do_write_mac(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
||||
int do_write_mac(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
|
||||
{
|
||||
int i, ret;
|
||||
char mac_string[256];
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <command.h>
|
||||
#include <env.h>
|
||||
#include <flash.h>
|
||||
#include <init.h>
|
||||
@@ -344,7 +345,7 @@ int board_late_init(void)
|
||||
return 0;
|
||||
}
|
||||
|
||||
int do_sh_g200(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
||||
int do_sh_g200(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
|
||||
{
|
||||
struct gctrl_regs *gctrl = GCTRL_BASE;
|
||||
unsigned long graofst;
|
||||
@@ -363,7 +364,7 @@ U_BOOT_CMD(
|
||||
);
|
||||
|
||||
#ifdef CONFIG_DEPRECATED
|
||||
int do_write_mac(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
||||
int do_write_mac(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
|
||||
{
|
||||
int i, ret;
|
||||
char mac_string[256];
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <command.h>
|
||||
#include <cpu_func.h>
|
||||
#include <asm/io.h>
|
||||
#include <asm/gpio.h>
|
||||
@@ -124,7 +125,8 @@ void cpld_init(void)
|
||||
#endif
|
||||
}
|
||||
|
||||
static int do_cpld(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
||||
static int do_cpld(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
char *const argv[])
|
||||
{
|
||||
u32 addr, val;
|
||||
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <command.h>
|
||||
#include <asm/gpio.h>
|
||||
#include <asm/io.h>
|
||||
#include <dm.h>
|
||||
@@ -82,7 +83,8 @@ static void cpld_write(struct udevice *dev, u8 addr, u32 data)
|
||||
dm_gpio_set_value(&priv->sstbz, 1);
|
||||
}
|
||||
|
||||
static int do_cpld(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
||||
static int do_cpld(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
char *const argv[])
|
||||
{
|
||||
struct udevice *dev;
|
||||
u32 addr, val;
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
|
||||
#include <common.h>
|
||||
#include <dm.h>
|
||||
#include <env.h>
|
||||
#include <init.h>
|
||||
#include <asm/io.h>
|
||||
#include <asm/arch-rockchip/uart.h>
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
|
||||
#include <common.h>
|
||||
#include <cros_ec.h>
|
||||
#include <env.h>
|
||||
#include <errno.h>
|
||||
#include <fdtdec.h>
|
||||
#include <hang.h>
|
||||
|
||||
@@ -262,7 +262,7 @@ static int mode_leave_menu(int mode)
|
||||
char *exit_option;
|
||||
char *exit_reset = "reset";
|
||||
char *exit_back = "back";
|
||||
cmd_tbl_t *cmd;
|
||||
struct cmd_tbl *cmd;
|
||||
int cmd_result;
|
||||
int leave;
|
||||
|
||||
|
||||
@@ -6,7 +6,9 @@
|
||||
*
|
||||
*/
|
||||
#include <common.h>
|
||||
#include <command.h>
|
||||
#include <dm.h>
|
||||
#include <env.h>
|
||||
#include <errno.h>
|
||||
#include <init.h>
|
||||
#include <netdev.h>
|
||||
@@ -411,7 +413,7 @@ unsigned char get_button_state(char * const envname, unsigned char def)
|
||||
* 0 if button is not held down
|
||||
*/
|
||||
static int
|
||||
do_userbutton(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
||||
do_userbutton(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
|
||||
{
|
||||
int button = 0;
|
||||
|
||||
@@ -432,7 +434,7 @@ U_BOOT_CMD(
|
||||
#define ERST IMX_GPIO_NR(0, 3)
|
||||
|
||||
static int
|
||||
do_eth_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
||||
do_eth_reset(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
|
||||
{
|
||||
gpio_request(ERST, "ERST");
|
||||
gpio_direction_output(ERST, 0);
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <command.h>
|
||||
#include <env.h>
|
||||
#include <errno.h>
|
||||
#include <init.h>
|
||||
@@ -151,7 +152,7 @@ unsigned char get_button_state(char * const envname, unsigned char def)
|
||||
* 0 if button is not held down
|
||||
*/
|
||||
static int
|
||||
do_userbutton(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
||||
do_userbutton(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
|
||||
{
|
||||
int button = 0;
|
||||
button = get_button_state("button_dfu0", BOARD_DFU_BUTTON_GPIO);
|
||||
@@ -167,7 +168,7 @@ U_BOOT_CMD(
|
||||
#endif
|
||||
|
||||
static int
|
||||
do_usertestwdt(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
||||
do_usertestwdt(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
|
||||
{
|
||||
printf("\n\n\n Go into infinite loop\n\n\n");
|
||||
while (1)
|
||||
@@ -251,8 +252,8 @@ void set_env_gpios(unsigned char state)
|
||||
} /* loop through defined led in environment */
|
||||
}
|
||||
|
||||
static int do_board_led(cmd_tbl_t *cmdtp, int flag, int argc,
|
||||
char *const argv[])
|
||||
static int do_board_led(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
char *const argv[])
|
||||
{
|
||||
if (argc != 2)
|
||||
return CMD_RET_USAGE;
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <command.h>
|
||||
#include <env.h>
|
||||
#include <errno.h>
|
||||
#include <init.h>
|
||||
@@ -343,8 +344,8 @@ int board_eth_init(bd_t *bis)
|
||||
return n;
|
||||
}
|
||||
|
||||
static int do_switch_reset(cmd_tbl_t *cmdtp, int flag, int argc,
|
||||
char *const argv[])
|
||||
static int do_switch_reset(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
char *const argv[])
|
||||
{
|
||||
/* Reset SMSC LAN9303 switch for default configuration */
|
||||
gpio_request(GPIO_LAN9303_NRST, "nRST");
|
||||
|
||||
@@ -386,8 +386,8 @@ static int upgrade_failure_fallback(void)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int do_upgrade_available(cmd_tbl_t *cmdtp, int flag, int argc,
|
||||
char * const argv[])
|
||||
static int do_upgrade_available(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
char *const argv[])
|
||||
{
|
||||
unsigned long upgrade_available = 0;
|
||||
unsigned long boot_retry = 0;
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
|
||||
#include <common.h>
|
||||
#include <dm.h>
|
||||
#include <env.h>
|
||||
#include <init.h>
|
||||
#include <linux/delay.h>
|
||||
#include <linux/io.h>
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <command.h>
|
||||
#include <init.h>
|
||||
#include <net.h>
|
||||
#include <asm/arch/clock.h>
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <env.h>
|
||||
#include <i2c.h>
|
||||
#include <init.h>
|
||||
#include <miiphy.h>
|
||||
|
||||
@@ -31,6 +31,7 @@
|
||||
|
||||
#ifndef CONFIG_SPL_BUILD
|
||||
#include <common.h>
|
||||
#include <command.h>
|
||||
#include <console.h>
|
||||
#include <misc.h>
|
||||
#include <dm/device.h>
|
||||
@@ -67,8 +68,8 @@ static void display_stboard(u32 otp)
|
||||
otp & 0xF);
|
||||
}
|
||||
|
||||
static int do_stboard(cmd_tbl_t *cmdtp, int flag, int argc,
|
||||
char * const argv[])
|
||||
static int do_stboard(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
char *const argv[])
|
||||
{
|
||||
int ret;
|
||||
u32 otp, lock;
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
|
||||
#include <common.h>
|
||||
#include <dm.h>
|
||||
#include <env.h>
|
||||
#include <init.h>
|
||||
|
||||
#include <asm/io.h>
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
|
||||
#include <common.h>
|
||||
#include <dm.h>
|
||||
#include <env.h>
|
||||
#include <init.h>
|
||||
|
||||
#include <asm/io.h>
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
|
||||
#include <common.h>
|
||||
#include <dm.h>
|
||||
#include <env.h>
|
||||
#include <init.h>
|
||||
|
||||
#include <asm/io.h>
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <command.h>
|
||||
#include <cpu_func.h>
|
||||
#include <dwmmc.h>
|
||||
#include <init.h>
|
||||
@@ -102,7 +103,8 @@ void reset_cpu(ulong addr)
|
||||
; /* loop forever till reset */
|
||||
}
|
||||
|
||||
static int do_emsdp_rom(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
|
||||
static int do_emsdp_rom(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
char *const argv[])
|
||||
{
|
||||
u32 creg_boot = readl(CREG_BOOT);
|
||||
|
||||
@@ -118,13 +120,14 @@ static int do_emsdp_rom(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]
|
||||
return CMD_RET_SUCCESS;
|
||||
}
|
||||
|
||||
cmd_tbl_t cmd_emsdp[] = {
|
||||
struct cmd_tbl cmd_emsdp[] = {
|
||||
U_BOOT_CMD_MKENT(rom, 2, 0, do_emsdp_rom, "", ""),
|
||||
};
|
||||
|
||||
static int do_emsdp(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
|
||||
static int do_emsdp(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
char *const argv[])
|
||||
{
|
||||
cmd_tbl_t *c;
|
||||
struct cmd_tbl *c;
|
||||
|
||||
c = find_cmd_tbl(argv[1], cmd_emsdp, ARRAY_SIZE(cmd_emsdp));
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <command.h>
|
||||
#include <config.h>
|
||||
#include <cpu_func.h>
|
||||
#include <env.h>
|
||||
@@ -931,7 +932,8 @@ static int hsdk_go_prepare_and_run(void)
|
||||
return hsdk_go_run(reg);
|
||||
}
|
||||
|
||||
static int do_hsdk_go(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
|
||||
static int do_hsdk_go(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
char *const argv[])
|
||||
{
|
||||
int ret;
|
||||
|
||||
@@ -996,7 +998,8 @@ static void init_mark_done(void)
|
||||
writel(~INIT_MARKER_PENDING, INIT_MARKER_REGISTER);
|
||||
}
|
||||
|
||||
static int do_hsdk_init(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
|
||||
static int do_hsdk_init(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
char *const argv[])
|
||||
{
|
||||
int ret;
|
||||
|
||||
@@ -1024,7 +1027,7 @@ U_BOOT_CMD(
|
||||
"- Init HSDK HW\n"
|
||||
);
|
||||
|
||||
static int do_hsdk_clock_set(cmd_tbl_t *cmdtp, int flag, int argc,
|
||||
static int do_hsdk_clock_set(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
char *const argv[])
|
||||
{
|
||||
int ret = 0;
|
||||
@@ -1056,7 +1059,7 @@ static int do_hsdk_clock_set(cmd_tbl_t *cmdtp, int flag, int argc,
|
||||
return CMD_RET_SUCCESS;
|
||||
}
|
||||
|
||||
static int do_hsdk_clock_get(cmd_tbl_t *cmdtp, int flag, int argc,
|
||||
static int do_hsdk_clock_get(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
char *const argv[])
|
||||
{
|
||||
ulong rate;
|
||||
@@ -1084,7 +1087,7 @@ static int do_hsdk_clock_get(cmd_tbl_t *cmdtp, int flag, int argc,
|
||||
return CMD_RET_SUCCESS;
|
||||
}
|
||||
|
||||
static int do_hsdk_clock_print(cmd_tbl_t *cmdtp, int flag, int argc,
|
||||
static int do_hsdk_clock_print(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
char *const argv[])
|
||||
{
|
||||
/* Main clocks */
|
||||
@@ -1096,7 +1099,7 @@ static int do_hsdk_clock_print(cmd_tbl_t *cmdtp, int flag, int argc,
|
||||
return CMD_RET_SUCCESS;
|
||||
}
|
||||
|
||||
static int do_hsdk_clock_print_all(cmd_tbl_t *cmdtp, int flag, int argc,
|
||||
static int do_hsdk_clock_print_all(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
char *const argv[])
|
||||
{
|
||||
/*
|
||||
@@ -1157,16 +1160,17 @@ static int do_hsdk_clock_print_all(cmd_tbl_t *cmdtp, int flag, int argc,
|
||||
return CMD_RET_SUCCESS;
|
||||
}
|
||||
|
||||
cmd_tbl_t cmd_hsdk_clock[] = {
|
||||
struct cmd_tbl cmd_hsdk_clock[] = {
|
||||
U_BOOT_CMD_MKENT(set, 3, 0, do_hsdk_clock_set, "", ""),
|
||||
U_BOOT_CMD_MKENT(get, 3, 0, do_hsdk_clock_get, "", ""),
|
||||
U_BOOT_CMD_MKENT(print, 4, 0, do_hsdk_clock_print, "", ""),
|
||||
U_BOOT_CMD_MKENT(print_all, 4, 0, do_hsdk_clock_print_all, "", ""),
|
||||
};
|
||||
|
||||
static int do_hsdk_clock(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
|
||||
static int do_hsdk_clock(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
char *const argv[])
|
||||
{
|
||||
cmd_tbl_t *c;
|
||||
struct cmd_tbl *c;
|
||||
|
||||
if (argc < 2)
|
||||
return CMD_RET_USAGE;
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
*/
|
||||
#include <common.h>
|
||||
#include <cpu_func.h>
|
||||
#include <env.h>
|
||||
#include <init.h>
|
||||
#include <asm/gpio.h>
|
||||
#include <asm/io.h>
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
* Author: Fabio Estevam <festevam@gmail.com>
|
||||
*/
|
||||
|
||||
#include <env.h>
|
||||
#include <init.h>
|
||||
#include <net.h>
|
||||
#include <asm/arch/clock.h>
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <command.h>
|
||||
#include <console.h>
|
||||
#include <i2c.h>
|
||||
#include <init.h>
|
||||
@@ -309,7 +310,7 @@ int board_late_init(void)
|
||||
#endif
|
||||
|
||||
#if !defined(CONFIG_SPL_BUILD) && defined(CONFIG_PCI)
|
||||
int do_pcie_test(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
||||
int do_pcie_test(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
|
||||
{
|
||||
pci_dev_t bdf;
|
||||
u16 ven_id, dev_id;
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <env.h>
|
||||
#include <fdt_support.h>
|
||||
#include <image.h>
|
||||
#include <init.h>
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
#ifdef CONFIG_CMD_BAT
|
||||
#include <twl6030.h>
|
||||
|
||||
int do_vbat(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
||||
int do_vbat(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
|
||||
{
|
||||
if (argc == 2) {
|
||||
if (strncmp(argv[1], "startcharge", 12) == 0)
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
|
||||
#include <common.h>
|
||||
#include <dm.h>
|
||||
#include <env.h>
|
||||
#include <init.h>
|
||||
#include <asm/arch-tegra/ap.h>
|
||||
#include <asm/gpio.h>
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
|
||||
#include <common.h>
|
||||
#ifndef CONFIG_SPL_BUILD
|
||||
#include <command.h>
|
||||
#include <console.h>
|
||||
#include <fuse.h>
|
||||
|
||||
@@ -35,8 +36,8 @@ static int mfgr_fuse(void)
|
||||
return CMD_RET_SUCCESS;
|
||||
}
|
||||
|
||||
int do_mfgr_fuse(cmd_tbl_t *cmdtp, int flag, int argc,
|
||||
char * const argv[])
|
||||
int do_mfgr_fuse(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
char *const argv[])
|
||||
{
|
||||
int ret;
|
||||
puts("Fusing...\n");
|
||||
@@ -48,8 +49,8 @@ int do_mfgr_fuse(cmd_tbl_t *cmdtp, int flag, int argc,
|
||||
return ret;
|
||||
}
|
||||
|
||||
int do_updt_fuse(cmd_tbl_t *cmdtp, int flag, int argc,
|
||||
char * const argv[])
|
||||
int do_updt_fuse(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
char *const argv[])
|
||||
{
|
||||
unsigned val;
|
||||
int ret;
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <command.h>
|
||||
#include <i2c.h>
|
||||
#include <asm/arch/imx-regs.h>
|
||||
#include <asm/arch/iomux.h>
|
||||
@@ -261,8 +262,8 @@ static int pf0100_prog(void)
|
||||
return CMD_RET_SUCCESS;
|
||||
}
|
||||
|
||||
static int do_pf0100_prog(cmd_tbl_t *cmdtp, int flag, int argc,
|
||||
char * const argv[])
|
||||
static int do_pf0100_prog(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
char *const argv[])
|
||||
{
|
||||
int ret;
|
||||
puts("Programming PMIC OTP...");
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
|
||||
#include <common.h>
|
||||
#ifndef CONFIG_SPL_BUILD
|
||||
#include <command.h>
|
||||
#include <console.h>
|
||||
#include <fuse.h>
|
||||
|
||||
@@ -35,8 +36,8 @@ static int mfgr_fuse(void)
|
||||
return CMD_RET_SUCCESS;
|
||||
}
|
||||
|
||||
int do_mfgr_fuse(cmd_tbl_t *cmdtp, int flag, int argc,
|
||||
char * const argv[])
|
||||
int do_mfgr_fuse(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
char *const argv[])
|
||||
{
|
||||
int ret;
|
||||
puts("Fusing...\n");
|
||||
@@ -48,8 +49,8 @@ int do_mfgr_fuse(cmd_tbl_t *cmdtp, int flag, int argc,
|
||||
return ret;
|
||||
}
|
||||
|
||||
int do_updt_fuse(cmd_tbl_t *cmdtp, int flag, int argc,
|
||||
char * const argv[])
|
||||
int do_updt_fuse(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
char *const argv[])
|
||||
{
|
||||
unsigned val;
|
||||
int ret;
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <command.h>
|
||||
#include <i2c.h>
|
||||
#include <asm/arch/imx-regs.h>
|
||||
#include <asm/arch/iomux.h>
|
||||
@@ -246,8 +247,8 @@ static int pf0100_prog(void)
|
||||
return CMD_RET_SUCCESS;
|
||||
}
|
||||
|
||||
static int do_pf0100_prog(cmd_tbl_t *cmdtp, int flag, int argc,
|
||||
char * const argv[])
|
||||
static int do_pf0100_prog(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
char *const argv[])
|
||||
{
|
||||
int ret;
|
||||
puts("Programming PMIC OTP...");
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
|
||||
#include <common.h>
|
||||
#include "tdx-cfg-block.h"
|
||||
#include <command.h>
|
||||
#include <asm/cache.h>
|
||||
|
||||
#if defined(CONFIG_TARGET_APALIS_IMX6) || \
|
||||
@@ -514,8 +515,8 @@ static int get_cfgblock_barcode(char *barcode)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int do_cfgblock_create(cmd_tbl_t *cmdtp, int flag, int argc,
|
||||
char * const argv[])
|
||||
static int do_cfgblock_create(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
char *const argv[])
|
||||
{
|
||||
u8 *config_block;
|
||||
struct toradex_tag *tag;
|
||||
@@ -643,8 +644,8 @@ out:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int do_cfgblock(cmd_tbl_t *cmdtp, int flag, int argc,
|
||||
char * const argv[])
|
||||
static int do_cfgblock(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
char *const argv[])
|
||||
{
|
||||
int ret;
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <command.h>
|
||||
#include <image.h>
|
||||
#include <init.h>
|
||||
#include <asm/arch/clock.h>
|
||||
|
||||
@@ -306,7 +306,7 @@ static void set_mac_address(unsigned int index, const char *string)
|
||||
update_crc();
|
||||
}
|
||||
|
||||
int do_mac(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
||||
int do_mac(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
|
||||
{
|
||||
char cmd;
|
||||
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <command.h>
|
||||
#include <asm/arch/sys_proto.h>
|
||||
#include <asm/arch/cpu.h>
|
||||
#include <asm/arch/emc.h>
|
||||
@@ -266,7 +267,7 @@ void work_92105_display_init(void)
|
||||
|
||||
#ifdef CONFIG_CMD_MAX6957
|
||||
|
||||
static int do_max6957aax(cmd_tbl_t *cmdtp, int flag, int argc,
|
||||
static int do_max6957aax(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
char *const argv[])
|
||||
{
|
||||
int reg, val;
|
||||
@@ -315,7 +316,8 @@ U_BOOT_CMD(
|
||||
#error CONFIG_CMD_HD44760 requires CONFIG_HUSH_PARSER
|
||||
#endif
|
||||
|
||||
static int do_hd44780(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
|
||||
static int do_hd44780(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
char *const argv[])
|
||||
{
|
||||
char *cmd;
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <env.h>
|
||||
#include <asm/sections.h>
|
||||
#include <dm/uclass.h>
|
||||
#include <i2c.h>
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
|
||||
#include <common.h>
|
||||
#include <config.h>
|
||||
#include <env.h>
|
||||
#include <init.h>
|
||||
#include <dm/lists.h>
|
||||
#include <fdtdec.h>
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
|
||||
#include <common.h>
|
||||
#include <cpu_func.h>
|
||||
#include <env.h>
|
||||
#include <fdtdec.h>
|
||||
#include <init.h>
|
||||
#include <malloc.h>
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <command.h>
|
||||
#include <asm/io.h>
|
||||
#include <asm/arch/hardware.h>
|
||||
#include <asm/arch/sys_proto.h>
|
||||
@@ -408,8 +409,8 @@ static int zynq_verify_image(u32 src_ptr)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int do_zynq_rsa(cmd_tbl_t *cmdtp, int flag, int argc,
|
||||
char * const argv[])
|
||||
static int do_zynq_rsa(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
char *const argv[])
|
||||
{
|
||||
u32 src_ptr;
|
||||
char *endp;
|
||||
@@ -429,8 +430,8 @@ static int do_zynq_rsa(cmd_tbl_t *cmdtp, int flag, int argc,
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_CMD_ZYNQ_AES
|
||||
static int zynq_decrypt_image(cmd_tbl_t *cmdtp, int flag, int argc,
|
||||
char * const argv[])
|
||||
static int zynq_decrypt_image(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
char *const argv[])
|
||||
{
|
||||
char *endp;
|
||||
u32 srcaddr, srclen, dstaddr, dstlen;
|
||||
@@ -469,7 +470,7 @@ static int zynq_decrypt_image(cmd_tbl_t *cmdtp, int flag, int argc,
|
||||
}
|
||||
#endif
|
||||
|
||||
static cmd_tbl_t zynq_commands[] = {
|
||||
static struct cmd_tbl zynq_commands[] = {
|
||||
#ifdef CONFIG_CMD_ZYNQ_RSA
|
||||
U_BOOT_CMD_MKENT(rsa, 3, 1, do_zynq_rsa, "", ""),
|
||||
#endif
|
||||
@@ -478,9 +479,10 @@ static cmd_tbl_t zynq_commands[] = {
|
||||
#endif
|
||||
};
|
||||
|
||||
static int do_zynq(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
||||
static int do_zynq(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
char *const argv[])
|
||||
{
|
||||
cmd_tbl_t *zynq_cmd;
|
||||
struct cmd_tbl *zynq_cmd;
|
||||
int ret;
|
||||
|
||||
if (!ARRAY_SIZE(zynq_commands)) {
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <command.h>
|
||||
#include <cpu_func.h>
|
||||
#include <env.h>
|
||||
#include <malloc.h>
|
||||
@@ -13,8 +14,8 @@
|
||||
#include <asm/arch/sys_proto.h>
|
||||
#include <asm/io.h>
|
||||
|
||||
static int do_zynqmp_verify_secure(cmd_tbl_t *cmdtp, int flag, int argc,
|
||||
char * const argv[])
|
||||
static int do_zynqmp_verify_secure(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
char *const argv[])
|
||||
{
|
||||
u64 src_addr, addr;
|
||||
u32 len, src_lo, src_hi;
|
||||
@@ -65,8 +66,8 @@ static int do_zynqmp_verify_secure(cmd_tbl_t *cmdtp, int flag, int argc,
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int do_zynqmp_mmio_read(cmd_tbl_t *cmdtp, int flag, int argc,
|
||||
char * const argv[])
|
||||
static int do_zynqmp_mmio_read(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
char *const argv[])
|
||||
{
|
||||
u32 read_val, addr;
|
||||
int ret;
|
||||
@@ -86,8 +87,8 @@ static int do_zynqmp_mmio_read(cmd_tbl_t *cmdtp, int flag, int argc,
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int do_zynqmp_mmio_write(cmd_tbl_t *cmdtp, int flag, int argc,
|
||||
char * const argv[])
|
||||
static int do_zynqmp_mmio_write(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
char *const argv[])
|
||||
{
|
||||
u32 addr, mask, val;
|
||||
int ret;
|
||||
@@ -107,8 +108,8 @@ static int do_zynqmp_mmio_write(cmd_tbl_t *cmdtp, int flag, int argc,
|
||||
}
|
||||
|
||||
#ifdef CONFIG_DEFINE_TCM_OCM_MMAP
|
||||
static int do_zynqmp_tcm_init(cmd_tbl_t *cmdtp, int flag, int argc,
|
||||
char * const argv[])
|
||||
static int do_zynqmp_tcm_init(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
char *const argv[])
|
||||
{
|
||||
u8 mode;
|
||||
|
||||
@@ -129,7 +130,7 @@ static int do_zynqmp_tcm_init(cmd_tbl_t *cmdtp, int flag, int argc,
|
||||
}
|
||||
#endif
|
||||
|
||||
static cmd_tbl_t cmd_zynqmp_sub[] = {
|
||||
static struct cmd_tbl cmd_zynqmp_sub[] = {
|
||||
U_BOOT_CMD_MKENT(secure, 5, 0, do_zynqmp_verify_secure, "", ""),
|
||||
U_BOOT_CMD_MKENT(mmio_read, 3, 0, do_zynqmp_mmio_read, "", ""),
|
||||
U_BOOT_CMD_MKENT(mmio_write, 5, 0, do_zynqmp_mmio_write, "", ""),
|
||||
@@ -149,10 +150,10 @@ static cmd_tbl_t cmd_zynqmp_sub[] = {
|
||||
*
|
||||
* Return: return 0 on success and CMD_RET_USAGE incase of misuse and error
|
||||
*/
|
||||
static int do_zynqmp(cmd_tbl_t *cmdtp, int flag, int argc,
|
||||
static int do_zynqmp(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
char *const argv[])
|
||||
{
|
||||
cmd_tbl_t *c;
|
||||
struct cmd_tbl *c;
|
||||
|
||||
if (argc < 2)
|
||||
return CMD_RET_USAGE;
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <command.h>
|
||||
#include <cpu_func.h>
|
||||
#include <debug_uart.h>
|
||||
#include <env.h>
|
||||
@@ -415,7 +416,7 @@ int board_early_init_r(void)
|
||||
}
|
||||
|
||||
unsigned long do_go_exec(ulong (*entry)(int, char * const []), int argc,
|
||||
char * const argv[])
|
||||
char *const argv[])
|
||||
{
|
||||
int ret = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user