mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-08-18 10:27:06 +02:00
Merge "qti: spmi_arb: Fix coverity integer conversion warnings" into integration
This commit is contained in:
commit
ddf287000b
@ -10,17 +10,17 @@
|
|||||||
|
|
||||||
#include <spmi_arb.h>
|
#include <spmi_arb.h>
|
||||||
|
|
||||||
#define REG_APID_MAP(apid) (0x0C440900 + 4 * i)
|
#define REG_APID_MAP(apid) (0x0C440900U + 4U * i)
|
||||||
#define NUM_APID 0x80
|
#define NUM_APID 0x80
|
||||||
|
|
||||||
#define PPID_MASK (0xfff << 8)
|
#define PPID_MASK (0xfffU << 8)
|
||||||
|
|
||||||
#define REG_ARB_CMD(apid) (0x0C600000 + 0x10000 * apid)
|
#define REG_ARB_CMD(apid) (0x0C600000U + 0x10000U * apid)
|
||||||
/* These are opcodes specific to this SPMI arbitrator, *not* SPMI commands. */
|
/* These are opcodes specific to this SPMI arbitrator, *not* SPMI commands. */
|
||||||
#define OPC_EXT_WRITEL 0
|
#define OPC_EXT_WRITEL 0
|
||||||
#define OPC_EXT_READL 1
|
#define OPC_EXT_READL 1
|
||||||
|
|
||||||
#define REG_ARB_STATUS(apid) (0x0C600008 + 0x10000 * apid)
|
#define REG_ARB_STATUS(apid) (0x0C600008U + 0x10000U * apid)
|
||||||
#define ARB_STATUS_DONE BIT(0)
|
#define ARB_STATUS_DONE BIT(0)
|
||||||
#define ARB_STATUS_FAILURE BIT(1)
|
#define ARB_STATUS_FAILURE BIT(1)
|
||||||
#define ARB_STATUS_DENIED BIT(2)
|
#define ARB_STATUS_DENIED BIT(2)
|
||||||
@ -29,8 +29,8 @@
|
|||||||
/* Fake status to report driver errors. */
|
/* Fake status to report driver errors. */
|
||||||
#define ARB_FAKE_STATUS_TIMEOUT BIT(8)
|
#define ARB_FAKE_STATUS_TIMEOUT BIT(8)
|
||||||
|
|
||||||
#define REG_ARB_RDATA0(apid) (0x0C600018 + 0x10000 * apid)
|
#define REG_ARB_RDATA0(apid) (0x0C600018U + 0x10000U * apid)
|
||||||
#define REG_ARB_WDATA0(apid) (0x0C600010 + 0x10000 * apid)
|
#define REG_ARB_WDATA0(apid) (0x0C600010U + 0x10000U * apid)
|
||||||
|
|
||||||
static int addr_to_apid(uint32_t addr)
|
static int addr_to_apid(uint32_t addr)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user