of: introduce common FDT machine related functions
authorRob Herring <rob.herring@calxeda.com>
Thu, 14 Aug 2014 07:48:25 +0000 (16:48 +0900)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 03:00:36 +0000 (12:00 +0900)
commit5db58c8f6f1364dc632e44c9e578c46b041d18e3
treeb867f1ba1fcbdc2c11c7703b3e22d2a69852e5a7
parentc428087fefae2a33ee53d1f3fbf9d6c64d16bfbe
of: introduce common FDT machine related functions

Introduce common of_flat_dt_match_machine and
of_flat_dt_get_machine_name functions to unify architectures' handling
of machine level model and compatible properties.

Several architectures match the root compatible string with an arch
specific list of machine descriptors duplicating the same search
algorithm. Create a common implementation with a simple architecture
specific hook to iterate over each machine's match table.

Change-Id: I77acb5c560e2b08591c37b57d5d87023aa3fbe91
Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Acked-by: Grant Likely <grant.likely@linaro.org>
drivers/of/fdt.c
include/linux/of_fdt.h