diff options
author | Minkyu Kang <mk7.kang@samsung.com> | 2010-02-12 18:21:17 +0900 |
---|---|---|
committer | trix <trix@windriver.com> | 2010-04-03 15:24:26 -0500 |
commit | abbe18c353c297a40c428ba92f3e1a85e8e694fc (patch) | |
tree | 12ab2522ac87c5e493b6f2b32760d9c84889ffdd /doc | |
parent | ab693e9c4c06b42d1746a0d7a03541968fb55bb9 (diff) | |
download | u-boot-midas-abbe18c353c297a40c428ba92f3e1a85e8e694fc.tar.gz u-boot-midas-abbe18c353c297a40c428ba92f3e1a85e8e694fc.tar.bz2 u-boot-midas-abbe18c353c297a40c428ba92f3e1a85e8e694fc.zip |
s5pc1xx: update the README file
Because adds support the GPIO Interface, README file is updated.
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/README.s5pc1xx | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/doc/README.s5pc1xx b/doc/README.s5pc1xx index 5a0fe33db1..ab1f02469c 100644 --- a/doc/README.s5pc1xx +++ b/doc/README.s5pc1xx @@ -41,7 +41,23 @@ To check SoC: printf("cpu is s5pc110\n"); gpio - not supported yet. + + 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 ===== |