mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 04:10:18 +09:00
ARM: exynos: set system_rev from DT revision
With this patch "revision" DT string entry is used to set global system_rev variable. This information uses to detect board type in wiringPi library. Revision '0x0100' means this board is ODROID-XU3/4. Change-Id: Id6b0e55d20d35882b7e9ab056a0fef2a09a71a3a Signed-off-by: Brian Kim <brian.kim@hardkernel.com>
This commit is contained in:
@@ -21,6 +21,8 @@
|
||||
#include "exynos-mfc-reserved-memory.dtsi"
|
||||
|
||||
/ {
|
||||
revision = <0x0100>;
|
||||
|
||||
memory@40000000 {
|
||||
device_type = "memory";
|
||||
reg = <0x40000000 0x7EA00000>;
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
#include <asm/hardware/cache-l2x0.h>
|
||||
#include <asm/mach/arch.h>
|
||||
#include <asm/mach/map.h>
|
||||
#include <asm/system_info.h>
|
||||
|
||||
#include <mach/map.h>
|
||||
#include <plat/cpu.h>
|
||||
@@ -48,6 +49,11 @@ static struct platform_device exynos_cpuidle = {
|
||||
void __iomem *sysram_base_addr;
|
||||
void __iomem *sysram_ns_base_addr;
|
||||
|
||||
static void __init exynos_get_revision(void)
|
||||
{
|
||||
of_property_read_u32(of_root, "revision", &system_rev);
|
||||
}
|
||||
|
||||
void __init exynos_sysram_init(void)
|
||||
{
|
||||
struct device_node *node;
|
||||
@@ -65,6 +71,8 @@ void __init exynos_sysram_init(void)
|
||||
sysram_ns_base_addr = of_iomap(node, 0);
|
||||
break;
|
||||
}
|
||||
|
||||
exynos_get_revision();
|
||||
}
|
||||
|
||||
static void __init exynos_init_late(void)
|
||||
|
||||
Reference in New Issue
Block a user