summaryrefslogtreecommitdiff
path: root/board/altera
diff options
context:
space:
mode:
authorThomas Chou <thomas@wytron.com.tw>2014-08-25 15:57:06 +0800
committerThomas Chou <thomas@wytron.com.tw>2014-08-30 17:48:43 +0800
commitef3cc8112c7ac58d621246523e8c84bf6035b53b (patch)
tree09cb5948776c375f7c391cc3d407df116764b35f /board/altera
parent6defdc0b5552ab1af4a66a8abac8196cbb6b9e15 (diff)
downloadu-boot-imx-ef3cc8112c7ac58d621246523e8c84bf6035b53b.zip
u-boot-imx-ef3cc8112c7ac58d621246523e8c84bf6035b53b.tar.gz
u-boot-imx-ef3cc8112c7ac58d621246523e8c84bf6035b53b.tar.bz2
nios2: remove epled driver
The epled driver was replaced by altera_pio and gpio_led. Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
Diffstat (limited to 'board/altera')
-rw-r--r--board/altera/common/epled.c46
-rw-r--r--board/altera/nios2-generic/Makefile1
2 files changed, 0 insertions, 47 deletions
diff --git a/board/altera/common/epled.c b/board/altera/common/epled.c
deleted file mode 100644
index 580d590..0000000
--- a/board/altera/common/epled.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);
-}
diff --git a/board/altera/nios2-generic/Makefile b/board/altera/nios2-generic/Makefile
index aa362b3..d3c5b43 100644
--- a/board/altera/nios2-generic/Makefile
+++ b/board/altera/nios2-generic/Makefile
@@ -8,5 +8,4 @@
obj-y := nios2-generic.o
obj-$(CONFIG_CMD_IDE) += ../common/cfide.o
-obj-$(CONFIG_EPLED) += ../common/epled.o
obj-y += text_base.o