From: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
To: Mark Kettenis <mark.kettenis@xs4all.nl>
Cc: mbrugger@suse.com, u-boot@lists.denx.de, bmeng.cn@gmail.com,
marex@denx.de, linux-kernel@vger.kernel.org, sjg@chromium.org,
m.szyprowski@samsung.com, s.nawrocki@samsung.com
Subject: Re: [PATCH v2 1/2] arm: rpi: Add function to trigger VL805's firmware load
Date: Thu, 30 Apr 2020 15:33:13 +0200 [thread overview]
Message-ID: <73e70f88919c253192f4d2e9bacd7fe27093ba57.camel@suse.de> (raw)
In-Reply-To: <0161a6a5254871ce@bloch.sibelius.xs4all.nl>
[-- Attachment #1: Type: text/plain, Size: 2431 bytes --]
On Thu, 2020-04-30 at 15:31 +0200, Mark Kettenis wrote:
> > From: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
> > Date: Thu, 30 Apr 2020 15:04:32 +0200
> >
> > On the Raspberry Pi 4, after a PCI reset, VL805's (a xHCI chip) firmware
> > may either be loaded directly from an EEPROM or, if not present, by the
> > SoC's VideoCore (the SoC's co-processor). Introduce the function that
> > informs VideoCore that VL805 may need its firmware loaded.
> >
> > Signed-off-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
> >
> > ---
> > Changes since v1:
> > - Rename function so it's not mistaken with regular firmware loading
> >
> > arch/arm/mach-bcm283x/include/mach/mbox.h | 13 +++++++
> > arch/arm/mach-bcm283x/include/mach/msg.h | 7 ++++
> > arch/arm/mach-bcm283x/msg.c | 43 +++++++++++++++++++++++
> > 3 files changed, 63 insertions(+)
> >
> > diff --git a/arch/arm/mach-bcm283x/include/mach/mbox.h b/arch/arm/mach-
> > bcm283x/include/mach/mbox.h
> > index 60e226ce1d..2ae2d3d97c 100644
> > --- a/arch/arm/mach-bcm283x/include/mach/mbox.h
> > +++ b/arch/arm/mach-bcm283x/include/mach/mbox.h
> > @@ -491,6 +491,19 @@ struct bcm2835_mbox_tag_set_palette {
> > } body;
> > };
> >
> > +#define BCM2835_MBOX_TAG_NOTIFY_XHCI_RESET 0x00030058
> > +
> > +struct bcm2835_mbox_tag_pci_dev_addr {
> > + struct bcm2835_mbox_tag_hdr tag_hdr;
> > + union {
> > + struct {
> > + u32 dev_addr;
> > + } req;
> > + struct {
> > + } resp;
> > + } body;
> > +};
> > +
> > /*
> > * Pass a raw u32 message to the VC, and receive a raw u32 back.
> > *
> > diff --git a/arch/arm/mach-bcm283x/include/mach/msg.h b/arch/arm/mach-
> > bcm283x/include/mach/msg.h
> > index 4afb08631b..e45c1bf010 100644
> > --- a/arch/arm/mach-bcm283x/include/mach/msg.h
> > +++ b/arch/arm/mach-bcm283x/include/mach/msg.h
> > @@ -48,4 +48,11 @@ int bcm2835_set_video_params(int *widthp, int *heightp,
> > int depth_bpp,
> > int pixel_order, int alpha_mode, ulong *fb_basep,
> > ulong *fb_sizep, int *pitchp);
> >
> > +/**
> > + * bcm2711_load_vl805_firmware() - get vl805's firmware loaded
> > + *
> > + * @return 0 if OK, -EIO on error
> > + */
> > +int bcm2711_notify_vl805_reset(void);
>
> Now the comment and function prototype don't agree :(.
Aargh, went too fast... I'll fix it on the next revision.
Regards,
Nicolas
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
next prev parent reply other threads:[~2020-04-30 13:33 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-30 13:04 [PATCH v2 0/2] Raspberry Pi 4 VL805 " Nicolas Saenz Julienne
2020-04-30 13:04 ` [PATCH v2 1/2] arm: rpi: Add function to trigger VL805's " Nicolas Saenz Julienne
2020-04-30 13:31 ` Mark Kettenis
2020-04-30 13:33 ` Nicolas Saenz Julienne [this message]
2020-04-30 13:04 ` [PATCH v2 2/2] usb: xhci: Load Raspberry Pi 4 VL805's firmware Nicolas Saenz Julienne
2020-05-05 12:15 ` Matthias Brugger
2020-05-05 12:35 ` Peter Robinson
2020-05-05 12:53 ` Nicolas Saenz Julienne
2020-05-05 13:39 ` Matthias Brugger
2020-05-05 13:47 ` Nicolas Saenz Julienne
2020-05-05 14:59 ` Matthias Brugger
2020-05-05 15:04 ` Nicolas Saenz Julienne
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=73e70f88919c253192f4d2e9bacd7fe27093ba57.camel@suse.de \
--to=nsaenzjulienne@suse.de \
--cc=bmeng.cn@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=m.szyprowski@samsung.com \
--cc=marex@denx.de \
--cc=mark.kettenis@xs4all.nl \
--cc=mbrugger@suse.com \
--cc=s.nawrocki@samsung.com \
--cc=sjg@chromium.org \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®