1b2b5e2bbSYoshihiro Shimoda /* 2b2b5e2bbSYoshihiro Shimoda * Configuation settings for the Hitachi Solution Engine 7720 3b2b5e2bbSYoshihiro Shimoda * 4b2b5e2bbSYoshihiro Shimoda * Copyright (C) 2007 Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com> 5b2b5e2bbSYoshihiro Shimoda * 6b2b5e2bbSYoshihiro Shimoda * See file CREDITS for list of people who contributed to this 7b2b5e2bbSYoshihiro Shimoda * project. 8b2b5e2bbSYoshihiro Shimoda * 9b2b5e2bbSYoshihiro Shimoda * This program is free software; you can redistribute it and/or 10b2b5e2bbSYoshihiro Shimoda * modify it under the terms of the GNU General Public License as 11b2b5e2bbSYoshihiro Shimoda * published by the Free Software Foundation; either version 2 of 12b2b5e2bbSYoshihiro Shimoda * the License, or (at your option) any later version. 13b2b5e2bbSYoshihiro Shimoda * 14b2b5e2bbSYoshihiro Shimoda * This program is distributed in the hope that it will be useful, 15b2b5e2bbSYoshihiro Shimoda * but WITHOUT ANY WARRANTY; without even the implied warranty of 16b2b5e2bbSYoshihiro Shimoda * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17b2b5e2bbSYoshihiro Shimoda * GNU General Public License for more details. 18b2b5e2bbSYoshihiro Shimoda * 19b2b5e2bbSYoshihiro Shimoda * You should have received a copy of the GNU General Public License 20b2b5e2bbSYoshihiro Shimoda * along with this program; if not, write to the Free Software 21b2b5e2bbSYoshihiro Shimoda * Foundation, Inc., 59 Temple Place, Suite 330, Boston, 22b2b5e2bbSYoshihiro Shimoda * MA 02111-1307 USA 23b2b5e2bbSYoshihiro Shimoda */ 24b2b5e2bbSYoshihiro Shimoda 25b2b5e2bbSYoshihiro Shimoda #ifndef __MS7720SE_H 26b2b5e2bbSYoshihiro Shimoda #define __MS7720SE_H 27b2b5e2bbSYoshihiro Shimoda 28b2b5e2bbSYoshihiro Shimoda #define CONFIG_SH 1 29b2b5e2bbSYoshihiro Shimoda #define CONFIG_SH3 1 30b2b5e2bbSYoshihiro Shimoda #define CONFIG_CPU_SH7720 1 31b2b5e2bbSYoshihiro Shimoda #define CONFIG_MS7720SE 1 32b2b5e2bbSYoshihiro Shimoda 33b2b5e2bbSYoshihiro Shimoda #define CONFIG_CMD_FLASH 34bdab39d3SMike Frysinger #define CONFIG_CMD_SAVEENV 35b2b5e2bbSYoshihiro Shimoda #define CONFIG_CMD_SDRAM 36b2b5e2bbSYoshihiro Shimoda #define CONFIG_CMD_MEMORY 37b2b5e2bbSYoshihiro Shimoda #define CONFIG_CMD_CACHE 38b2b5e2bbSYoshihiro Shimoda #define CONFIG_CMD_PCMCIA 39b2b5e2bbSYoshihiro Shimoda #define CONFIG_CMD_IDE 40b2b5e2bbSYoshihiro Shimoda #define CONFIG_CMD_EXT2 41b2b5e2bbSYoshihiro Shimoda 42b2b5e2bbSYoshihiro Shimoda #define CONFIG_BAUDRATE 115200 43b2b5e2bbSYoshihiro Shimoda #define CONFIG_BOOTARGS "console=ttySC0,115200" 44b2b5e2bbSYoshihiro Shimoda #define CONFIG_BOOTFILE /boot/zImage 45b2b5e2bbSYoshihiro Shimoda #define CONFIG_LOADADDR 0x8E000000 46b2b5e2bbSYoshihiro Shimoda 47b2b5e2bbSYoshihiro Shimoda #define CONFIG_VERSION_VARIABLE 48b2b5e2bbSYoshihiro Shimoda #undef CONFIG_SHOW_BOOT_PROGRESS 49b2b5e2bbSYoshihiro Shimoda 50b2b5e2bbSYoshihiro Shimoda /* MEMORY */ 51b2b5e2bbSYoshihiro Shimoda #define MS7720SE_SDRAM_BASE 0x8C000000 52b2b5e2bbSYoshihiro Shimoda #define MS7720SE_FLASH_BASE_1 0xA0000000 53b2b5e2bbSYoshihiro Shimoda #define MS7720SE_FLASH_BANK_SIZE (8 * 1024 * 1024) 54b2b5e2bbSYoshihiro Shimoda 556d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_LONGHELP /* undef to save memory */ 566d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PROMPT "=> " /* Monitor Command Prompt */ 576d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_CBSIZE 256 /* Buffer size for input from the Console */ 586d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PBSIZE 256 /* Buffer size for Console output */ 596d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MAXARGS 16 /* max args accepted for monitor commands */ 60b2b5e2bbSYoshihiro Shimoda /* Buffer size for Boot Arguments passed to kernel */ 616d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_BARGSIZE 512 62b2b5e2bbSYoshihiro Shimoda /* List of legal baudrate settings for this board */ 636d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_BAUDRATE_TABLE { 115200 } 64b2b5e2bbSYoshihiro Shimoda 65b2b5e2bbSYoshihiro Shimoda /* SCIF */ 666c58a030SJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SCIF_CONSOLE 1 67b2b5e2bbSYoshihiro Shimoda #define CONFIG_CONS_SCIF0 1 68b2b5e2bbSYoshihiro Shimoda 696d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MEMTEST_START MS7720SE_SDRAM_BASE 706d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_MEMTEST_START + (60 * 1024 * 1024)) 71b2b5e2bbSYoshihiro Shimoda 726d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_SDRAM_BASE MS7720SE_SDRAM_BASE 736d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_SDRAM_SIZE (64 * 1024 * 1024) 74b2b5e2bbSYoshihiro Shimoda 756d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_LOAD_ADDR (CONFIG_SYS_SDRAM_BASE + 32 * 1024 * 1024) 766d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MONITOR_BASE MS7720SE_FLASH_BASE_1 776d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MONITOR_LEN (128 * 1024) 786d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MALLOC_LEN (256 * 1024) 796d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_GBL_DATA_SIZE 256 806d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_BOOTMAPSZ (8 * 1024 * 1024) 81b2b5e2bbSYoshihiro Shimoda 82b2b5e2bbSYoshihiro Shimoda 83b2b5e2bbSYoshihiro Shimoda /* FLASH */ 846d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_FLASH_CFI 8500b1883aSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_FLASH_CFI_DRIVER 866d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #undef CONFIG_SYS_FLASH_QUIET_TEST 876d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_FLASH_EMPTY_INFO /* print 'E' for empty sector on flinfo */ 88b2b5e2bbSYoshihiro Shimoda 896d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_FLASH_BASE MS7720SE_FLASH_BASE_1 90b2b5e2bbSYoshihiro Shimoda 916d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MAX_FLASH_SECT 150 926d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MAX_FLASH_BANKS 1 936d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_FLASH_BANKS_LIST { CONFIG_SYS_FLASH_BASE } 94b2b5e2bbSYoshihiro Shimoda 955a1aceb0SJean-Christophe PLAGNIOL-VILLARD #define CONFIG_ENV_IS_IN_FLASH 960e8d1586SJean-Christophe PLAGNIOL-VILLARD #define CONFIG_ENV_SECT_SIZE (64 * 1024) 970e8d1586SJean-Christophe PLAGNIOL-VILLARD #define CONFIG_ENV_SIZE CONFIG_ENV_SECT_SIZE 986d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_ENV_ADDR (CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN) 996d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_FLASH_ERASE_TOUT 120000 1006d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_FLASH_WRITE_TOUT 500 101b2b5e2bbSYoshihiro Shimoda 102b2b5e2bbSYoshihiro Shimoda /* Board Clock */ 103b2b5e2bbSYoshihiro Shimoda #define CONFIG_SYS_CLK_FREQ 33333333 104be45c632SJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_TMU_CLK_DIV 4 /* 4 (default), 16, 64, 256 or 1024 */ 1058dd29c87SJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_HZ 1000 106b2b5e2bbSYoshihiro Shimoda 107b2b5e2bbSYoshihiro Shimoda /* PCMCIA */ 108b2b5e2bbSYoshihiro Shimoda #define CONFIG_IDE_PCMCIA 1 109b2b5e2bbSYoshihiro Shimoda #define CONFIG_MARUBUN_PCCARD 1 110b2b5e2bbSYoshihiro Shimoda #define CONFIG_PCMCIA_SLOT_A 1 1116d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_IDE_MAXDEVICE 1 1126d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MARUBUN_MRSHPC 0xb83fffe0 1136d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MARUBUN_MW1 0xb8400000 1146d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MARUBUN_MW2 0xb8500000 1156d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MARUBUN_IO 0xb8600000 116b2b5e2bbSYoshihiro Shimoda 1176d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PIO_MODE 1 1186d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_IDE_MAXBUS 1 119b2b5e2bbSYoshihiro Shimoda #define CONFIG_DOS_PARTITION 1 1206d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_ATA_BASE_ADDR CONFIG_SYS_MARUBUN_IO /* base address */ 1216d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_ATA_IDE0_OFFSET 0x01F0 /* ide0 offste */ 1226d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_ATA_DATA_OFFSET 0 /* data reg offset */ 1236d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_ATA_REG_OFFSET 0 /* reg offset */ 1246d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_ATA_ALT_OFFSET 0x200 /* alternate register offset */ 125*f2a37fcdSAlbert Aribaud #define CONFIG_IDE_SWAP_IO 126b2b5e2bbSYoshihiro Shimoda 127b2b5e2bbSYoshihiro Shimoda #endif /* __MS7720SE_H */ 128