blob: d9c84f27ea9b59afebe46ad1d19c0f70254eee27 [file] [log] [blame]
Ash Charles9cb110e2014-05-07 08:24:11 -07001/*
2 * Copyright (C) 2013 Gumstix, Inc. - http://www.gumstix.com/
3 *
4 * SPDX-License-Identifier: GPL-2.0+
5 */
6
7#ifndef __CONFIG_PEPPER_H
8#define __CONFIG_PEPPER_H
9
10#define CONFIG_MMC
11#include <configs/ti_am335x_common.h>
12
13#undef CONFIG_BOARD_LATE_INIT
Ash Charles9cb110e2014-05-07 08:24:11 -070014
15/* Clock defines */
16#define V_OSCK 24000000 /* Clock output from T2 */
17#define V_SCLK (V_OSCK)
18
Adam YH Lee3dc3c982015-06-01 14:29:09 -070019#define CONFIG_SYS_I2C_EEPROM_ADDR 0x50
20
Ash Charles9cb110e2014-05-07 08:24:11 -070021/* Mach type */
22#define MACH_TYPE_PEPPER 4207 /* Until the next sync */
23#define CONFIG_MACH_TYPE MACH_TYPE_PEPPER
24
25#define CONFIG_ENV_SIZE (128 << 10) /* 128 KiB */
26#define CONFIG_ENV_IS_NOWHERE
Ash Charles9cb110e2014-05-07 08:24:11 -070027
28#define CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
29#define CONFIG_EXTRA_ENV_SETTINGS \
30 DEFAULT_LINUX_BOOT_ENV \
31 "bootdir=/boot\0" \
32 "bootfile=zImage\0" \
33 "fdtfile=am335x-pepper.dtb\0" \
34 "console=ttyO0,115200n8\0" \
35 "optargs=\0" \
36 "mmcdev=0\0" \
37 "mmcroot=/dev/mmcblk0p2 rw\0" \
Adam YH Leebc08c762015-07-20 11:50:40 -070038 "mmcrootfstype=ext4 rootwait\0" \
Ash Charles9cb110e2014-05-07 08:24:11 -070039 "mmcargs=setenv bootargs console=${console} " \
40 "${optargs} " \
41 "root=${mmcroot} " \
42 "rootfstype=${mmcrootfstype}\0" \
43 "bootenv=uEnv.txt\0" \
44 "loadbootenv=load mmc ${mmcdev} ${loadaddr} ${bootenv}\0" \
45 "importbootenv=echo Importing environment from mmc ...; " \
46 "env import -t ${loadaddr} ${filesize}\0" \
47 "mmcload=load mmc ${mmcdev}:2 ${loadaddr} ${bootdir}/${bootfile}; " \
48 "load mmc ${mmcdev}:2 ${fdtaddr} ${bootdir}/${fdtfile}\0" \
49 "loaduimage=fatload mmc ${mmcdev}:1 ${loadaddr} uImage\0" \
50 "uimageboot=echo Booting from mmc${mmcdev} ...; " \
51 "run mmcargs; " \
52 "bootm ${loadaddr}\0" \
53 "mmcboot=echo Booting from mmc ...; " \
54 "run mmcargs; " \
55 "bootz ${loadaddr} - ${fdtaddr}\0" \
56 "ubiboot=echo Booting from nand (ubifs) ...; " \
57 "run ubiargs; run ubiload; " \
58 "bootz ${loadaddr} - ${fdtaddr}\0" \
59
60#define CONFIG_BOOTCOMMAND \
61 "mmc dev ${mmcdev}; if mmc rescan; then " \
62 "echo SD/MMC found on device ${mmcdev};" \
63 "if run loadbootenv; then " \
64 "echo Loaded environment from ${bootenv};" \
65 "run importbootenv;" \
66 "fi;" \
67 "if test -n $uenvcmd; then " \
68 "echo Running uenvcmd ...;" \
69 "run uenvcmd;" \
70 "fi;" \
71 "if run mmcload; then " \
72 "run mmcboot;" \
73 "fi;" \
74 "if run loaduimage; then " \
75 "run uimageboot;" \
76 "fi;" \
77 "fi;" \
78
79/* Serial console configuration */
80#define CONFIG_CONS_INDEX 1 /* UART0 */
81#define CONFIG_SERIAL1 1
82#define CONFIG_SYS_NS16550_COM1 0x44e09000
83
84/* Ethernet support */
85#define CONFIG_PHY_GIGE
86#define CONFIG_PHYLIB
87#define CONFIG_PHY_ADDR 0
88#define CONFIG_PHY_MICREL
89#define CONFIG_PHY_MICREL_KSZ9021
90#define CONFIG_PHY_RESET_DELAY 1000
91
92/* SPL */
Tom Rini28eec372016-11-07 21:34:54 -050093#define CONFIG_SPL_LDSCRIPT "arch/arm/mach-omap2/am33xx/u-boot-spl.lds"
Ash Charles9cb110e2014-05-07 08:24:11 -070094
95#endif /* __CONFIG_PEPPER_H */