X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=doc%2FREADME.s5pc1xx;h=ab1f02469c5d5ca46e9b76c86d3b89318202da97;hb=3b6407b8ed95594de6ee4fddd3239e8841b4d2d6;hp=5a0fe33db1bd8649f9d169d4cb87575ee2bf663e;hpb=8bc4ee9e8213abe4031ea1720aa02fa98d4402ad;p=u-boot 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 =====