From 1ccd15cac7fc4df63e67c6ef7042380010e18e8a Mon Sep 17 00:00:00 2001 From: Stanislav Galabov Date: Fri, 8 Apr 2016 15:13:38 +0000 Subject: [PATCH] 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 --- sys/mips/mediatek/mtk_soc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/mips/mediatek/mtk_soc.c b/sys/mips/mediatek/mtk_soc.c index be576bd97a3..b331467e9d8 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 */