Thread (16 messages) 16 messages, 4 authors, 2007-10-02

Re: [PATCH] cpm: Describe multi-user ram in its own device node.

From: Scott Wood <hidden>
Date: 2007-10-02 17:10:35

Timur Tabi wrote:
The code to process this node is qe_muram_init() in 
arch/powerpc/sysdev/qe_lib/qe.c.

    if ((np = of_find_node_by_name(NULL, "data-only")) != NULL) {
        address = *of_get_address(np, 0, &size, &flags);
        of_node_put(np);
        rh_attach_region(&qe_muram_info,
            (void *)address, (int)size);
    }

I think it would be trivial to modify this code to look for a 
Scott-style muram node.  Heck, it could be modified to look for both, 
and so we'll maintain compatibility.
I was thinking of just removing the muram code from qe_lib, and having 
it use the code in cpm_common.c.

BTW, searching the entire device tree for a node with the name 
"data-only", regardless of context, seems a bit insane to me.

-Scott
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help