All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marek Vasut <marex@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] mpc5xxx: Add stub implementation of cache functions
Date: Tue, 26 Aug 2014 21:45:57 +0200	[thread overview]
Message-ID: <201408262145.57821.marex@denx.de> (raw)
In-Reply-To: <1409051131-7260-1-git-send-email-vvv444@gmail.com>

On Tuesday, August 26, 2014 at 01:05:31 PM, Vasili Galka wrote:
> Some drivers (e.g. net/e1000) reference these functions. So, this
> fixes the build of MVBC_P board.
> 
> I'm not familiar with the MPC5xxx platform, maybe a full
> implementation shall be implemented instead of this stub in the
> future.

Is MPC5xxx cache coherent PPC or is it not ?

> Signed-off-by: Vasili Galka <vvv444@gmail.com>
> Cc: Wolfgang Denk <wd@denx.de>, Marek Vasut <marex@denx.de>

+CC Scott , he can likely clarify .

> ---
>  arch/powerpc/cpu/mpc5xxx/Makefile |    1 +
>  arch/powerpc/cpu/mpc5xxx/cache.c  |   15 +++++++++++++++
>  2 files changed, 16 insertions(+), 0 deletions(-)
>  create mode 100644 arch/powerpc/cpu/mpc5xxx/cache.c
> 
> diff --git a/arch/powerpc/cpu/mpc5xxx/Makefile
> b/arch/powerpc/cpu/mpc5xxx/Makefile index 5c67e1d..d122b29 100644
> --- a/arch/powerpc/cpu/mpc5xxx/Makefile
> +++ b/arch/powerpc/cpu/mpc5xxx/Makefile
> @@ -7,6 +7,7 @@
> 
>  extra-y	= start.o
>  extra-y += traps.o
> +obj-y  += cache.o
>  obj-y  += io.o
>  obj-y  += firmware_sc_task_bestcomm.impl.o
>  obj-y += i2c.o
> diff --git a/arch/powerpc/cpu/mpc5xxx/cache.c
> b/arch/powerpc/cpu/mpc5xxx/cache.c new file mode 100644
> index 0000000..5d674bc
> --- /dev/null
> +++ b/arch/powerpc/cpu/mpc5xxx/cache.c
> @@ -0,0 +1,15 @@
> +/*
> + * This file contains stub implementation of
> + *   invalidate_dcache_range()
> + *   flush_dcache_range()
> + *
> + * SPDX-License-Identifier:	GPL-2.0+
> + */
> +
> +void invalidate_dcache_range(unsigned long start, unsigned long stop)
> +{
> +}
> +
> +void flush_dcache_range(unsigned long start, unsigned long stop)
> +{
> +}

Best regards,
Marek Vasut

  reply	other threads:[~2014-08-26 19:45 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-26 11:05 [U-Boot] [PATCH] mpc5xxx: Add stub implementation of cache functions Vasili Galka
2014-08-26 19:45 ` Marek Vasut [this message]
2014-08-26 19:48   ` Scott Wood
2014-08-26 19:56     ` Marek Vasut
2014-09-01 20:53 ` Wolfgang Denk
2014-09-02 12:20   ` Tom Rini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201408262145.57821.marex@denx.de \
    --to=marex@denx.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.