2 Summary
3 =======
5 This README is about U-Boot support for SAMSUNG's ARM Cortex-A8 based S5PC1xx
6 family of SoCs (S5PC100 [1] and S5PC110).
8 Currently the following board is supported:
10 * SMDKC100 [2]
12 Toolchain
13 =========
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.
19 Build
20 =====
22 * SMDKC100
24 make smdkc100_config
25 make
28 Interfaces
29 ==========
31 cpu
33 To check SoC:
35 if (cpu_is_s5pc100())
36 printf("cpu is s5pc100\n");
38 or
40 if (cpu_is_s5pc110())
41 printf("cpu is s5pc110\n");
43 gpio
45 struct s5pc100_gpio *gpio = (struct s5pc100_gpio*)S5PC100_GPIO_BASE;
47 /* GPA[0] pin set to irq */
48 gpio_cfg_pin(&gpio->gpio_a, 0, GPIO_IRQ);
50 /* GPA[0] pin set to input */
51 gpio_direction_input(&gpio->gpio_a, 0);
53 /* GPA[0] pin set to output/high */
54 gpio_direction_output(&gpio->gpio_a, 0, 1);
56 /* GPA[0] value set to low */
57 gpio_set_value(&gpio->gpio_a, 0, 0);
59 /* get GPA[0] value */
60 value = gpio_get_value(&gpio->gpio_a, 0);
62 Links
63 =====
65 [1] S5PC100:
67 http://www.samsung.com/global/business/semiconductor/productInfo.do?
68 fmly_id=229&partnum=S5PC100
70 [2] SMDKC100:
72 http://meritech.co.kr/eng/products/product_view.php?num=28