Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6f3d2b00 authored by Walter Goossens's avatar Walter Goossens Committed by Ley Foon Tan
Browse files

nios2: Initialize cpuinfo.mmu



This patch initializes the mmu field of the cpuinfo structure to the
value supplied by the devicetree.

Signed-off-by: default avatarWalter Goossens <waltergoossens@home.nl>
Acked-by: default avatarLey Foon Tan <lftan@altera.com>
parent b7392d22
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -72,6 +72,7 @@ void __init setup_cpuinfo(void)
	cpuinfo.has_div = fcpu_has(cpu, "altr,has-div");
	cpuinfo.has_mul = fcpu_has(cpu, "altr,has-mul");
	cpuinfo.has_mulx = fcpu_has(cpu, "altr,has-mulx");
	cpuinfo.mmu = fcpu_has(cpu, "altr,has-mmu");

	if (IS_ENABLED(CONFIG_NIOS2_HW_DIV_SUPPORT) && !cpuinfo.has_div)
		err_cpu("DIV");