From df34cedd050a966b334973c933e5e7e90164b6ec Mon Sep 17 00:00:00 2001 From: Lei YU Date: Fri, 18 Jan 2019 10:30:06 +0800 Subject: Add P9 DIO interrupt support On P9 there are GPIO port 0, 1, 2 for GPIO interrupt, and DIO interrupt is used to handle the interrupts. Add support to the DIO interrupts: 1. Add dio_interrupt_register(chip, port, callback) to register the interrupt; 2. Add dio_interrupt_deregister(chip, port, callback) to deregister; 3. When interrupt on the port occurs, callback is invoked, and the interrupt status is cleared. Signed-off-by: Lei YU [oliver: Fixed Makefile.inc merge conflict] Signed-off-by: Oliver O'Halloran Signed-off-by: Stewart Smith --- hw/Makefile.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hw/Makefile.inc') diff --git a/hw/Makefile.inc b/hw/Makefile.inc index fbafd82..2885b50 100644 --- a/hw/Makefile.inc +++ b/hw/Makefile.inc @@ -9,7 +9,7 @@ HW_OBJS += dts.o lpc-rtc.o npu.o npu-hw-procedures.o xive.o phb4.o HW_OBJS += fake-nvram.o lpc-mbox.o npu2.o npu2-hw-procedures.o HW_OBJS += npu2-common.o phys-map.o sbe-p9.o capp.o occ-sensor.o vas.o HW_OBJS += npu2-opencapi.o phys-map.o sbe-p9.o capp.o occ-sensor.o -HW_OBJS += vas.o sbe-p8.o +HW_OBJS += vas.o sbe-p8.o dio-p9.o HW_OBJS += lpc-port80h.o HW=hw/built-in.a -- cgit v1.1