Commit abbe18c353c297a40c428ba92f3e1a85e8e694fc

Authored by Minkyu Kang
Committed by trix
1 parent ab693e9c4c

s5pc1xx: update the README file

Because adds support the GPIO Interface, README file is updated.

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>

Showing 1 changed file with 17 additions and 1 deletions Inline Diff

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