o2d.h 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. /*
  2. * (C) Copyright 2012
  3. * DENX Software Engineering, Anatolij Gustschin <agust@denx.de>
  4. *
  5. * SPDX-License-Identifier: GPL-2.0+
  6. */
  7. /*
  8. * Valid values for CONFIG_SYS_TEXT_BASE are:
  9. * 0xFC000000 boot low boot high (standard configuration)
  10. * 0x00100000 boot from RAM (for testing only)
  11. */
  12. #ifndef CONFIG_SYS_TEXT_BASE
  13. #define CONFIG_SYS_TEXT_BASE 0xfc000000 /* Standard: boot low */
  14. #endif
  15. /* Board specific flash config */
  16. #define CONFIG_SYS_FLASH_BASE 0xfc000000
  17. #define CONFIG_SYS_FLASH_SIZE 0x04000000 /* maximum 64MB */
  18. /* max number of sectors on one chip */
  19. #define CONFIG_SYS_MAX_FLASH_SECT 512
  20. /*
  21. * Include common defines for all ifm boards
  22. */
  23. #include "o2dnt-common.h"
  24. /*
  25. * GPIO configuration:
  26. * CS1 SDRAM activate + no CAN + no PCI
  27. */
  28. #define CONFIG_SYS_GPS_PORT_CONFIG 0x8000A004
  29. /* Other board specific configs */
  30. #define CONFIG_SYS_BOOTCS_CFG 0x00057d01
  31. #define CONFIG_SYS_RESET_ADDRESS 0xfc000000
  32. #define CONFIG_SYS_MEMTEST_START 0x00100000 /* memtest works on */
  33. #define CONFIG_SYS_MEMTEST_END 0x07f00000 /* 1 - 127 MB in DRAM */
  34. #define CONFIG_BOARD_NAME "o2d"
  35. #define CONFIG_BOARD_BOOTCMD "run dhcp_boot"
  36. #define CONFIG_BOARD_MEM_LIMIT __stringify(126)
  37. #define BOARD_POST_CRC32_END __stringify(0x01000000)
  38. #define CONFIG_EXTRA_ENV_SETTINGS \
  39. CONFIG_IFM_DEFAULT_ENV_SETTINGS \
  40. CONFIG_IFM_DEFAULT_ENV_OLD \
  41. CONFIG_IFM_DEFAULT_ENV_NEW \
  42. "linbot=fc060000\0" \
  43. "lintop=fc15ffff\0" \
  44. "rambot=fc160000\0" \
  45. "ramtop=fc55ffff\0" \
  46. "jffbot=fc560000\0" \
  47. "jfftop=fcffffff\0" \
  48. "ubobot=" __stringify(CONFIG_SYS_FLASH_BASE) "\0" \
  49. "ubotop=fc03ffff\0" \
  50. "kernel_addr=0xfc060000\0" \
  51. "ramdisk_addr=0xfc160000\0" \
  52. "progCram=tftp ${fileaddr} ${cramfsname};" \
  53. "erase ${rambot} ${ramtop};" \
  54. "cp.b ${fileaddr} ${rambot} ${filesize}\0" \
  55. "flash_for_configs=22396\0" \
  56. "flash_mtd=run mtd_args addip addmem;" \
  57. "bootm ${kernel_addr}\0" \
  58. "mtd_args=setenv bootargs root=/dev/mtdblock3 " \
  59. "rw rootfstype=cramfs\0" \
  60. "master=mw f0000b00 0x8005A006;mw f0000b0c ${IOpin};" \
  61. "mw f0000b04 ${IOpin};mw f0000b10 0x20\0" \
  62. "dhcp_boot=run dhcpcmd;run flash_mtd\0" \
  63. "hostname=IFM_SENSOR\0" \
  64. "netretry=once\0" \
  65. "autoload=no\0" \
  66. "sensorType=O2D222AG\0"