h2200.h 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. /*
  2. * iPAQ h2200 board configuration
  3. *
  4. * Copyright (C) 2012 Lukasz Dalek <luk0104@gmail.com>
  5. *
  6. * SPDX-License-Identifier: GPL-2.0+
  7. */
  8. #ifndef __CONFIG_H
  9. #define __CONFIG_H
  10. #define MACH_TYPE_H2200 341
  11. #define CONFIG_MACH_TYPE MACH_TYPE_H2200
  12. #define CONFIG_CPU_PXA25X 1
  13. #define CONFIG_BOARD_H2200
  14. #define CONFIG_SYS_NO_FLASH
  15. #define CONFIG_NR_DRAM_BANKS 1
  16. #define PHYS_SDRAM_1 0xa0000000 /* SDRAM Bank #1 */
  17. #define PHYS_SDRAM_1_SIZE 0x04000000 /* 64 MB */
  18. #define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM_1
  19. #define CONFIG_SYS_SDRAM_SIZE PHYS_SDRAM_1_SIZE
  20. #define CONFIG_SYS_INIT_SP_ADDR 0xfffff800
  21. #define CONFIG_ENV_SIZE 0x00040000
  22. #define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + 128*1024)
  23. #define CONFIG_ENV_IS_NOWHERE
  24. #define CONFIG_SYS_MAXARGS 16
  25. #define CONFIG_SYS_LOAD_ADDR 0xa3000000 /* default load address */
  26. /*
  27. * iPAQ 1st stage bootloader loads 2nd stage bootloader
  28. * at address 0xa0040000 but bootloader requires header
  29. * which is 0x1000 long.
  30. *
  31. * --- Header begin ---
  32. * .word 0xea0003fe ; b 0x1000
  33. *
  34. * .org 0x40
  35. * .ascii "ECEC"
  36. *
  37. * .org 0x1000
  38. * --- Header end ---
  39. */
  40. #define CONFIG_SYS_TEXT_BASE 0xa0041000
  41. /*
  42. * Static chips
  43. */
  44. #define CONFIG_SYS_MSC0_VAL 0x246c7ffc
  45. #define CONFIG_SYS_MSC1_VAL 0x7ff07ff0
  46. #define CONFIG_SYS_MSC2_VAL 0x7ff07ff0
  47. /*
  48. * PCMCIA and CF Interfaces
  49. */
  50. #define CONFIG_SYS_MECR_VAL 0x00000000
  51. #define CONFIG_SYS_MCMEM0_VAL 0x00000000
  52. #define CONFIG_SYS_MCMEM1_VAL 0x00000000
  53. #define CONFIG_SYS_MCATT0_VAL 0x00000000
  54. #define CONFIG_SYS_MCATT1_VAL 0x00000000
  55. #define CONFIG_SYS_MCIO0_VAL 0x00000000
  56. #define CONFIG_SYS_MCIO1_VAL 0x00000000
  57. #define CONFIG_SYS_FLYCNFG_VAL 0x00000000
  58. #define CONFIG_SYS_SXCNFG_VAL 0x00040004
  59. #define CONFIG_SYS_MDREFR_VAL 0x0099E018
  60. #define CONFIG_SYS_MDCNFG_VAL 0x01C801CB
  61. #define CONFIG_SYS_MDMRS_VAL 0x00220022
  62. #define CONFIG_SYS_PSSR_VAL 0x00000000
  63. #define CONFIG_SYS_CKEN 0x00004840
  64. #define CONFIG_SYS_CCCR 0x00000161
  65. /*
  66. * GPIOs
  67. */
  68. #define CONFIG_SYS_GPSR0_VAL 0x01000000
  69. #define CONFIG_SYS_GPSR1_VAL 0x00000000
  70. #define CONFIG_SYS_GPSR2_VAL 0x00010000
  71. #define CONFIG_SYS_GPCR0_VAL 0x00000000
  72. #define CONFIG_SYS_GPCR1_VAL 0x00000000
  73. #define CONFIG_SYS_GPCR2_VAL 0x00000000
  74. #define CONFIG_SYS_GPDR0_VAL 0xF7E38C00
  75. #define CONFIG_SYS_GPDR1_VAL 0xBCFFBF83
  76. #define CONFIG_SYS_GPDR2_VAL 0x000157FF
  77. #define CONFIG_SYS_GAFR0_L_VAL 0x80401000
  78. #define CONFIG_SYS_GAFR0_U_VAL 0x00000112
  79. #define CONFIG_SYS_GAFR1_L_VAL 0x600A9550
  80. #define CONFIG_SYS_GAFR1_U_VAL 0x0005AAAA
  81. #define CONFIG_SYS_GAFR2_L_VAL 0x20000000
  82. #define CONFIG_SYS_GAFR2_U_VAL 0x00000000
  83. /*
  84. * Serial port
  85. */
  86. #define CONFIG_FFUART
  87. #define CONFIG_CONS_INDEX 3
  88. #define CONFIG_BAUDRATE 115200
  89. #define CONFIG_SYS_BAUDRATE_TABLE { 9600, 38400, 115200 }
  90. #define CONFIG_FIT_DISABLE_SHA256
  91. #define CONFIG_SETUP_MEMORY_TAGS
  92. #define CONFIG_CMDLINE_TAG
  93. #define CONFIG_INITRD_TAG
  94. /* Monitor Command Prompt */
  95. /* Console I/O Buffer Size */
  96. #define CONFIG_SYS_CBSIZE 256
  97. /* Print Buffer Size */
  98. #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + \
  99. sizeof(CONFIG_SYS_PROMPT) + 16)
  100. #define CONFIG_BOOTARGS "root=/dev/ram0 ro console=ttyS0,115200n8"
  101. #define CONFIG_USB_DEV_PULLUP_GPIO 33
  102. /* USB VBUS GPIO 3 */
  103. #define CONFIG_BOOTCOMMAND \
  104. "setenv downloaded 0 ; while test $downloaded -eq 0 ; do " \
  105. "if bootp ; then setenv downloaded 1 ; fi ; done ; " \
  106. "source :script ; " \
  107. "bootm ; "
  108. #define CONFIG_USB_GADGET_PXA2XX
  109. #define CONFIG_USB_ETHER
  110. #define CONFIG_USB_ETH_SUBSET
  111. #define CONFIG_USBNET_DEV_ADDR "de:ad:be:ef:00:01"
  112. #define CONFIG_USBNET_HOST_ADDR "de:ad:be:ef:00:02"
  113. #define CONFIG_EXTRA_ENV_SETTINGS \
  114. "stdin=serial\0" \
  115. "stdout=serial\0" \
  116. "stderr=serial\0"
  117. #endif /* __CONFIG_H */