]> git.sur5r.net Git - u-boot/blobdiff - include/common.h
ddr: altera: Add ECC DRAM scrubbing support for Arria10
[u-boot] / include / common.h
index 0f77c8c282990141c771f2b42b6b69b12b277892..940161f1758b77cfa31984ed3b65bd28b208b47d 100644 (file)
@@ -1,8 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
 /*
  * (C) Copyright 2000-2009
  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #ifndef __COMMON_H_
@@ -65,6 +64,8 @@ typedef void (interrupt_handler_t)(void *);
 /* startup functions, used in:
  * common/board_f.c
  * common/init/board_init.c
+ * common/board_r.c
+ * common/board_info.c
  */
 #include <init.h>
 
@@ -95,19 +96,11 @@ int run_command_repeatable(const char *cmd, int flag);
  */
 int run_command_list(const char *cmd, int len, int flag);
 
-/* arch/$(ARCH)/lib/board.c */
-void board_init_r(gd_t *, ulong) __attribute__ ((noreturn));
-
-int checkboard(void);
-int show_board_info(void);
-int last_stage_init(void);
-int mac_read_from_eeprom(void);
+int checkflash(void);
+int checkdram(void);
 extern u8 __dtb_dt_begin[];    /* embedded device tree blob */
 extern u8 __dtb_dt_spl_begin[];        /* embedded device tree blob for SPL/TPL */
-int set_cpu_clk_info(void);
 int mdm_init(void);
-int update_flash_size(int flash_size);
-int arch_early_init_r(void);
 
 /**
  * Show the DRAM size in a board-specific way
@@ -254,14 +247,8 @@ int env_complete(char *var, int maxv, char *cmdv[], int maxsz, char *buf);
 #endif
 int get_env_id (void);
 
-void   pci_init      (void);
 void   pci_init_board(void);
 
-int    misc_init_r   (void);
-#if defined(CONFIG_VID)
-int    init_func_vid(void);
-#endif
-
 /* common/exports.c */
 void   jumptable_init(void);
 
@@ -291,19 +278,11 @@ int  eeprom_write (unsigned dev_addr, unsigned offset, uchar *buffer, unsigned c
 #define eeprom_write(dev_addr, offset, buffer, cnt) ((void)-ENOSYS)
 #endif
 
-/*
- * Set this up regardless of board
- * type, to prevent errors.
- */
-#if defined(CONFIG_SPI) || !defined(CONFIG_SYS_I2C_EEPROM_ADDR)
-# define CONFIG_SYS_DEF_EEPROM_ADDR 0
-#else
-#if !defined(CONFIG_ENV_EEPROM_IS_ON_I2C)
+#if !defined(CONFIG_ENV_EEPROM_IS_ON_I2C) && defined(CONFIG_SYS_I2C_EEPROM_ADDR)
 # define CONFIG_SYS_DEF_EEPROM_ADDR CONFIG_SYS_I2C_EEPROM_ADDR
 #endif
-#endif /* CONFIG_SPI || !defined(CONFIG_SYS_I2C_EEPROM_ADDR) */
 
-#if defined(CONFIG_SPI)
+#if defined(CONFIG_MPC8XX_SPI)
 extern void spi_init_f (void);
 extern void spi_init_r (void);
 extern ssize_t spi_read         (uchar *, int, uchar *, int);
@@ -386,8 +365,6 @@ int get_clocks (void);
 ulong  get_bus_freq  (ulong);
 int get_serial_clock(void);
 
-int    cpu_init_r    (void);
-
 /* $(CPU)/interrupts.c */
 int    interrupt_init     (void);
 void   timer_interrupt    (struct pt_regs *);
@@ -559,10 +536,10 @@ void show_activity(int arg);
 
 /* Multicore arch functions */
 #ifdef CONFIG_MP
-int cpu_status(int nr);
-int cpu_reset(int nr);
-int cpu_disable(int nr);
-int cpu_release(int nr, int argc, char * const argv[]);
+int cpu_status(u32 nr);
+int cpu_reset(u32 nr);
+int cpu_disable(u32 nr);
+int cpu_release(u32 nr, int argc, char * const argv[]);
 #endif
 
 #else  /* __ASSEMBLY__ */