rastaban.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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_PHY_SMSC
  37. #define CONFIG_FACTORYSET
  38. /* Define own nand partitions */
  39. #define CONFIG_ENV_RANGE (4 * CONFIG_SYS_ENV_SECT_SIZE)
  40. #ifndef CONFIG_SPL_BUILD
  41. /* Default env settings */
  42. #define CONFIG_EXTRA_ENV_SETTINGS \
  43. "hostname=rastaban\0" \
  44. "ubi_off=2048\0"\
  45. "nand_img_size=0x400000\0" \
  46. "optargs=\0" \
  47. "preboot=draco_led 0\0" \
  48. CONFIG_ENV_SETTINGS_BUTTONS_AND_LEDS \
  49. CONFIG_ENV_SETTINGS_V2 \
  50. CONFIG_ENV_SETTINGS_NAND_V2
  51. #ifndef CONFIG_RESTORE_FLASH
  52. /* set to negative value for no autoboot */
  53. #define CONFIG_BOOTCOMMAND \
  54. "if dfubutton; then " \
  55. "run dfu_start; " \
  56. "reset; " \
  57. "fi;" \
  58. "run nand_boot;" \
  59. "run nand_boot_backup;" \
  60. "reset;"
  61. #else
  62. #define CONFIG_BOOTCOMMAND \
  63. "setenv autoload no; " \
  64. "dhcp; " \
  65. "if tftp 80000000 debrick.scr; then " \
  66. "source 80000000; " \
  67. "fi"
  68. #endif
  69. #endif /* CONFIG_SPL_BUILD */
  70. #endif /* ! __CONFIG_RASTABAN_H */