Migrate CUSTOM_SYS_INIT_SP_ADDR to Kconfig using system-constants.h
[platform/kernel/u-boot.git] / arch / arm / mach-kirkwood / include / mach / config.h
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * (C) Copyright 2011
4  * Marvell Semiconductor <www.marvell.com>
5  * Written-by: Lei Wen <leiwen@marvell.com>
6  */
7
8 /*
9  * This file should be included in board config header file.
10  *
11  * It supports common definitions for Kirkwood platform
12  */
13
14 #ifndef _KW_CONFIG_H
15 #define _KW_CONFIG_H
16
17 #if defined (CONFIG_KW88F6281)
18 #include <asm/arch/kw88f6281.h>
19 #elif defined (CONFIG_KW88F6192)
20 #include <asm/arch/kw88f6192.h>
21 #else
22 #error "SOC Name not defined"
23 #endif /* CONFIG_KW88F6281 */
24
25 #include <asm/arch/soc.h>
26 #define CONFIG_KIRKWOOD_EGIGA_INIT      /* Enable GbePort0/1 for kernel */
27 #define CONFIG_KIRKWOOD_RGMII_PAD_1V8   /* Set RGMII Pad voltage to 1.8V */
28 #define CONFIG_KIRKWOOD_PCIE_INIT       /* Enable PCIE Port0 for kernel */
29
30 #define CONFIG_I2C_MVTWSI_BASE0 KW_TWSI_BASE
31 #define MV_UART_CONSOLE_BASE    KW_UART0_BASE
32 #define MV_SATA_BASE            KW_SATA_BASE
33 #define MV_SATA_PORT0_OFFSET    KW_SATA_PORT0_OFFSET
34 #define MV_SATA_PORT1_OFFSET    KW_SATA_PORT1_OFFSET
35
36 /*
37  * NAND configuration
38  */
39 #ifdef CONFIG_CMD_NAND
40 #define CONFIG_NAND_KIRKWOOD
41 #define CONFIG_SYS_NAND_BASE            0xD8000000      /* MV_DEFADR_NANDF */
42 #define NAND_ALLOW_ERASE_ALL            1
43 #endif
44
45 /*
46  * IDE Support on SATA ports
47  */
48 #ifdef CONFIG_IDE
49 #define __io
50 /* Data, registers and alternate blocks are at the same offset */
51 /* Each 8-bit ATA register is aligned to a 4-bytes address */
52 /* Controller supports 48-bits LBA addressing */
53 #define CONFIG_LBA48
54 /* CONFIG_IDE requires some #defines for ATA registers */
55 /* ATA registers base is at SATA controller base */
56 #endif /* CONFIG_IDE */
57
58 /* Use common timer */
59 #define CONFIG_SYS_TIMER_COUNTS_DOWN
60 #define CONFIG_SYS_TIMER_COUNTER        (MVEBU_TIMER_BASE + 0x14)
61 #define CONFIG_SYS_TIMER_RATE           CONFIG_SYS_TCLK
62
63 #endif /* _KW_CONFIG_H */