Overview.txt 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  1. S3C24XX ARM Linux Overview
  2. ==========================
  3. Introduction
  4. ------------
  5. The Samsung S3C24XX range of ARM9 System-on-Chip CPUs are supported
  6. by the 's3c2410' architecture of ARM Linux. Currently the S3C2410,
  7. S3C2440 and S3C2442 devices are supported.
  8. Support for the S3C2400 series is in progress.
  9. Support for the S3C2412 and S3C2413 CPUs is being merged.
  10. Configuration
  11. -------------
  12. A generic S3C2410 configuration is provided, and can be used as the
  13. default by `make s3c2410_defconfig`. This configuration has support
  14. for all the machines, and the commonly used features on them.
  15. Certain machines may have their own default configurations as well,
  16. please check the machine specific documentation.
  17. Machines
  18. --------
  19. The currently supported machines are as follows:
  20. Simtec Electronics EB2410ITX (BAST)
  21. A general purpose development board, see EB2410ITX.txt for further
  22. details
  23. Simtec Electronics IM2440D20 (Osiris)
  24. CPU Module from Simtec Electronics, with a S3C2440A CPU, nand flash
  25. and a PCMCIA controller.
  26. Samsung SMDK2410
  27. Samsung's own development board, geared for PDA work.
  28. Samsung/Aiji SMDK2412
  29. The S3C2412 version of the SMDK2440.
  30. Samsung/Aiji SMDK2413
  31. The S3C2412 version of the SMDK2440.
  32. Samsung/Meritech SMDK2440
  33. The S3C2440 compatible version of the SMDK2440, which has the
  34. option of an S3C2440 or S3C2442 CPU module.
  35. Thorcom VR1000
  36. Custom embedded board
  37. HP IPAQ 1940
  38. Handheld (IPAQ), available in several varieties
  39. HP iPAQ rx3715
  40. S3C2440 based IPAQ, with a number of variations depending on
  41. features shipped.
  42. Acer N30
  43. A S3C2410 based PDA from Acer. There is a Wiki page at
  44. http://handhelds.org/moin/moin.cgi/AcerN30Documentation .
  45. Adding New Machines
  46. -------------------
  47. The archicture has been designed to support as many machines as can
  48. be configured for it in one kernel build, and any future additions
  49. should keep this in mind before altering items outside of their own
  50. machine files.
  51. Machine definitions should be kept in linux/arch/arm/mach-s3c2410,
  52. and there are a number of examples that can be looked at.
  53. Read the kernel patch submission policies as well as the
  54. Documentation/arm directory before submitting patches. The
  55. ARM kernel series is managed by Russell King, and has a patch system
  56. located at http://www.arm.linux.org.uk/developer/patches/
  57. as well as mailing lists that can be found from the same site.
  58. As a courtesy, please notify <ben-linux@fluff.org> of any new
  59. machines or other modifications.
  60. Any large scale modifications, or new drivers should be discussed
  61. on the ARM kernel mailing list (linux-arm-kernel) before being
  62. attempted. See http://www.arm.linux.org.uk/mailinglists/ for the
  63. mailing list information.
  64. I2C
  65. ---
  66. The hardware I2C core in the CPU is supported in single master
  67. mode, and can be configured via platform data.
  68. RTC
  69. ---
  70. Support for the onboard RTC unit, including alarm function.
  71. Watchdog
  72. --------
  73. The onchip watchdog is available via the standard watchdog
  74. interface.
  75. NAND
  76. ----
  77. The current kernels now have support for the s3c2410 NAND
  78. controller. If there are any problems the latest linux-mtd
  79. CVS can be found from http://www.linux-mtd.infradead.org/
  80. Serial
  81. ------
  82. The s3c2410 serial driver provides support for the internal
  83. serial ports. These devices appear as /dev/ttySAC0 through 3.
  84. To create device nodes for these, use the following commands
  85. mknod ttySAC0 c 204 64
  86. mknod ttySAC1 c 204 65
  87. mknod ttySAC2 c 204 66
  88. GPIO
  89. ----
  90. The core contains support for manipulating the GPIO, see the
  91. documentation in GPIO.txt in the same directory as this file.
  92. Clock Management
  93. ----------------
  94. The core provides the interface defined in the header file
  95. include/asm-arm/hardware/clock.h, to allow control over the
  96. various clock units
  97. Suspend to RAM
  98. --------------
  99. For boards that provide support for suspend to RAM, the
  100. system can be placed into low power suspend.
  101. See Suspend.txt for more information.
  102. Platform Data
  103. -------------
  104. Whenever a device has platform specific data that is specified
  105. on a per-machine basis, care should be taken to ensure the
  106. following:
  107. 1) that default data is not left in the device to confuse the
  108. driver if a machine does not set it at startup
  109. 2) the data should (if possible) be marked as __initdata,
  110. to ensure that the data is thrown away if the machine is
  111. not the one currently in use.
  112. The best way of doing this is to make a function that
  113. kmalloc()s an area of memory, and copies the __initdata
  114. and then sets the relevant device's platform data. Making
  115. the function `__init` takes care of ensuring it is discarded
  116. with the rest of the initialisation code
  117. static __init void s3c24xx_xxx_set_platdata(struct xxx_data *pd)
  118. {
  119. struct s3c2410_xxx_mach_info *npd;
  120. npd = kmalloc(sizeof(struct s3c2410_xxx_mach_info), GFP_KERNEL);
  121. if (npd) {
  122. memcpy(npd, pd, sizeof(struct s3c2410_xxx_mach_info));
  123. s3c_device_xxx.dev.platform_data = npd;
  124. } else {
  125. printk(KERN_ERR "no memory for xxx platform data\n");
  126. }
  127. }
  128. Note, since the code is marked as __init, it should not be
  129. exported outside arch/arm/mach-s3c2410/, or exported to
  130. modules via EXPORT_SYMBOL() and related functions.
  131. Port Contributors
  132. -----------------
  133. Ben Dooks (BJD)
  134. Vincent Sanders
  135. Herbert Potzl
  136. Arnaud Patard (RTP)
  137. Roc Wu
  138. Klaus Fetscher
  139. Dimitry Andric
  140. Shannon Holland
  141. Guillaume Gourat (NexVision)
  142. Christer Weinigel (wingel) (Acer N30)
  143. Lucas Correia Villa Real (S3C2400 port)
  144. Document Author
  145. ---------------
  146. Ben Dooks, (c) 2004-2005,2006 Simtec Electronics