mirror of
https://github.com/linux-sunxi/u-boot-sunxi.git
synced 2024-02-12 11:16:03 +08:00
mmc: omap_hsmmc: Add support to get pinctrl values and max frequency for different hw revisions
AM572x SR1.1 requires different IODelay values to be used than that used in AM572x SR2.0. These values are populated in device tree. Add capability in omap_hsmmc driver to extract IOdelay values for different silicon revision. The maximum frequency is also reduced when using a ES1.1. To keep the ability to boot both revsions with the same dtb, those values can be provided by the platform code. Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com> Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
This commit is contained in:

committed by
Jaehoon Chung

parent
33c1d77f4a
commit
2d28eeda33
@ -35,6 +35,12 @@ struct pad_conf_entry {
|
||||
u32 val;
|
||||
};
|
||||
|
||||
struct mmc_platform_fixups {
|
||||
const char *hw_rev;
|
||||
u32 unsupported_caps;
|
||||
u32 max_freq;
|
||||
};
|
||||
|
||||
struct omap_sysinfo {
|
||||
char *board_string;
|
||||
};
|
||||
@ -71,6 +77,7 @@ void force_emif_self_refresh(void);
|
||||
void get_ioregs(const struct ctrl_ioregs **regs);
|
||||
void srcomp_enable(void);
|
||||
void setup_warmreset_time(void);
|
||||
const struct mmc_platform_fixups *platform_fixups_mmc(uint32_t addr);
|
||||
|
||||
static inline u32 div_round_up(u32 num, u32 den)
|
||||
{
|
||||
|
@ -70,6 +70,7 @@ struct omap_hsmmc_plat {
|
||||
struct mmc mmc;
|
||||
bool cd_inverted;
|
||||
u32 controller_flags;
|
||||
const char *hw_rev;
|
||||
};
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user