README.s5pc1xx 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. Summary
  2. =======
  3. This README is about U-Boot support for SAMSUNG's ARM Cortex-A8 based S5PC1xx
  4. family of SoCs (S5PC100 [1] and S5PC110).
  5. Currently the following board is supported:
  6. * SMDKC100 [2]
  7. Toolchain
  8. =========
  9. While ARM Cortex-A8 support ARM v7 instruction set (-march=armv7a) we compile
  10. with -march=armv5 to allow more compilers to work. For U-Boot code this has
  11. no performance impact.
  12. Build
  13. =====
  14. * SMDKC100
  15. make smdkc100_config
  16. make
  17. Interfaces
  18. ==========
  19. cpu
  20. To check SoC:
  21. if (cpu_is_s5pc100())
  22. printf("cpu is s5pc100\n");
  23. or
  24. if (cpu_is_s5pc110())
  25. printf("cpu is s5pc110\n");
  26. gpio
  27. struct s5pc100_gpio *gpio = (struct s5pc100_gpio*)S5PC100_GPIO_BASE;
  28. /* GPA[0] pin set to irq */
  29. gpio_cfg_pin(&gpio->gpio_a, 0, GPIO_IRQ);
  30. /* GPA[0] pin set to input */
  31. gpio_direction_input(&gpio->gpio_a, 0);
  32. /* GPA[0] pin set to output/high */
  33. gpio_direction_output(&gpio->gpio_a, 0, 1);
  34. /* GPA[0] value set to low */
  35. gpio_set_value(&gpio->gpio_a, 0, 0);
  36. /* get GPA[0] value */
  37. value = gpio_get_value(&gpio->gpio_a, 0);
  38. Links
  39. =====
  40. [1] S5PC100:
  41. http://www.samsung.com/global/business/semiconductor/productInfo.do?
  42. fmly_id=229&partnum=S5PC100
  43. [2] SMDKC100:
  44. http://meritech.co.kr/eng/products/product_view.php?num=28