28 Dec, 2011

1 commit


04 Aug, 2011

1 commit


03 Aug, 2011

1 commit

  • The patch adds function of_alias_scan to populate a global lookup
    table with the properties of 'aliases' node and function
    of_alias_get_id for drivers to find alias id from the lookup table.

    Signed-off-by: Shawn Guo
    [grant.likely: add locking and rework parse loop]
    Signed-off-by: Grant Likely

    Shawn Guo
     

16 Jan, 2011

1 commit


09 Jan, 2011

1 commit


02 Jan, 2011

1 commit


30 Dec, 2010

2 commits

  • unflatten_device_tree has two dependencies on things that happen
    during boot time. Firstly, it references the initial device tree
    directly. Secondly, it allocates memory using the early boot
    allocator. This patch factors out these dependencies and uses
    the new __unflatten_device_tree function to implement a driver-visible
    fdt_unflatten_tree function, which can be used to unflatten a
    blob after boot time.

    V2:
    - remove extra __va() call
    - make dt_alloc functions return void *. This doesn't fix the general
    strangeness in this code that constantly casts back and forth between
    unsigned long and __be32 *

    Signed-off-by: Stephen Neuendorffer
    Signed-off-by: Grant Likely

    Stephen Neuendorffer
     
  • In preparation for providing run-time handling of device trees, factor
    out some of the basic functions so that they take an arbitrary blob,
    rather than relying on the single boot-time tree.

    V2:
    - functions have of_fdt_* names
    - removed find_flat_dt_string
    - blob argument is first

    Signed-off-by: Stephen Neuendorffer
    Signed-off-by: Grant Likely

    Stephen Neuendorffer
     

22 Oct, 2010

1 commit

  • This patch refactors the early init parsing of the chosen node so that
    architectures aren't forced to provide an empty implementation of
    early_init_dt_scan_chosen_arch. Instead, if an architecture wants to
    do something different, it can either use a wrapper function around
    early_init_dt_scan_chosen(), or it can replace it altogether.

    This patch was written in preparation to adding device tree support to
    both x86 ad MIPS.

    Signed-off-by: Grant Likely
    Tested-by: David Daney

    Grant Likely
     

29 Apr, 2010

2 commits


14 Feb, 2010

2 commits

  • We don't always have lmb available, so make arches provide an
    early_init_dt_alloc_memory_arch() to handle the allocation of
    memory in the fdt code.

    When we don't have lmb.h included, we need asm/page.h for __va.

    Signed-off-by: Jeremy Kerr
    Signed-off-by: Grant Likely
    Acked-by: Benjamin Herrenschmidt
    Acked-by: Michal Simek

    Jeremy Kerr
     
  • The following functions don't exist:
    finish_device_tree()
    print_properties()
    prom_n_intr_cells()
    prom_get_irq_senses()

    The following functions are in drivers/of/base.c, so the declaration
    belongs in of.h instead of of_fdt.h
    of_machine_is_compatible()
    prom_add_property()
    prom_remove_property()
    prom_update_property()

    Signed-off-by: Grant Likely
    Acked-by: Benjamin Herrenschmidt
    Acked-by: Michal Simek

    Grant Likely
     

09 Feb, 2010

5 commits


11 Dec, 2009

4 commits


24 Nov, 2009

4 commits


16 Oct, 2009

4 commits