1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2025-04-21 12:27:27 +03:00

[adm5120] rewrite of memory detection code, should be fix #1909

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7819 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
juhosg
2007-07-01 09:30:21 +00:00
parent d412cd8af2
commit cd7b6d1acc
5 changed files with 215 additions and 61 deletions

View File

@@ -22,6 +22,7 @@ struct adm5120_board {
unsigned long mach_type;
unsigned int iface_num; /* Number of Ethernet interfaces */
unsigned int has_usb; /* USB controller presence flag */
u32 mem_size; /* onboard memory size */
u32 flash0_size; /* Flash 0 size */
};
@@ -79,4 +80,9 @@ static inline char *adm5120_board_name(void)
return adm5120_board.name;
}
static inline u32 adm5120_board_memsize(void)
{
return adm5120_board.mem_size;
}
#endif /* _ADM5120_INFO_H */