]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - arch/arm/include/asm/arch-armada-xp/config.h
Merge branch 'karo-tx-uboot' into kc-merge
[karo-tx-uboot.git] / arch / arm / include / asm / arch-armada-xp / config.h
1 /*
2  * (C) Copyright 2011
3  * Marvell Semiconductor <www.marvell.com>
4  * Written-by: Lei Wen <leiwen@marvell.com>
5  *
6  * SPDX-License-Identifier:     GPL-2.0+
7  */
8
9 /*
10  * This file should be included in board config header file.
11  *
12  * It supports common definitions for Armada XP platforms
13  */
14
15 #ifndef _ARMADA_XP_CONFIG_H
16 #define _ARMADA_XP_CONFIG_H
17
18 #include <asm/arch/soc.h>
19
20 #define MV88F78X60 /* for the DDR training bin_hdr code */
21
22 #define CONFIG_SYS_CACHELINE_SIZE       32
23
24 /*
25  * By default kwbimage.cfg from board specific folder is used
26  * If for some board, different configuration file need to be used,
27  * CONFIG_SYS_KWD_CONFIG should be defined in board specific header file
28  */
29 #ifndef CONFIG_SYS_KWD_CONFIG
30 #define CONFIG_SYS_KWD_CONFIG   $(CONFIG_BOARDDIR)/kwbimage.cfg
31 #endif /* CONFIG_SYS_KWD_CONFIG */
32
33 /* Add target to build it automatically upon "make" */
34 #define CONFIG_BUILD_TARGET     "u-boot.kwb"
35
36 /* end of 16M scrubbed by training in bootrom */
37 #define CONFIG_SYS_INIT_SP_ADDR         0x00FF0000
38 #define CONFIG_NR_DRAM_BANKS_MAX        2
39
40 #define MV_UART_CONSOLE_BASE            MVEBU_UART0_BASE
41
42 /*
43  * SPI Flash configuration
44  */
45 #ifdef CONFIG_CMD_SF
46 #define CONFIG_HARD_SPI                 1
47 #define CONFIG_KIRKWOOD_SPI             1
48 #ifndef CONFIG_ENV_SPI_BUS
49 # define CONFIG_ENV_SPI_BUS             0
50 #endif
51 #ifndef CONFIG_ENV_SPI_CS
52 # define CONFIG_ENV_SPI_CS              0
53 #endif
54 #ifndef CONFIG_ENV_SPI_MAX_HZ
55 # define CONFIG_ENV_SPI_MAX_HZ          50000000
56 #endif
57 #endif
58
59 /*
60  * Ethernet Driver configuration
61  */
62 #ifdef CONFIG_CMD_NET
63 #define CONFIG_CMD_MII
64 #define CONFIG_MII              /* expose smi ove miiphy interface */
65 #define CONFIG_MVNETA           /* Enable Marvell Gbe Controller Driver */
66 #define CONFIG_PHYLIB
67 #define CONFIG_ENV_OVERWRITE    /* ethaddr can be reprogrammed */
68 #define CONFIG_PHY_GIGE         /* GbE speed/duplex detect */
69 #endif /* CONFIG_CMD_NET */
70
71 /*
72  * I2C related stuff
73  */
74 #ifdef CONFIG_CMD_I2C
75 #ifndef CONFIG_SYS_I2C_SOFT
76 #define CONFIG_I2C_MVTWSI
77 #endif
78 #define CONFIG_SYS_I2C_SLAVE            0x0
79 #define CONFIG_SYS_I2C_SPEED            100000
80 #endif
81
82 #endif /* _ARMADA_XP_CONFIG_H */