tk71.h 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. /*
  2. * Copyright (C) 2012 Marek Vasut <marex@denx.de>
  3. * on behalf of DENX Software Engineering GmbH
  4. *
  5. * See file CREDITS for list of people who contributed to this
  6. * project.
  7. *
  8. * This program is free software; you can redistribute it and/or
  9. * modify it under the terms of the GNU General Public License as
  10. * published by the Free Software Foundation; either version 2 of
  11. * the License, or (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program; if not, write to the Free Software
  20. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
  21. * MA 02110-1301 USA
  22. */
  23. #ifndef __CONFIG_TK71_H__
  24. #define __CONFIG_TK71_H__
  25. /*
  26. * Version number information
  27. */
  28. #define CONFIG_IDENT_STRING "\nKa-Ro TK71"
  29. /*
  30. * High Level Configuration Options (easy to change)
  31. */
  32. #define CONFIG_FEROCEON_88FR131 1 /* CPU Core subversion */
  33. #define CONFIG_KIRKWOOD 1 /* SOC Family Name */
  34. #define CONFIG_KW88F6281 1 /* SOC Name */
  35. #define CONFIG_SKIP_LOWLEVEL_INIT /* disable board lowlevel_init */
  36. #define CONFIG_NR_DRAM_BANKS 1
  37. #define MACH_TYPE_TK71 2399
  38. #define CONFIG_MACH_TYPE MACH_TYPE_TK71
  39. /*
  40. * Commands configuration
  41. */
  42. #define CONFIG_SYS_HUSH_PARSER
  43. #define CONFIG_SYS_NO_FLASH
  44. #define CONFIG_DOS_PARTITION
  45. #define CONFIG_SUPPORT_VFAT
  46. #include <config_cmd_default.h>
  47. #define CONFIG_CMD_DHCP
  48. #define CONFIG_CMD_ENV
  49. #define CONFIG_CMD_EXT2
  50. #define CONFIG_CMD_FAT
  51. #define CONFIG_CMD_MTDPARTS
  52. #define CONFIG_CMD_NAND
  53. #define CONFIG_CMD_PING
  54. #define CONFIG_CMD_USB
  55. /*
  56. * mv-common.h should be defined after CMD configs since it used them
  57. * to enable certain macros
  58. */
  59. #include "mv-common.h"
  60. /*
  61. * NAND flash
  62. */
  63. #ifdef CONFIG_CMD_NAND
  64. #define CONFIG_MTD_DEVICE
  65. #define CONFIG_MTD_PARTITIONS
  66. #define CONFIG_JFFS2_NAND
  67. #define CONFIG_JFFS2_DEV "nand0,3"
  68. #endif
  69. /*
  70. * Ethernet Driver configuration
  71. */
  72. #ifdef CONFIG_CMD_NET
  73. #define CONFIG_MVGBE_PORTS {1, 0}
  74. #define CONFIG_PHY_BASE_ADR 0x08
  75. #endif
  76. /*
  77. * USB/EHCI
  78. */
  79. #ifdef CONFIG_CMD_USB
  80. #define CONFIG_USB_EHCI
  81. #define CONFIG_USB_EHCI_KIRKWOOD
  82. #define CONFIG_EHCI_IS_TDI
  83. #define CONFIG_USB_STORAGE
  84. #endif
  85. /*
  86. * Environment variables configurations
  87. */
  88. #ifdef CONFIG_CMD_NAND
  89. #define CONFIG_ENV_IS_IN_NAND
  90. #define CONFIG_ENV_SECT_SIZE 0x20000
  91. #else
  92. #define CONFIG_ENV_IS_NOWHERE
  93. #endif
  94. #define CONFIG_ENV_SIZE 0x20000
  95. #define CONFIG_ENV_ADDR 0x80000
  96. #define CONFIG_ENV_OFFSET 0x80000
  97. /*
  98. * Default environment variables
  99. */
  100. #define CONFIG_BOOTCOMMAND "nand read 0x800000 kernel 0x300000; bootm;"
  101. #define CONFIG_MTDPARTS "512K(u-boot),512K(u-boot-env),3M(kernel),-(root)"
  102. #define CONFIG_EXTRA_ENV_SETTINGS \
  103. "update_uboot=dhcp u-boot.kwb; nand erase.part u-boot; nand write ${fileaddr} u-boot ${filesize}\0" \
  104. "update_kernel=dhcp uImage-tk71; nand erase.part kernel; nand write ${fileaddr} kernel ${filesize} \0" \
  105. "update_rootfs=dhcp rootfs-tk71; nand erase.part root; nand write ${fileaddr} root ${filesize}\0" \
  106. "update_all=run update_uboot; run update_kernel; run update_rootfs; reset\0" \
  107. "mtdids=nand0=orion_nand\0" \
  108. "mtdparts=mtdparts=orion_nand:"CONFIG_MTDPARTS"\0" \
  109. "bootargs=console=ttyS0,115200 mtdparts=orion_nand:"CONFIG_MTDPARTS" rootfstype=jffs2 root=/dev/mtdblock3 rw\0"
  110. #define MTDIDS_DEFAULT "nand0=orion_nand"
  111. #define MTDPARTS_DEFAULT "mtdparts=orion_nand:"CONFIG_MTDPARTS
  112. #define PHYS_SDRAM_1 0x00000000 /* Base address */
  113. #define PHYS_SDRAM_1_SIZE 0x20000000 /* Max 512 MB RAM */
  114. #endif /* __CONFIG_TK71_H__ */