rastaban.h 2.0 KB

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