From: Tim 'mithro' Ansell Date: Sun, 29 Oct 2017 15:13:11 +0000 (-0700) Subject: Change the default IRQs. X-Git-Tag: 24jan2021_ls180~1799^2~3 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=73e0036b9926d69cdff974e8adef707af42f1611;p=litex.git Change the default IRQs. * Reserve IRQ 0 to be used as a "non-maskable interrupt" (NMI) in the future. * Use IRQ 2 for the LiteX. This matches the standard mor1k config which connects the UART to IRQ 2. This change is needed for Linux running on LiteX as it gets grumpy with using IRQ 0 for anything other other than an NMI. --- diff --git a/litex/soc/integration/soc_core.py b/litex/soc/integration/soc_core.py index 13723e4e..9e4daac3 100644 --- a/litex/soc/integration/soc_core.py +++ b/litex/soc/integration/soc_core.py @@ -36,8 +36,9 @@ class SoCCore(Module): "leds": 6, # user } interrupt_map = { - "uart": 0, - "timer0": 1, + "nmi": 0, # Reserve zero for "non-maskable interrupt" + "timer0": 1, # LiteX Timer + "uart": 2, # LiteX UART (IRQ 2 for UART matches mor1k standard config). } mem_map = { "rom": 0x00000000, # (default shadow @0x80000000)