projects
/
openwrt-10.03
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix flash buswidth detection
[openwrt-10.03/.git]
/
target
/
linux
/
atheros-2.6
/
files
/
arch
/
mips
/
atheros
/
ar5312.c
diff --git
a/target/linux/atheros-2.6/files/arch/mips/atheros/ar5312.c
b/target/linux/atheros-2.6/files/arch/mips/atheros/ar5312.c
index 384020b27e722994116fe39417893a2d5f8fb6dd..57d56eb0e5e69e265efec2136a908f50600d842f 100644
(file)
--- a/
target/linux/atheros-2.6/files/arch/mips/atheros/ar5312.c
+++ b/
target/linux/atheros-2.6/files/arch/mips/atheros/ar5312.c
@@
-255,13
+255,13
@@
int __init ar5312_init_devices(void)
ar5312_eth0_data.board_config = board_config;
ar5312_eth1_data.board_config = board_config;
ar5312_eth0_data.board_config = board_config;
ar5312_eth1_data.board_config = board_config;
- /* fixup flash width
; TODO: constants -> defines
*/
- fctl = sysRegRead(AR531X_FLASHCTL) &
0x30000000
;
+ /* fixup flash width */
+ fctl = sysRegRead(AR531X_FLASHCTL) &
FLASHCTL_MW
;
switch (fctl) {
switch (fctl) {
- case
0x20000000
:
+ case
FLASHCTL_MWx16
:
ar5312_flash_data.width = 2;
break;
ar5312_flash_data.width = 2;
break;
- case
0x00000000
:
+ case
FLASHCTL_MWx8
:
default:
ar5312_flash_data.width = 1;
break;
default:
ar5312_flash_data.width = 1;
break;