2 * Copyright (C) 2009 Texas Instruments Incorporated
5 * Heiko Schocher, DENX Software Engineering, hs@denx.de.
7 * SPDX-License-Identifier: GPL-2.0+
12 #include <linux/mtd/nand.h>
17 #include <asm/arch/hardware.h>
18 #include <asm/arch/nand_defs.h>
19 #include <asm/arch/davinci_misc.h>
20 #ifdef CONFIG_DAVINCI_MMC
22 #include <asm/arch/sdmmc_defs.h>
25 DECLARE_GLOBAL_DATA_PTR;
27 #ifndef CONFIG_SPL_BUILD
28 static struct davinci_timer *timer =
29 (struct davinci_timer *)DAVINCI_TIMER3_BASE;
31 static unsigned long get_timer_val(void)
33 unsigned long now = readl(&timer->tim34);
38 static int timer_running(void)
40 return readl(&timer->tcr) &
41 (DV_TIMER_TCR_ENAMODE_MASK << DV_TIMER_TCR_ENAMODE34_SHIFT);
44 static void stop_timer(void)
46 writel(0x0, &timer->tcr);
52 printf("Board: AIT CAM ENC 4XX\n");
58 gd->bd->bi_boot_params = PHYS_SDRAM_1 + 0x100;
63 #ifdef CONFIG_DRIVER_TI_EMAC
64 static int cam_enc_4xx_check_network(void)
68 s = getenv("ethaddr");
72 if (!is_valid_ether_addr((const u8 *)s))
79 s = getenv("netmask");
83 s = getenv("serverip");
87 s = getenv("gatewayip");
93 int board_eth_init(bd_t *bis)
97 ret = cam_enc_4xx_check_network();
101 davinci_emac_initialize();
107 #ifdef CONFIG_NAND_DAVINCI
109 davinci_std_read_page_syndrome(struct mtd_info *mtd, struct nand_chip *chip,
110 uint8_t *buf, int oob_required, int page)
112 struct nand_chip *this = mtd->priv;
113 int i, eccsize = chip->ecc.size;
114 int eccbytes = chip->ecc.bytes;
115 int eccsteps = chip->ecc.steps;
117 uint8_t *oob = chip->oob_poi;
119 chip->cmdfunc(mtd, NAND_CMD_READOOB, 0x0, page & this->pagemask);
121 chip->read_buf(mtd, oob, mtd->oobsize);
123 chip->cmdfunc(mtd, NAND_CMD_READ0, 0x0, page & this->pagemask);
126 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) {
129 chip->ecc.hwctl(mtd, NAND_ECC_READ);
130 chip->read_buf(mtd, p, eccsize);
131 chip->ecc.hwctl(mtd, NAND_ECC_READSYN);
133 if (chip->ecc.prepad)
134 oob += chip->ecc.prepad;
136 stat = chip->ecc.correct(mtd, p, oob, NULL);
139 mtd->ecc_stats.failed++;
141 mtd->ecc_stats.corrected += stat;
145 if (chip->ecc.postpad)
146 oob += chip->ecc.postpad;
149 /* Calculate remaining oob bytes */
150 i = mtd->oobsize - (oob - chip->oob_poi);
152 chip->read_buf(mtd, oob, i);
157 static int davinci_std_write_page_syndrome(struct mtd_info *mtd,
158 struct nand_chip *chip, const uint8_t *buf,
161 unsigned char davinci_ecc_buf[NAND_MAX_OOBSIZE];
162 struct nand_chip *this = mtd->priv;
163 int i, eccsize = chip->ecc.size;
164 int eccbytes = chip->ecc.bytes;
165 int eccsteps = chip->ecc.steps;
166 int chunk = chip->ecc.bytes + chip->ecc.prepad + chip->ecc.postpad;
168 const uint8_t *p = buf;
169 uint8_t *oob = chip->oob_poi;
171 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) {
172 chip->ecc.hwctl(mtd, NAND_ECC_WRITE);
173 chip->write_buf(mtd, p, eccsize);
175 /* Calculate ECC without prepad */
176 chip->ecc.calculate(mtd, p, oob + chip->ecc.prepad);
178 if (chip->ecc.prepad) {
179 offset = (chip->ecc.steps - eccsteps) * chunk;
180 memcpy(&davinci_ecc_buf[offset], oob, chip->ecc.prepad);
181 oob += chip->ecc.prepad;
184 offset = ((chip->ecc.steps - eccsteps) * chunk) +
186 memcpy(&davinci_ecc_buf[offset], oob, eccbytes);
189 if (chip->ecc.postpad) {
190 offset = ((chip->ecc.steps - eccsteps) * chunk) +
191 chip->ecc.prepad + eccbytes;
192 memcpy(&davinci_ecc_buf[offset], oob,
194 oob += chip->ecc.postpad;
199 * Write the sparebytes into the page once
200 * all eccsteps have been covered
202 for (i = 0; i < mtd->oobsize; i++)
203 writeb(davinci_ecc_buf[i], this->IO_ADDR_W);
205 /* Calculate remaining oob bytes */
206 i = mtd->oobsize - (oob - chip->oob_poi);
208 chip->write_buf(mtd, oob, i);
212 static int davinci_std_write_oob_syndrome(struct mtd_info *mtd,
213 struct nand_chip *chip, int page)
216 const uint8_t *bufpoi = chip->oob_poi;
218 pos = mtd->writesize;
220 chip->cmdfunc(mtd, NAND_CMD_SEQIN, pos, page);
222 chip->write_buf(mtd, bufpoi, mtd->oobsize);
224 chip->cmdfunc(mtd, NAND_CMD_PAGEPROG, -1, -1);
225 status = chip->waitfunc(mtd, chip);
227 return status & NAND_STATUS_FAIL ? -1 : 0;
230 static int davinci_std_read_oob_syndrome(struct mtd_info *mtd,
231 struct nand_chip *chip, int page)
233 struct nand_chip *this = mtd->priv;
234 uint8_t *buf = chip->oob_poi;
235 uint8_t *bufpoi = buf;
237 chip->cmdfunc(mtd, NAND_CMD_READOOB, 0x0, page & this->pagemask);
239 chip->read_buf(mtd, bufpoi, mtd->oobsize);
244 static void nand_dm365evm_select_chip(struct mtd_info *mtd, int chip)
246 struct nand_chip *this = mtd->priv;
247 unsigned long wbase = (unsigned long) this->IO_ADDR_W;
248 unsigned long rbase = (unsigned long) this->IO_ADDR_R;
251 __set_bit(14, &wbase);
252 __set_bit(14, &rbase);
254 __clear_bit(14, &wbase);
255 __clear_bit(14, &rbase);
257 this->IO_ADDR_W = (void *)wbase;
258 this->IO_ADDR_R = (void *)rbase;
261 int board_nand_init(struct nand_chip *nand)
263 davinci_nand_init(nand);
264 nand->select_chip = nand_dm365evm_select_chip;
269 struct nand_ecc_ctrl org_ecc;
270 static int notsaved = 1;
272 static int nand_switch_hw_func(int mode)
274 struct nand_chip *nand;
275 struct mtd_info *mtd;
277 if (nand_curr_device < 0 ||
278 nand_curr_device >= CONFIG_SYS_MAX_NAND_DEVICE ||
279 !nand_info[nand_curr_device].name) {
280 printf("Error: Can't switch hw functions," \
281 " no devices available\n");
285 mtd = &nand_info[nand_curr_device];
290 printf("switching to uboot hw functions.\n");
291 memcpy(&nand->ecc, &org_ecc,
292 sizeof(struct nand_ecc_ctrl));
296 printf("switching to RBL hw functions.\n");
298 memcpy(&org_ecc, &nand->ecc,
299 sizeof(struct nand_ecc_ctrl));
302 nand->ecc.mode = NAND_ECC_HW_SYNDROME;
303 nand->ecc.prepad = 6;
304 nand->ecc.read_page = davinci_std_read_page_syndrome;
305 nand->ecc.write_page = davinci_std_write_page_syndrome;
306 nand->ecc.read_oob = davinci_std_read_oob_syndrome;
307 nand->ecc.write_oob = davinci_std_write_oob_syndrome;
314 static int do_switch_ecc(cmd_tbl_t *cmdtp, int flag, int argc,
319 if (strncmp(argv[1], "rbl", 2) == 0)
320 hwmode = nand_switch_hw_func(1);
321 else if (strncmp(argv[1], "uboot", 2) == 0)
322 hwmode = nand_switch_hw_func(0);
329 printf("Usage: nandrbl %s\n", cmdtp->usage);
334 nandrbl, 2, 1, do_switch_ecc,
335 "switch between rbl/uboot NAND ECC calculation algorithm",
336 "[rbl/uboot] - Switch between rbl/uboot NAND ECC algorithm"
340 #endif /* #ifdef CONFIG_NAND_DAVINCI */
342 #ifdef CONFIG_DAVINCI_MMC
343 static struct davinci_mmc mmc_sd0 = {
344 .reg_base = (struct davinci_mmc_regs *)DAVINCI_MMC_SD0_BASE,
345 .input_clk = 121500000,
346 .host_caps = MMC_MODE_4BIT,
347 .voltages = MMC_VDD_32_33 | MMC_VDD_33_34,
348 .version = MMC_CTLR_VERSION_2,
351 int board_mmc_init(bd_t *bis)
355 /* Add slot-0 to mmc subsystem */
356 err = davinci_mmc_init(bis, &mmc_sd0);
362 int board_late_init(void)
364 struct davinci_gpio *gpio = davinci_gpio_bank45;
366 /* 24MHz InputClock / 15 prediv -> 1.6 MHz timer running */
367 while ((get_timer_val() < CONFIG_AIT_TIMER_TIMEOUT) &&
371 /* 1 sec reached -> stop timer, clear all LED */
373 clrbits_le32(&gpio->out_data, CONFIG_CAM_ENC_LED_MASK);
379 char *name = "GENERIC @ 0x00";
382 miiphy_reset(name, 0x0);
385 #else /* #ifndef CONFIG_SPL_BUILD */
386 static void cam_enc_4xx_set_all_led(void)
388 struct davinci_gpio *gpio = davinci_gpio_bank45;
390 setbits_le32(&gpio->out_data, CONFIG_CAM_ENC_LED_MASK);
394 * TIMER 0 is used for tick
396 static struct davinci_timer *timer =
397 (struct davinci_timer *)DAVINCI_TIMER3_BASE;
399 #define TIMER_LOAD_VAL 0xffffffff
400 #define TIM_CLK_DIV 16
402 static int cam_enc_4xx_timer_init(void)
404 /* We are using timer34 in unchained 32-bit mode, full speed */
405 writel(0x0, &timer->tcr);
406 writel(0x0, &timer->tgcr);
407 writel(0x06 | ((TIM_CLK_DIV - 1) << 8), &timer->tgcr);
408 writel(0x0, &timer->tim34);
409 writel(TIMER_LOAD_VAL, &timer->prd34);
410 writel(2 << 22, &timer->tcr);
414 void board_gpio_init(void)
416 struct davinci_gpio *gpio;
418 cam_enc_4xx_set_all_led();
419 cam_enc_4xx_timer_init();
420 gpio = davinci_gpio_bank01;
421 clrbits_le32(&gpio->dir, ~0xfdfffffe);
422 /* clear LED D14 = GPIO25 */
423 clrbits_le32(&gpio->out_data, 0x02000000);
424 gpio = davinci_gpio_bank23;
425 clrbits_le32(&gpio->dir, ~0x5ff0afef);
426 /* set GPIO61 to 1 -> intern UART0 as Console */
427 setbits_le32(&gpio->out_data, 0x20000000);
429 * PHY out of reset GIO 50 = 1
430 * NAND WP off GIO 51 = 1
432 setbits_le32(&gpio->out_data, 0x000c0004);
433 gpio = davinci_gpio_bank45;
434 clrbits_le32(&gpio->dir, ~(0xdb2fffff) | CONFIG_CAM_ENC_LED_MASK);
444 clrbits_le32(&gpio->out_data, CONFIG_CAM_ENC_LED_MASK);
445 gpio = davinci_gpio_bank67;
446 clrbits_le32(&gpio->dir, ~0x000007ff);
450 * functions for the post memory test.
452 int arch_memory_test_prepare(u32 *vstart, u32 *size, phys_addr_t *phys_offset)
454 *vstart = CONFIG_SYS_SDRAM_BASE;
455 *size = PHYS_SDRAM_1_SIZE;
460 void arch_memory_failure_handle(void)
462 cam_enc_4xx_set_all_led();
463 puts("mem failure\n");
468 #if defined(CONFIG_MENU)
472 #define MENU_EXIT_BOOTCMD -2
475 #define MENU_UPDATE 2
476 #define MENU_NETWORK 3
479 static int menu_start;
481 #define FIT_SUBTYPE_UNKNOWN 0
482 #define FIT_SUBTYPE_UBL_HEADER 1
483 #define FIT_SUBTYPE_SPL_IMAGE 2
484 #define FIT_SUBTYPE_UBOOT_IMAGE 3
485 #define FIT_SUBTYPE_DF_ENV_IMAGE 4
486 #define FIT_SUBTYPE_RAMDISK_IMAGE 5
488 struct fit_images_info {
496 static struct fit_images_info imgs[10];
498 struct menu_display {
500 int timeout; /* in sec */
503 int (*menu_evaluate)(char *choice);
506 char *menu_main[] = {
508 "(2) Update Software",
509 "(3) Reset to default setting and boot",
510 "(4) Enter U-Boot console",
514 char *menu_update[] = {
515 "(1) Network settings",
521 char *menu_load[] = {
527 char *menu_network[] = {
532 "(5) tftp image name",
533 "(6) back to update software",
537 static void ait_menu_print(void *data)
539 printf("%s\n", (char *)data);
543 static char *menu_handle(struct menu_display *display)
553 m = menu_create(display->title, display->timeout, 1, ait_menu_print,
556 for (i = 0; display->menulist[i]; i++) {
557 sprintf(key, "%d", i + 1);
558 if (display->id == MENU_NETWORK) {
561 s = getenv("ipaddr");
564 s = getenv("netmask");
567 s = getenv("serverip");
570 s = getenv("gatewayip");
573 s = getenv("img_file");
580 sprintf(temp[i], "%s: %s",
581 display->menulist[i], s);
582 ret = menu_item_add(m, key, temp[i]);
584 ret = menu_item_add(m, key,
585 display->menulist[i]);
588 ret = menu_item_add(m, key, display->menulist[i]);
592 printf("failed to add item!");
597 sprintf(key, "%d", 1);
598 menu_default_set(m, key);
600 if (menu_get_choice(m, &choice) != 1)
601 debug("Problem picking a choice!\n");
608 static int ait_menu_show(struct menu_display *display, int bootdelay)
613 if ((menu_start == 0) && (display->id == MENU_MAIN))
614 display->timeout = bootdelay;
616 display->timeout = 0;
618 while (end == MENU_STAY) {
619 choice = menu_handle(display);
621 end = display->menu_evaluate(choice);
623 if (end == display->id)
625 if (display->id == MENU_MAIN) {
627 end = MENU_EXIT_BOOTCMD;
629 display->timeout = 0;
635 static int ait_writeublheader(void)
641 for (i = CONFIG_SYS_NAND_BLOCK_SIZE;
642 i < CONFIG_SYS_NAND_U_BOOT_OFFS;
643 i += CONFIG_SYS_NAND_BLOCK_SIZE) {
644 sprintf(s, "%lx", i);
645 ret = setenv("header_addr", s);
647 ret = run_command("run img_writeheader", 0);
654 static int ait_menu_install_images(void)
662 * possible image types:
663 * FIT_SUBTYPE_UNKNOWN
664 * FIT_SUBTYPE_UBL_HEADER
665 * FIT_SUBTYPE_SPL_IMAGE
666 * FIT_SUBTYPE_UBOOT_IMAGE
667 * FIT_SUBTYPE_DF_ENV_IMAGE
668 * FIT_SUBTYPE_RAMDISK_IMAGE
671 * img_addr_r: image start addr
672 * header_addr: addr where to write to UBL header
673 * img_writeheader: write ubl header to nand
674 * img_writespl: write spl to nand
675 * img_writeuboot: write uboot to nand
676 * img_writedfenv: write default environment to ubi volume
677 * img_volume: which ubi volume should be updated with img_writeramdisk
678 * filesize: size of data for updating ubi volume
679 * img_writeramdisk: write ramdisk to ubi volume
682 while (imgs[count].type != IH_TYPE_INVALID) {
683 printf("Installing %s\n",
684 genimg_get_type_name(imgs[count].type));
685 sprintf(s, "%p", imgs[count].data);
686 setenv("img_addr_r", s);
687 sprintf(s, "%lx", (unsigned long)imgs[count].size);
688 setenv("filesize", s);
689 switch (imgs[count].subtype) {
690 case FIT_SUBTYPE_DF_ENV_IMAGE:
691 ret = run_command("run img_writedfenv", 0);
693 case FIT_SUBTYPE_RAMDISK_IMAGE:
694 t = getenv("img_volume");
696 ret = setenv("img_volume", "rootfs1");
698 /* switch to other volume */
699 if (strncmp(t, "rootfs1", 7) == 0)
700 ret = setenv("img_volume", "rootfs2");
702 ret = setenv("img_volume", "rootfs1");
707 ret = run_command("run img_writeramdisk", 0);
709 case FIT_SUBTYPE_SPL_IMAGE:
710 ret = run_command("run img_writespl", 0);
712 case FIT_SUBTYPE_UBL_HEADER:
713 ret = ait_writeublheader();
715 case FIT_SUBTYPE_UBOOT_IMAGE:
716 ret = run_command("run img_writeuboot", 0);
719 /* not supported type */
724 /* now save dvn_* and img_volume env vars to new values */
726 t = getenv("x_dvn_boot_vers");
728 setenv("dvn_boot_vers", t);
730 t = getenv("x_dvn_app_vers");
732 setenv("dvn_boot_vers", t);
734 setenv("x_dvn_boot_vers", NULL);
735 setenv("x_dvn_app_vers", NULL);
736 ret = run_command("run savenewvers", 0);
742 static int ait_menu_evaluate_load(char *choice)
750 ait_menu_install_images();
753 /* cancel, back to main */
754 setenv("x_dvn_boot_vers", NULL);
755 setenv("x_dvn_app_vers", NULL);
762 struct menu_display ait_load = {
763 .title = "AIT load image",
766 .menulist = menu_load,
767 .menu_evaluate = ait_menu_evaluate_load,
770 static void ait_menu_read_env(char *name)
772 char output[CONFIG_SYS_CBSIZE];
773 char cbuf[CONFIG_SYS_CBSIZE];
777 sprintf(output, "%s old: %s value: ", name, getenv(name));
778 memset(cbuf, 0, CONFIG_SYS_CBSIZE);
779 readret = readline_into_buffer(output, cbuf, 0);
782 ret = setenv(name, cbuf);
784 printf("Error setting %s\n", name);
791 static int ait_menu_evaluate_network(char *choice)
798 ait_menu_read_env("ipaddr");
801 ait_menu_read_env("netmask");
804 ait_menu_read_env("serverip");
807 ait_menu_read_env("gatewayip");
810 ait_menu_read_env("img_file");
820 struct menu_display ait_network = {
821 .title = "AIT network settings",
824 .menulist = menu_network,
825 .menu_evaluate = ait_menu_evaluate_network,
828 static int fit_get_subtype(const void *fit, int noffset, char **subtype)
832 *subtype = (char *)fdt_getprop(fit, noffset, "subtype", &len);
833 if (*subtype == NULL)
839 static int ait_subtype_nr(char *subtype)
841 int ret = FIT_SUBTYPE_UNKNOWN;
843 if (!strncmp("ublheader", subtype, strlen("ublheader")))
844 return FIT_SUBTYPE_UBL_HEADER;
845 if (!strncmp("splimage", subtype, strlen("splimage")))
846 return FIT_SUBTYPE_SPL_IMAGE;
847 if (!strncmp("ubootimage", subtype, strlen("ubootimage")))
848 return FIT_SUBTYPE_UBOOT_IMAGE;
849 if (!strncmp("dfenvimage", subtype, strlen("dfenvimage")))
850 return FIT_SUBTYPE_DF_ENV_IMAGE;
855 static int ait_menu_check_image(void)
858 unsigned long fit_addr;
869 int found_uboot = -1;
870 int found_ramdisk = -1;
872 memset(imgs, 0, sizeof(imgs));
873 s = getenv("fit_addr_r");
874 fit_addr = s ? (unsigned long)simple_strtol(s, NULL, 16) : \
875 CONFIG_BOARD_IMG_ADDR_R;
877 addr = (void *)fit_addr;
878 /* check if it is a FIT image */
879 format = genimg_get_format(addr);
880 if (format != IMAGE_FORMAT_FIT)
883 if (!fit_check_format(addr))
886 /* print the FIT description */
887 ret = fit_get_desc(addr, 0, &desc);
888 printf("FIT description: ");
890 printf("unavailable\n");
892 printf("%s\n", desc);
895 images_noffset = fdt_path_offset(addr, FIT_IMAGES_PATH);
896 if (images_noffset < 0) {
897 printf("Can't find images parent node '%s' (%s)\n",
898 FIT_IMAGES_PATH, fdt_strerror(images_noffset));
902 /* Process its subnodes, print out component images details */
903 for (ndepth = 0, count = 0,
904 noffset = fdt_next_node(addr, images_noffset, &ndepth);
905 (noffset >= 0) && (ndepth > 0);
906 noffset = fdt_next_node(addr, noffset, &ndepth)) {
909 * Direct child node of the images parent node,
910 * i.e. component image node.
912 printf("Image %u (%s)\n", count,
913 fit_get_name(addr, noffset, NULL));
915 fit_image_print(addr, noffset, "");
917 fit_image_get_type(addr, noffset,
919 /* Mandatory properties */
920 ret = fit_get_desc(addr, noffset, &desc);
921 printf("Description: ");
923 printf("unavailable\n");
925 printf("%s\n", desc);
927 ret = fit_get_subtype(addr, noffset, &subtype);
930 printf("unavailable\n");
932 imgs[count].subtype = ait_subtype_nr(subtype);
933 printf("%s %d\n", subtype,
934 imgs[count].subtype);
937 sprintf(imgs[count].desc, "%s", desc);
939 ret = fit_image_get_data(addr, noffset,
943 printf("Data Size: ");
945 printf("unavailable\n");
947 genimg_print_size(imgs[count].size);
948 printf("Data @ %p\n", imgs[count].data);
953 for (i = 0; i < count; i++) {
954 if (imgs[i].subtype == FIT_SUBTYPE_UBOOT_IMAGE)
956 if (imgs[i].type == IH_TYPE_RAMDISK) {
958 imgs[i].subtype = FIT_SUBTYPE_RAMDISK_IMAGE;
962 /* dvn_* env var update, if the FIT descriptors are different */
963 if (found_uboot >= 0) {
964 s = getenv("dvn_boot_vers");
966 ret = strcmp(s, imgs[found_uboot].desc);
968 setenv("x_dvn_boot_vers",
969 imgs[found_uboot].desc);
972 printf("no new uboot version\n");
975 setenv("dvn_boot_vers", imgs[found_uboot].desc);
978 if (found_ramdisk >= 0) {
979 s = getenv("dvn_app_vers");
981 ret = strcmp(s, imgs[found_ramdisk].desc);
983 setenv("x_dvn_app_vers",
984 imgs[found_ramdisk].desc);
987 printf("no new ramdisk version\n");
990 setenv("dvn_app_vers", imgs[found_ramdisk].desc);
993 if ((found_uboot == -1) && (found_ramdisk == -1))
999 static int ait_menu_evaluate_update(char *choice)
1006 switch (choice[1]) {
1008 return ait_menu_show(&ait_network, 0);
1012 ret = run_command("run load_img", 0);
1013 printf("ret: %d\n", ret);
1017 ret = ait_menu_check_image();
1021 return ait_menu_show(&ait_load, 0);
1032 struct menu_display ait_update = {
1033 .title = "AIT Update Software",
1036 .menulist = menu_update,
1037 .menu_evaluate = ait_menu_evaluate_update,
1040 static int ait_menu_evaluate_main(char *choice)
1046 switch (choice[1]) {
1049 return MENU_EXIT_BOOTCMD;
1052 return ait_menu_show(&ait_update, 0);
1055 /* reset to default settings */
1056 setenv("app_reset", "yes");
1057 return MENU_EXIT_BOOTCMD;
1068 struct menu_display ait_main = {
1069 .title = "AIT Main",
1070 .timeout = CONFIG_BOOTDELAY,
1072 .menulist = menu_main,
1073 .menu_evaluate = ait_menu_evaluate_main,
1076 int menu_show(int bootdelay)
1080 run_command("run saveparms", 0);
1081 ret = ait_menu_show(&ait_main, bootdelay);
1082 run_command("run restoreparms", 0);
1084 if (ret == MENU_EXIT_BOOTCMD)
1090 void menu_display_statusline(struct menu *m)
1094 s1 = getenv("x_dvn_boot_vers");
1096 s1 = getenv("dvn_boot_vers");
1098 s2 = getenv("x_dvn_app_vers");
1100 s2 = getenv("dvn_app_vers");
1102 printf("State: dvn_boot_vers: %s dvn_app_vers: %s\n", s1, s2);