blob: 2aa63fcc73ad09fc79d4a54a9fe6514350b6f025 [file] [log] [blame]
Ash Charles2d92ba82014-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
Ash Charles2d92ba82014-05-07 08:24:11 -070010#include <configs/ti_am335x_common.h>
11
12#undef CONFIG_BOARD_LATE_INIT
Ash Charles2d92ba82014-05-07 08:24:11 -070013
14/* Clock defines */
15#define V_OSCK 24000000 /* Clock output from T2 */
16#define V_SCLK (V_OSCK)
17
Adam YH Lee5e904702015-06-01 14:29:09 -070018#define CONFIG_SYS_I2C_EEPROM_ADDR 0x50
19
Ash Charles2d92ba82014-05-07 08:24:11 -070020/* Mach type */
21#define MACH_TYPE_PEPPER 4207 /* Until the next sync */
22#define CONFIG_MACH_TYPE MACH_TYPE_PEPPER
23
24#define CONFIG_ENV_SIZE (128 << 10) /* 128 KiB */
25#define CONFIG_ENV_IS_NOWHERE
Ash Charles2d92ba82014-05-07 08:24:11 -070026
27#define CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
28#define CONFIG_EXTRA_ENV_SETTINGS \
29 DEFAULT_LINUX_BOOT_ENV \
30 "bootdir=/boot\0" \
31 "bootfile=zImage\0" \
32 "fdtfile=am335x-pepper.dtb\0" \
33 "console=ttyO0,115200n8\0" \
34 "optargs=\0" \
35 "mmcdev=0\0" \
36 "mmcroot=/dev/mmcblk0p2 rw\0" \
Adam YH Lee1584e4f2015-07-20 11:50:40 -070037 "mmcrootfstype=ext4 rootwait\0" \
Ash Charles2d92ba82014-05-07 08:24:11 -070038 "mmcargs=setenv bootargs console=${console} " \
39 "${optargs} " \
40 "root=${mmcroot} " \
41 "rootfstype=${mmcrootfstype}\0" \
42 "bootenv=uEnv.txt\0" \
43 "loadbootenv=load mmc ${mmcdev} ${loadaddr} ${bootenv}\0" \
44 "importbootenv=echo Importing environment from mmc ...; " \
45 "env import -t ${loadaddr} ${filesize}\0" \
46 "mmcload=load mmc ${mmcdev}:2 ${loadaddr} ${bootdir}/${bootfile}; " \
47 "load mmc ${mmcdev}:2 ${fdtaddr} ${bootdir}/${fdtfile}\0" \
48 "loaduimage=fatload mmc ${mmcdev}:1 ${loadaddr} uImage\0" \
49 "uimageboot=echo Booting from mmc${mmcdev} ...; " \
50 "run mmcargs; " \
51 "bootm ${loadaddr}\0" \
52 "mmcboot=echo Booting from mmc ...; " \
53 "run mmcargs; " \
54 "bootz ${loadaddr} - ${fdtaddr}\0" \
55 "ubiboot=echo Booting from nand (ubifs) ...; " \
56 "run ubiargs; run ubiload; " \
57 "bootz ${loadaddr} - ${fdtaddr}\0" \
58
59#define CONFIG_BOOTCOMMAND \
60 "mmc dev ${mmcdev}; if mmc rescan; then " \
61 "echo SD/MMC found on device ${mmcdev};" \
62 "if run loadbootenv; then " \
63 "echo Loaded environment from ${bootenv};" \
64 "run importbootenv;" \
65 "fi;" \
66 "if test -n $uenvcmd; then " \
67 "echo Running uenvcmd ...;" \
68 "run uenvcmd;" \
69 "fi;" \
70 "if run mmcload; then " \
71 "run mmcboot;" \
72 "fi;" \
73 "if run loaduimage; then " \
74 "run uimageboot;" \
75 "fi;" \
76 "fi;" \
77
78/* Serial console configuration */
79#define CONFIG_CONS_INDEX 1 /* UART0 */
80#define CONFIG_SERIAL1 1
81#define CONFIG_SYS_NS16550_COM1 0x44e09000
82
83/* Ethernet support */
84#define CONFIG_PHY_GIGE
85#define CONFIG_PHYLIB
86#define CONFIG_PHY_ADDR 0
87#define CONFIG_PHY_MICREL
88#define CONFIG_PHY_MICREL_KSZ9021
89#define CONFIG_PHY_RESET_DELAY 1000
90
91/* SPL */
Tom Rini983e3702016-11-07 21:34:54 -050092#define CONFIG_SPL_LDSCRIPT "arch/arm/mach-omap2/am33xx/u-boot-spl.lds"
Ash Charles2d92ba82014-05-07 08:24:11 -070093
94#endif /* __CONFIG_PEPPER_H */