Commit dd982a75 authored by Julius Werner's avatar Julius Werner Committed by chrome-bot
Browse files

gpio: rockchip: Adjust to coreboot's new GPIO representation



The Rockchip GPIO representation in coreboot is changing to match ARM
TF. Since depthcharge is just casting those raw numbers from the
coreboot table to its own representation, it needs to change as well.

CQ-DEPEND=CL:578236
BRANCH=None
BUG=None
TEST=Booted Kevin.

Change-Id: I7413861aa4d4504c72c4202601f284e3fffc7172
Signed-off-by: default avatarJulius Werner <jwerner@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/572228
parent 5a086f5c
......@@ -48,16 +48,16 @@ typedef struct {
typedef union {
u32 raw;
struct {
u16 port;
union {
struct {
u16 num:5;
u16 :11;
u32 num : 5;
u32 reserved1 : 27;
};
struct {
u16 idx:3;
u16 bank:2;
u16 :11;
u32 idx : 3;
u32 bank : 2;
u32 port : 4;
u32 reserved2 : 23;
};
};
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment