lkml.org 
[lkml]   [2015]   [May]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 1/2] arm: devtree: Save atags if are in DT atags field
    Date
    This patch creates /proc/atags from DT /atags field.

    Signed-off-by: Pali Rohár <pali.rohar@gmail.com>
    ---
    arch/arm/kernel/devtree.c | 6 ++++++
    1 file changed, 6 insertions(+)

    diff --git a/arch/arm/kernel/devtree.c b/arch/arm/kernel/devtree.c
    index 7e13e27..dd98322 100644
    --- a/arch/arm/kernel/devtree.c
    +++ b/arch/arm/kernel/devtree.c
    @@ -29,6 +29,7 @@
    #include <asm/mach-types.h>
    #include <asm/system_info.h>

    +#include "atags.h"

    #ifdef CONFIG_SMP
    extern struct of_cpu_method __cpu_method_of_table[];
    @@ -256,5 +257,10 @@ const struct machine_desc * __init setup_machine_fdt(unsigned int dt_phys)
    system_rev = 0;
    }

    + /* Save atags */
    + prop = of_get_flat_dt_prop(dt_root, "atags", NULL);
    + if (prop)
    + save_atags((void *)prop);
    +
    return mdesc;
    }
    --
    1.7.9.5


    \
     
     \ /
      Last update: 2015-05-15 22:21    [W:4.683 / U:0.004 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site