thermosphere: refactor tegra uart code, etc.

This commit is contained in:
TuxSH
2020-01-11 01:36:55 +00:00
parent a552c254e0
commit 26bda4f32d
10 changed files with 261 additions and 149 deletions

View File

@@ -33,6 +33,11 @@
#define GIC_IRQID_SEC_PHYS_HYP_TIMER GIC_IRQID_SPURIOUS // SBSA: 20. Unimplemented
#define GIC_IRQID_SEC_VIRT_HYP_TIMER GIC_IRQID_SPURIOUS // SBSA: 19. Unimplemented
#define GIC_IRQID_UARTA (32 + 36)
#define GIC_IRQID_UARTB (32 + 37)
#define GIC_IRQID_UARTC (32 + 46)
#define GIC_IRQID_UARTD (32 + 90)
static inline void initGicV2Pointers(ArmGicV2 *gic)
{
gic->gicd = (volatile ArmGicV2Distributor *)0x50041000ull;