Blame view

include/configs/pepper.h 2.3 KB
2d92ba844   Ash Charles   am335x: pepper: A...
1
2
3
4
5
6
7
8
  /*
   * Copyright (C) 2013 Gumstix, Inc. - http://www.gumstix.com/
   *
   * SPDX-License-Identifier:     GPL-2.0+
   */
  
  #ifndef __CONFIG_PEPPER_H
  #define __CONFIG_PEPPER_H
2d92ba844   Ash Charles   am335x: pepper: A...
9
  #include <configs/ti_am335x_common.h>
2d92ba844   Ash Charles   am335x: pepper: A...
10
11
12
  /* Clock defines */
  #define V_OSCK				24000000  /* Clock output from T2 */
  #define V_SCLK				(V_OSCK)
5e90470a8   Adam YH Lee   pepper: Implement...
13
  #define CONFIG_SYS_I2C_EEPROM_ADDR	0x50
2d92ba844   Ash Charles   am335x: pepper: A...
14
  /* Mach type */
2d92ba844   Ash Charles   am335x: pepper: A...
15
16
17
  #define CONFIG_MACH_TYPE		MACH_TYPE_PEPPER
  
  #define CONFIG_ENV_SIZE			(128 << 10)	/* 128 KiB */
2d92ba844   Ash Charles   am335x: pepper: A...
18
19
20
21
22
23
24
25
26
27
28
  
  #define CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
  #define CONFIG_EXTRA_ENV_SETTINGS \
  	DEFAULT_LINUX_BOOT_ENV \
  	"bootdir=/boot\0" \
  	"bootfile=zImage\0" \
  	"fdtfile=am335x-pepper.dtb\0" \
  	"console=ttyO0,115200n8\0" \
  	"optargs=\0" \
  	"mmcdev=0\0" \
  	"mmcroot=/dev/mmcblk0p2 rw\0" \
1584e4f45   Adam YH Lee   Update the rootfs...
29
  	"mmcrootfstype=ext4 rootwait\0" \
2d92ba844   Ash Charles   am335x: pepper: A...
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
  	"mmcargs=setenv bootargs console=${console} " \
  		"${optargs} " \
  		"root=${mmcroot} " \
  		"rootfstype=${mmcrootfstype}\0" \
  	"bootenv=uEnv.txt\0" \
  	"loadbootenv=load mmc ${mmcdev} ${loadaddr} ${bootenv}\0" \
  	"importbootenv=echo Importing environment from mmc ...; " \
  		"env import -t ${loadaddr} ${filesize}\0" \
  	"mmcload=load mmc ${mmcdev}:2 ${loadaddr} ${bootdir}/${bootfile}; " \
  		"load mmc ${mmcdev}:2 ${fdtaddr} ${bootdir}/${fdtfile}\0" \
  	"loaduimage=fatload mmc ${mmcdev}:1 ${loadaddr} uImage\0" \
  	"uimageboot=echo Booting from mmc${mmcdev} ...; " \
  		"run mmcargs; " \
  		"bootm ${loadaddr}\0" \
  	"mmcboot=echo Booting from mmc ...; " \
  		"run mmcargs; " \
  		"bootz ${loadaddr} - ${fdtaddr}\0" \
  	"ubiboot=echo Booting from nand (ubifs) ...; " \
  		"run ubiargs; run ubiload; " \
  		"bootz ${loadaddr} - ${fdtaddr}\0" \
  
  #define CONFIG_BOOTCOMMAND \
  	"mmc dev ${mmcdev}; if mmc rescan; then " \
  		"echo SD/MMC found on device ${mmcdev};" \
  		"if run loadbootenv; then " \
  			"echo Loaded environment from ${bootenv};" \
  			"run importbootenv;" \
  		"fi;" \
  		"if test -n $uenvcmd; then " \
  			"echo Running uenvcmd ...;" \
  			"run uenvcmd;" \
  		"fi;" \
  		"if run mmcload; then " \
  			"run mmcboot;" \
  		"fi;" \
  		"if run loaduimage; then " \
  			"run uimageboot;" \
  		"fi;" \
  	"fi;" \
  
  /* Serial console configuration */
  #define CONFIG_CONS_INDEX		1 /* UART0 */
  #define CONFIG_SERIAL1			1
  #define CONFIG_SYS_NS16550_COM1		0x44e09000
  
  /* Ethernet support */
2d92ba844   Ash Charles   am335x: pepper: A...
76
  #define CONFIG_PHY_ADDR			0
2d92ba844   Ash Charles   am335x: pepper: A...
77
78
79
  #define CONFIG_PHY_RESET_DELAY 1000
  
  /* SPL */
2d92ba844   Ash Charles   am335x: pepper: A...
80
81
  
  #endif /* __CONFIG_PEPPER_H */