1*83d290c5STom Rini /* SPDX-License-Identifier: GPL-2.0+ */ 2c133c1fbSYusuke Goda /* 3c133c1fbSYusuke Goda * Configuation settings for the Renesas R7780MP board 4c133c1fbSYusuke Goda * 5ec39d479SNobuhiro Iwamatsu * Copyright (C) 2007,2008 Nobuhiro Iwamatsu <iwamatsu@nigauri.org> 6c133c1fbSYusuke Goda * Copyright (C) 2008 Yusuke Goda <goda.yusuke@renesas.com> 7c133c1fbSYusuke Goda */ 8c133c1fbSYusuke Goda 9c133c1fbSYusuke Goda #ifndef __R7780RP_H 10c133c1fbSYusuke Goda #define __R7780RP_H 11c133c1fbSYusuke Goda 12c133c1fbSYusuke Goda #define CONFIG_CPU_SH7780 1 13c133c1fbSYusuke Goda #define CONFIG_R7780MP 1 146d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_R7780MP_OLD_FLASH 1 15ec39d479SNobuhiro Iwamatsu #define __LITTLE_ENDIAN__ 1 16c133c1fbSYusuke Goda 1718a40e84SVladimir Zapolskiy #define CONFIG_DISPLAY_BOARDINFO 1818a40e84SVladimir Zapolskiy 19c133c1fbSYusuke Goda #define CONFIG_CONS_SCIF0 1 20c133c1fbSYusuke Goda 21c133c1fbSYusuke Goda #define CONFIG_ENV_OVERWRITE 1 22c133c1fbSYusuke Goda 236d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_SDRAM_BASE (0x08000000) 246d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_SDRAM_SIZE (128 * 1024 * 1024) 25c133c1fbSYusuke Goda 266d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PBSIZE 256 27c133c1fbSYusuke Goda 286d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MEMTEST_START (CONFIG_SYS_SDRAM_BASE) 2914d0a02aSWolfgang Denk #define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_TEXT_BASE - 0x100000) 30c133c1fbSYusuke Goda 31ec39d479SNobuhiro Iwamatsu /* Flash board support */ 326d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_FLASH_BASE (0xA0000000) 336d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #ifdef CONFIG_SYS_R7780MP_OLD_FLASH 34ec39d479SNobuhiro Iwamatsu /* NOR Flash (S29PL127J60TFI130) */ 356d0f6bcfSJean-Christophe PLAGNIOL-VILLARD # define CONFIG_SYS_FLASH_CFI_WIDTH FLASH_CFI_32BIT 366d0f6bcfSJean-Christophe PLAGNIOL-VILLARD # define CONFIG_SYS_MAX_FLASH_BANKS (2) 376d0f6bcfSJean-Christophe PLAGNIOL-VILLARD # define CONFIG_SYS_MAX_FLASH_SECT 270 386d0f6bcfSJean-Christophe PLAGNIOL-VILLARD # define CONFIG_SYS_FLASH_BANKS_LIST { CONFIG_SYS_FLASH_BASE,\ 396d0f6bcfSJean-Christophe PLAGNIOL-VILLARD CONFIG_SYS_FLASH_BASE + 0x100000,\ 406d0f6bcfSJean-Christophe PLAGNIOL-VILLARD CONFIG_SYS_FLASH_BASE + 0x400000,\ 416d0f6bcfSJean-Christophe PLAGNIOL-VILLARD CONFIG_SYS_FLASH_BASE + 0x700000, } 426d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #else /* CONFIG_SYS_R7780MP_OLD_FLASH */ 43ec39d479SNobuhiro Iwamatsu /* NOR Flash (Spantion S29GL256P) */ 446d0f6bcfSJean-Christophe PLAGNIOL-VILLARD # define CONFIG_SYS_MAX_FLASH_BANKS (1) 456d0f6bcfSJean-Christophe PLAGNIOL-VILLARD # define CONFIG_SYS_MAX_FLASH_SECT 256 466d0f6bcfSJean-Christophe PLAGNIOL-VILLARD # define CONFIG_SYS_FLASH_BANKS_LIST { CONFIG_SYS_FLASH_BASE } 476d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #endif /* CONFIG_SYS_R7780MP_OLD_FLASH */ 48c133c1fbSYusuke Goda 496d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_LOAD_ADDR (CONFIG_SYS_SDRAM_BASE + 4 * 1024 * 1024) 50c133c1fbSYusuke Goda /* Address of u-boot image in Flash */ 516d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MONITOR_BASE (CONFIG_SYS_FLASH_BASE) 526d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MONITOR_LEN (256 * 1024) 53c133c1fbSYusuke Goda /* Size of DRAM reserved for malloc() use */ 546d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MALLOC_LEN (1204 * 1024) 55c133c1fbSYusuke Goda 566d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_BOOTMAPSZ (8 * 1024 * 1024) 576d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_RX_ETH_BUFFER (8) 58c133c1fbSYusuke Goda 596d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #undef CONFIG_SYS_FLASH_CFI_BROKEN_TABLE 606d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #undef CONFIG_SYS_FLASH_QUIET_TEST 61c133c1fbSYusuke Goda /* print 'E' for empty sector on flinfo */ 626d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_FLASH_EMPTY_INFO 63c133c1fbSYusuke Goda 640e8d1586SJean-Christophe PLAGNIOL-VILLARD #define CONFIG_ENV_SECT_SIZE (256 * 1024) 650e8d1586SJean-Christophe PLAGNIOL-VILLARD #define CONFIG_ENV_SIZE (CONFIG_ENV_SECT_SIZE) 666d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_ENV_ADDR (CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN) 676d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_FLASH_ERASE_TOUT 120000 686d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_FLASH_WRITE_TOUT 500 69c133c1fbSYusuke Goda 70c133c1fbSYusuke Goda /* Board Clock */ 71c133c1fbSYusuke Goda #define CONFIG_SYS_CLK_FREQ 33333333 72684a501eSNobuhiro Iwamatsu #define CONFIG_SH_SCIF_CLK_FREQ CONFIG_SYS_CLK_FREQ 73c133c1fbSYusuke Goda 74c133c1fbSYusuke Goda /* PCI Controller */ 75c133c1fbSYusuke Goda #if defined(CONFIG_CMD_PCI) 76c133c1fbSYusuke Goda #define CONFIG_SH4_PCI 77ab8f4d40SNobuhiro Iwamatsu #define CONFIG_SH7780_PCI 7806b18163SYoshihiro Shimoda #define CONFIG_SH7780_PCI_LSR 0x07f00001 7906b18163SYoshihiro Shimoda #define CONFIG_SH7780_PCI_LAR CONFIG_SYS_SDRAM_SIZE 8006b18163SYoshihiro Shimoda #define CONFIG_SH7780_PCI_BAR CONFIG_SYS_SDRAM_SIZE 81c133c1fbSYusuke Goda #define CONFIG_PCI_SCAN_SHOW 1 82c133c1fbSYusuke Goda #define __mem_pci 83c133c1fbSYusuke Goda 84c133c1fbSYusuke Goda #define CONFIG_PCI_MEM_BUS 0xFD000000 /* Memory space base addr */ 85c133c1fbSYusuke Goda #define CONFIG_PCI_MEM_PHYS CONFIG_PCI_MEM_BUS 86c133c1fbSYusuke Goda #define CONFIG_PCI_MEM_SIZE 0x01000000 /* Size of Memory window */ 87c133c1fbSYusuke Goda 88c133c1fbSYusuke Goda #define CONFIG_PCI_IO_BUS 0xFE200000 /* IO space base address */ 89c133c1fbSYusuke Goda #define CONFIG_PCI_IO_PHYS CONFIG_PCI_IO_BUS 90c133c1fbSYusuke Goda #define CONFIG_PCI_IO_SIZE 0x00200000 /* Size of IO window */ 9104366d07SNobuhiro Iwamatsu #define CONFIG_PCI_SYS_PHYS CONFIG_SYS_SDRAM_BASE 9204366d07SNobuhiro Iwamatsu #define CONFIG_PCI_SYS_BUS CONFIG_SYS_SDRAM_BASE 9304366d07SNobuhiro Iwamatsu #define CONFIG_PCI_SYS_SIZE CONFIG_SYS_SDRAM_SIZE 94c133c1fbSYusuke Goda #endif /* CONFIG_CMD_PCI */ 95c133c1fbSYusuke Goda 96c133c1fbSYusuke Goda #if defined(CONFIG_CMD_NET) 97c7c1dbbfSMarcel Ziswiler /* AX88796L Support(NE2000 base chip) */ 98c133c1fbSYusuke Goda #define CONFIG_DRIVER_AX88796L 99c133c1fbSYusuke Goda #define CONFIG_DRIVER_NE2000_BASE 0xA4100000 100c133c1fbSYusuke Goda #endif 101c133c1fbSYusuke Goda 102c133c1fbSYusuke Goda /* Compact flash Support */ 103fc843a02SSimon Glass #if defined(CONFIG_IDE) 104c133c1fbSYusuke Goda #define CONFIG_IDE_RESET 1 1056d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PIO_MODE 1 1066d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_IDE_MAXBUS 1 /* IDE bus */ 1076d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_IDE_MAXDEVICE 1 1086d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_ATA_BASE_ADDR 0xb4000000 1096d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_ATA_STRIDE 2 /* 1bit shift */ 1106d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_ATA_DATA_OFFSET 0x1000 /* data reg offset */ 1116d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_ATA_REG_OFFSET 0x1000 /* reg offset */ 1126d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_ATA_ALT_OFFSET 0x800 /* alternate register offset */ 113f2a37fcdSAlbert Aribaud #define CONFIG_IDE_SWAP_IO 114fc843a02SSimon Glass #endif /* CONFIG_IDE */ 115c133c1fbSYusuke Goda 116c133c1fbSYusuke Goda #endif /* __R7780RP_H */ 117