aboutsummaryrefslogtreecommitdiff
path: root/doc/README.s5pc1xx
blob: ab1f02469c5d5ca46e9b76c86d3b89318202da97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72

Summary
=======

This README is about U-Boot support for SAMSUNG's ARM Cortex-A8 based S5PC1xx
family of SoCs (S5PC100 [1] and S5PC110).

Currently the following board is supported:

* SMDKC100 [2]

Toolchain
=========

While ARM Cortex-A8 support ARM v7 instruction set (-march=armv7a) we compile
with -march=armv5 to allow more compilers to work. For U-Boot code this has
no performance impact.

Build
=====

* SMDKC100

make smdkc100_config
make


Interfaces
==========

cpu

To check SoC:

	if (cpu_is_s5pc100())
		printf("cpu is s5pc100\n");

	or

	if (cpu_is_s5pc110())
		printf("cpu is s5pc110\n");

gpio

	struct s5pc100_gpio *gpio = (struct s5pc100_gpio*)S5PC100_GPIO_BASE;

	/* GPA[0] pin set to irq */
	gpio_cfg_pin(&gpio->gpio_a, 0, GPIO_IRQ);

	/* GPA[0] pin set to input */
	gpio_direction_input(&gpio->gpio_a, 0);

	/* GPA[0] pin set to output/high */
	gpio_direction_output(&gpio->gpio_a, 0, 1);

	/* GPA[0] value set to low */
	gpio_set_value(&gpio->gpio_a, 0, 0);

	/* get GPA[0] value */
	value = gpio_get_value(&gpio->gpio_a, 0);

Links
=====

[1] S5PC100:

http://www.samsung.com/global/business/semiconductor/productInfo.do?
fmly_id=229&partnum=S5PC100

[2] SMDKC100:

http://meritech.co.kr/eng/products/product_view.php?num=28