pepper.h 2.6 KB

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