Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Arm Trusted Firmware
Commits
ddf28700
"vscode:/vscode.git/clone" did not exist on "c0b094cf859899bd78db43a4dc59a0ae6786d49d"
Commit
ddf28700
authored
Aug 31, 2020
by
Madhukar Pappireddy
Committed by
TrustedFirmware Code Review
Aug 31, 2020
Browse files
Merge "qti: spmi_arb: Fix coverity integer conversion warnings" into integration
parents
859df7d5
9694c210
Changes
1
Show whitespace changes
Inline
Side-by-side
plat/qti/common/src/spmi_arb.c
View file @
ddf28700
...
...
@@ -10,17 +10,17 @@
#include <spmi_arb.h>
#define REG_APID_MAP(apid) (0x0C440900 + 4 * i)
#define REG_APID_MAP(apid) (0x0C440900
U
+ 4
U
* i)
#define NUM_APID 0x80
#define PPID_MASK (0xfff << 8)
#define PPID_MASK (0xfff
U
<< 8)
#define REG_ARB_CMD(apid) (0x0C600000 + 0x10000 * apid)
#define REG_ARB_CMD(apid) (0x0C600000
U
+ 0x10000
U
* apid)
/* These are opcodes specific to this SPMI arbitrator, *not* SPMI commands. */
#define OPC_EXT_WRITEL 0
#define OPC_EXT_READL 1
#define REG_ARB_STATUS(apid) (0x0C600008 + 0x10000 * apid)
#define REG_ARB_STATUS(apid) (0x0C600008
U
+ 0x10000
U
* apid)
#define ARB_STATUS_DONE BIT(0)
#define ARB_STATUS_FAILURE BIT(1)
#define ARB_STATUS_DENIED BIT(2)
...
...
@@ -29,8 +29,8 @@
/* Fake status to report driver errors. */
#define ARB_FAKE_STATUS_TIMEOUT BIT(8)
#define REG_ARB_RDATA0(apid) (0x0C600018 + 0x10000 * apid)
#define REG_ARB_WDATA0(apid) (0x0C600010 + 0x10000 * apid)
#define REG_ARB_RDATA0(apid) (0x0C600018
U
+ 0x10000
U
* apid)
#define REG_ARB_WDATA0(apid) (0x0C600010
U
+ 0x10000
U
* apid)
static
int
addr_to_apid
(
uint32_t
addr
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment