eco5pk.h 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. /*
  2. * Copyright (C) 2012 8D Technologies inc.
  3. * Based on mt_ventoux.h, original banner below:
  4. *
  5. * Copyright (C) 2011
  6. * Stefano Babic, DENX Software Engineering, sbabic@denx.de.
  7. *
  8. * Copyright (C) 2009 TechNexion Ltd.
  9. *
  10. * This program is free software; you can redistribute it and/or modify
  11. * it under the terms of the GNU General Public License as published by
  12. * the Free Software Foundation; either version 2 of the License, or
  13. * (at your option) any later version.
  14. *
  15. * This program is distributed in the hope that it will be useful,
  16. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18. * GNU General Public License for more details.
  19. *
  20. * You should have received a copy of the GNU General Public License
  21. * along with this program; if not, write to the Free Software
  22. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  23. */
  24. #ifndef __CONFIG_H
  25. #define __CONFIG_H
  26. #include "tam3517-common.h"
  27. #undef CONFIG_USB_EHCI
  28. #undef CONFIG_USB_EHCI_OMAP
  29. #undef CONFIG_USB_OMAP3
  30. #undef CONFIG_CMD_USB
  31. /* Our console port is port3 */
  32. #undef CONFIG_CONS_INDEX
  33. #undef CONFIG_SYS_NS16550_COM1
  34. #undef CONFIG_SERIAL1
  35. #define CONFIG_CONS_INDEX 3
  36. #define CONFIG_SYS_NS16550_COM3 OMAP34XX_UART3
  37. #define CONFIG_SERIAL3
  38. #define MACH_TYPE_ECO5_PK 4017
  39. #define CONFIG_MACH_TYPE MACH_TYPE_ECO5_PK
  40. #define CONFIG_BOOTDELAY 10
  41. #define CONFIG_BOOTFILE "uImage"
  42. #define CONFIG_AUTO_COMPLETE
  43. /*
  44. * Miscellaneous configurable options
  45. */
  46. #define V_PROMPT "ECO5-PK # "
  47. #define CONFIG_SYS_PROMPT V_PROMPT
  48. /*
  49. * Set its own mtdparts, different from common
  50. */
  51. #undef MTDIDS_DEFAULT
  52. #undef MTDPARTS_DEFAULT
  53. #define MTDIDS_DEFAULT "nand0=omap2-nand.0"
  54. #define MTDPARTS_DEFAULT "mtdparts=omap2-nand.0:512k(xloader-nand)," \
  55. "1024k(uboot-nand),256k(params-nand)," \
  56. "5120k(kernel),-(ubifs)"
  57. /*
  58. * The arithmetic in tam3517.h is wrong for us and the kernel gets overwritten.
  59. */
  60. #undef CONFIG_ENV_OFFSET_REDUND
  61. #define CONFIG_ENV_OFFSET_REDUND (CONFIG_ENV_OFFSET + \
  62. CONFIG_SYS_ENV_SECT_SIZE)
  63. #define CONFIG_EXTRA_ENV_SETTINGS CONFIG_TAM3517_SETTINGS \
  64. "install_kernel=if dhcp $bootfile; then nand erase kernel;" \
  65. "nand write $fileaddr kernel; fi\0" \
  66. "mtdparts="MTDPARTS_DEFAULT"\0" \
  67. "serverip=192.168.142.60\0"
  68. #endif /* __CONFIG_H */