[PATCH 4/7] drivers: ram: add fu740 support

Bin Meng bmeng.cn at gmail.com
Thu Mar 11 15:11:01 CET 2021


On Thu, Mar 11, 2021 at 9:50 PM Green Wan <green.wan at sifive.com> wrote:
>
> Add fu740 support for ram.
>
> Signed-off-by: Green Wan <green.wan at sifive.com>
> ---
>  drivers/ram/sifive/Kconfig      |   8 +-
>  drivers/ram/sifive/Makefile     |   2 +-
>  drivers/ram/sifive/sifive_ddr.c | 410 ++++++++++++++++++++++++++++++++++++++++
>  3 files changed, 415 insertions(+), 5 deletions(-)
>  create mode 100644 drivers/ram/sifive/sifive_ddr.c
>
> diff --git a/drivers/ram/sifive/Kconfig b/drivers/ram/sifive/Kconfig
> index 6aca22a..7685184 100644
> --- a/drivers/ram/sifive/Kconfig
> +++ b/drivers/ram/sifive/Kconfig
> @@ -5,9 +5,9 @@ config RAM_SIFIVE
>         help
>           This enables support for ram drivers of SiFive SoCs.
>
> -config SIFIVE_FU540_DDR
> -       bool "SiFive FU540 DDR driver"
> +config SIFIVE_DDR
> +       bool "SiFive DDR driver"
>         depends on RAM_SIFIVE
> -       default y if TARGET_SIFIVE_FU540
> +       default y if TARGET_SIFIVE_FU540 || TARGET_SIFIVE_UNMATCHED
>         help
> -         This enables DDR support for the platforms based on SiFive FU540 SoC.
> +         This enables DDR support for the platforms based on SiFive SoCs.
> diff --git a/drivers/ram/sifive/Makefile b/drivers/ram/sifive/Makefile
> index d66efec..4ef89f8 100644
> --- a/drivers/ram/sifive/Makefile
> +++ b/drivers/ram/sifive/Makefile
> @@ -3,4 +3,4 @@
>  # Copyright (c) 2020 SiFive, Inc
>  #
>
> -obj-$(CONFIG_SIFIVE_FU540_DDR) += fu540_ddr.o
> +obj-$(CONFIG_SIFIVE_DDR) += sifive_ddr.o
> diff --git a/drivers/ram/sifive/sifive_ddr.c b/drivers/ram/sifive/sifive_ddr.c
> new file mode 100644

Can you do a "git mv" to the old fu540_ddr.c?

> index 0000000..d89a02b
> --- /dev/null
> +++ b/drivers/ram/sifive/sifive_ddr.c

[snip]

Regards,
Bin


More information about the U-Boot mailing list