1/* 2 * Copyright (C) 2008 Texas Instruments, Inc <www.ti.com> 3 * 4 * Based on davinci_dvevm.h. Original Copyrights follow: 5 * 6 * Copyright (C) 2007 Sergey Kubushyn <ksi@koi8.net> 7 * 8 * SPDX-License-Identifier: GPL-2.0+ 9 */ 10 11#ifndef __CONFIG_H 12#define __CONFIG_H 13 14#include <linux/sizes.h> 15#include <asm/arch/hardware.h> 16#include <asm/arch/clock.h> 17 18/* Architecture, CPU, etc */ 19#define CONFIG_ARM1176 20#define CONFIG_TNETV107X 21#define CONFIG_TNETV107X_EVM 22#define CONFIG_TNETV107X_WATCHDOG 23#define CONFIG_ARCH_CPU_INIT 24#define CONFIG_SYS_UBOOT_BASE CONFIG_SYS_TEXT_BASE 25#define CONFIG_DISABLE_TCM 26#define CONFIG_PERIPORT_REMAP 27#define CONFIG_PERIPORT_BASE 0x2000000 28#define CONFIG_PERIPORT_SIZE 0x10 29#define CONFIG_SYS_CLK_FREQ clk_get_rate(TNETV107X_LPSC_ARM) 30 31#define CONFIG_SYS_TIMERBASE TNETV107X_TIMER0_BASE 32#define CONFIG_SYS_HZ_CLOCK clk_get_rate(TNETV107X_LPSC_TIMER0) 33 34#define CONFIG_PLL_SYS_EXT_FREQ 25000000 35#define CONFIG_PLL_TDM_EXT_FREQ 19200000 36#define CONFIG_PLL_ETH_EXT_FREQ 25000000 37 38/* Memory Info */ 39#define CONFIG_SYS_MALLOC_LEN (0x10000 + 1*1024*1024) 40#define PHYS_SDRAM_1 TNETV107X_DDR_EMIF_DATA_BASE 41#define PHYS_SDRAM_1_SIZE 0x04000000 42#define CONFIG_SYS_MEMTEST_START PHYS_SDRAM_1 43#define CONFIG_SYS_MEMTEST_END (PHYS_SDRAM_1 + 16*1024*1024) 44#define CONFIG_NR_DRAM_BANKS 1 45 46#define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM_1 47#define CONFIG_SYS_INIT_RAM_SIZE 0x1000 48#define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_SDRAM_BASE + \ 49 CONFIG_SYS_INIT_RAM_SIZE - \ 50 GENERATED_GBL_DATA_SIZE) 51 52/* Serial Driver Info */ 53#define CONFIG_SYS_NS16550 54#define CONFIG_SYS_NS16550_SERIAL 55#define CONFIG_SYS_NS16550_REG_SIZE -4 56#define CONFIG_SYS_NS16550_COM1 TNETV107X_UART1_BASE 57#define CONFIG_SYS_NS16550_CLK clk_get_rate(TNETV107X_LPSC_UART1) 58#define CONFIG_CONS_INDEX 1 59#define CONFIG_BAUDRATE 115200 60 61/* Flash and environment info */ 62#define CONFIG_SYS_NO_FLASH 63#define CONFIG_ENV_IS_IN_NAND 64#define CONFIG_NAND_DAVINCI 65#define CONFIG_ENV_SIZE (SZ_128K) 66#define CONFIG_SYS_NAND_HW_ECC 67#define CONFIG_SYS_NAND_1BIT_ECC 68#define CONFIG_SYS_NAND_CS 2 69#define CONFIG_SYS_NAND_USE_FLASH_BBT 70#define CONFIG_SYS_NAND_BASE TNETV107X_ASYNC_EMIF_DATA_CE0_BASE 71#define CONFIG_SYS_NAND_MASK_CLE 0x10 72#define CONFIG_SYS_NAND_MASK_ALE 0x8 73#define CONFIG_SYS_MAX_NAND_DEVICE 1 74#define CONFIG_MTD_PARTITIONS 75#define CONFIG_CMD_MTDPARTS 76#define CONFIG_MTD_DEVICE 77#define CONFIG_JFFS2_NAND 78#define CONFIG_ENV_OFFSET 0x180000 79 80/* 81 * davinci_nand is a bit of a misnomer since this particular EMIF block is 82 * commonly used across multiple TI devices. Unfortunately, this misnomer 83 * (amongst others) carries forward into the kernel too. Consequently, if we 84 * use a different device name here, the mtdparts variable won't be usable as 85 * a kernel command-line argument. 86 */ 87#define MTDIDS_DEFAULT "nand0=davinci_nand.0" 88#define MTDPARTS_DEFAULT "mtdparts=davinci_nand.0:" \ 89 "1536k(uboot)ro," \ 90 "128k(params)ro," \ 91 "4m(kernel)," \ 92 "-(filesystem)" 93 94/* General U-Boot configuration */ 95#define CONFIG_BOOTFILE "uImage" 96#define CONFIG_SYS_PROMPT "U-Boot > " 97#define CONFIG_SYS_CBSIZE 1024 98#define CONFIG_SYS_MAXARGS 64 99#define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE 100#define CONFIG_VERSION_VARIABLE 101#define CONFIG_AUTO_COMPLETE 102#define CONFIG_SYS_HUSH_PARSER 103#define CONFIG_CMDLINE_EDITING 104#define CONFIG_SYS_LONGHELP 105#define CONFIG_CRC32_VERIFY 106#define CONFIG_MX_CYCLIC 107#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + \ 108 sizeof(CONFIG_SYS_PROMPT) + 16) 109#define CONFIG_SYS_LOAD_ADDR (CONFIG_SYS_MEMTEST_START + \ 110 0x700000) 111#define LINUX_BOOT_PARAM_ADDR (CONFIG_SYS_MEMTEST_START + 0x100) 112#define CONFIG_CMDLINE_TAG 113#define CONFIG_SETUP_MEMORY_TAGS 114#define CONFIG_BOOTARGS "mem=32M console=ttyS1,115200n8 " \ 115 "root=/dev/mmcblk0p1 rw noinitrd" 116#define CONFIG_BOOTCOMMAND "" 117#define CONFIG_BOOTDELAY 1 118 119#define CONFIG_CMD_BDI 120#define CONFIG_CMD_BOOTD 121#define CONFIG_CMD_CONSOLE 122#define CONFIG_CMD_ECHO 123#define CONFIG_CMD_EDITENV 124#define CONFIG_CMD_IMI 125#define CONFIG_CMD_ITEST 126#define CONFIG_CMD_LOADB 127#define CONFIG_CMD_LOADS 128#define CONFIG_CMD_MEMORY 129#define CONFIG_CMD_MISC 130#define CONFIG_CMD_RUN 131#define CONFIG_CMD_SAVEENV 132#define CONFIG_CMD_SOURCE 133#define CONFIG_CMD_ENV 134#define CONFIG_CMD_ASKENV 135#define CONFIG_CMD_SAVES 136#define CONFIG_CMD_MEMORY 137#define CONFIG_CMD_NAND 138#define CONFIG_CMD_JFFS2 139 140#endif /* __CONFIG_H */ 141