projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Convert SMC91111 Ethernet driver to CONFIG_NET_MULTI API
[oweals/u-boot.git]
/
board
/
logodl
/
logodl.c
diff --git
a/board/logodl/logodl.c
b/board/logodl/logodl.c
index 897787bcf7a106ef786d672d51fddd1b7cb82e91..2562ecca3507ab70a65ff446572b721eb3821f67 100644
(file)
--- a/
board/logodl/logodl.c
+++ b/
board/logodl/logodl.c
@@
-23,6
+23,7
@@
*/
#include <common.h>
*/
#include <common.h>
+#include <netdev.h>
#include <asm/arch/pxa-regs.h>
DECLARE_GLOBAL_DATA_PTR;
#include <asm/arch/pxa-regs.h>
DECLARE_GLOBAL_DATA_PTR;
@@
-77,17
+78,17
@@
void logodl_set_led(int led, int state)
case 0:
if (state==1) {
case 0:
if (state==1) {
- C
FG_LED_A_CR = CFG
_LED_A_BIT;
+ C
ONFIG_SYS_LED_A_CR = CONFIG_SYS
_LED_A_BIT;
} else if (state==0) {
} else if (state==0) {
- C
FG_LED_A_SR = CFG
_LED_A_BIT;
+ C
ONFIG_SYS_LED_A_SR = CONFIG_SYS
_LED_A_BIT;
}
break;
case 1:
if (state==1) {
}
break;
case 1:
if (state==1) {
- C
FG_LED_B_CR = CFG
_LED_B_BIT;
+ C
ONFIG_SYS_LED_B_CR = CONFIG_SYS
_LED_B_BIT;
} else if (state==0) {
} else if (state==0) {
- C
FG_LED_B_SR = CFG
_LED_B_BIT;
+ C
ONFIG_SYS_LED_B_SR = CONFIG_SYS
_LED_B_BIT;
}
break;
}
}
break;
}
@@
-120,3
+121,14
@@
void show_boot_progress (int status)
return;
}
return;
}
+
+#ifdef CONFIG_CMD_NET
+int board_eth_init(bd_t *bis)
+{
+ int rc = 0;
+#ifdef CONFIG_SMC91111
+ rc = smc91111_initialize(0, CONFIG_SMC91111_BASE);
+#endif
+ return rc;
+}
+#endif