Nobuhiro Iwamatsu | e525d34 | 2016-04-01 03:51:36 +0900 | [diff] [blame] | 1 | /* |
| 2 | * include/configs/rcar-gen3-common.h |
| 3 | * This file is R-Car Gen3 common configuration file. |
| 4 | * |
| 5 | * Copyright (C) 2015 Renesas Electronics Corporation |
| 6 | * |
| 7 | * SPDX-License-Identifier: GPL-2.0+ |
| 8 | */ |
| 9 | |
| 10 | #ifndef __RCAR_GEN3_COMMON_H |
| 11 | #define __RCAR_GEN3_COMMON_H |
| 12 | |
| 13 | #include <asm/arch/rmobile.h> |
| 14 | |
| 15 | #define CONFIG_CMD_BOOTI |
Nobuhiro Iwamatsu | e525d34 | 2016-04-01 03:51:36 +0900 | [diff] [blame] | 16 | #define CONFIG_CMD_DFL |
| 17 | #define CONFIG_CMD_SDRAM |
Nobuhiro Iwamatsu | e525d34 | 2016-04-01 03:51:36 +0900 | [diff] [blame] | 18 | #define CONFIG_CMD_FAT |
| 19 | #define CONFIG_CMD_EXT2 |
| 20 | #define CONFIG_CMD_EXT4 |
| 21 | #define CONFIG_CMD_EXT4_WRITE |
Nobuhiro Iwamatsu | b1db954 | 2016-08-04 13:45:48 +0900 | [diff] [blame^] | 22 | #define CONFIG_CMD_FDT |
Nobuhiro Iwamatsu | e525d34 | 2016-04-01 03:51:36 +0900 | [diff] [blame] | 23 | |
| 24 | #define CONFIG_REMAKE_ELF |
| 25 | |
| 26 | /* boot option */ |
| 27 | #define CONFIG_SUPPORT_RAW_INITRD |
| 28 | |
| 29 | /* Support File sytems */ |
| 30 | #define CONFIG_FAT_WRITE |
| 31 | #define CONFIG_DOS_PARTITION |
| 32 | #define CONFIG_SUPPORT_VFAT |
| 33 | #define CONFIG_FS_EXT4 |
| 34 | #define CONFIG_EXT4_WRITE |
| 35 | |
| 36 | #define CONFIG_CMDLINE_TAG |
| 37 | #define CONFIG_SETUP_MEMORY_TAGS |
| 38 | #define CONFIG_INITRD_TAG |
| 39 | #define CONFIG_CMDLINE_EDITING |
| 40 | #define CONFIG_OF_LIBFDT |
| 41 | |
| 42 | #define CONFIG_BAUDRATE 115200 |
Nobuhiro Iwamatsu | e525d34 | 2016-04-01 03:51:36 +0900 | [diff] [blame] | 43 | |
| 44 | #define CONFIG_VERSION_VARIABLE |
| 45 | #undef CONFIG_SHOW_BOOT_PROGRESS |
| 46 | |
| 47 | #define CONFIG_ARCH_CPU_INIT |
| 48 | #define CONFIG_DISPLAY_CPUINFO |
| 49 | #define CONFIG_DISPLAY_BOARDINFO |
| 50 | #define CONFIG_BOARD_EARLY_INIT_F |
| 51 | |
| 52 | #define CONFIG_SH_GPIO_PFC |
| 53 | |
| 54 | /* console */ |
| 55 | #undef CONFIG_SYS_CONSOLE_INFO_QUIET |
| 56 | #undef CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE |
| 57 | #undef CONFIG_SYS_CONSOLE_ENV_OVERWRITE |
| 58 | |
| 59 | #define CONFIG_SYS_LONGHELP |
| 60 | #define CONFIG_SYS_CBSIZE 256 |
| 61 | #define CONFIG_SYS_PBSIZE 256 |
| 62 | #define CONFIG_SYS_MAXARGS 16 |
| 63 | #define CONFIG_SYS_BARGSIZE 512 |
| 64 | #define CONFIG_SYS_BAUDRATE_TABLE { 115200, 38400 } |
| 65 | |
| 66 | /* MEMORY */ |
| 67 | #define CONFIG_SYS_TEXT_BASE 0x49000000 |
| 68 | #define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_TEXT_BASE + 0x7fff0) |
| 69 | |
| 70 | #define CONFIG_SYS_SDRAM_BASE (0x48000000) |
| 71 | #define CONFIG_SYS_SDRAM_SIZE (1024u * 1024 * 1024 - 0x08000000) |
| 72 | #define CONFIG_SYS_LOAD_ADDR (0x48080000) |
| 73 | #define CONFIG_NR_DRAM_BANKS 1 |
| 74 | |
| 75 | #define CONFIG_SYS_MONITOR_BASE 0x00000000 |
| 76 | #define CONFIG_SYS_MONITOR_LEN (256 * 1024) |
| 77 | #define CONFIG_SYS_MALLOC_LEN (1 * 1024 * 1024) |
| 78 | #define CONFIG_SYS_BOOTMAPSZ (8 * 1024 * 1024) |
| 79 | |
| 80 | /* ENV setting */ |
| 81 | #define CONFIG_ENV_OVERWRITE |
| 82 | #define CONFIG_ENV_SECT_SIZE (128 * 1024) |
| 83 | #define CONFIG_ENV_SIZE (CONFIG_ENV_SECT_SIZE) |
| 84 | #define CONFIG_ENV_SIZE_REDUND (CONFIG_ENV_SIZE) |
| 85 | |
| 86 | #define CONFIG_EXTRA_ENV_SETTINGS \ |
| 87 | "fdt_high=0xffffffffffffffff\0" \ |
| 88 | "initrd_high=0xffffffffffffffff\0" |
| 89 | |
| 90 | #define CONFIG_BOOTARGS \ |
| 91 | "console=ttySC0,115200 rw root=/dev/nfs " \ |
| 92 | "nfsroot=192.168.0.1:/export/rfs ip=192.168.0.20" |
| 93 | |
| 94 | #define CONFIG_BOOTCOMMAND \ |
| 95 | "tftp 0x48080000 Image; " \ |
| 96 | "tftp 0x48000000 Image-r8a7795-salvator-x.dtb; " \ |
| 97 | "booti 0x48080000 - 0x48000000" |
| 98 | |
| 99 | #endif /* __RCAR_GEN3_COMMON_H */ |