diff options
author | sgalabov <sgalabov@FreeBSD.org> | 2016-04-08 15:13:38 +0000 |
---|---|---|
committer | sgalabov <sgalabov@FreeBSD.org> | 2016-04-08 15:13:38 +0000 |
commit | 9c95842ec4d237ae7950fb5de2cb900e88769575 (patch) | |
tree | 66b93ee8ada60cf44cf74ba4fbabc9c13458c33f /sys/mips | |
parent | e6c5638fc9ea834e5c18816d8165ac2028a8168f (diff) | |
download | FreeBSD-src-9c95842ec4d237ae7950fb5de2cb900e88769575.zip FreeBSD-src-9c95842ec4d237ae7950fb5de2cb900e88769575.tar.gz |
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
Diffstat (limited to 'sys/mips')
-rw-r--r-- | sys/mips/mediatek/mtk_soc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/mips/mediatek/mtk_soc.c b/sys/mips/mediatek/mtk_soc.c index be576bd..b331467 100644 --- a/sys/mips/mediatek/mtk_soc.c +++ b/sys/mips/mediatek/mtk_soc.c @@ -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 */ |