1c5330ae8SKonstantin Porotchkin /* 2c5330ae8SKonstantin Porotchkin * Copyright (C) 2016 Stefan Roese <sr@denx.de> 3c5330ae8SKonstantin Porotchkin * 4c5330ae8SKonstantin Porotchkin * SPDX-License-Identifier: GPL-2.0+ 5c5330ae8SKonstantin Porotchkin */ 6c5330ae8SKonstantin Porotchkin 7c5330ae8SKonstantin Porotchkin #ifndef _CONFIG_MVEBU_ARMADA_37XX_H 8c5330ae8SKonstantin Porotchkin #define _CONFIG_MVEBU_ARMADA_37XX_H 9c5330ae8SKonstantin Porotchkin 10c5330ae8SKonstantin Porotchkin /* 11c5330ae8SKonstantin Porotchkin * High Level Configuration Options (easy to change) 12c5330ae8SKonstantin Porotchkin */ 13c5330ae8SKonstantin Porotchkin #define CONFIG_DISPLAY_BOARDINFO_LATE 14c5330ae8SKonstantin Porotchkin 15c5330ae8SKonstantin Porotchkin #define CONFIG_SYS_TEXT_BASE 0x00000000 16c5330ae8SKonstantin Porotchkin 17c5330ae8SKonstantin Porotchkin /* additions for new ARM relocation support */ 18c5330ae8SKonstantin Porotchkin #define CONFIG_SYS_SDRAM_BASE 0x00000000 19c5330ae8SKonstantin Porotchkin 20c5330ae8SKonstantin Porotchkin #define CONFIG_NR_DRAM_BANKS 1 21c5330ae8SKonstantin Porotchkin 22c5330ae8SKonstantin Porotchkin /* auto boot */ 23c5330ae8SKonstantin Porotchkin #define CONFIG_PREBOOT 24c5330ae8SKonstantin Porotchkin 25c5330ae8SKonstantin Porotchkin #define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, \ 26c5330ae8SKonstantin Porotchkin 115200, 230400, 460800, 921600 } 27c5330ae8SKonstantin Porotchkin 28c5330ae8SKonstantin Porotchkin /* 29c5330ae8SKonstantin Porotchkin * For booting Linux, the board info and command line data 30c5330ae8SKonstantin Porotchkin * have to be in the first 8 MB of memory, since this is 31c5330ae8SKonstantin Porotchkin * the maximum mapped by the Linux kernel during initialization. 32c5330ae8SKonstantin Porotchkin */ 33c5330ae8SKonstantin Porotchkin #define CONFIG_CMDLINE_TAG /* enable passing of ATAGs */ 34c5330ae8SKonstantin Porotchkin #define CONFIG_INITRD_TAG /* enable INITRD tag */ 35c5330ae8SKonstantin Porotchkin #define CONFIG_SETUP_MEMORY_TAGS /* enable memory tag */ 36c5330ae8SKonstantin Porotchkin 37c5330ae8SKonstantin Porotchkin #define CONFIG_SYS_CBSIZE 1024 /* Console I/O Buff Size */ 38c5330ae8SKonstantin Porotchkin 39c5330ae8SKonstantin Porotchkin /* 40c5330ae8SKonstantin Porotchkin * Size of malloc() pool 41c5330ae8SKonstantin Porotchkin */ 42c5330ae8SKonstantin Porotchkin #define CONFIG_SYS_MALLOC_LEN (4 << 20) /* 4MiB for malloc() */ 43c5330ae8SKonstantin Porotchkin 44c5330ae8SKonstantin Porotchkin /* 45c5330ae8SKonstantin Porotchkin * Other required minimal configurations 46c5330ae8SKonstantin Porotchkin */ 47c5330ae8SKonstantin Porotchkin #define CONFIG_SYS_LONGHELP 48c5330ae8SKonstantin Porotchkin #define CONFIG_AUTO_COMPLETE 49c5330ae8SKonstantin Porotchkin #define CONFIG_CMDLINE_EDITING 50c5330ae8SKonstantin Porotchkin #define CONFIG_ARCH_CPU_INIT /* call arch_cpu_init() */ 51c5330ae8SKonstantin Porotchkin #define CONFIG_SYS_LOAD_ADDR 0x00800000 /* default load adr- 8M */ 52c5330ae8SKonstantin Porotchkin #define CONFIG_SYS_MEMTEST_START 0x00800000 /* 8M */ 53c5330ae8SKonstantin Porotchkin #define CONFIG_SYS_MEMTEST_END 0x00ffffff /*(_16M -1) */ 54c5330ae8SKonstantin Porotchkin #define CONFIG_SYS_RESET_ADDRESS 0xffff0000 /* Rst Vector Adr */ 55c5330ae8SKonstantin Porotchkin #define CONFIG_SYS_MAXARGS 32 /* max number of command args */ 56c5330ae8SKonstantin Porotchkin 57c5330ae8SKonstantin Porotchkin #define CONFIG_SYS_ALT_MEMTEST 58c5330ae8SKonstantin Porotchkin 59c5330ae8SKonstantin Porotchkin /* End of 16M scrubbed by training in bootrom */ 60c5330ae8SKonstantin Porotchkin #define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_TEXT_BASE + 0xFF0000) 61c5330ae8SKonstantin Porotchkin 62c5330ae8SKonstantin Porotchkin /* 63c5330ae8SKonstantin Porotchkin * I2C 64c5330ae8SKonstantin Porotchkin */ 65c5330ae8SKonstantin Porotchkin #define CONFIG_I2C_MV 66c5330ae8SKonstantin Porotchkin #define CONFIG_SYS_I2C_SLAVE 0x0 67c5330ae8SKonstantin Porotchkin 68c5330ae8SKonstantin Porotchkin /* 69c5330ae8SKonstantin Porotchkin * SPI Flash configuration 70c5330ae8SKonstantin Porotchkin */ 71c5330ae8SKonstantin Porotchkin #define CONFIG_ENV_SPI_BUS 0 72c5330ae8SKonstantin Porotchkin #define CONFIG_ENV_SPI_CS 0 73c5330ae8SKonstantin Porotchkin 74c5330ae8SKonstantin Porotchkin /* SPI NOR flash default params, used by sf commands */ 75c5330ae8SKonstantin Porotchkin #define CONFIG_SF_DEFAULT_SPEED 1000000 76c5330ae8SKonstantin Porotchkin #define CONFIG_SF_DEFAULT_MODE SPI_MODE_0 77c5330ae8SKonstantin Porotchkin #define CONFIG_ENV_SPI_MODE CONFIG_SF_DEFAULT_MODE 78c5330ae8SKonstantin Porotchkin 79c5330ae8SKonstantin Porotchkin /* Environment in SPI NOR flash */ 80c5330ae8SKonstantin Porotchkin #define CONFIG_ENV_OFFSET 0x180000 /* as Marvell U-Boot version */ 81c5330ae8SKonstantin Porotchkin #define CONFIG_ENV_SIZE (64 << 10) /* 64KiB */ 82c5330ae8SKonstantin Porotchkin #define CONFIG_ENV_SECT_SIZE (64 << 10) /* 64KiB sectors */ 83c5330ae8SKonstantin Porotchkin 84c5330ae8SKonstantin Porotchkin /* 85c5330ae8SKonstantin Porotchkin * Ethernet Driver configuration 86c5330ae8SKonstantin Porotchkin */ 87c5330ae8SKonstantin Porotchkin #define CONFIG_MVNETA /* Enable Marvell Gbe Controller Driver */ 88c5330ae8SKonstantin Porotchkin #define CONFIG_ENV_OVERWRITE /* ethaddr can be reprogrammed */ 89c5330ae8SKonstantin Porotchkin #define CONFIG_ARP_TIMEOUT 200 90c5330ae8SKonstantin Porotchkin #define CONFIG_NET_RETRY_COUNT 50 91a7a0d788SKonstantin Porotchkin #define CONFIG_PHY_MARVELL 92c5330ae8SKonstantin Porotchkin 93*cbb89ed0SBin Meng #define CONFIG_USB_MAX_CONTROLLER_COUNT (3 + 3) 94c5330ae8SKonstantin Porotchkin 95c5330ae8SKonstantin Porotchkin /* USB ethernet */ 96c5330ae8SKonstantin Porotchkin 97c5330ae8SKonstantin Porotchkin /* 98c5330ae8SKonstantin Porotchkin * SATA/SCSI/AHCI configuration 99c5330ae8SKonstantin Porotchkin */ 100c5330ae8SKonstantin Porotchkin #define CONFIG_SCSI_AHCI 101c5330ae8SKonstantin Porotchkin #define CONFIG_SCSI_AHCI_PLAT 102c5330ae8SKonstantin Porotchkin #define CONFIG_LIBATA 103c5330ae8SKonstantin Porotchkin #define CONFIG_LBA48 104c5330ae8SKonstantin Porotchkin #define CONFIG_SYS_64BIT_LBA 105c5330ae8SKonstantin Porotchkin 106c5330ae8SKonstantin Porotchkin #define CONFIG_SYS_SCSI_MAX_SCSI_ID 2 107c5330ae8SKonstantin Porotchkin #define CONFIG_SYS_SCSI_MAX_LUN 1 108c5330ae8SKonstantin Porotchkin #define CONFIG_SYS_SCSI_MAX_DEVICE (CONFIG_SYS_SCSI_MAX_SCSI_ID * \ 109c5330ae8SKonstantin Porotchkin CONFIG_SYS_SCSI_MAX_LUN) 110c5330ae8SKonstantin Porotchkin 111c5330ae8SKonstantin Porotchkin #define CONFIG_SUPPORT_VFAT 112c5330ae8SKonstantin Porotchkin 113c5330ae8SKonstantin Porotchkin #endif /* _CONFIG_MVEBU_ARMADA_37XX_H */ 114