Blame view

include/configs/smdkv310.h 2.67 KB
e21185bae   Chander Kashyap   ARMV7: Add suppor...
1
2
3
  /*
   * Copyright (C) 2011 Samsung Electronics
   *
393cb3619   Chander Kashyap   S5PC2XX: Rename S...
4
   * Configuration settings for the SAMSUNG SMDKV310 (EXYNOS4210) board.
e21185bae   Chander Kashyap   ARMV7: Add suppor...
5
   *
1a4596601   Wolfgang Denk   Add GPL-2.0+ SPDX...
6
   * SPDX-License-Identifier:	GPL-2.0+
e21185bae   Chander Kashyap   ARMV7: Add suppor...
7
8
9
10
   */
  
  #ifndef __CONFIG_H
  #define __CONFIG_H
1d5511000   Simon Glass   config: Move smdk...
11
12
13
  #include "exynos4-common.h"
  
  #undef CONFIG_BOARD_COMMON
e30824f43   Marek Vasut   usb: s3c-otg: Ren...
14
  #undef CONFIG_USB_GADGET_DWC2_OTG_PHY
1d5511000   Simon Glass   config: Move smdk...
15
  #undef CONFIG_REVISION_TAG
1d5511000   Simon Glass   config: Move smdk...
16

e21185bae   Chander Kashyap   ARMV7: Add suppor...
17
  /* High Level Configuration Options */
393cb3619   Chander Kashyap   S5PC2XX: Rename S...
18
  #define CONFIG_EXYNOS4210		1	/* which is a EXYNOS4210 SoC */
e21185bae   Chander Kashyap   ARMV7: Add suppor...
19

b3c5a49b0   Chander Kashyap   SMDKV310: Initial...
20
21
  /* Mach Type */
  #define CONFIG_MACH_TYPE		MACH_TYPE_SMDKV310
e21185bae   Chander Kashyap   ARMV7: Add suppor...
22
  #define CONFIG_SYS_SDRAM_BASE		0x40000000
e21185bae   Chander Kashyap   ARMV7: Add suppor...
23

e21185bae   Chander Kashyap   ARMV7: Add suppor...
24
25
26
  /* Handling Sleep Mode*/
  #define S5P_CHECK_SLEEP			0x00000BAD
  #define S5P_CHECK_DIDLE			0xBAD00000
643be9c07   Rajeshwari Shinde   EXYNOS: Move file...
27
  #define S5P_CHECK_LPA			0xABAD0000
e21185bae   Chander Kashyap   ARMV7: Add suppor...
28

e21185bae   Chander Kashyap   ARMV7: Add suppor...
29
  /* select serial console configuration */
e21185bae   Chander Kashyap   ARMV7: Add suppor...
30
  #define CONFIG_SERIAL1			1	/* use SERIAL 1 */
393cb3619   Chander Kashyap   S5PC2XX: Rename S...
31
  #define EXYNOS4_DEFAULT_UART_OFFSET	0x010000
e21185bae   Chander Kashyap   ARMV7: Add suppor...
32

e21185bae   Chander Kashyap   ARMV7: Add suppor...
33
34
  /* allow to overwrite serial and ethaddr */
  #define CONFIG_ENV_OVERWRITE
5187d8dd5   Chander Kashyap   smdkv310: use spl...
35
  /* MMC SPL */
643be9c07   Rajeshwari Shinde   EXYNOS: Move file...
36
  #define CONFIG_SKIP_LOWLEVEL_INIT
9b3ab1c97   Chander Kashyap   smdkv310: use mac...
37
  #define COPY_BL2_FNPTR_ADDR	0x00002488
e21185bae   Chander Kashyap   ARMV7: Add suppor...
38

8a00061e2   Inderpal Singh   exynos: Update or...
39
  #define CONFIG_SPL_TEXT_BASE	0x02021410
e21185bae   Chander Kashyap   ARMV7: Add suppor...
40
41
42
  #define CONFIG_BOOTCOMMAND	"fatload mmc 0 40007000 uImage; bootm 40007000"
  
  /* Miscellaneous configurable options */
