thuban.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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. #undef CONFIG_MII
  29. #define CONFIG_PHY_SMSC
  30. #define CONFIG_FACTORYSET
  31. /* Define own nand partitions */
  32. #define CONFIG_ENV_OFFSET_REDUND 0x2E0000
  33. #define CONFIG_ENV_SIZE_REDUND 0x2000
  34. #define CONFIG_ENV_RANGE (4 * CONFIG_SYS_ENV_SECT_SIZE)
  35. #ifndef CONFIG_SPL_BUILD
  36. /* Default env settings */
  37. #define CONFIG_EXTRA_ENV_SETTINGS \
  38. "hostname=thuban\0" \
  39. "ubi_off=2048\0"\
  40. "nand_img_size=0x400000\0" \
  41. "optargs=\0" \
  42. "preboot=draco_led 0\0" \
  43. CONFIG_ENV_SETTINGS_BUTTONS_AND_LEDS \
  44. CONFIG_ENV_SETTINGS_V2 \
  45. CONFIG_ENV_SETTINGS_NAND_V2
  46. #ifndef CONFIG_RESTORE_FLASH
  47. /* set to negative value for no autoboot */
  48. #define CONFIG_BOOTCOMMAND \
  49. "if dfubutton; then " \
  50. "run dfu_start; " \
  51. "reset; " \
  52. "fi;" \
  53. "run nand_boot;" \
  54. "run nand_boot_backup;" \
  55. "reset;"
  56. #else
  57. #define CONFIG_BOOTCOMMAND \
  58. "setenv autoload no; " \
  59. "dhcp; " \
  60. "if tftp 80000000 debrick.scr; then " \
  61. "source 80000000; " \
  62. "fi"
  63. #endif
  64. #endif /* CONFIG_SPL_BUILD */
  65. #endif /* ! __CONFIG_THUBAN_H */