Skip to content

Commit 0ec7dc8

Browse files
committed
Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus
Pull MIPS fixes from Ralf Baechle: - Fix a flood of annoying build warnings - A number of fixes for Atheros 79xx platforms * 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus: MIPS: ath79: Add a machine entry for booting OF machines MIPS: ath79: Fix the size of the MISC INTC registers in ar9132.dtsi MIPS: ath79: Fix the DDR control initialization on ar71xx and ar934x MIPS: Fix flood of warnings about comparsion being always true.
2 parents 94521b2 + 55f1d59 commit 0ec7dc8

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

arch/mips/ath79/setup.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,9 +216,9 @@ void __init plat_mem_setup(void)
216216
AR71XX_RESET_SIZE);
217217
ath79_pll_base = ioremap_nocache(AR71XX_PLL_BASE,
218218
AR71XX_PLL_SIZE);
219+
ath79_detect_sys_type();
219220
ath79_ddr_ctrl_init();
220221

221-
ath79_detect_sys_type();
222222
if (mips_machtype != ATH79_MACH_GENERIC_OF)
223223
detect_memory_region(0, ATH79_MEM_SIZE_MIN, ATH79_MEM_SIZE_MAX);
224224

@@ -281,3 +281,8 @@ MIPS_MACHINE(ATH79_MACH_GENERIC,
281281
"Generic",
282282
"Generic AR71XX/AR724X/AR913X based board",
283283
ath79_generic_init);
284+
285+
MIPS_MACHINE(ATH79_MACH_GENERIC_OF,
286+
"DTB",
287+
"Generic AR71XX/AR724X/AR913X based board (DT)",
288+
NULL);

arch/mips/boot/dts/qca/ar9132.dtsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
miscintc: interrupt-controller@18060010 {
108108
compatible = "qca,ar9132-misc-intc",
109109
"qca,ar7100-misc-intc";
110-
reg = <0x18060010 0x4>;
110+
reg = <0x18060010 0x8>;
111111

112112
interrupt-parent = <&cpuintc>;
113113
interrupts = <6>;

arch/mips/include/asm/page.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,9 @@ static inline int pfn_valid(unsigned long pfn)
200200
{
201201
/* avoid <linux/mm.h> include hell */
202202
extern unsigned long max_mapnr;
203+
unsigned long pfn_offset = ARCH_PFN_OFFSET;
203204

204-
return pfn >= ARCH_PFN_OFFSET && pfn < max_mapnr;
205+
return pfn >= pfn_offset && pfn < max_mapnr;
205206
}
206207

207208
#elif defined(CONFIG_SPARSEMEM)

0 commit comments

Comments
 (0)