···5454 select OLD_SIGACTION5555 select ARCH_REQUIRE_GPIOLIB5656 select IRQ_DOMAIN if ETRAX_ARCH_V325757+ select OF if ETRAX_ARCH_V325858+ select OF_EARLY_FLATTREE if ETRAX_ARCH_V3257595860config HZ5961 int···6462config NR_CPUS6563 int6664 default "1"6565+6666+config BUILTIN_DTB6767+ string "DTB to build into the kernel image"6868+ depends on OF67696870source "init/Kconfig"6971
···1919#include <linux/utsname.h>2020#include <linux/pfn.h>2121#include <linux/cpu.h>2222+#include <linux/of.h>2323+#include <linux/of_fdt.h>2424+#include <linux/of_platform.h>2225#include <asm/setup.h>2326#include <arch/system.h>2427···6663 unsigned long bootmap_size;6764 unsigned long start_pfn, max_pfn;6865 unsigned long memory_start;6666+6767+#ifdef CONFIG_OF6868+ early_init_dt_scan(__dtb_start);6969+#endif69707071 /* register an initial console printing routine for printk's */7172···148141149142 reserve_bootmem(PFN_PHYS(start_pfn), bootmap_size, BOOTMEM_DEFAULT);150143144144+ unflatten_and_copy_device_tree();145145+151146 /* paging_init() sets up the MMU and marks all pages as reserved */152147153148 paging_init();···213204214205subsys_initcall(topology_init);215206207207+static int __init cris_of_init(void)208208+{209209+ of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);210210+ return 0;211211+}212212+core_initcall(cris_of_init);