mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-10 12:39:22 -04:00
move CPC45 ide_led to the same file as other IDE hooks
Keep all IDE-related hooks and overrides in a single file, to avoid confusion Signed-off-by: Pavel Herrmann <morpheus.ibis@gmail.com>
This commit is contained in:
parent
19be2ea2ef
commit
0a4a64c079
@ -260,21 +260,6 @@ int pcmcia_init(void)
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
# ifdef CONFIG_IDE_LED
|
|
||||||
void ide_led (uchar led, uchar status)
|
|
||||||
{
|
|
||||||
u_char val;
|
|
||||||
/* We have one PCMCIA slot and use LED H4 for the IDE Interface */
|
|
||||||
val = readb(BCSR_BASE + 0x04);
|
|
||||||
if (status) { /* led on */
|
|
||||||
val |= B_CTRL_LED0;
|
|
||||||
} else {
|
|
||||||
val &= ~B_CTRL_LED0;
|
|
||||||
}
|
|
||||||
writeb(val, BCSR_BASE + 0x04);
|
|
||||||
}
|
|
||||||
# endif
|
|
||||||
|
|
||||||
int board_eth_init(bd_t *bis)
|
int board_eth_init(bd_t *bis)
|
||||||
{
|
{
|
||||||
return pci_eth_init(bis);
|
return pci_eth_init(bis);
|
||||||
|
@ -27,6 +27,7 @@
|
|||||||
#include <common.h>
|
#include <common.h>
|
||||||
#include <ide.h>
|
#include <ide.h>
|
||||||
#include <ata.h>
|
#include <ata.h>
|
||||||
|
#include <asm/io.h>
|
||||||
|
|
||||||
#define EIEIO __asm__ volatile ("eieio")
|
#define EIEIO __asm__ volatile ("eieio")
|
||||||
#define SYNC __asm__ volatile ("sync")
|
#define SYNC __asm__ volatile ("sync")
|
||||||
@ -128,3 +129,17 @@ void ide_output_data_shorts(int dev, ushort *sect_buf, int shorts)
|
|||||||
*pbuf_odd = *dbuf++;
|
*pbuf_odd = *dbuf++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void ide_led(uchar led, uchar status)
|
||||||
|
{
|
||||||
|
u_char val;
|
||||||
|
/* We have one PCMCIA slot and use LED H4 for the IDE Interface */
|
||||||
|
val = readb(BCSR_BASE + 0x04);
|
||||||
|
if (status) /* led on */
|
||||||
|
val |= B_CTRL_LED0;
|
||||||
|
else
|
||||||
|
val &= ~B_CTRL_LED0;
|
||||||
|
|
||||||
|
writeb(val, BCSR_BASE + 0x04);
|
||||||
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user