summaryrefslogtreecommitdiff
path: root/board/altera/common
diff options
context:
space:
mode:
authorThomas Chou <thomas@wytron.com.tw>2015-10-23 14:55:36 +0800
committerThomas Chou <thomas@wytron.com.tw>2015-10-23 14:55:36 +0800
commit6168dc6a7a28da3e865314bf1ba5a53eaebe63ac (patch)
treed0592c9c6515885f0fdadb9e94a7b3defe20b846 /board/altera/common
parent7cacb64a354a1d996ba55e5e35b95f111f00648d (diff)
nios2: zap nios2-generic board dir
As we use device tree to control u-boot now, the generic board can be removed. Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
Diffstat (limited to 'board/altera/common')
-rw-r--r--board/altera/common/cfide.c33
1 files changed, 0 insertions, 33 deletions
diff --git a/board/altera/common/cfide.c b/board/altera/common/cfide.c
deleted file mode 100644
index 40d6a12b55..0000000000
--- a/board/altera/common/cfide.c
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * Altera CF drvier
- *
- * (C) Copyright 2010, Thomas Chou <thomas@wytron.com.tw>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
- */
-#include <common.h>
-#include <asm/io.h>
-
-#if defined(CONFIG_IDE_RESET) && defined(CONFIG_SYS_CF_CTL_BASE)
-/* ide_set_reset for Altera CF interface */
-#define ALTERA_CF_CTL_STATUS 0
-#define ALTERA_CF_IDE_CTL 4
-#define ALTERA_CF_CTL_STATUS_PRESENT_MSK (0x1)
-#define ALTERA_CF_CTL_STATUS_POWER_MSK (0x2)
-#define ALTERA_CF_CTL_STATUS_RESET_MSK (0x4)
-#define ALTERA_CF_CTL_STATUS_IRQ_EN_MSK (0x8)
-#define ALTERA_CF_IDE_CTL_IRQ_EN_MSK (0x1)
-
-void ide_set_reset(int idereset)
-{
- int i;
- writel(idereset ? ALTERA_CF_CTL_STATUS_RESET_MSK :
- ALTERA_CF_CTL_STATUS_POWER_MSK,
- CONFIG_SYS_CF_CTL_BASE + ALTERA_CF_CTL_STATUS);
- /* wait 500 ms for power to stabilize */
- for (i = 0; i < 500; i++)
- udelay(1000);
-}
-#endif