e21185bae   Chander Kashyap   ARMV7: Add suppor...
43
  #define CONFIG_DEFAULT_CONSOLE		"console=ttySAC2,115200n8\0"
e21185bae   Chander Kashyap   ARMV7: Add suppor...
44
45
46
47
  /* memtest works on */
  #define CONFIG_SYS_MEMTEST_START	CONFIG_SYS_SDRAM_BASE
  #define CONFIG_SYS_MEMTEST_END		(CONFIG_SYS_SDRAM_BASE + 0x6000000)
  #define CONFIG_SYS_LOAD_ADDR		(CONFIG_SYS_SDRAM_BASE + 0x3E00000)
e21185bae   Chander Kashyap   ARMV7: Add suppor...
48
49
50
51
52
53
54
55
56
57
58
59
60
  /* SMDKV310 has 4 bank of DRAM */
  #define CONFIG_NR_DRAM_BANKS	4
  #define SDRAM_BANK_SIZE		(512UL << 20UL)	/* 512 MB */
  #define PHYS_SDRAM_1		CONFIG_SYS_SDRAM_BASE
  #define PHYS_SDRAM_1_SIZE	SDRAM_BANK_SIZE
  #define PHYS_SDRAM_2		(CONFIG_SYS_SDRAM_BASE + SDRAM_BANK_SIZE)
  #define PHYS_SDRAM_2_SIZE	SDRAM_BANK_SIZE
  #define PHYS_SDRAM_3		(CONFIG_SYS_SDRAM_BASE + (2 * SDRAM_BANK_SIZE))
  #define PHYS_SDRAM_3_SIZE	SDRAM_BANK_SIZE
  #define PHYS_SDRAM_4		(CONFIG_SYS_SDRAM_BASE + (3 * SDRAM_BANK_SIZE))
  #define PHYS_SDRAM_4_SIZE	SDRAM_BANK_SIZE
  
  /* FLASH and environment organization */
e21185bae   Chander Kashyap   ARMV7: Add suppor...
61

e21185bae   Chander Kashyap   ARMV7: Add suppor...
62
63
64
65
  #define CONFIG_CLK_1000_400_200
  
  /* MIU (Memory Interleaving Unit) */
  #define CONFIG_MIU_2BIT_INTERLEAVED
e21185bae   Chander Kashyap   ARMV7: Add suppor...
66
67
68
69
70
  #define CONFIG_SYS_MMC_ENV_DEV		0
  #define CONFIG_ENV_SIZE			(16 << 10)	/* 16 KB */
  #define RESERVE_BLOCK_SIZE		(512)
  #define BL1_SIZE			(16 << 10) /*16 K reserved for BL1*/
  #define CONFIG_ENV_OFFSET		(RESERVE_BLOCK_SIZE + BL1_SIZE)
e21185bae   Chander Kashyap   ARMV7: Add suppor...
71

643be9c07   Rajeshwari Shinde   EXYNOS: Move file...
72
73
74
  #define CONFIG_SPL_MAX_FOOTPRINT	(14 * 1024)
  
  #define CONFIG_SYS_INIT_SP_ADDR		0x02040000
e21185bae   Chander Kashyap   ARMV7: Add suppor...
75

a187559e3   Bin Meng   Use correct spell...
76
  /* U-Boot copy size from boot Media to DRAM.*/
e21185bae   Chander Kashyap   ARMV7: Add suppor...
77
78
79
80
81
82
  #define	COPY_BL2_SIZE		0x80000
  #define BL2_START_OFFSET	((CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE)/512)
  #define BL2_SIZE_BLOC_COUNT	(COPY_BL2_SIZE/512)
  
  /* Ethernet Controllor Driver */
  #ifdef CONFIG_CMD_NET
e21185bae   Chander Kashyap   ARMV7: Add suppor...
83
84
  #define CONFIG_ENV_SROM_BANK		1
  #endif /*CONFIG_CMD_NET*/
07407d97f   Thomas Abraham   SMDKV310: Enable ...
85

e21185bae   Chander Kashyap   ARMV7: Add suppor...
86
  #endif	/* __CONFIG_H */