]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arc: bdinfo, image and arc-specific init functions declarations support
authorAlexey Brodkin <Alexey.Brodkin@synopsys.com>
Tue, 4 Feb 2014 08:56:16 +0000 (12:56 +0400)
committerTom Rini <trini@ti.com>
Fri, 7 Feb 2014 13:14:33 +0000 (08:14 -0500)
Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Cc: Vineet Gupta <vgupta@synopsys.com>
Cc: Francois Bedard <fbedard@synopsys.com>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Heiko Schocher <hs@denx.de>
common/cmd_bdinfo.c
common/image.c
include/common.h
include/image.h

index 713de1464c38b123d44515a8328923f522242d88..15119a775e5aa86522e8f5132d4f0a76cbfb34a7 100644 (file)
@@ -517,6 +517,24 @@ int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
        return 0;
 }
 
+#elif defined(CONFIG_ARC700)
+
+int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+{
+       bd_t *bd = gd->bd;
+
+       print_num("mem start",          bd->bi_memstart);
+       print_lnum("mem size",          bd->bi_memsize);
+
+#if defined(CONFIG_CMD_NET)
+       print_eth(0);
+       printf("ip_addr     = %s\n", getenv("ipaddr"));
+#endif
+       printf("baudrate    = %d bps\n", bd->bi_baudrate);
+
+       return 0;
+}
+
 #else
  #error "a case for this architecture does not exist!"
 #endif
index ae95c3f18aa24058bd92cf1c91c57ea5a710f91b..9c6bec5b769ceb1834ffa978827c89609ad8402f 100644 (file)
@@ -82,6 +82,7 @@ static const table_entry_t uimage_arch[] = {
        {       IH_ARCH_OPENRISC,       "or1k",         "OpenRISC 1000",},
        {       IH_ARCH_SANDBOX,        "sandbox",      "Sandbox",      },
        {       IH_ARCH_ARM64,          "arm64",        "AArch64",      },
+       {       IH_ARCH_ARC,            "arc",          "ARC",          },
        {       -1,                     "",             "",             },
 };
 
index d5ebb25390607ce4e830addffbfc46480e1ea285..221b7768c5bec16d5e090d4febf809826ece570b 100644 (file)
@@ -408,6 +408,9 @@ static inline int setenv_addr(const char *varname, const void *addr)
 #ifdef CONFIG_MIPS
 # include <asm/u-boot-mips.h>
 #endif /* CONFIG_MIPS */
+#ifdef CONFIG_ARC
+# include <asm/u-boot-arc.h>
+#endif /* CONFIG_ARC */
 
 #ifdef CONFIG_AUTO_COMPLETE
 int env_complete(char *var, int maxv, char *cmdv[], int maxsz, char *buf);
index 7de2bb2f81e9e17968de240133ab128cf45c0e76..3ba8c2ea304bf1f1dd762fb358fcd191e3c957bd 100644 (file)
@@ -157,6 +157,7 @@ struct lmb;
 #define IH_ARCH_NDS32          20      /* ANDES Technology - NDS32  */
 #define IH_ARCH_OPENRISC        21     /* OpenRISC 1000  */
 #define IH_ARCH_ARM64          22      /* ARM64        */
+#define IH_ARCH_ARC            23      /* Synopsys DesignWare ARC */
 
 /*
  * Image Types