* Map ISP1362 USB OTG controller for NSCU board
[platform/kernel/u-boot.git] / include / common.h
index 0bb4353..9400719 100644 (file)
@@ -43,6 +43,20 @@ typedef volatile unsigned char       vu_char;
 #endif
 #ifdef CONFIG_8xx
 #include <asm/8xx_immap.h>
+#ifdef CONFIG_MPC860
+#define CONFIG_MPC86x 1
+#endif
+#ifdef CONFIG_MPC860T
+#define CONFIG_MPC86x 1
+#endif
+#if defined(CONFIG_MPC866P) || \
+    defined(CONFIG_MPC866T) || \
+    defined(CONFIG_MPC859T) || \
+    defined(CONFIG_MPC859DSL) || \
+    defined(CONFIG_MPC852T)
+#define CONFIG_MPC866_et_al 1
+#define CONFIG_MPC86x 1
+#endif
 #elif defined(CONFIG_5xx)
 #include <asm/5xx_immap.h>
 #elif defined(CONFIG_8260)
@@ -147,8 +161,11 @@ extern ulong monitor_flash_len;
 /* common/flash.c */
 void flash_perror (int);
 
+/* common/cmd_autoscript.c */
+int    autoscript (ulong addr);
+
 /* common/cmd_bootm.c */
-void print_image_hdr (image_header_t *hdr);
+void   print_image_hdr (image_header_t *hdr);
 
 extern ulong load_addr;                /* Default Load Address */
 
@@ -190,6 +207,9 @@ void    pciinfo       (int, int);
 int    misc_init_f   (void);
 int    misc_init_r   (void);
 
+/* common/exports.c */
+void   jumptable_init(void);
+
 /* $(BOARD)/$(BOARD).c */
 void   reset_phy     (void);
 void    fdc_hw_init   (void);
@@ -216,7 +236,7 @@ extern void  pic_write (uchar reg, uchar val);
 # define CFG_DEF_EEPROM_ADDR CFG_I2C_EEPROM_ADDR
 #endif /* CONFIG_SPI || !defined(CFG_I2C_EEPROM_ADDR) */
 
-#if defined(CONFIG_PCU_E) || defined(CONFIG_CCM) || defined(CONFIG_ATC)
+#if defined(CONFIG_SPI)
 extern void spi_init_f (void);
 extern void spi_init_r (void);
 extern ssize_t spi_read  (uchar *, int, uchar *, int);
@@ -324,6 +344,9 @@ int get_clocks (void);
 #if defined(CONFIG_8260)
 int    prt_8260_clks (void);
 #endif
+#if defined(CONFIG_MPC5XXX)
+int    prt_mpc5xxx_clks (void);
+#endif
 #ifdef CONFIG_4xx
 ulong  get_OPB_freq (void);
 ulong  get_PCI_freq (void);
@@ -377,6 +400,9 @@ uint        dpram_alloc(uint size);
 uint   dpram_alloc_align(uint size,uint align);
 void   post_word_store (ulong);
 ulong  post_word_load (void);
+void   bootcount_store (ulong);
+ulong  bootcount_load (void);
+#define BOOTCOUNT_MAGIC                0xB001C041
 
 /* $(CPU)/.../<eth> */
 void mii_init (void);
@@ -416,8 +442,6 @@ ulong crc32 (ulong, const unsigned char *, uint);
 ulong crc32_no_comp (ulong, const unsigned char *, uint);
 
 /* common/console.c */
-extern void **syscall_tbl;
-
 int    console_init_f(void);   /* Before relocation; uses the serial  stuff    */
 int    console_init_r(void);   /* After  relocation; uses the console stuff    */
 int    console_assign (int file, char *devname);       /* Assign the console   */