summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndré Przywara <andre.przywara@arm.com>2023-04-13 11:33:00 +0200
committerTrustedFirmware Code Review <review@review.trustedfirmware.org>2023-04-13 11:33:00 +0200
commit24ddb6ce01ec7c9007e16ed35ca5fff1eb5846df (patch)
tree155cf77ad60b27839f3ce893007c780949489230 /include
parent15db5039b5ad8c77a62ad8b9aac0bf587681918d (diff)
parentbd96d533dc28c4c938aa54905787688823cbccac (diff)
downloadarm-trusted-firmware-24ddb6ce01ec7c9007e16ed35ca5fff1eb5846df.tar.gz
Merge "fix(rpi3): initialize SD card host controller" into integration
Diffstat (limited to 'include')
-rw-r--r--include/drivers/rpi3/sdhost/rpi3_sdhost.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/drivers/rpi3/sdhost/rpi3_sdhost.h b/include/drivers/rpi3/sdhost/rpi3_sdhost.h
index 1653240c8..f4f6ec8b2 100644
--- a/include/drivers/rpi3/sdhost/rpi3_sdhost.h
+++ b/include/drivers/rpi3/sdhost/rpi3_sdhost.h
@@ -15,6 +15,7 @@
struct rpi3_sdhost_params {
uintptr_t reg_base;
uint32_t clk_rate;
+ uint32_t clk_rate_initial;
uint32_t bus_width;
uint32_t flags;
uint32_t current_cmd;
@@ -57,6 +58,8 @@ void rpi3_sdhost_stop(void);
#define HC_CMD_READ 0x0040
#define HC_CMD_COMMAND_MASK 0x003f
+#define RPI3_SDHOST_MAX_CLOCK 250000000 // technically, we should obtain this number from the mailbox
+
#define HC_CLOCKDIVISOR_MAXVAL 0x07ff
#define HC_CLOCKDIVISOR_PREFERVAL 0x027b
#define HC_CLOCKDIVISOR_SLOWVAL 0x0148