From mboxrd@z Thu Jan 1 00:00:00 1970 From: Timur Tabi Date: Fri, 08 Feb 2008 10:44:15 -0600 Subject: [U-Boot-Users] [PATCH] 83xx: Add Vitesse VSC7385 firmware uploading In-Reply-To: <47AC75C9.3080304@gmail.com> References: <12023255654134-git-send-email-timur@freescale.com> <47AC75C9.3080304@gmail.com> Message-ID: <47AC86DF.1040006@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 >> +#include >> +#include >> +#include >> + >> > 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 #ifdef CONFIG_VSC7385_ENET #include #include #include > 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