/include/configs/o2d.h

https://gitlab.com/ubuntu-omap/u-boot-omap5 · C Header · 80 lines · 46 code · 9 blank · 25 comment · 0 complexity · e98b16ee1fa6e0858c1002f36ee0e4ad MD5 · raw file

  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_ITEST
  29. /*
  30. * GPIO configuration:
  31. * CS1 SDRAM activate + no CAN + no PCI
  32. */
  33. #define CONFIG_SYS_GPS_PORT_CONFIG 0x8000A004
  34. /* Other board specific configs */
  35. #define CONFIG_SYS_BOOTCS_CFG 0x00057d01
  36. #define CONFIG_SYS_RESET_ADDRESS 0xfc000000
  37. #define CONFIG_SYS_MEMTEST_START 0x00100000 /* memtest works on */
  38. #define CONFIG_SYS_MEMTEST_END 0x07f00000 /* 1 - 127 MB in DRAM */
  39. #define CONFIG_BOARD_NAME "o2d"
  40. #define CONFIG_BOARD_BOOTCMD "run dhcp_boot"
  41. #define CONFIG_BOARD_MEM_LIMIT xstr(126)
  42. #define BOARD_POST_CRC32_END xstr(0x01000000)
  43. #define CONFIG_EXTRA_ENV_SETTINGS \
  44. CONFIG_IFM_DEFAULT_ENV_SETTINGS \
  45. CONFIG_IFM_DEFAULT_ENV_OLD \
  46. CONFIG_IFM_DEFAULT_ENV_NEW \
  47. "linbot=fc060000\0" \
  48. "lintop=fc15ffff\0" \
  49. "rambot=fc160000\0" \
  50. "ramtop=fc55ffff\0" \
  51. "jffbot=fc560000\0" \
  52. "jfftop=fcffffff\0" \
  53. "ubobot=" xstr(CONFIG_SYS_FLASH_BASE) "\0" \
  54. "ubotop=fc03ffff\0" \
  55. "kernel_addr=0xfc060000\0" \
  56. "ramdisk_addr=0xfc160000\0" \
  57. "progCram=tftp ${fileaddr} ${cramfsname};" \
  58. "erase ${rambot} ${ramtop};" \
  59. "cp.b ${fileaddr} ${rambot} ${filesize}\0" \
  60. "flash_for_configs=22396\0" \
  61. "flash_mtd=run mtd_args addip addmem;" \
  62. "bootm ${kernel_addr}\0" \
  63. "mtd_args=setenv bootargs root=/dev/mtdblock3 " \
  64. "rw rootfstype=cramfs\0" \
  65. "master=mw f0000b00 0x8005A006;mw f0000b0c ${IOpin};" \
  66. "mw f0000b04 ${IOpin};mw f0000b10 0x20\0" \
  67. "dhcp_boot=run dhcpcmd;run flash_mtd\0" \
  68. "hostname=IFM_SENSOR\0" \
  69. "netretry=once\0" \
  70. "autoload=no\0" \
  71. "sensorType=O2D222AG\0"