mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
[adm5120] change switch register access macros
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9962 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -261,7 +261,7 @@ static int adm5120_flash_initinfo(struct adm5120_flash_info *info,
|
||||
|
||||
if (info->amap.window_size == 0) {
|
||||
/* get memory window size */
|
||||
t = SW_READ_REG(MEMCTRL) >> fdesc->srs_shift;
|
||||
t = SW_READ_REG(SWITCH_REG_MEMCTRL) >> fdesc->srs_shift;
|
||||
t &= MEMCTRL_SRS_MASK;
|
||||
info->amap.window_size = flash_sizes[t];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user