Skip to contentSkip to conversation

CONFIG_GENERIC_PPC32

DISCUSSION Michael Sokolov 2 participants 2 messages Apr 11, 2002

lore
Share & tools
lore
#0 lore raw
Quoted 2 lines · Mark A. Greer

When you say push "it" are you referring to all of your changes or just the CONFIG_GENERIC_PPC32 stuff?

I was referring to CONFIG_GENERIC_PPC32. My GT-64260 and EV-64260A work would be nice too though. :)

Quoted 4 lines

From what I can tell, it
looks like you moved much of the init functionality that was in gt64260_common and put it into ev64260_pci.c, et. al., and got rid of the "library" routines in gt64260_common.

I have replaced gt64260_common.c with gt64260_data.c and gt64260_utils.c so that one can choose to use the utility functions for non-OF non-StarMON boards or not use them for good OF/StarMON, but still always have the crucial global variables.

Quoted 1 line

IMO, this is a large step backwards.

I disagree.

Quoted 8 lines

The purpose of all the arch/ppc/*_common
files is to provide a "library" for each bridge. They aren't perfect and one of my TODO item over the next few months is to improve all of them but they provide common code that initializes and supports that particular bridge. Having these files have played a large part in making ports to systems with MPC106/107/824x chips, for example, much simpler and much faster. That is the purpose of gt64260_common.c but you just deleted it and put that code in a non-reusable, board-specific file.

Then fine, keep that library and use it for your ports to your heart's delight. Just please let HEC ports not use it.

MS

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#1 lore raw
Quoted 9 lines · Michael Sokolov

I have replaced gt64260_common.c with gt64260_data.c and gt64260_utils.c so that one can choose to use the utility functions for non-OF non-StarMON boards or not use them for good OF/StarMON, but still always have the crucial global variables.

<snip>

Then fine, keep that library and use it for your ports to your heart's delight. Just please let HEC ports not use it.

You never _had_ to use the gt64260_common code if you didn't want to. Its just a library of stuff there to be used (but I would expect most if not all boards with a gt64260 to use many of the functions in it). If you don't want to, that's fine.

My issue is that your gt64260_utils.c doesn't have a lot of functionality that _common.c does.

I guess I still don't know what you want. Do you want your _data.c and _utils.c pushed too or instead of _common.c? Either way, why not use the functions that are already in _common.c instead? If that functionality isn't there, add it. If its the size of gt64260_common.c, then it can be broken up. I would already like to move the find_bridges, bridge_init, and check_errata routines into their own file. Doesn't reduce the size that much but it splits it up a little so you can not link the .o file with find_bridges, etc code if you don't want it, for example.

Mark

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/