From: Lauri Kasanen <cand@gmx.com>
To: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Cc: linux-mips@vger.kernel.org
Subject: Re: [PATCH 2/6] mips: Add N64 machine type
Date: Fri, 8 Jan 2021 09:04:34 +0200 [thread overview]
Message-ID: <20210108090434.d404fe2dfa604542d8c88a05@gmx.com> (raw)
In-Reply-To: <20210107171035.GA13117@alpha.franken.de>
On Thu, 7 Jan 2021 18:10:35 +0100
Thomas Bogendoerfer <tsbogend@alpha.franken.de> wrote:
> 32BIT kernel don't compile, because you use TO_UNCAC which only
> exists for 64bit kernels. One solution would be to use CKSEG1 to
> convert from physical to an uncached address. But I'd prefer if
> you add resources to your platform device and do ioremap in device
> drivers. This way there is also no need to export the interrupt
> defines outside.
:( Jiaxun told me to use TO_UNCAC because CKSEG1 was unclear to him...
I will change back to CKSEG1. ioremap seems much needless overhead.
> > +#define RCP_IRQ MIPS_CPU_IRQ(2)
> > +#define CART_IRQ MIPS_CPU_IRQ(3)
> > +#define PRENMI_IRQ MIPS_CPU_IRQ(4)
> > +#define RDBR_IRQ MIPS_CPU_IRQ(5)
> > +#define RDBW_IRQ MIPS_CPU_IRQ(6)
> > +#define TIMER_IRQ MIPS_CPU_IRQ(7)
>
> and this IMHO also unsed, so no need to define it.
The sound driver uses the RCP IRQ; the machine-specific names are
defined because they're much more clear.
- Lauri
next prev parent reply other threads:[~2021-01-08 7:04 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-04 13:43 [PATCH 2/6] mips: Add N64 machine type Lauri Kasanen
2021-01-07 17:10 ` Thomas Bogendoerfer
2021-01-08 7:04 ` Lauri Kasanen [this message]
2021-01-08 8:40 ` Thomas Bogendoerfer
2021-01-08 11:28 ` Jiaxun Yang
-- strict thread matches above, loose matches on Subject: below --
2020-12-25 17:00 Lauri Kasanen
2020-12-26 3:17 ` Jiaxun Yang
2020-12-26 7:30 ` Lauri Kasanen
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=20210108090434.d404fe2dfa604542d8c88a05@gmx.com \
--to=cand@gmx.com \
--cc=linux-mips@vger.kernel.org \
--cc=tsbogend@alpha.franken.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