On 21/01/2019 10:31, Jagan Teki wrote:
> Unlike other Allwinner SoC's, A80 comes with different ahb
> gate clock offset values and also has mmc common controller.
> So support them via driver data.

As mentioned in the fix I sent, this requires the clock and reset
support for CCU devices themselves before it can work.

With that fix applied before that patch in a series:

> Cc: Rask Ingemann Lambertsen <r...@formelder.dk>
> Cc: Jaehoon Chung <jh80.ch...@samsung.com>
> Signed-off-by: Jagan Teki <ja...@amarulasolutions.com>

Reviewed-by: Andre Przywara <andre.przyw...@arm.com>

Cheers,
Andre.

> ---
>  drivers/mmc/sunxi_mmc.c | 8 ++++++++
>  1 file changed, 8 insertions(+)
> 
> diff --git a/drivers/mmc/sunxi_mmc.c b/drivers/mmc/sunxi_mmc.c
> index 1e13a0665d..0c443a732d 100644
> --- a/drivers/mmc/sunxi_mmc.c
> +++ b/drivers/mmc/sunxi_mmc.c
> @@ -680,6 +680,10 @@ static const struct sunxi_mmc_variant sun4i_a10_variant 
> = {
>       .mclk_offset = 0x88,
>  };
>  
> +static const struct sunxi_mmc_variant sun9i_a80_variant = {
> +     .mclk_offset = 0x410,
> +};
> +
>  static const struct sunxi_mmc_variant sun50i_h6_variant = {
>       .mclk_offset = 0x830,
>  };
> @@ -701,6 +705,10 @@ static const struct udevice_id sunxi_mmc_ids[] = {
>         .compatible = "allwinner,sun8i-a83t-emmc",
>         .data = (ulong)&sun4i_a10_variant,
>       },
> +     {
> +       .compatible = "allwinner,sun9i-a80-mmc",
> +       .data = (ulong)&sun9i_a80_variant,
> +     },
>       {
>         .compatible = "allwinner,sun50i-a64-mmc",
>         .data = (ulong)&sun4i_a10_variant,
> 

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linux-sunxi+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to