projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mmc: refactor MMC startup to make it easier to support new modes
[oweals/u-boot.git]
/
drivers
/
mmc
/
rpmb.c
diff --git
a/drivers/mmc/rpmb.c
b/drivers/mmc/rpmb.c
index 9d0b8bc0c8f9b41fd91185729e87c3777e8c7a23..0b6b6222bdce9ae7c44a4510d01dfa18de40c22c 100644
(file)
--- a/
drivers/mmc/rpmb.c
+++ b/
drivers/mmc/rpmb.c
@@
-10,6
+10,7
@@
#include <config.h>
#include <common.h>
#include <config.h>
#include <common.h>
+#include <memalign.h>
#include <mmc.h>
#include <u-boot/sha256.h>
#include "mmc_private.h"
#include <mmc.h>
#include <u-boot/sha256.h>
#include "mmc_private.h"
@@
-66,7
+67,7
@@
struct s_rpmb {
unsigned char mac[RPMB_SZ_MAC];
unsigned char data[RPMB_SZ_DATA];
unsigned char nonce[RPMB_SZ_NONCE];
unsigned char mac[RPMB_SZ_MAC];
unsigned char data[RPMB_SZ_DATA];
unsigned char nonce[RPMB_SZ_NONCE];
- unsigned
long
write_counter;
+ unsigned
int
write_counter;
unsigned short address;
unsigned short block_count;
unsigned short result;
unsigned short address;
unsigned short block_count;
unsigned short result;