2018-05-06 21:58:06 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
2011-01-24 06:33:50 +00:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2010 Samsung Electronics
|
|
|
|
* Minkyu Kang <mk7.kang@samsung.com>
|
|
|
|
*
|
2011-12-06 23:34:12 +00:00
|
|
|
* Configuation settings for the SAMSUNG Universal (EXYNOS4210) board.
|
2011-01-24 06:33:50 +00:00
|
|
|
*/
|
|
|
|
|
2014-03-07 13:59:47 +00:00
|
|
|
#ifndef __CONFIG_UNIVERSAL_H
|
|
|
|
#define __CONFIG_UNIVERSAL_H
|
2011-01-24 06:33:50 +00:00
|
|
|
|
2014-10-08 04:01:44 +00:00
|
|
|
#include <configs/exynos4-common.h>
|
2014-03-07 13:59:47 +00:00
|
|
|
|
2011-01-24 06:33:50 +00:00
|
|
|
/* Keep L2 Cache Disabled */
|
|
|
|
|
2014-03-07 13:59:47 +00:00
|
|
|
/* Universal has 2 banks of DRAM */
|
2022-11-16 18:10:37 +00:00
|
|
|
#define CFG_SYS_SDRAM_BASE 0x40000000
|
|
|
|
#define PHYS_SDRAM_1 CFG_SYS_SDRAM_BASE
|
2011-01-24 06:33:50 +00:00
|
|
|
|
2014-03-07 13:59:47 +00:00
|
|
|
#define SDRAM_BANK_SIZE (256 << 20) /* 256 MB */
|
2011-01-24 06:33:50 +00:00
|
|
|
|
|
|
|
/* Actual modem binary size is 16MiB. Add 2MiB for bad block handling */
|
2017-10-22 21:55:07 +00:00
|
|
|
|
|
|
|
#define NORMAL_MTDPARTS_DEFAULT CONFIG_MTDPARTS_DEFAULT
|
2011-01-24 06:33:50 +00:00
|
|
|
|
|
|
|
#define MBRPARTS_DEFAULT "20M(permanent)"\
|
|
|
|
",20M(boot)"\
|
|
|
|
",1G(system)"\
|
|
|
|
",100M(swap)"\
|
|
|
|
",-(UMS)\0"
|
|
|
|
|
|
|
|
#define CONFIG_EXTRA_ENV_SETTINGS \
|
|
|
|
"updateb=" \
|
|
|
|
"onenand erase 0x0 0x100000;" \
|
|
|
|
"onenand write 0x42008000 0x0 0x100000\0" \
|
|
|
|
"updatek=" \
|
|
|
|
"onenand erase 0xc00000 0x500000;" \
|
|
|
|
"onenand write 0x41008000 0xc00000 0x500000\0" \
|
|
|
|
"bootk=" \
|
|
|
|
"run loaduimage; bootm 0x40007FC0\0" \
|
|
|
|
"updatebackup=" \
|
2014-04-30 00:09:15 +00:00
|
|
|
"mmc dev 0 2; mmc write 0 0x42100000 0 0x200;" \
|
|
|
|
"mmc dev 0 0\0" \
|
2011-01-24 06:33:50 +00:00
|
|
|
"updatebootb=" \
|
|
|
|
"mmc read 0 0x42100000 0x80 0x200; run updatebackup\0" \
|
|
|
|
"lpj=lpj=3981312\0" \
|
|
|
|
"ubifsboot=" \
|
|
|
|
"set bootargs root=ubi0!rootfs rootfstype=ubifs ${lpj} " \
|
2021-08-10 21:34:22 +00:00
|
|
|
"ubi.mtd=${ubiblock} ubi.mtd=4 ubi.mtd=7 " \
|
|
|
|
"rootflags=bulk_read,no_chk_data_crc ${mtdparts} ${opts} " \
|
|
|
|
"${lcdinfo} ${console} ${meminfo}; run bootk\0" \
|
2011-01-24 06:33:50 +00:00
|
|
|
"tftpboot=" \
|
|
|
|
"set bootargs root=ubi0!rootfs rootfstype=ubifs " \
|
2021-08-10 21:34:22 +00:00
|
|
|
"ubi.mtd=${ubiblock} ubi.mtd=4 ubi.mtd=7 " \
|
|
|
|
"rootflags=bulk_read,no_chk_data_crc ${mtdparts} ${opts} " \
|
|
|
|
"${lcdinfo} ${console} ${meminfo}" \
|
2011-01-24 06:33:50 +00:00
|
|
|
"; tftp 0x40007FC0 uImage; bootm 0x40007FC0\0" \
|
|
|
|
"nfsboot=" \
|
|
|
|
"set bootargs root=/dev/nfs rw " \
|
|
|
|
"nfsroot=${nfsroot},nolock,tcp " \
|
|
|
|
"ip=${ipaddr}:${serverip}:${gatewayip}:" \
|
2021-08-10 21:34:22 +00:00
|
|
|
"${netmask}:generic:usb0:off ${console} ${meminfo}" \
|
2011-01-24 06:33:50 +00:00
|
|
|
"; run bootk\0" \
|
|
|
|
"ramfsboot=" \
|
|
|
|
"set bootargs root=/dev/ram0 rw rootfstype=ext2 " \
|
|
|
|
"${console} ${meminfo} " \
|
|
|
|
"initrd=0x43000000,8M ramdisk=8192\0" \
|
|
|
|
"mmcboot=" \
|
|
|
|
"set bootargs root=/dev/mmcblk${mmcdev}p${mmcrootpart} " \
|
|
|
|
"${lpj} rootwait ${console} ${meminfo} ${opts} ${lcdinfo}; " \
|
|
|
|
"run loaduimage; bootm 0x40007FC0\0" \
|
|
|
|
"bootchart=set opts init=/sbin/bootchartd; run bootcmd\0" \
|
|
|
|
"boottrace=setenv opts initcall_debug; run bootcmd\0" \
|
|
|
|
"mmcoops=mmc read 0 0x40000000 0x40 8; md 0x40000000 0x400\0" \
|
|
|
|
"verify=n\0" \
|
|
|
|
"rootfstype=ext4\0" \
|
2020-09-17 06:52:01 +00:00
|
|
|
"console=console=ttySAC1,115200n8\0" \
|
2011-01-24 06:33:50 +00:00
|
|
|
"mbrparts=" MBRPARTS_DEFAULT \
|
|
|
|
"meminfo=crashkernel=32M@0x50000000\0" \
|
|
|
|
"nfsroot=/nfsroot/arm\0" \
|
2021-08-10 21:34:22 +00:00
|
|
|
"bootblock=10\0" \
|
|
|
|
"ubiblock=9\0" \
|
2011-01-24 06:33:50 +00:00
|
|
|
"ubi=enabled\0" \
|
|
|
|
"loaduimage=fatload mmc ${mmcdev}:${mmcbootpart} 0x40007FC0 uImage\0" \
|
|
|
|
"mmcdev=0\0" \
|
|
|
|
"mmcbootpart=2\0" \
|
|
|
|
"mmcrootpart=3\0" \
|
|
|
|
"opts=always_resume=1"
|
|
|
|
|
2022-11-16 18:10:41 +00:00
|
|
|
#define CFG_SYS_ONENAND_BASE 0x0C000000
|
2011-01-24 06:33:50 +00:00
|
|
|
|
2012-10-19 05:34:03 +00:00
|
|
|
#ifndef __ASSEMBLY__
|
|
|
|
void universal_spi_scl(int bit);
|
|
|
|
void universal_spi_sda(int bit);
|
|
|
|
int universal_spi_read(void);
|
|
|
|
#endif
|
|
|
|
|
2014-01-22 10:24:20 +00:00
|
|
|
/* Download menu - definitions for check keys */
|
|
|
|
#ifndef __ASSEMBLY__
|
|
|
|
|
|
|
|
#define KEY_PWR_PMIC_NAME "MAX8998_PMIC"
|
|
|
|
#define KEY_PWR_STATUS_REG MAX8998_REG_STATUS1
|
|
|
|
#define KEY_PWR_STATUS_MASK (1 << 7)
|
|
|
|
#define KEY_PWR_INTERRUPT_REG MAX8998_REG_IRQ1
|
|
|
|
#define KEY_PWR_INTERRUPT_MASK (1 << 7)
|
|
|
|
|
2014-05-13 05:00:15 +00:00
|
|
|
#define KEY_VOL_UP_GPIO EXYNOS4_GPIO_X20
|
|
|
|
#define KEY_VOL_DOWN_GPIO EXYNOS4_GPIO_X21
|
2014-01-22 10:24:20 +00:00
|
|
|
#endif /* __ASSEMBLY__ */
|
|
|
|
|
2011-01-24 06:33:50 +00:00
|
|
|
#endif /* __CONFIG_H */
|