mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-02 01:19:49 +00:00
aa6e1e45cf
Enough time has passed since these boards were moved to Orphan. Remove. - Remove include/configs/{ADS860.h,FADS823.h,FADS850SAR.h,FADS860T.h} - Cleanup defined(CONFIG_ADS), defined(CONFIG_MPC823FADS), defined(CONFIG_MPC850SAR), defined(CONFIG_SYS_DAUGHTERBOARD) - Remove the entries from boards.cfg Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
43 lines
568 B
C
43 lines
568 B
C
#include <config.h>
|
|
|
|
#include <common.h>
|
|
|
|
void
|
|
signal_delay(unsigned int n)
|
|
{
|
|
while (n--);
|
|
}
|
|
|
|
void
|
|
signal_on(void)
|
|
{
|
|
*((volatile uint *)BCSR4) &= ~(1<<(31-3)); /* led on */
|
|
}
|
|
|
|
void
|
|
signal_off(void)
|
|
{
|
|
*((volatile uint *)BCSR4) |= (1<<(31-3)); /* led off */
|
|
}
|
|
|
|
void
|
|
slow_blink(unsigned int n)
|
|
{
|
|
while (n--) {
|
|
signal_on();
|
|
signal_delay(0x00400000);
|
|
signal_off();
|
|
signal_delay(0x00400000);
|
|
}
|
|
}
|
|
|
|
void
|
|
fast_blink(unsigned int n)
|
|
{
|
|
while (n--) {
|
|
signal_on();
|
|
signal_delay(0x00100000);
|
|
signal_off();
|
|
signal_delay(0x00100000);
|
|
}
|
|
}
|