rastaban.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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_RASTABAN_H
  12. #define __CONFIG_RASTABAN_H
  13. #include "siemens-am33x-common.h"
  14. #define DDR_PLL_FREQ 303
  15. /* FWD Button = 27
  16. * SRV Button = 87 */
  17. #define BOARD_DFU_BUTTON_GPIO 27
  18. #define GPIO_LAN9303_NRST 88 /* GPIO2_24 = gpio88 */
  19. /* In dfu mode keep led1 on */
  20. #define CONFIG_ENV_SETTINGS_BUTTONS_AND_LEDS \
  21. "button_dfu0=27\0" \
  22. "button_dfu1=87\0" \
  23. "led0=3,0,1\0" \
  24. "led1=4,0,0\0" \
  25. "led2=5,0,1\0" \
  26. "led3=62,0,1\0" \
  27. "led4=60,0,1\0" \
  28. "led5=63,0,1\0"
  29. /* Physical Memory Map */
  30. #define CONFIG_MAX_RAM_BANK_SIZE (1024 << 20) /* 1GB */
  31. /* I2C Configuration */
  32. #define CONFIG_SYS_I2C_SPEED 100000
  33. #define CONFIG_SYS_I2C_EEPROM_ADDR 0x50
  34. #define EEPROM_ADDR_DDR3 0x90
  35. #define EEPROM_ADDR_CHIP 0x120
  36. #define CONFIG_FACTORYSET
  37. /* Define own nand partitions */
  38. #define CONFIG_ENV_RANGE (4 * CONFIG_SYS_ENV_SECT_SIZE)
  39. #ifndef CONFIG_SPL_BUILD
  40. /* Default env settings */
  41. #define CONFIG_EXTRA_ENV_SETTINGS \
  42. "hostname=rastaban\0" \
  43. "ubi_off=2048\0"\
  44. "nand_img_size=0x400000\0" \
  45. "optargs=\0" \
  46. "preboot=draco_led 0\0" \
  47. CONFIG_ENV_SETTINGS_BUTTONS_AND_LEDS \
  48. CONFIG_ENV_SETTINGS_V2 \
  49. CONFIG_ENV_SETTINGS_NAND_V2
  50. #ifndef CONFIG_RESTORE_FLASH
  51. /* set to negative value for no autoboot */
  52. #define CONFIG_BOOTCOMMAND \
  53. "if dfubutton; then " \
  54. "run dfu_start; " \
  55. "reset; " \
  56. "fi;" \
  57. "run nand_boot;" \
  58. "run nand_boot_backup;" \
  59. "reset;"
  60. #else
  61. #define CONFIG_BOOTCOMMAND \
  62. "setenv autoload no; " \
  63. "dhcp; " \
  64. "if tftp 80000000 debrick.scr; then " \
  65. "source 80000000; " \
  66. "fi"
  67. #endif
  68. #endif /* CONFIG_SPL_BUILD */
  69. #endif /* ! __CONFIG_RASTABAN_H */