blob: 878009ff6615a2e4f2e6aa8c4b75ec8d785e2311 [file] [log] [blame]
Sonic Zhang9e469b42012-08-16 12:08:31 +08001/*
2 * U-boot - Configuration file for BF609 EZ-Kit board
3 */
4
5#ifndef __CONFIG_BF609_EZKIT_H__
6#define __CONFIG_BF609_EZKIT_H__
7
8#include <asm/config-pre.h>
9
10/*
11 * Processor Settings
12 */
13#define CONFIG_BFIN_CPU bf609-0.0
14#define CONFIG_BFIN_BOOT_MODE BFIN_BOOT_PARA
15
16
17/* For ez-board version 1.0, else undef this */
18#define CONFIG_BFIN_BOARD_VERSION_1_0
19
20/*
21 * Clock Settings
22 * CCLK = (CLKIN * VCO_MULT) / CCLK_DIV
23 * SCLK = (CLKIN * VCO_MULT) / SYSCLK_DIV
24 * SCLK0 = SCLK / SCLK0_DIV
25 * SCLK1 = SCLK / SCLK1_DIV
26 */
27/* CONFIG_CLKIN_HZ is any value in Hz */
28#define CONFIG_CLKIN_HZ (25000000)
29/* CLKIN_HALF controls the DF bit in PLL_CTL 0 = CLKIN */
30/* 1 = CLKIN / 2 */
31#define CONFIG_CLKIN_HALF (0)
32
33/* VCO_MULT controls the MSEL (multiplier) bits in PLL_CTL */
34/* Values can range from 0-127 (where 0 means 128) */
35#define CONFIG_VCO_MULT (20)
36
37/* CCLK_DIV controls the core clock divider */
38/* Values can range from 0-31 (where 0 means 32) */
39#define CONFIG_CCLK_DIV (1)
40/* SCLK_DIV controls the system clock divider */
41/* Values can range from 0-31 (where 0 means 32) */
42#define CONFIG_SCLK_DIV (4)
43/* Values can range from 0-7 (where 0 means 8) */
44#define CONFIG_SCLK0_DIV (1)
45#define CONFIG_SCLK1_DIV (1)
46/* DCLK_DIV controls the DDR clock divider */
47/* Values can range from 0-31 (where 0 means 32) */
48#define CONFIG_DCLK_DIV (2)
49/* OCLK_DIV controls the output clock divider */
50/* Values can range from 0-127 (where 0 means 128) */
51#define CONFIG_OCLK_DIV (16)
52
53/*
54 * Memory Settings
55 */
56#define CONFIG_MEM_SIZE 128
57
58#define CONFIG_SMC_GCTL_VAL 0x00000010
59#define CONFIG_SMC_B0CTL_VAL 0x01007011
60#define CONFIG_SMC_B0TIM_VAL 0x08170977
61#define CONFIG_SMC_B0ETIM_VAL 0x00092231
62
63#define CONFIG_SYS_MONITOR_LEN (768 * 1024)
64#define CONFIG_SYS_MALLOC_LEN (512 * 1024)
65
Bob Liu6cdbce62011-12-27 15:05:53 +080066#define CONFIG_HW_WATCHDOG
Sonic Zhang9e469b42012-08-16 12:08:31 +080067/*
68 * Network Settings
69 */
70#define ADI_CMDS_NETWORK
71#define CONFIG_NETCONSOLE
72#define CONFIG_NET_MULTI
73#define CONFIG_HOSTNAME "bf609-ezkit"
74#define CONFIG_DESIGNWARE_ETH
Alexey Brodkin9a0b1302014-01-22 20:54:06 +040075#define CONFIG_PHY_ADDR 1
Sonic Zhang9e469b42012-08-16 12:08:31 +080076#define CONFIG_DW_PORTS 1
Sonic Zhang9e469b42012-08-16 12:08:31 +080077#define CONFIG_DW_ALTDESCRIPTOR
78#define CONFIG_CMD_NET
79#define CONFIG_CMD_MII
80#define CONFIG_MII
Alexey Brodkin9a0b1302014-01-22 20:54:06 +040081#define CONFIG_PHYLIB
Sonic Zhang9e469b42012-08-16 12:08:31 +080082
83/* i2c Settings */
Scott Jiang80d27fa2014-11-13 15:30:55 +080084#define CONFIG_SYS_I2C
Scott Jiang655761e2014-11-13 15:30:53 +080085#define CONFIG_SYS_I2C_ADI
Sonic Zhang9e469b42012-08-16 12:08:31 +080086
87/*
88 * Flash Settings
89 */
90#undef CONFIG_CMD_IMLS
91#undef CONFIG_CMD_JFFS2
92#define CONFIG_SYS_FLASH_CFI_WIDTH 2
93#define CONFIG_FLASH_CFI_DRIVER
94#define CONFIG_SYS_FLASH_BASE 0xb0000000
95#define CONFIG_SYS_FLASH_CFI
96#define CONFIG_SYS_FLASH_PROTECTION
97#define CONFIG_SYS_MAX_FLASH_BANKS 1
98#define CONFIG_SYS_MAX_FLASH_SECT 131
99#define CONFIG_CFI_FLASH_USE_WEAK_ACCESSORS
100
101/*
102 * SPI Settings
103 */
104#define CONFIG_BFIN_SPI6XX
105#define CONFIG_ENV_SPI_MAX_HZ 25000000
106#define CONFIG_SF_DEFAULT_SPEED 25000000
107#define CONFIG_SPI_FLASH
108#define CONFIG_SPI_FLASH_ALL
109
110/*
111 * Env Storage Settings
112 */
113#if (CONFIG_BFIN_BOOT_MODE == BFIN_BOOT_SPI_MASTER)
114#define CONFIG_ENV_IS_IN_SPI_FLASH
115#define CONFIG_ENV_OFFSET 0x10000
116#define CONFIG_ENV_SIZE 0x2000
117#define CONFIG_ENV_SECT_SIZE 0x10000
118#define CONFIG_ENV_IS_EMBEDDED_IN_LDR
119#elif (CONFIG_BFIN_BOOT_MODE == BFIN_BOOT_NAND)
120#define CONFIG_ENV_IS_IN_NAND
121#define CONFIG_ENV_OFFSET 0x60000
122#define CONFIG_ENV_SIZE 0x20000
123#else
124#define CONFIG_ENV_IS_IN_FLASH
125#define CONFIG_ENV_ADDR (CONFIG_SYS_FLASH_BASE + CONFIG_ENV_OFFSET)
126#define CONFIG_ENV_OFFSET 0x8000
127#define CONFIG_ENV_SIZE 0x8000
128#define CONFIG_ENV_SECT_SIZE 0x8000
129#define CONFIG_ENV_IS_EMBEDDED_IN_LDR
130#endif
131
132#define FLASHBOOT_ENV_SETTINGS "flashboot=bootm 0xB0100000\0"
133
134/*
135 * SDH Settings
136 */
137#define CONFIG_GENERIC_MMC
138#define CONFIG_MMC
139#define CONFIG_BFIN_SDH
140
141/*
142 * Misc Settings
143 */
144#define CONFIG_BOARD_EARLY_INIT_F
145#define CONFIG_UART_CONSOLE 0
146
147#define CONFIG_CMD_MEMORY
Bob Liua671b702013-02-05 19:05:41 +0800148#define CONFIG_CMD_SOFTSWITCH
Sonic Zhang9e469b42012-08-16 12:08:31 +0800149
150#define CONFIG_SYS_MEMTEST_END (CONFIG_STACKBASE - 20*1024*1024 + 4)
151#define CONFIG_BFIN_SOFT_SWITCH
152
Sonic Zhang3edc3f32013-05-02 13:46:21 +0800153#define CONFIG_ADI_GPIO2
154
Sonic Zhang9e469b42012-08-16 12:08:31 +0800155#if 0
156#define CONFIG_UART_MEM 1024
157#undef CONFIG_UART_CONSOLE
158#undef CONFIG_JTAG_CONSOLE
159#undef CONFIG_UART_CONSOLE_IS_JTAG
160#endif
161
Sonic Zhangae26b402013-02-20 18:05:16 +0800162#define CONFIG_BOARD_SIZE_LIMIT $$((512 * 1024))
163
Sonic Zhang9e469b42012-08-16 12:08:31 +0800164/*
Sonic Zhang8a9561c2013-02-05 18:57:49 +0800165 * Run core 1 from L1 SRAM start address when init uboot on core 0
166 */
167/* #define CONFIG_CORE1_RUN 1 */
168
169/*
Sonic Zhang9e469b42012-08-16 12:08:31 +0800170 * Pull in common ADI header for remaining command/environment setup
171 */
172#include <configs/bfin_adi_common.h>
173#endif