1 /* 2 * include/configs/alt.h 3 * This file is alt board configuration. 4 * 5 * Copyright (C) 2014 Renesas Electronics Corporation 6 * 7 * SPDX-License-Identifier: GPL-2.0 8 */ 9 10 #ifndef __ALT_H 11 #define __ALT_H 12 13 #undef DEBUG 14 15 #include "rcar-gen2-common.h" 16 17 #define CONFIG_SYS_INIT_SP_ADDR 0x4f000000 18 #define STACK_AREA_SIZE 0x00100000 19 #define LOW_LEVEL_MERAM_STACK \ 20 (CONFIG_SYS_INIT_SP_ADDR + STACK_AREA_SIZE - 4) 21 22 /* MEMORY */ 23 #define RCAR_GEN2_SDRAM_BASE 0x40000000 24 #define RCAR_GEN2_SDRAM_SIZE (1024u * 1024 * 1024) 25 #define RCAR_GEN2_UBOOT_SDRAM_SIZE (512 * 1024 * 1024) 26 27 /* FLASH */ 28 #define CONFIG_SPI_FLASH_QUAD 29 30 /* SH Ether */ 31 #define CONFIG_SH_ETHER_USE_PORT 0 32 #define CONFIG_SH_ETHER_PHY_ADDR 0x1 33 #define CONFIG_SH_ETHER_PHY_MODE PHY_INTERFACE_MODE_RMII 34 #define CONFIG_SH_ETHER_CACHE_WRITEBACK 35 #define CONFIG_SH_ETHER_CACHE_INVALIDATE 36 #define CONFIG_SH_ETHER_ALIGNE_SIZE 64 37 #define CONFIG_BITBANGMII 38 #define CONFIG_BITBANGMII_MULTI 39 40 /* Board Clock */ 41 #define RMOBILE_XTAL_CLK 20000000u 42 #define CONFIG_SYS_CLK_FREQ RMOBILE_XTAL_CLK 43 #define CONFIG_SH_TMU_CLK_FREQ (CONFIG_SYS_CLK_FREQ / 2) 44 45 #define CONFIG_SYS_TMU_CLK_DIV 4 46 47 #define CONFIG_EXTRA_ENV_SETTINGS \ 48 "fdt_high=0xffffffff\0" \ 49 "initrd_high=0xffffffff\0" 50 51 /* SPL support */ 52 #define CONFIG_SPL_TEXT_BASE 0xe6300000 53 #define CONFIG_SPL_STACK 0xe6340000 54 #define CONFIG_SPL_MAX_SIZE 0x4000 55 #define CONFIG_SYS_SPI_U_BOOT_OFFS 0x140000 56 #ifdef CONFIG_SPL_BUILD 57 #define CONFIG_CONS_SCIF2 58 #define CONFIG_SH_SCIF_CLK_FREQ 65000000 59 #endif 60 61 #endif /* __ALT_H */ 62