summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorBeomho Seo <beomho.seo@samsung.com>2014-08-22 15:12:31 +0900
committerChanho Park <chanho61.park@samsung.com>2014-11-18 12:00:42 +0900
commit04f1ea9e10b7c983d5055035854e4eb44464fec9 (patch)
tree70e15f7e852b21b7307b66512bed3dd85c717fc6 /include/linux
parente80bfa2987c62ca8959fffff58425b44b620cc93 (diff)
downloadlinux-3.10-04f1ea9e10b7c983d5055035854e4eb44464fec9.tar.gz
linux-3.10-04f1ea9e10b7c983d5055035854e4eb44464fec9.tar.bz2
linux-3.10-04f1ea9e10b7c983d5055035854e4eb44464fec9.zip
of: Add common FDT machine revision related function
Some device depentent mchine revision. So this patch add get machine revision function. Machine revision get from device tree. If device tree haven't 'revision' property, function return zero. Change-Id: Ide2bdd314db334643e5acaabf31d8abc133a51dc Signed-off-by: Beomho Seo <beomho.seo@samsung.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/of_fdt.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/of_fdt.h b/include/linux/of_fdt.h
index 1573cac9704..279663c3f65 100644
--- a/include/linux/of_fdt.h
+++ b/include/linux/of_fdt.h
@@ -117,6 +117,7 @@ extern void early_init_dt_setup_initrd_arch(unsigned long start,
extern int early_init_dt_scan_root(unsigned long node, const char *uname,
int depth, void *data);
+extern unsigned int of_flat_dt_get_machine_rev(void);
extern char *of_flat_dt_get_machine_name(void);
extern void *of_flat_dt_match_machine(void *default_match,
void * (*get_next_compat)(const char * const**));