X-Git-Url: https://git.kernelconcepts.de/?p=karo-tx-uboot.git;a=blobdiff_plain;f=board%2Fronetix%2Fpm9263%2Fled.c;h=bfc2310b0e22343510da499c2bb979ff0ca4d842;hp=44e34309009d29e59e970663b58bb4dedc01ae57;hb=bcf9fe37f5342aeebbf98a9e3800f578387b4fd7;hpb=ac45bb1646e866b463405fade65bac4d877d4209 diff --git a/board/ronetix/pm9263/led.c b/board/ronetix/pm9263/led.c index 44e3430900..bfc2310b0e 100644 --- a/board/ronetix/pm9263/led.c +++ b/board/ronetix/pm9263/led.c @@ -8,9 +8,9 @@ */ #include +#include #include #include -#include void coloured_LED_init(void) { @@ -19,9 +19,9 @@ void coloured_LED_init(void) /* Enable clock */ writel(1 << ATMEL_ID_PIOB, &pmc->pcer); - at91_set_pio_output(CONFIG_RED_LED, 1); - at91_set_pio_output(CONFIG_GREEN_LED, 1); + gpio_direction_output(CONFIG_RED_LED, 1); + gpio_direction_output(CONFIG_GREEN_LED, 1); - at91_set_pio_value(CONFIG_RED_LED, 0); - at91_set_pio_value(CONFIG_GREEN_LED, 1); + gpio_set_value(CONFIG_RED_LED, 0); + gpio_set_value(CONFIG_GREEN_LED, 1); }