Advertisement
Guest User

Untitled

a guest
Jun 21st, 2015
275
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 6.75 KB | None | 0 0
  1. tridentsx@Fatix:~/dev/my-boot$ cat include/configs/hdg2002b.h
  2. /*
  3.  * (C) Copyright 2012 INOV - INESC Inovacao
  4.  * Jose Goncalves <jose.goncalves@inov.pt>
  5.  *
  6.  * See file CREDITS for list of people who contributed to this
  7.  * project.
  8.  *
  9.  * This program is free software; you can redistribute it and/or
  10.  * modify it under the terms of the GNU General Public License as
  11.  * published by the Free Software Foundation; either version 2 of
  12.  * the License, or (at your option) any later version.
  13.  *
  14.  * This program is distributed in the hope that it will be useful,
  15.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  17.  * GNU General Public License for more details.
  18.  *
  19.  * You should have received a copy of the GNU General Public License
  20.  * along with this program; if not, write to the Free Software
  21.  * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  22.  * MA 02111-1307 USA
  23.  */
  24.  
  25. #ifndef __CONFIG_H
  26. #define __CONFIG_H
  27.  
  28. #define CONFIG_SYS_GENERIC_BOARD
  29. /*
  30.  * SoC Configuration
  31.  */
  32. #define CONFIG_ARM926EJS    /* ARM926EJS CPU Core */
  33. #define CONFIG_S3C24XX      /* SAMSUNG S3C24XX Family */
  34. #define CONFIG_S3C2416      /* SAMSUNG S3C2416 SoC */
  35. #define CONFIG_SYS_CLK_FREQ 12000000
  36. #define CONFIG_SYS_HZ       1000
  37.  
  38. /*#define CONFIG_SYS_ONENAND_BASE   0x0000*/
  39. /*
  40.  * Memory Information
  41.  */
  42. #define CONFIG_SYS_IRAM_BASE    0x40000000  /* Steppingstone base address */
  43. #define CONFIG_SYS_IRAM_SIZE    (8 << 10)   /* 8KB of Steppingstone */
  44. #define CONFIG_SYS_IRAM_END (CONFIG_SYS_IRAM_BASE + CONFIG_SYS_IRAM_SIZE)
  45.  
  46. #define CONFIG_SYS_SRAM_BASE    0x40002000  /* SRAM base address */
  47. #define CONFIG_SYS_SRAM_SIZE    (56 << 10)  /* 56KB of SRAM */
  48. #define CONFIG_SYS_SRAM_END (CONFIG_SYS_SRAM_BASE + CONFIG_SYS_SRAM_SIZE)
  49.  
  50. #define CONFIG_SYS_SDRAM_BASE   0x30000000  /* DDR2 SDRAM base address */
  51. #define CONFIG_SYS_SDRAM_SIZE   (64 << 20)  /* 64MB of DDR2 SDRAM */
  52. #define CONFIG_SYS_SDRAM_END    (CONFIG_SYS_SDRAM_BASE + CONFIG_SYS_SDRAM_SIZE -1 )
  53.  
  54. /*
  55.  * Linux Interface
  56.  */
  57. #define MACH_TYPE_MINI2416      3850
  58. #define CONFIG_MACH_TYPE        MACH_TYPE_MINI2416
  59. #define CONFIG_CMDLINE_TAG
  60. #define CONFIG_SETUP_MEMORY_TAGS
  61. #define CONFIG_BOOTDELAY        3
  62. #define CONFIG_BOOTARGS         "console=ttySAC1,115200n8"
  63. #define CONFIG_BOOTCOMMAND      ""  /* TBD */
  64.  
  65. /*
  66.  * SPL
  67.  */
  68. /*#define CONFIG_SPL*/
  69. #define CONFIG_SPL_TARGET   "u-boot-with-spl.bin"
  70. #define CONFIG_SPL_FRAMEWORK
  71. #define CONFIG_SPL_LIBCOMMON_SUPPORT
  72. #define CONFIG_SPL_LIBGENERIC_SUPPORT
  73. /*#define CONFIG_SPL_DISPLAY_PRINT*/
  74. /*#define CONFIG_SPL_BOARD_INIT*/
  75. #define CONFIG_SPL_SERIAL_SUPPORT
  76. #define CONFIG_SPL_MTD_SUPPORT
  77. #define CONFIG_SPL_NAND_SIMPLE
  78. #define CONFIG_SPL_TEXT_BASE        0x40000000 /* CONFIG_SYS_IRAM_BASE */
  79. #define CONFIG_SPL_MAX_SIZE     CONFIG_SYS_IRAM_SIZE /* 8192 */
  80. #define CONFIG_SPL_BSS_START_ADDR   CONFIG_SYS_SRAM_BASE
  81. #define CONFIG_SPL_BSS_MAX_SIZE     (CONFIG_SYS_SRAM_SIZE - (8 << 10))
  82. #define CONFIG_SPL_STACK        CONFIG_SYS_SRAM_END /* 8KB for stack */
  83. #define CONFIG_SPL_LDSCRIPT     "board/hantek/hdg2002b/u-boot-spl.lds"
  84. #define CONFIG_SPL_PAD_TO       0x2000 
  85.  
  86. /*
  87.  * Monitor Interface
  88.  */
  89. #define CONFIG_SYS_PROMPT       "HDG # "
  90. #define CONFIG_SYS_LONGHELP
  91. #define CONFIG_SYS_CBSIZE       1024
  92. #define CONFIG_SYS_PBSIZE       (CONFIG_SYS_CBSIZE + \
  93.                      sizeof(CONFIG_SYS_PROMPT) + 16)
  94. #define CONFIG_SYS_MAXARGS      16
  95. #define CONFIG_SYS_HUSH_PARSER
  96. #define CONFIG_CMDLINE_EDITING
  97.  
  98. /*
  99.  * Command Definition
  100.  */
  101. #define CONFIG_SYS_NO_FLASH /* No NOR Flash */
  102. #include <config_cmd_default.h>
  103. #define CONFIG_CMD_CACHE
  104. #define CONFIG_CMD_DATE
  105. #define CONFIG_CMD_DHCP
  106. #define CONFIG_CMD_MISC
  107. #define CONFIG_CMD_NAND
  108. #define CONFIG_CMD_PING
  109.  
  110. /*
  111.  * Miscellaneous Settings
  112.  */
  113. #define CONFIG_SKIP_LOWLEVEL_INIT
  114. #define CONFIG_DISPLAY_CPUINFO
  115. #define CONFIG_DISPLAY_BOARDINFO
  116. #define CONFIG_NR_DRAM_BANKS        1
  117. #define CONFIG_SYS_LOAD_ADDR        (CONFIG_SYS_SDRAM_BASE + (1 << 20))
  118. #define CONFIG_SYS_MONITOR_BASE     (CONFIG_SYS_SDRAM_END - (1 << 20))
  119. #define CONFIG_SYS_MONITOR_LEN      (256 << 10) /*262144*/
  120. #define CONFIG_SYS_TEXT_BASE        0x33F00000 /* CONFIG_SYS_MONITOR_BASE */
  121. #define CONFIG_SYS_MALLOC_LEN       (384 << 10) /*393216*/
  122. #define CONFIG_SYS_INIT_SP_ADDR     (CONFIG_SYS_SRAM_END - \
  123.                      GENERATED_GBL_DATA_SIZE)
  124. #define CONFIG_SYS_ALT_MEMTEST
  125. #define CONFIG_SYS_MEMTEST_START    CONFIG_SYS_SDRAM_BASE
  126. #define CONFIG_SYS_MEMTEST_END      CONFIG_SYS_MONITOR_BASE
  127.  
  128. /*
  129.  * NAND Flash
  130.  */
  131. #ifdef CONFIG_CMD_NAND
  132.  
  133. #define CONFIG_NAND_S3C24XX
  134. #define CONFIG_S3C24XX_NAND_HWECC
  135. #define CONFIG_SYS_NAND_BASE        0x4E000010
  136. #define CONFIG_SYS_MAX_NAND_DEVICE  1
  137.  
  138. /* SPL NAND Driver */
  139. #define CONFIG_SYS_NAND_PAGE_SIZE   (2 << 10)
  140. #define CONFIG_SYS_NAND_BLOCK_SIZE  (128 << 10)
  141. #define CONFIG_SYS_NAND_PAGE_COUNT  (CONFIG_SYS_NAND_BLOCK_SIZE / \
  142.                      CONFIG_SYS_NAND_PAGE_SIZE)
  143. #define CONFIG_SYS_NAND_OOBSIZE     64
  144. #define CONFIG_SYS_NAND_ECCSIZE     512
  145. #define CONFIG_SYS_NAND_ECCBYTES    4
  146. #define CONFIG_SYS_NAND_ECCPOS      {40, 41, 42, 43, 44, 45, 46, 47, \
  147.                      48, 49, 50, 51, 52, 53, 54, 55}
  148. #define CONFIG_SYS_NAND_BAD_BLOCK_POS   0
  149. #define CONFIG_SYS_NAND_HW_ECC_OOBFIRST
  150. #define CONFIG_SYS_NAND_5_ADDR_CYCLE
  151. #define CONFIG_SYS_NAND_U_BOOT_DST  CONFIG_SYS_TEXT_BASE
  152. #define CONFIG_SYS_NAND_U_BOOT_START    CONFIG_SYS_NAND_U_BOOT_DST
  153. #define CONFIG_SYS_NAND_U_BOOT_OFFS CONFIG_SPL_MAX_SIZE
  154. #define CONFIG_SYS_NAND_U_BOOT_SIZE (CONFIG_SYS_MONITOR_LEN - \
  155.                      CONFIG_SPL_MAX_SIZE) /* 262144 - 8192 = 253952 = 0x3e000*/
  156.  
  157. #endif
  158.  
  159. /*
  160.  * Serial Driver
  161.  */
  162. #define CONFIG_S3C24X0_SERIAL
  163. #define CONFIG_SERIAL1
  164. #define CONFIG_BAUDRATE         115200
  165.  
  166. /*
  167.  * Ethernet
  168.  */
  169. #define CONFIG_CMD_NET
  170. #ifdef CONFIG_CMD_NET
  171. #define CONFIG_DM9000
  172. #define CONFIG_DRIVER_DM9000
  173. #define CONFIG_DM9000_BASE       0x08000000
  174. #define DM9000_IO                       CONFIG_DM9000_BASE
  175. #define DM9000_DATA                     (CONFIG_DM9000_BASE + 4)
  176. #define CONFIG_DM9000_USE_16BIT
  177. #define CONFIG_DM9000_NO_SROM
  178. #define CONFIG_NET_RETRY_COUNT          20
  179. /*#define CONFIG_RESET_PHY_R*/
  180.  
  181. #define CONFIG_ETHADDR          FE:11:22:33:44:55
  182. #define CONFIG_OVERWRITE_ETHADDR_ONCE
  183. #define CONFIG_IPADDR           192.168.1.180
  184. #define CONFIG_NETMASK          255.255.255.0
  185. #define CONFIG_SERVERIP         192.168.1.1
  186. #define CONFIG_GATEWAYIP        192.168.1.1
  187. #endif
  188.  
  189. /*
  190.  * RTC
  191.  */
  192. #ifdef CONFIG_CMD_DATE
  193. #define CONFIG_RTC_S3C24X0
  194. #endif
  195.  
  196. /*
  197.  * Environment
  198.  */
  199. #ifdef CONFIG_CMD_NAND
  200. #define CONFIG_ENV_IS_IN_NAND
  201. #define CONFIG_ENV_SIZE         CONFIG_SYS_NAND_BLOCK_SIZE
  202. #define CONFIG_ENV_OFFSET       CONFIG_SYS_MONITOR_LEN
  203. #define CONFIG_ENV_SIZE_REDUND      CONFIG_ENV_SIZE
  204. #define CONFIG_ENV_OFFSET_REDUND    (CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE)
  205. #else
  206. #define CONFIG_ENV_IS_NOWHERE
  207. #endif
  208.  
  209. /*
  210.  * File System
  211.  */
  212. #ifdef CONFIG_CMD_NAND
  213. #define CONFIG_CMD_MTDPARTS
  214. #define CONFIG_MTD_DEVICE
  215. #define CONFIG_MTD_PARTITIONS
  216. #endif
  217.  
  218. #endif /* __CONFIG_H */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement