Nobuhiro Iwamatsu | 7fbb92b | 2013-11-21 17:07:46 +0900 | [diff] [blame] | 1 | /* |
| 2 | * include/configs/koelsch.h |
| 3 | * |
| 4 | * Copyright (C) 2013 Renesas Electronics Corporation |
| 5 | * |
| 6 | * SPDX-License-Identifier: GPL-2.0 |
| 7 | */ |
| 8 | |
| 9 | #ifndef __KOELSCH_H |
| 10 | #define __KOELSCH_H |
| 11 | |
| 12 | #undef DEBUG |
| 13 | #define CONFIG_ARMV7 |
| 14 | #define CONFIG_R8A7791 |
| 15 | #define CONFIG_RMOBILE |
| 16 | #define CONFIG_RMOBILE_BOARD_STRING "Koelsch" |
| 17 | #define CONFIG_SH_GPIO_PFC |
| 18 | |
| 19 | #include <asm/arch/rmobile.h> |
| 20 | |
| 21 | #define CONFIG_CMD_EDITENV |
| 22 | #define CONFIG_CMD_SAVEENV |
| 23 | #define CONFIG_CMD_MEMORY |
| 24 | #define CONFIG_CMD_DFL |
| 25 | #define CONFIG_CMD_SDRAM |
| 26 | #define CONFIG_CMD_RUN |
| 27 | #define CONFIG_CMD_LOADS |
| 28 | #define CONFIG_CMD_BOOTZ |
| 29 | #define CONFIG_CMD_FLASH |
| 30 | |
| 31 | #define CONFIG_CMDLINE_TAG |
| 32 | #define CONFIG_SETUP_MEMORY_TAGS |
| 33 | #define CONFIG_INITRD_TAG |
| 34 | #define CONFIG_CMDLINE_EDITING |
| 35 | |
| 36 | #define CONFIG_OF_LIBFDT |
| 37 | #define BOARD_LATE_INIT |
| 38 | |
| 39 | #define CONFIG_BAUDRATE 38400 |
| 40 | #define CONFIG_BOOTDELAY 3 |
| 41 | #define CONFIG_BOOTARGS "" |
| 42 | |
| 43 | #define CONFIG_VERSION_VARIABLE |
| 44 | #undef CONFIG_SHOW_BOOT_PROGRESS |
| 45 | |
| 46 | #define CONFIG_ARCH_CPU_INIT |
| 47 | #define CONFIG_DISPLAY_CPUINFO |
| 48 | #define CONFIG_DISPLAY_BOARDINFO |
| 49 | #define CONFIG_BOARD_EARLY_INIT_F |
| 50 | #define CONFIG_USE_ARCH_MEMSET |
| 51 | #define CONFIG_USE_ARCH_MEMCPY |
| 52 | #define CONFIG_TMU_TIMER |
| 53 | |
| 54 | /* STACK */ |
| 55 | #define CONFIG_SYS_INIT_SP_ADDR 0xE633fffc |
| 56 | #define STACK_AREA_SIZE 0xC000 |
| 57 | #define LOW_LEVEL_MERAM_STACK \ |
| 58 | (CONFIG_SYS_INIT_SP_ADDR + STACK_AREA_SIZE - 4) |
| 59 | |
| 60 | /* MEMORY */ |
| 61 | #define KOELSCH_SDRAM_BASE 0x40000000 |
| 62 | #define KOELSCH_SDRAM_SIZE (2048u * 1024 * 1024) |
| 63 | #define KOELSCH_UBOOT_SDRAM_SIZE (512 * 1024 * 1024) |
| 64 | |
| 65 | #define CONFIG_SYS_LONGHELP |
| 66 | #define CONFIG_SYS_CBSIZE 256 |
| 67 | #define CONFIG_SYS_PBSIZE 256 |
| 68 | #define CONFIG_SYS_MAXARGS 16 |
| 69 | #define CONFIG_SYS_BARGSIZE 512 |
| 70 | #define CONFIG_SYS_BAUDRATE_TABLE { 38400, 115200 } |
| 71 | |
| 72 | /* SCIF */ |
| 73 | #define CONFIG_SCIF_CONSOLE |
| 74 | #define CONFIG_CONS_SCIF0 |
| 75 | #define SCIF0_BASE 0xe6e60000 |
| 76 | #undef CONFIG_SYS_CONSOLE_INFO_QUIET |
| 77 | #undef CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE |
| 78 | #undef CONFIG_SYS_CONSOLE_ENV_OVERWRITE |
| 79 | |
| 80 | #define CONFIG_SYS_MEMTEST_START (KOELSCH_SDRAM_BASE) |
| 81 | #define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_MEMTEST_START + \ |
| 82 | 504 * 1024 * 1024) |
| 83 | #undef CONFIG_SYS_ALT_MEMTEST |
| 84 | #undef CONFIG_SYS_MEMTEST_SCRATCH |
| 85 | #undef CONFIG_SYS_LOADS_BAUD_CHANGE |
| 86 | |
| 87 | #define CONFIG_SYS_SDRAM_BASE (KOELSCH_SDRAM_BASE) |
| 88 | #define CONFIG_SYS_SDRAM_SIZE (KOELSCH_UBOOT_SDRAM_SIZE) |
| 89 | #define CONFIG_SYS_LOAD_ADDR (CONFIG_SYS_SDRAM_BASE + 0x7fc0) |
| 90 | #define CONFIG_NR_DRAM_BANKS 1 |
| 91 | |
| 92 | #define CONFIG_SYS_MONITOR_BASE 0x00000000 |
| 93 | #define CONFIG_SYS_MONITOR_LEN (256 * 1024) |
| 94 | #define CONFIG_SYS_MALLOC_LEN (1 * 1024 * 1024) |
| 95 | #define CONFIG_SYS_GBL_DATA_SIZE (256) |
| 96 | #define CONFIG_SYS_BOOTMAPSZ (8 * 1024 * 1024) |
| 97 | |
| 98 | /* FLASH */ |
| 99 | #define CONFIG_SYS_TEXT_BASE 0x00000000 |
| 100 | #define CONFIG_SYS_FLASH_CFI |
| 101 | #define CONFIG_SYS_FLASH_CFI_WIDTH FLASH_CFI_16BIT |
| 102 | #define CONFIG_FLASH_CFI_DRIVER |
| 103 | #define CONFIG_CFI_FLASH_USE_WEAK_ACCESSORS |
| 104 | #define CONFIG_FLASH_SHOW_PROGRESS 45 |
| 105 | #define CONFIG_SYS_FLASH_BASE 0x00000000 |
| 106 | #define CONFIG_SYS_FLASH_SIZE 0x04000000 /* 64 MB */ |
| 107 | #define CONFIG_SYS_MAX_FLASH_SECT 1024 |
| 108 | #define CONFIG_SYS_MAX_FLASH_BANKS 1 |
| 109 | #define CONFIG_SYS_FLASH_BANKS_LIST { (CONFIG_SYS_FLASH_BASE) } |
| 110 | #define CONFIG_SYS_FLASH_BANKS_SIZES { (CONFIG_SYS_FLASH_SIZE) } |
| 111 | #define CONFIG_SYS_FLASH_ERASE_TOUT 3000 |
| 112 | #define CONFIG_SYS_FLASH_WRITE_TOUT 3000 |
| 113 | #define CONFIG_SYS_FLASH_LOCK_TOUT 3000 |
| 114 | #define CONFIG_SYS_FLASH_UNLOCK_TOUT 3000 |
| 115 | |
| 116 | /* ENV setting */ |
| 117 | #define CONFIG_ENV_IS_IN_FLASH |
| 118 | #define CONFIG_ENV_OVERWRITE 1 |
| 119 | #define CONFIG_ENV_SECT_SIZE (256 * 1024) |
| 120 | #define CONFIG_ENV_ADDR (CONFIG_SYS_FLASH_BASE + \ |
| 121 | CONFIG_SYS_MONITOR_LEN) |
| 122 | #define CONFIG_ENV_OFFSET (CONFIG_ENV_ADDR) |
| 123 | #define CONFIG_ENV_SIZE (CONFIG_ENV_SECT_SIZE) |
| 124 | #define CONFIG_ENV_SIZE_REDUND (CONFIG_SYS_MONITOR_LEN) |
| 125 | |
| 126 | /* Board Clock */ |
| 127 | #define CONFIG_SYS_CLK_FREQ 10000000 |
| 128 | #define CONFIG_SH_TMU_CLK_FREQ CONFIG_SYS_CLK_FREQ |
| 129 | #define CONFIG_SH_SCIF_CLK_FREQ 14745600 |
| 130 | #define CONFIG_SYS_TMU_CLK_DIV 4 |
| 131 | #define CONFIG_SYS_HZ 1000 |
| 132 | |
| 133 | #endif /* __KOELSCH_H */ |