developer | f4a079c | 2018-11-15 10:07:52 +0800 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
| 2 | /* |
| 3 | * Configuration for MediaTek MT7629 SoC |
| 4 | * |
| 5 | * Copyright (C) 2018 MediaTek Inc. |
| 6 | * Author: Ryder Lee <ryder.lee@mediatek.com> |
| 7 | */ |
| 8 | |
| 9 | #ifndef __MT7629_H |
| 10 | #define __MT7629_H |
| 11 | |
| 12 | #include <linux/sizes.h> |
| 13 | |
| 14 | /* Miscellaneous configurable options */ |
developer | f4a079c | 2018-11-15 10:07:52 +0800 | [diff] [blame] | 15 | |
developer | b8de3ee | 2018-12-20 16:12:57 +0800 | [diff] [blame] | 16 | #define CONFIG_SYS_NONCACHED_MEMORY SZ_1M |
developer | f4a079c | 2018-11-15 10:07:52 +0800 | [diff] [blame] | 17 | |
| 18 | /* Environment */ |
developer | f4a079c | 2018-11-15 10:07:52 +0800 | [diff] [blame] | 19 | |
| 20 | /* Defines for SPL */ |
developer | f4a079c | 2018-11-15 10:07:52 +0800 | [diff] [blame] | 21 | |
| 22 | #define CONFIG_SPI_ADDR 0x30000000 |
developer | f4a079c | 2018-11-15 10:07:52 +0800 | [diff] [blame] | 23 | #define CONFIG_SYS_UBOOT_BASE (CONFIG_SPI_ADDR + CONFIG_SPL_PAD_TO) |
| 24 | |
| 25 | /* SPL -> Uboot */ |
developer | f4a079c | 2018-11-15 10:07:52 +0800 | [diff] [blame] | 26 | |
| 27 | /* UBoot -> Kernel */ |
developer | f4a079c | 2018-11-15 10:07:52 +0800 | [diff] [blame] | 28 | |
| 29 | /* DRAM */ |
| 30 | #define CONFIG_SYS_SDRAM_BASE 0x40000000 |
| 31 | |
developer | b8de3ee | 2018-12-20 16:12:57 +0800 | [diff] [blame] | 32 | /* Ethernet */ |
| 33 | #define CONFIG_IPADDR 192.168.1.1 |
| 34 | #define CONFIG_SERVERIP 192.168.1.2 |
| 35 | |
developer | f4a079c | 2018-11-15 10:07:52 +0800 | [diff] [blame] | 36 | #endif |