o2d300.h 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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. /* Use redundant environment */
  35. #define CONFIG_ENV_ADDR_REDUND (CONFIG_ENV_ADDR + CONFIG_ENV_SECT_SIZE)
  36. #define CONFIG_ENV_SIZE_REDUND (CONFIG_ENV_SIZE)
  37. #define CONFIG_BOARD_NAME "o2d300"
  38. #define CONFIG_BOARD_BOOTCMD "run dhcp_boot"
  39. #define CONFIG_BOARD_MEM_LIMIT __stringify(126)
  40. #define BOARD_POST_CRC32_END __stringify(0x02000000)
  41. #define CONFIG_EXTRA_ENV_SETTINGS \
  42. CONFIG_IFM_DEFAULT_ENV_SETTINGS \
  43. CONFIG_IFM_DEFAULT_ENV_OLD \
  44. CONFIG_IFM_DEFAULT_ENV_NEW \
  45. "autoload=no\0" \
  46. "dhcp_boot=run dhcpcmd;run flash_mtd\0" \
  47. "flash_mtd=run mtd_args addip addmem;" \
  48. "bootm ${kernel_addr}\0" \
  49. "mtd_args=setenv bootargs root=/dev/mtdblock4 " \
  50. "rw rootfstype=cramfs\0" \
  51. "linbot=fc080000\0" \
  52. "lintop=fc17ffff\0" \
  53. "rambot=fc180000\0" \
  54. "ramtop=fc57ffff\0" \
  55. "jffbot=fc580000\0" \
  56. "jfftop=fd39ffff\0" \
  57. "ubobot=" __stringify(CONFIG_SYS_FLASH_BASE) "\0" \
  58. "ubotop=fc03ffff\0" \
  59. "halname="CONFIG_BOARD_NAME"/"CONFIG_BOARD_NAME"_halcon\0" \
  60. "halbot=fd3a0000\0" \
  61. "haltop=fdf9ffff\0" \
  62. "progHal=tftp 200000 ${halname};erase ${halbot} ${haltop};" \
  63. "cp.b ${fileaddr} ${halbot} ${filesize}\0" \
  64. "kernel_addr=0xfc060000\0" \
  65. "ramdisk_addr=0xfc160000\0" \
  66. "master=mw f0000b00 0x8005A006;mw f0000b0c ${IOpin};" \
  67. "mw f0000b04 ${IOpin};mw f0000b10 0x20\0" \
  68. "netretry=once\0" \
  69. "protcmd=protect on ${linbot} ${lintop};" \
  70. "protect on ${rambot} ${ramtop}\0" \
  71. "o2derror=def_env\0" \
  72. "sensorType=O2D300AA\0"