]> git.ipfire.org Git - people/ms/u-boot.git/blame - include/configs/bf609-ezkit.h
configs: Re-sync with cmd/Kconfig
[people/ms/u-boot.git] / include / configs / bf609-ezkit.h
CommitLineData
320ec9df 1/*
a187559e 2 * U-Boot - Configuration file for BF609 EZ-Kit board
320ec9df
SZ
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
320ec9df
SZ
16/* For ez-board version 1.0, else undef this */
17#define CONFIG_BFIN_BOARD_VERSION_1_0
18
19/*
20 * Clock Settings
21 * CCLK = (CLKIN * VCO_MULT) / CCLK_DIV
22 * SCLK = (CLKIN * VCO_MULT) / SYSCLK_DIV
23 * SCLK0 = SCLK / SCLK0_DIV
24 * SCLK1 = SCLK / SCLK1_DIV
25 */
26/* CONFIG_CLKIN_HZ is any value in Hz */
27#define CONFIG_CLKIN_HZ (25000000)
28/* CLKIN_HALF controls the DF bit in PLL_CTL 0 = CLKIN */
29/* 1 = CLKIN / 2 */
30#define CONFIG_CLKIN_HALF (0)
31
32/* VCO_MULT controls the MSEL (multiplier) bits in PLL_CTL */
33/* Values can range from 0-127 (where 0 means 128) */
34#define CONFIG_VCO_MULT (20)
35
36/* CCLK_DIV controls the core clock divider */
37/* Values can range from 0-31 (where 0 means 32) */
38#define CONFIG_CCLK_DIV (1)
39/* SCLK_DIV controls the system clock divider */
40/* Values can range from 0-31 (where 0 means 32) */
41#define CONFIG_SCLK_DIV (4)
42/* Values can range from 0-7 (where 0 means 8) */
43#define CONFIG_SCLK0_DIV (1)
44#define CONFIG_SCLK1_DIV (1)
45/* DCLK_DIV controls the DDR clock divider */
46/* Values can range from 0-31 (where 0 means 32) */
47#define CONFIG_DCLK_DIV (2)
48/* OCLK_DIV controls the output clock divider */
49/* Values can range from 0-127 (where 0 means 128) */
50#define CONFIG_OCLK_DIV (16)
51
52/*
53 * Memory Settings
54 */
55#define CONFIG_MEM_SIZE 128
56
57#define CONFIG_SMC_GCTL_VAL 0x00000010
58#define CONFIG_SMC_B0CTL_VAL 0x01007011
59#define CONFIG_SMC_B0TIM_VAL 0x08170977
60#define CONFIG_SMC_B0ETIM_VAL 0x00092231
61
62#define CONFIG_SYS_MONITOR_LEN (768 * 1024)
63#define CONFIG_SYS_MALLOC_LEN (512 * 1024)
64
49c2da53 65#define CONFIG_HW_WATCHDOG
320ec9df
SZ
66/*
67 * Network Settings
68 */
69#define ADI_CMDS_NETWORK
70#define CONFIG_NETCONSOLE
320ec9df 71#define CONFIG_HOSTNAME "bf609-ezkit"
92a190aa 72#define CONFIG_PHY_ADDR 1
320ec9df 73#define CONFIG_DW_PORTS 1
320ec9df 74#define CONFIG_DW_ALTDESCRIPTOR
320ec9df
SZ
75#define CONFIG_MII
76
77/* i2c Settings */
c469703b 78#define CONFIG_SYS_I2C
fea9b69a 79#define CONFIG_SYS_I2C_ADI
320ec9df
SZ
80
81/*
82 * Flash Settings
83 */
320ec9df
SZ
84#undef CONFIG_CMD_JFFS2
85#define CONFIG_SYS_FLASH_CFI_WIDTH 2
86#define CONFIG_FLASH_CFI_DRIVER
87#define CONFIG_SYS_FLASH_BASE 0xb0000000
88#define CONFIG_SYS_FLASH_CFI
89#define CONFIG_SYS_FLASH_PROTECTION
90#define CONFIG_SYS_MAX_FLASH_BANKS 1
91#define CONFIG_SYS_MAX_FLASH_SECT 131
92#define CONFIG_CFI_FLASH_USE_WEAK_ACCESSORS
93
94/*
95 * SPI Settings
96 */
97#define CONFIG_BFIN_SPI6XX
98#define CONFIG_ENV_SPI_MAX_HZ 25000000
99#define CONFIG_SF_DEFAULT_SPEED 25000000
320ec9df
SZ
100#define CONFIG_SPI_FLASH_ALL
101
102/*
103 * Env Storage Settings
104 */
105#if (CONFIG_BFIN_BOOT_MODE == BFIN_BOOT_SPI_MASTER)
106#define CONFIG_ENV_IS_IN_SPI_FLASH
107#define CONFIG_ENV_OFFSET 0x10000
108#define CONFIG_ENV_SIZE 0x2000
109#define CONFIG_ENV_SECT_SIZE 0x10000
110#define CONFIG_ENV_IS_EMBEDDED_IN_LDR
111#elif (CONFIG_BFIN_BOOT_MODE == BFIN_BOOT_NAND)
112#define CONFIG_ENV_IS_IN_NAND
113#define CONFIG_ENV_OFFSET 0x60000
114#define CONFIG_ENV_SIZE 0x20000
115#else
116#define CONFIG_ENV_IS_IN_FLASH
117#define CONFIG_ENV_ADDR (CONFIG_SYS_FLASH_BASE + CONFIG_ENV_OFFSET)
118#define CONFIG_ENV_OFFSET 0x8000
119#define CONFIG_ENV_SIZE 0x8000
120#define CONFIG_ENV_SECT_SIZE 0x8000
121#define CONFIG_ENV_IS_EMBEDDED_IN_LDR
122#endif
123
124#define FLASHBOOT_ENV_SETTINGS "flashboot=bootm 0xB0100000\0"
125
126/*
127 * SDH Settings
128 */
129#define CONFIG_GENERIC_MMC
130#define CONFIG_MMC
131#define CONFIG_BFIN_SDH
132
133/*
134 * Misc Settings
135 */
136#define CONFIG_BOARD_EARLY_INIT_F
137#define CONFIG_UART_CONSOLE 0
138
7d861d95 139#define CONFIG_CMD_SOFTSWITCH
320ec9df
SZ
140
141#define CONFIG_SYS_MEMTEST_END (CONFIG_STACKBASE - 20*1024*1024 + 4)
142#define CONFIG_BFIN_SOFT_SWITCH
143
da34aae5
SZ
144#define CONFIG_ADI_GPIO2
145
320ec9df
SZ
146#if 0
147#define CONFIG_UART_MEM 1024
148#undef CONFIG_UART_CONSOLE
149#undef CONFIG_JTAG_CONSOLE
150#undef CONFIG_UART_CONSOLE_IS_JTAG
151#endif
152
955020c6
SZ
153#define CONFIG_BOARD_SIZE_LIMIT $$((512 * 1024))
154
f4d80384
SZ
155/*
156 * Run core 1 from L1 SRAM start address when init uboot on core 0
157 */
158/* #define CONFIG_CORE1_RUN 1 */
159
320ec9df
SZ
160/*
161 * Pull in common ADI header for remaining command/environment setup
162 */
163#include <configs/bfin_adi_common.h>
164#endif