From: Timur Tabi <timur@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH] 83xx: Add Vitesse VSC7385 firmware uploading
Date: Fri, 08 Feb 2008 10:44:15 -0600 [thread overview]
Message-ID: <47AC86DF.1040006@freescale.com> (raw)
In-Reply-To: <47AC75C9.3080304@gmail.com>
Ben Warren wrote:
> Is this switch able to pass traffic in a default configuration without
> this firmware or is it dead?
Without the firmware, the switch is completely dead.
> I'm not 100% convinced that this is network code, but my opinion isn't
> very strong and I can't really think of a better place (maybe
> device/misc or device/non_free?)
I'll move it to device/misc if you want. device/non_free doesn't exist so I
don't want to create it.
>> +#include <config.h>
>> +#include <common.h>
>> +#include <asm/io.h>
>> +#include <asm/errno.h>
>> +
>>
> I think Kim mentioned this will break some architectures. Just repeating it.
Yeah, I'm still waiting for someone to tell me why. In the meantime, I've done
this:
#include <config.h>
#ifdef CONFIG_VSC7385_ENET
#include <common.h>
#include <asm/io.h>
#include <asm/errno.h>
> It looks to me that the data bus is 8 bits. Why are you defining
> registers as 32 bits and using 32-bit accessors?
Beats me. The programming for this chip is really weird, the documentation is
under NDA, and I didn't write the original code. Mine is a little prettier than
the original
(http://www.bitshrine.org/gpp/u-boot-1.2.0-mpc837xerdb-vsc7385-load.patch), but
I'm not going to change the actual I/O operations.
> When you write to the device, can you express the value in hex? It's
> quicker for the reader (who has Vitesse datasheets, of course) to figure
> out what you're doing.
Sure, I'll change it.
> Here you use mnemonics for describing the base register settings. I know
> it's not new code, but it would be nice to be consistent
All of the Freescale header files could be scrubbed. I figured I was already
making enough changes. They *should* be using mnemonics for everything.
--
Timur Tabi
Linux kernel developer at Freescale
next prev parent reply other threads:[~2008-02-08 16:44 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-06 19:19 [U-Boot-Users] [PATCH] 83xx: Add Vitesse VSC7385 firmware uploading Timur Tabi
2008-02-07 22:29 ` Kim Phillips
2008-02-07 22:35 ` Timur Tabi
2008-02-07 22:54 ` Wolfgang Denk
2008-02-08 15:31 ` Ben Warren
2008-02-08 16:44 ` Timur Tabi [this message]
2008-02-08 19:09 ` Scott Wood
2008-02-09 0:03 ` Ben Warren
2008-02-11 15:43 ` Timur Tabi
2008-02-11 15:46 ` Ben Warren
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=47AC86DF.1040006@freescale.com \
--to=timur@freescale.com \
--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