From: Marcelo Tosatti <marcelo.tosatti@cyclades.com>
To: Kumar Gala <galak@kernel.crashing.org>,
Dan Malek <dan@embeddededge.com>,
"'Aristeu Sergio Rozanski Filho'" <aris@cathedrallabs.org>,
Pantelis Antoniou <pantelis.antoniou@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>,
linuxppc-embedded list <linuxppc-embedded@ozlabs.org>
Subject: Re: [PATCH] ppc32: 8xx board-specific platform stuff for fs_enet
Date: Wed, 23 Nov 2005 10:00:33 -0200 [thread overview]
Message-ID: <20051123120033.GA3551@logos.cnet> (raw)
In-Reply-To: <ACB2F36A-0A37-4EA1-9E4A-F773AD4E0D86@kernel.crashing.org>
[-- Attachment #1: Type: text/plain, Size: 2027 bytes --]
On Wed, Nov 23, 2005 at 10:05:19AM -0600, Kumar Gala wrote:
>
> On Nov 23, 2005, at 3:11 AM, Marcelo Tosatti wrote:
>
> >On Wed, Nov 23, 2005 at 01:40:38PM +1100, Paul Mackerras wrote:
> >>Marcelo Tosatti writes:
> >>
> >>>Paul, you're OK with the following definitions on asm-ppc/io.h?
> >>>
> >>>+/* access ports */
> >>>+#define setbits32(_addr, _v) out_be32(&(_addr), in_be32(&
> >>>(_addr)) | (_v))
> >>>+#define clrbits32(_addr, _v) out_be32(&(_addr), in_be32(&
> >>>(_addr)) & ~(_v))
> >>>+
> >>>+#define setbits16(_addr, _v) out_be16(&(_addr), in_be16(&
> >>>(_addr)) | (_v))
> >>>+#define clrbits16(_addr, _v) out_be16(&(_addr), in_be16(&
> >>>(_addr)) & ~(_v))
> >>
> >>I guess so... how many drivers need these things?
> >
> >Many.
>
> Shouldn't these go into some non-arch specific location? I hate
> making drivers only build on a give arch.
Hi Kumar,
I dont really know the policy for driver placement, but it seems that
it works on a case by case basis.
The files in arch/ppc/8xx_io/ (which is what I think you refer to as
candidates for drivers/), are:
1) commproc.c
Basic API for dpram access. Core code.
2) micropatch.c
microcode update code/data. Core code.
3) cs4218.h
4) cs4218_tdm.c
cs4218 does not compile at the moment due to syntatical problems,
I've fixed them up and the driver compiles, but I don't know
if it works (patch attached).
I would not be surprised if the driver has been broken since
long time ago.
Does anyone have hardware to test it? Dan?
Otherwise we should remove it from the tree, since its unmaintained
and unused.
5) enet.c
6) fec.c
The ENET/FEC network drivers are obseleted by fs_enet.
However there are some PHY descriptions in fec.c which are missing from
fs_enet - we'd better make sure to have them all in the new driver
before removing the old one.
Aris, would you mind looking into this?
Once we have that we can set a deadline at Documentation/feature-removal.txt
if desired.
Other than those there are no 8xx drivers in arch/ppc/ AFAIK.
[-- Attachment #2: cs42.patch --]
[-- Type: text/plain, Size: 489 bytes --]
@@ -1380,7 +1381,7 @@
}
static DEFINE_TIMER(beep_timer, cs_nosound, 0, 0);
-};
+//};
static void cs_mksound(unsigned int hz, unsigned int ticks)
{
@@ -1462,7 +1463,7 @@
}
static MACHINE mach_cs4218 = {
- .owner = THIS_MODULE,
+// .owner = THIS_MODULE,
.name = "HIOX CS4218",
.name2 = "Built-in Sound",
.dma_alloc = CS_Alloc,
@@ -2475,6 +2476,7 @@
volatile smc_t *sp;
volatile smc_uart_t *up;
volatile immap_t *immap;
+ unsigned long dp_addr;
has_sound = 0;
next prev parent reply other threads:[~2005-11-23 17:31 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-16 12:04 [PATCH] ppc32: 8xx board-specific platform stuff for fs_enet Vitaly Bordug
2005-11-17 13:58 ` Marcelo Tosatti
2005-11-18 14:09 ` Vitaly Bordug
2005-11-18 9:08 ` Marcelo Tosatti
2005-11-23 2:40 ` Paul Mackerras
2005-11-23 9:11 ` Marcelo Tosatti
2005-11-23 16:05 ` Kumar Gala
2005-11-23 12:00 ` Marcelo Tosatti [this message]
2005-11-23 18:25 ` 'Aristeu Sergio Rozanski Filho'
2005-11-23 20:18 ` Dan Malek
2005-11-23 15:39 ` Marcelo Tosatti
2005-11-30 7:08 ` Kumar Gala
2005-12-01 12:17 ` Marcelo Tosatti
2005-12-01 14:15 ` Dan Malek
2005-12-01 15:13 ` Kumar Gala
2005-11-23 16:14 ` Vitaly Bordug
2005-11-17 14:07 ` Marcelo Tosatti
2005-11-18 14:11 ` Vitaly Bordug
2005-11-18 9:05 ` Marcelo Tosatti
-- strict thread matches above, loose matches on Subject: below --
2005-11-18 16:19 Vitaly Bordug
2005-11-23 8:34 ` Marcelo Tosatti
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=20051123120033.GA3551@logos.cnet \
--to=marcelo.tosatti@cyclades.com \
--cc=aris@cathedrallabs.org \
--cc=dan@embeddededge.com \
--cc=galak@kernel.crashing.org \
--cc=linuxppc-embedded@ozlabs.org \
--cc=pantelis.antoniou@gmail.com \
--cc=paulus@samba.org \
/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.