Fix wrong memory mapping

In mtk_soc.c memory is mapped incorrectly for MT7621. This revision fixes
this.

Approved by:	adrian (mentor)
Sponsored by:	Smartcom - Bulgaria AD
Differential Revision:	https://reviews.freebsd.org/D5882
This commit is contained in:
Stanislav Galabov 2016-04-08 15:13:38 +00:00
parent b3f7b13945
commit 1ccd15cac7

View File

@ -257,7 +257,7 @@ mtk_soc_try_early_detect(void)
else
base = MTK_DEFAULT_BASE;
if (bus_space_map(bst, MTK_DEFAULT_BASE, MTK_DEFAULT_SIZE, 0, &bsh))
if (bus_space_map(bst, base, MTK_DEFAULT_SIZE, 0, &bsh))
return;
/* First, figure out the CPU clock */