o3dnt.h 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /*
  2. * (C) Copyright 2012
  3. * DENX Software Engineering, Anatolij Gustschin <agust@denx.de>
  4. *
  5. * This program is free software; you can redistribute it and/or
  6. * modify it under the terms of the GNU General Public License as
  7. * published by the Free Software Foundation; either version 2 of
  8. * the License, or (at your option) any later version.
  9. */
  10. /*
  11. * Valid values for CONFIG_SYS_TEXT_BASE are:
  12. * 0xFC000000 boot low boot high (standard configuration)
  13. * 0x00100000 boot from RAM (for testing only)
  14. */
  15. #ifndef CONFIG_SYS_TEXT_BASE
  16. #define CONFIG_SYS_TEXT_BASE 0xfc000000 /* Standard: boot low */
  17. #endif
  18. /* Board specific flash config */
  19. #define CONFIG_SYS_FLASH_BASE 0xfc000000
  20. #define CONFIG_SYS_FLASH_SIZE 0x04000000 /* maximum 64MB */
  21. /* max number of sectors on one chip */
  22. #define CONFIG_SYS_MAX_FLASH_SECT 512
  23. /*
  24. * Include common defines for all ifm boards
  25. */
  26. #include "o2dnt-common.h"
  27. /* Additional commands */
  28. #define CONFIG_CMD_BSP
  29. #define CONFIG_CMD_REGINFO
  30. /*
  31. * GPIO configuration:
  32. * no CAN + no PCI
  33. */
  34. #define CONFIG_SYS_GPS_PORT_CONFIG 0x0000A000
  35. /* Other board specific configs */
  36. #define CONFIG_SYS_BOOTCS_CFG 0x00057d01
  37. #define CONFIG_SYS_RESET_ADDRESS 0xfc000000
  38. #define CONFIG_SYS_MEMTEST_START 0x00100000 /* memtest works on */
  39. #define CONFIG_SYS_MEMTEST_END 0x03f00000 /* 1 - 63 MB in DRAM */
  40. #define CONFIG_BOARD_NAME "o3dnt"
  41. #define CONFIG_BOARD_BOOTCMD "run flash_self"
  42. #define CONFIG_BOARD_MEM_LIMIT xstr(62)
  43. #define BOARD_POST_CRC32_END xstr(0x01000000)
  44. #define CONFIG_EXTRA_ENV_SETTINGS \
  45. CONFIG_IFM_DEFAULT_ENV_SETTINGS \
  46. CONFIG_IFM_DEFAULT_ENV_OLD \
  47. CONFIG_IFM_DEFAULT_ENV_NEW \
  48. "linbot=fc060000\0" \
  49. "lintop=fc15ffff\0" \
  50. "rambot=fc160000\0" \
  51. "ramtop=fc55ffff\0" \
  52. "jffbot=fc560000\0" \
  53. "jfftop=fce5ffff\0" \
  54. "ubobot=" xstr(CONFIG_SYS_FLASH_BASE) "\0" \
  55. "ubotop=fc03ffff\0" \
  56. "calname="CONFIG_BOARD_NAME"/uCal_"CONFIG_BOARD_NAME"_act\0" \
  57. "calbot=fce60000\0" \
  58. "caltop=fcffffff\0" \
  59. "progCal=tftp 200000 ${calname};erase ${calbot} ${caltop};" \
  60. "cp.b ${fileaddr} ${calbot} ${filesize}\0" \
  61. "kernel_addr=0xfc060000\0" \
  62. "ramdisk_addr=0xfc160000\0" \
  63. "master=mw f0000b00 0x0005A006;mw f0000b0c ${IOpin};" \
  64. "mw f0000b04 ${IOpin};mw f0000b10 0x20\0"