* based on: am335x_evm
* Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/
*
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation version 2.
+ * SPDX-License-Identifier: GPL-2.0
*
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
*/
-#ifndef __CONFIGS_TX48_H
-#define __CONFIGS_TX48_H
+#ifndef __CONFIG_H
+#define __CONFIG_H
+
+#define CONFIG_OMAP
+#define CONFIG_AM33XX
#include <asm/sizes.h>
+#include <asm/arch/omap.h>
/*
* Ka-Ro TX48 board - SoC configuration
*/
-#define CONFIG_AM33XX
#define CONFIG_AM33XX_GPIO
#define CONFIG_SYS_HZ 1000 /* Ticks per second */
*/
#ifdef CONFIG_OF_LIBFDT /* set via cmdline parameter thru boards.cfg */
#define CONFIG_FDT_FIXUP_PARTITIONS
-#define CONFIG_OF_EMBED
#define CONFIG_OF_BOARD_SETUP
#define CONFIG_DEFAULT_DEVICE_TREE tx48
#define CONFIG_ARCH_DEVICE_TREE am33xx
/*
* Boot Linux
*/
-#define xstr(s) str(s)
-#define str(s) #s
+#define xstr(s) str(s)
+#define str(s) #s
#define __pfx(x, s) (x##s)
#define _pfx(x, s) __pfx(x, s)
" root=/dev/mtdblock4 rootfstype=jffs2\0" \
"nfsroot=/tftpboot/rootfs\0" \
"bootargs_nfs=run default_bootargs;set bootargs ${bootargs}" \
- " root=/dev/nfs ip=dhcp nfsroot=${serverip}:${nfsroot},nolock\0"\
+ " root=/dev/nfs ip=dhcp nfsroot=${nfs_server}:${nfsroot},nolock\0"\
"bootcmd_mmc=set autostart no;run bootargs_mmc;" \
" fatload mmc 0 ${loadaddr} uImage;run bootm_cmd\0" \
"bootcmd_nand=set autostart no;run bootargs_nand;" \
TX48_BOOTM_CMD \
"default_bootargs=set bootargs " CONFIG_BOOTARGS \
TX48_MTDPARTS_CMD \
- " video=${video_mode} ${append_bootargs}\0" \
+ " ${append_bootargs}\0" \
"cpu_clk=" xstr(CONFIG_SYS_MPU_CLK) "\0" \
"fdtaddr=81000000\0" \
"mtdids=" MTDIDS_DEFAULT "\0" \
"mtdparts=" MTDPARTS_DEFAULT "\0" \
"otg_mode=device\0" \
"touchpanel=tsc2007\0" \
- "video_mode=da8xx-fb:640x480MR-24@60\0"
+ "video_mode=VGA\0"
#define MTD_NAME "omap2-nand.0"
#define MTDIDS_DEFAULT "nand0=" MTD_NAME
#define CONFIG_CMD_MTDPARTS
#define CONFIG_CMD_BOOTCE
#define CONFIG_CMD_TIME
+#define CONFIG_CMD_MEMTEST
/*
* Serial Driver
#ifdef CONFIG_CMD_NAND
#define CONFIG_MTD_DEVICE
#define CONFIG_ENV_IS_IN_NAND
-#define CONFIG_NAND_AM33XX
+#define CONFIG_NAND_OMAP_GPMC
#define GPMC_NAND_ECC_LP_x8_LAYOUT
#define GPMC_NAND_HW_ECC_LAYOUT_KERNEL GPMC_NAND_HW_ECC_LAYOUT
#define CONFIG_SYS_NAND_U_BOOT_OFFS 0x20000
#define CONFIG_SPL
#define CONFIG_SPL_FRAMEWORK
#define CONFIG_SPL_BOARD_INIT
-#define CONFIG_SPL_MAX_SIZE (46 * SZ_1K)
+#define CONFIG_SPL_MAX_SIZE (SRAM_SCRATCH_SPACE_ADDR - CONFIG_SPL_TEXT_BASE)
#define CONFIG_SPL_GPIO_SUPPORT
-#ifdef CONFIG_NAND_AM33XX
+#ifdef CONFIG_NAND_OMAP_GPMC
+#define CONFIG_SPL_NAND_SUPPORT
#define CONFIG_SPL_NAND_DRIVERS
+#define CONFIG_SPL_NAND_BASE
+#define CONFIG_SPL_NAND_ECC
#define CONFIG_SPL_NAND_AM33XX_BCH
-#define CONFIG_SPL_NAND_SUPPORT
#define CONFIG_SYS_NAND_5_ADDR_CYCLE
#define CONFIG_SYS_NAND_PAGE_COUNT (CONFIG_SYS_NAND_BLOCK_SIZE / \
CONFIG_SYS_NAND_PAGE_SIZE)
#define CONFIG_SYS_SPL_MALLOC_START (PHYS_SDRAM_1 + SZ_2M + SZ_32K)
#define CONFIG_SYS_SPL_MALLOC_SIZE SZ_1M
-#endif /* __CONFIGS_TX48_H */
+#endif /* __CONFIG_H */