diff options
author | Thomas Chou <thomas@wytron.com.tw> | 2014-08-21 14:36:30 +0800 |
---|---|---|
committer | Thomas Chou <thomas@wytron.com.tw> | 2014-08-24 11:27:57 +0800 |
commit | 70fbc46192dfd52896560f4b31e40daa3d16b99f (patch) | |
tree | f3973868f7e01177bcf2839f76f91af1af87e469 /board/psyent/pk1c20/led.c | |
parent | 00a2517fcb5159ed016b25130184638b1dbf2f02 (diff) | |
download | u-boot-imx-70fbc46192dfd52896560f4b31e40daa3d16b99f.zip u-boot-imx-70fbc46192dfd52896560f4b31e40daa3d16b99f.tar.gz u-boot-imx-70fbc46192dfd52896560f4b31e40daa3d16b99f.tar.bz2 |
nios2: remove obsolete PCI5441 and PK1C20 boards
Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
Diffstat (limited to 'board/psyent/pk1c20/led.c')
-rw-r--r-- | board/psyent/pk1c20/led.c | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/board/psyent/pk1c20/led.c b/board/psyent/pk1c20/led.c deleted file mode 100644 index 580d590..0000000 --- a/board/psyent/pk1c20/led.c +++ /dev/null @@ -1,46 +0,0 @@ -/* - * (C) Copyright 2004, Psyent Corporation <www.psyent.com> - * Scott McNutt <smcnutt@psyent.com> - * - * SPDX-License-Identifier: GPL-2.0+ - */ - -#include <common.h> -#include <asm/io.h> -#include <nios2-io.h> -#include <status_led.h> - -/* The LED port is configured as output only, so we - * must track the state manually. - */ -static led_id_t val = 0; - -void __led_init (led_id_t mask, int state) -{ - nios_pio_t *pio = (nios_pio_t *)CONFIG_SYS_LEDPIO_ADDR; - - if (state == STATUS_LED_ON) - val &= ~mask; - else - val |= mask; - writel (val, &pio->data); -} - -void __led_set (led_id_t mask, int state) -{ - nios_pio_t *pio = (nios_pio_t *)CONFIG_SYS_LEDPIO_ADDR; - - if (state == STATUS_LED_ON) - val &= ~mask; - else - val |= mask; - writel (val, &pio->data); -} - -void __led_toggle (led_id_t mask) -{ - nios_pio_t *pio = (nios_pio_t *)CONFIG_SYS_LEDPIO_ADDR; - - val ^= mask; - writel (val, &pio->data); -} |