xref: /rk3399_rockchip-uboot/include/configs/am335x_evm.h (revision 876bdd6d460cfcb7dc3b3c52291e20d322a939d5)
15289e83aSChandan Nath /*
25289e83aSChandan Nath  * am335x_evm.h
35289e83aSChandan Nath  *
45289e83aSChandan Nath  * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/
55289e83aSChandan Nath  *
65289e83aSChandan Nath  * This program is free software; you can redistribute it and/or
75289e83aSChandan Nath  * modify it under the terms of the GNU General Public License as
85289e83aSChandan Nath  * published by the Free Software Foundation version 2.
95289e83aSChandan Nath  *
105289e83aSChandan Nath  * This program is distributed "as is" WITHOUT ANY WARRANTY of any
115289e83aSChandan Nath  * kind, whether express or implied; without even the implied warranty
125289e83aSChandan Nath  * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
135289e83aSChandan Nath  * GNU General Public License for more details.
145289e83aSChandan Nath  */
155289e83aSChandan Nath 
165289e83aSChandan Nath #ifndef __CONFIG_AM335X_EVM_H
175289e83aSChandan Nath #define __CONFIG_AM335X_EVM_H
185289e83aSChandan Nath 
19f16da746SChandan Nath #define CONFIG_AM33XX
205289e83aSChandan Nath #define CONFIG_CMD_MEMORY	/* for mtest */
215289e83aSChandan Nath #undef CONFIG_GZIP
225289e83aSChandan Nath #undef CONFIG_ZLIB
235289e83aSChandan Nath #undef CONFIG_SYS_HUSH_PARSER
245289e83aSChandan Nath #undef CONFIG_CMD_NET
255289e83aSChandan Nath 
265289e83aSChandan Nath #include <asm/arch/cpu.h>
275289e83aSChandan Nath #include <asm/arch/hardware.h>
285289e83aSChandan Nath 
295289e83aSChandan Nath #define CONFIG_SETUP_PLL
305289e83aSChandan Nath #define CONFIG_AM335X_CONFIG_DDR
315289e83aSChandan Nath #define CONFIG_ENV_SIZE			0x400
325289e83aSChandan Nath #define CONFIG_SYS_MALLOC_LEN		(CONFIG_ENV_SIZE + (8 * 1024))
33750b4bfeSChandan Nath #define CONFIG_SYS_PROMPT		"U-Boot# "
345289e83aSChandan Nath #define CONFIG_SYS_NO_FLASH
35a88f70b9STom Rini #define MACH_TYPE_TIAM335EVM		3589	/* Until the next sync */
365289e83aSChandan Nath #define CONFIG_MACH_TYPE		MACH_TYPE_TIAM335EVM
375289e83aSChandan Nath 
385289e83aSChandan Nath #define CONFIG_CMD_ASKENV
395289e83aSChandan Nath #define CONFIG_VERSION_VARIABLE
405289e83aSChandan Nath 
415289e83aSChandan Nath /* set to negative value for no autoboot */
425289e83aSChandan Nath #define CONFIG_BOOTDELAY		3
435289e83aSChandan Nath #define CONFIG_SYS_AUTOLOAD		"no"
445289e83aSChandan Nath #define CONFIG_BOOTFILE			"uImage"
455289e83aSChandan Nath #define CONFIG_EXTRA_ENV_SETTINGS \
465289e83aSChandan Nath 	"verify=yes\0" \
475289e83aSChandan Nath 	"ramdisk_file=ramdisk.gz\0" \
485289e83aSChandan Nath 
495289e83aSChandan Nath /* Clock Defines */
505289e83aSChandan Nath #define V_OSCK				24000000  /* Clock output from T2 */
51750b4bfeSChandan Nath #define V_SCLK				(V_OSCK)
525289e83aSChandan Nath 
535289e83aSChandan Nath #define CONFIG_CMD_ECHO
545289e83aSChandan Nath 
555289e83aSChandan Nath /* max number of command args */
56750b4bfeSChandan Nath #define CONFIG_SYS_MAXARGS		16
575289e83aSChandan Nath 
585289e83aSChandan Nath /* Console I/O Buffer Size */
595289e83aSChandan Nath #define CONFIG_SYS_CBSIZE		512
605289e83aSChandan Nath 
615289e83aSChandan Nath /* Print Buffer Size */
625289e83aSChandan Nath #define CONFIG_SYS_PBSIZE		(CONFIG_SYS_CBSIZE \
635289e83aSChandan Nath 					+ sizeof(CONFIG_SYS_PROMPT) + 16)
645289e83aSChandan Nath 
655289e83aSChandan Nath /* Boot Argument Buffer Size */
665289e83aSChandan Nath #define CONFIG_SYS_BARGSIZE		CONFIG_SYS_CBSIZE
675289e83aSChandan Nath 
685289e83aSChandan Nath /*
695289e83aSChandan Nath  * memtest works on 8 MB in DRAM after skipping 32MB from
705289e83aSChandan Nath  * start addr of ram disk
715289e83aSChandan Nath  */
725289e83aSChandan Nath #define CONFIG_SYS_MEMTEST_START	(PHYS_DRAM_1 + (64 * 1024 * 1024))
735289e83aSChandan Nath #define CONFIG_SYS_MEMTEST_END		(CONFIG_SYS_MEMTEST_START \
745289e83aSChandan Nath 					+ (8 * 1024 * 1024))
755289e83aSChandan Nath 
765289e83aSChandan Nath #define CONFIG_SYS_LOAD_ADDR		0x81000000 /* Default load address */
775289e83aSChandan Nath #define CONFIG_SYS_HZ			1000 /* 1ms clock */
785289e83aSChandan Nath 
79*876bdd6dSChandan Nath #define CONFIG_MMC
80*876bdd6dSChandan Nath #define CONFIG_GENERIC_MMC
81*876bdd6dSChandan Nath #define CONFIG_OMAP_HSMMC
82*876bdd6dSChandan Nath #define CONFIG_CMD_MMC
83*876bdd6dSChandan Nath #define CONFIG_DOS_PARTITION
84*876bdd6dSChandan Nath #define CONFIG_CMD_FAT
85*876bdd6dSChandan Nath #define CONFIG_CMD_EXT2
86*876bdd6dSChandan Nath 
875289e83aSChandan Nath  /* Physical Memory Map */
885289e83aSChandan Nath #define CONFIG_NR_DRAM_BANKS		1		/*  1 bank of DRAM */
895289e83aSChandan Nath #define PHYS_DRAM_1			0x80000000	/* DRAM Bank #1 */
905289e83aSChandan Nath #define PHYS_DRAM_1_SIZE		0x10000000 /*(0x80000000 / 8) 256 MB */
915289e83aSChandan Nath #define CONFIG_MAX_RAM_BANK_SIZE	(1024 << 20)	/* 1GB */
925289e83aSChandan Nath 
935289e83aSChandan Nath #define CONFIG_SYS_SDRAM_BASE		PHYS_DRAM_1
945289e83aSChandan Nath #define CONFIG_SYS_INIT_SP_ADDR         (CONFIG_SYS_SDRAM_BASE + 0x1000 - \
955289e83aSChandan Nath 						GENERATED_GBL_DATA_SIZE)
965289e83aSChandan Nath  /* Platform/Board specific defs */
975289e83aSChandan Nath #define CONFIG_SYS_TIMERBASE		0x48040000	/* Use Timer2 */
985289e83aSChandan Nath #define CONFIG_SYS_PTV			2	/* Divisor: 2^(PTV+1) => 8 */
995289e83aSChandan Nath #define CONFIG_SYS_HZ			1000
1005289e83aSChandan Nath 
1015289e83aSChandan Nath /* NS16550 Configuration */
1025289e83aSChandan Nath #define CONFIG_SYS_NS16550
1035289e83aSChandan Nath #define CONFIG_SYS_NS16550_SERIAL
1045289e83aSChandan Nath #define CONFIG_SYS_NS16550_REG_SIZE	(-4)
1055289e83aSChandan Nath #define CONFIG_SYS_NS16550_CLK		(48000000)
1065289e83aSChandan Nath #define CONFIG_SYS_NS16550_COM1		0x44e09000	/* Base EVM has UART0 */
1075289e83aSChandan Nath 
1085289e83aSChandan Nath #define CONFIG_BAUDRATE		115200
1095289e83aSChandan Nath #define CONFIG_SYS_BAUDRATE_TABLE	{ 110, 300, 600, 1200, 2400, \
1105289e83aSChandan Nath 4800, 9600, 14400, 19200, 28800, 38400, 56000, 57600, 115200 }
1115289e83aSChandan Nath 
1125289e83aSChandan Nath /*
1135289e83aSChandan Nath  * select serial console configuration
1145289e83aSChandan Nath  */
1155289e83aSChandan Nath #define CONFIG_SERIAL1			1
1165289e83aSChandan Nath #define CONFIG_CONS_INDEX		1
1175289e83aSChandan Nath #define CONFIG_SYS_CONSOLE_INFO_QUIET
1185289e83aSChandan Nath 
1195289e83aSChandan Nath #define CONFIG_ENV_IS_NOWHERE
1205289e83aSChandan Nath 
1215289e83aSChandan Nath #define CONFIG_SYS_TEXT_BASE		0x402f0400
1225289e83aSChandan Nath 
1235289e83aSChandan Nath /* Unsupported features */
1245289e83aSChandan Nath #undef CONFIG_USE_IRQ
1255289e83aSChandan Nath 
1265289e83aSChandan Nath #endif	/* ! __CONFIG_AM335X_EVM_H */
127