thuban.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * (C) Copyright 2013 Siemens Schweiz AG
  4. * (C) Heiko Schocher, DENX Software Engineering, hs@denx.de.
  5. *
  6. * Based on:
  7. * U-Boot file:/include/configs/am335x_evm.h
  8. *
  9. * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/
  10. */
  11. #ifndef __CONFIG_THUBAN_H
  12. #define __CONFIG_THUBAN_H
  13. #include "siemens-am33x-common.h"
  14. #define DDR_PLL_FREQ 303
  15. #define BOARD_DFU_BUTTON_GPIO 27 /* Use as default */
  16. #define GPIO_LAN9303_NRST 88 /* GPIO2_24 = gpio88 */
  17. #define CONFIG_ENV_SETTINGS_BUTTONS_AND_LEDS \
  18. "button_dfu0=27\0" \
  19. "led0=103,1,0\0" \
  20. "led1=64,0,1\0"
  21. /* Physical Memory Map */
  22. #define CONFIG_MAX_RAM_BANK_SIZE (1024 << 20) /* 1GB */
  23. /* I2C Configuration */
  24. #define CONFIG_SYS_I2C_SPEED 100000
  25. #define CONFIG_SYS_I2C_EEPROM_ADDR 0x50
  26. #define EEPROM_ADDR_DDR3 0x90
  27. #define EEPROM_ADDR_CHIP 0x120
  28. #define CONFIG_PHY_SMSC
  29. #define CONFIG_FACTORYSET
  30. /* Define own nand partitions */
  31. #define CONFIG_ENV_RANGE (4 * CONFIG_SYS_ENV_SECT_SIZE)
  32. #ifndef CONFIG_SPL_BUILD
  33. /* Default env settings */
  34. #define CONFIG_EXTRA_ENV_SETTINGS \
  35. "hostname=thuban\0" \
  36. "ubi_off=2048\0"\
  37. "nand_img_size=0x400000\0" \
  38. "optargs=\0" \
  39. "preboot=draco_led 0\0" \
  40. CONFIG_ENV_SETTINGS_BUTTONS_AND_LEDS \
  41. CONFIG_ENV_SETTINGS_V2 \
  42. CONFIG_ENV_SETTINGS_NAND_V2
  43. #ifndef CONFIG_RESTORE_FLASH
  44. /* set to negative value for no autoboot */
  45. #define CONFIG_BOOTCOMMAND \
  46. "if dfubutton; then " \
  47. "run dfu_start; " \
  48. "reset; " \
  49. "fi;" \
  50. "run nand_boot;" \
  51. "run nand_boot_backup;" \
  52. "reset;"
  53. #else
  54. #define CONFIG_BOOTCOMMAND \
  55. "setenv autoload no; " \
  56. "dhcp; " \
  57. "if tftp 80000000 debrick.scr; then " \
  58. "source 80000000; " \
  59. "fi"
  60. #endif
  61. #endif /* CONFIG_SPL_BUILD */
  62. #endif /* ! __CONFIG_THUBAN_H */