GIC: Fix setting interrupt configuration
- Interrupt configuration is a 2-bit field, so the field shift has to
    be double that of the bit number.

  - Interrupt configuration (level- or edge-trigger) is specified in the
    MSB of the field, not LSB.

Fixes applied to both GICv2 and GICv3 drivers.

Fixes ARM-software/tf-issues#570

Change-Id: Ia6ae6ed9ba9fb0e3eb0f921a833af48e365ba359
Signed-off-by: Jeenu Viswambharan <jeenu.viswambharan@arm.com>
1 parent f13ef37 commit 17e84eedb2fb40d8682802cf2e23ddf67928c51d
@Jeenu Viswambharan Jeenu Viswambharan authored on 22 Mar 2018
Showing 3 changed files
View
drivers/arm/gic/common/gic_common.c
View
drivers/arm/gic/v3/gicv3_helpers.c
View
include/drivers/arm/gic_common.h