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