blob: 5fe06866afe8c8cecc3f22bc41625536244a1e5c [file] [log] [blame]
Nobuhiro Iwamatsufdf7c652016-04-01 03:51:36 +09001/*
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
Nobuhiro Iwamatsufdf7c652016-04-01 03:51:36 +090015#define CONFIG_CMD_DFL
16#define CONFIG_CMD_SDRAM
Nobuhiro Iwamatsufdf7c652016-04-01 03:51:36 +090017#define CONFIG_CMD_FAT
18#define CONFIG_CMD_EXT2
19#define CONFIG_CMD_EXT4
20#define CONFIG_CMD_EXT4_WRITE
Nobuhiro Iwamatsu04de0cf2016-08-04 13:45:48 +090021#define CONFIG_CMD_FDT
Nobuhiro Iwamatsufdf7c652016-04-01 03:51:36 +090022
23#define CONFIG_REMAKE_ELF
24
25/* boot option */
26#define CONFIG_SUPPORT_RAW_INITRD
27
28/* Support File sytems */
29#define CONFIG_FAT_WRITE
Nobuhiro Iwamatsufdf7c652016-04-01 03:51:36 +090030#define CONFIG_SUPPORT_VFAT
31#define CONFIG_FS_EXT4
32#define CONFIG_EXT4_WRITE
33
34#define CONFIG_CMDLINE_TAG
35#define CONFIG_SETUP_MEMORY_TAGS
36#define CONFIG_INITRD_TAG
37#define CONFIG_CMDLINE_EDITING
38#define CONFIG_OF_LIBFDT
39
40#define CONFIG_BAUDRATE 115200
Nobuhiro Iwamatsufdf7c652016-04-01 03:51:36 +090041
Nobuhiro Iwamatsufdf7c652016-04-01 03:51:36 +090042#undef CONFIG_SHOW_BOOT_PROGRESS
43
44#define CONFIG_ARCH_CPU_INIT
Nobuhiro Iwamatsufdf7c652016-04-01 03:51:36 +090045
46#define CONFIG_SH_GPIO_PFC
47
48/* console */
Nobuhiro Iwamatsufdf7c652016-04-01 03:51:36 +090049
50#define CONFIG_SYS_LONGHELP
51#define CONFIG_SYS_CBSIZE 256
52#define CONFIG_SYS_PBSIZE 256
53#define CONFIG_SYS_MAXARGS 16
54#define CONFIG_SYS_BARGSIZE 512
55#define CONFIG_SYS_BAUDRATE_TABLE { 115200, 38400 }
56
57/* MEMORY */
58#define CONFIG_SYS_TEXT_BASE 0x49000000
59#define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_TEXT_BASE + 0x7fff0)
60
61#define CONFIG_SYS_SDRAM_BASE (0x48000000)
62#define CONFIG_SYS_SDRAM_SIZE (1024u * 1024 * 1024 - 0x08000000)
63#define CONFIG_SYS_LOAD_ADDR (0x48080000)
64#define CONFIG_NR_DRAM_BANKS 1
65
66#define CONFIG_SYS_MONITOR_BASE 0x00000000
67#define CONFIG_SYS_MONITOR_LEN (256 * 1024)
68#define CONFIG_SYS_MALLOC_LEN (1 * 1024 * 1024)
69#define CONFIG_SYS_BOOTMAPSZ (8 * 1024 * 1024)
70
71/* ENV setting */
72#define CONFIG_ENV_OVERWRITE
73#define CONFIG_ENV_SECT_SIZE (128 * 1024)
74#define CONFIG_ENV_SIZE (CONFIG_ENV_SECT_SIZE)
75#define CONFIG_ENV_SIZE_REDUND (CONFIG_ENV_SIZE)
76
77#define CONFIG_EXTRA_ENV_SETTINGS \
78 "fdt_high=0xffffffffffffffff\0" \
79 "initrd_high=0xffffffffffffffff\0"
80
81#define CONFIG_BOOTARGS \
82 "console=ttySC0,115200 rw root=/dev/nfs " \
83 "nfsroot=192.168.0.1:/export/rfs ip=192.168.0.20"
84
85#define CONFIG_BOOTCOMMAND \
86 "tftp 0x48080000 Image; " \
87 "tftp 0x48000000 Image-r8a7795-salvator-x.dtb; " \
88 "booti 0x48080000 - 0x48000000"
89
90#endif /* __RCAR_GEN3_COMMON_H */