1. 13 9月, 2007 1 次提交
  2. 21 3月, 2007 1 次提交
  3. 04 12月, 2006 1 次提交
    • D
      [POWERPC] Cleanup zImage handling of kernel entry with flat device tree · 35af89eb
      David Gibson 提交于
      This makes 2 changes to clean up the flat device tree handling
      logic in the zImage wrapper.
      
      First, there were two callbacks from the dt_ops structure used for
      producing a final flat tree to pass to the kerne: dt_ops.ft_pack()
      which packed the flat tree (possibly a no-op) and dt_ops.ft_addr()
      which retreived the address of the final blob.  Since they were only
      ever called together, this patch combines the two into a single new
      callback, dt_ops.finalize().  This new callback does whatever
      platform-dependent things are necessary to produce a final flat device
      tree blob, and returns the blob's addres.
      
      Second, the current logic calls the kernel with a flat device tree if
      one is build into the zImage wrapper, otherwise it boots the kernel
      with a PROM pointer, expecting the kernel to copy the OF device tree
      itself.  This approach precludes the possibility of the platform
      wrapper code building a flat device tree from whatever
      platform-specific information firmware provides.  Thus, this patch
      takes the more sensible approach of invoking the kernel with a flat
      tree if the dt_ops.finalize callback provides one (by whatever means).
      
      So, the dt_ops.finalize callback can be NULL, or can be a function
      which returns NULL.  In either case, the zImage wrapper logic assumes
      that this is a platform with OF and invokes the kernel accordingly.
      Signed-off-by: NDavid Gibson <dwg@au1.ibm.com>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      35af89eb
  4. 23 10月, 2006 1 次提交
    • M
      [POWERPC] Add flatdevtree source · 6fb4efc6
      Mark A. Greer 提交于
      Add the latest version of the flatdevtree code and corresponding glue.
      
      A phandle table now tracks values returned by ft_find_device().
      The value returned by ft_find_device() is a phandle which is really
      an index into the phandle table.  The phandle table contains the address
      of the corresponding node.  When the flat dt is edited/moved, the node
      pointers in the phandle table are updated accordingly so no phandles kept
      by the caller become stale.
      Signed-off-by: NMark A. Greer <mgreer@mvista.com>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      6fb4efc6