Merge tag 'xilinx-for-v2020.10' of https://gitlab.denx.de/u-boot/custodians/u-boot...
[platform/kernel/u-boot.git] / include / configs / apf27.h
index 1b52cc3..cecd485 100644 (file)
@@ -1,15 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
 /*
  *
  * Configuration settings for the Armadeus Project motherboard APF27
  *
  * Copyright (C) 2008-2013 Eric Jarrige <eric.jarrige@armadeus.org>
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
+#include <linux/stringify.h>
+
 #define CONFIG_ENV_VERSION     10
 #define CONFIG_BOARD_NAME apf27
 
@@ -28,7 +29,6 @@
  */
 #define CONFIG_SPL_TARGET      "u-boot-with-spl.bin"
 #define CONFIG_SPL_MAX_SIZE    2048
-#define CONFIG_SPL_TEXT_BASE    0xA0000000
 
 /* NAND boot config */
 #define CONFIG_SYS_NAND_U_BOOT_START    CONFIG_SYS_TEXT_BASE
 #define CONFIG_BOOTP_BOOTFILESIZE
 #define CONFIG_BOOTP_DNS2
 
-#define CONFIG_HOSTNAME        CONFIG_BOARD_NAME
+#define CONFIG_HOSTNAME        "apf27"
 #define CONFIG_ROOTPATH        "/tftpboot/" __stringify(CONFIG_BOARD_NAME) "-root"
 
 /*
  * Memory configurations
  */
 #define CONFIG_NR_DRAM_POPULATED 1
-#define CONFIG_NR_DRAM_BANKS   2
 
 #define ACFG_SDRAM_MBYTE_SYZE 64
 
@@ -57,8 +56,6 @@
 #define PHYS_SDRAM_2                   0xB0000000
 #define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM_1
 #define CONFIG_SYS_MALLOC_LEN          (CONFIG_ENV_SIZE + (512<<10))
-#define CONFIG_SYS_MEMTEST_START       0xA0000000      /* memtest test area  */
-#define CONFIG_SYS_MEMTEST_END         0xA0300000      /* 3 MiB RAM test */
 
 #define CONFIG_SYS_INIT_SP_ADDR        (CONFIG_SYS_SDRAM_BASE  \
                + PHYS_SDRAM_1_SIZE - 0x0100000)
 #define        ACFG_MONITOR_OFFSET             0x00000000
 #define        CONFIG_SYS_MONITOR_LEN          0x00100000      /* 1MiB */
 #define        CONFIG_ENV_OVERWRITE
-#define        CONFIG_ENV_OFFSET               0x00100000      /* NAND offset */
-#define        CONFIG_ENV_SIZE                 0x00020000      /* 128kB  */
 #define CONFIG_ENV_RANGE               0X00080000      /* 512kB */
-#define        CONFIG_ENV_OFFSET_REDUND        \
-               (CONFIG_ENV_OFFSET + CONFIG_ENV_RANGE)  /* +512kB */
-#define        CONFIG_ENV_SIZE_REDUND          CONFIG_ENV_SIZE /* 512kB */
 #define        CONFIG_FIRMWARE_OFFSET          0x00200000
 #define        CONFIG_FIRMWARE_SIZE            0x00080000      /* 512kB  */
 #define        CONFIG_KERNEL_OFFSET            0x00300000
@@ -86,7 +78,6 @@
 #define CONFIG_SYS_CBSIZE              2048            /* console I/O buffer */
 #define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE
                                                /* Boot argument buffer size */
-#define CONFIG_PREBOOT                 "run check_flash check_env;"
 
 /*
  * Boot Linux
  * Serial Driver
  */
 #define CONFIG_MXC_UART
-#define CONFIG_CONS_INDEX              1
 #define CONFIG_MXC_UART_BASE           UART1_BASE
 
 /*
 /*
  * Partitions & Filsystems
  */
-#define CONFIG_MTD_DEVICE
-#define CONFIG_MTD_PARTITIONS
 
 /*
  * Ethernet (on SOC imx FEC)
  */
 #define CONFIG_FEC_MXC
 #define CONFIG_FEC_MXC_PHYADDR         0x1f
-#define CONFIG_MII                             /* MII PHY management   */
 
 /*
  * FPGA