kerneldoc: Add myself to the git-mailrc for kerneldoc
[platform/kernel/u-boot.git] / doc / README.s5pc1xx
1
2 Summary
3 =======
4
5 This README is about U-Boot support for SAMSUNG's ARM Cortex-A8 based S5PC1xx
6 family of SoCs (S5PC100 [1] and S5PC110).
7
8 Currently the following board is supported:
9
10 * SMDKC100 [2]
11
12 Toolchain
13 =========
14
15 While ARM Cortex-A8 support ARM v7 instruction set (-march=armv7a) we compile
16 with -march=armv5 to allow more compilers to work. For U-Boot code this has
17 no performance impact.
18
19 Build
20 =====
21
22 * SMDKC100
23
24 make smdkc100_config
25 make
26
27
28 Interfaces
29 ==========
30
31 cpu
32
33 To 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
43 gpio
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
62 Links
63 =====
64
65 [1] S5PC100:
66
67 http://www.samsung.com/global/business/semiconductor/productInfo.do?
68 fmly_id=229&partnum=S5PC100
69
70 [2] SMDKC100:
71
72 http://meritech.co.kr/eng/products/product_view.php?num=28