mirror of
https://github.com/u-boot/u-boot.git
synced 2024-11-27 14:14:37 +08:00
abbe18c353
Because adds support the GPIO Interface, README file is updated. Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
73 lines
1.2 KiB
Plaintext
73 lines
1.2 KiB
Plaintext
|
|
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
|