Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 340143
b: refs/heads/master
c: 5b7897d
h: refs/heads/master
i:
  340141: 95a65a5
  340139: d590731
  340135: 6bf9053
  340127: b31918b
v: v3
  • Loading branch information
Doug Anderson authored and Olof Johansson committed Nov 28, 2012
1 parent bd72629 commit 45a1b1b
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7423d2d817b815cc5bc41316f4aaa8ace3c4153e
refs/heads/master: 5b7897db00bd66a42c626012f51cd3b1d5e6bee5
19 changes: 15 additions & 4 deletions trunk/arch/arm/mach-exynos/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include <linux/sched.h>
#include <linux/serial_core.h>
#include <linux/of.h>
#include <linux/of_fdt.h>
#include <linux/of_irq.h>
#include <linux/export.h>
#include <linux/irqdomain.h>
Expand Down Expand Up @@ -121,6 +122,7 @@ static struct map_desc exynos_iodesc[] __initdata = {
},
};

#ifdef CONFIG_ARCH_EXYNOS5
static struct map_desc exynos5440_iodesc[] __initdata = {
{
.virtual = (unsigned long)S5P_VA_CHIPID,
Expand All @@ -129,6 +131,7 @@ static struct map_desc exynos5440_iodesc[] __initdata = {
.type = MT_DEVICE,
},
};
#endif

static struct map_desc exynos4_iodesc[] __initdata = {
{
Expand Down Expand Up @@ -346,11 +349,19 @@ void __init exynos_init_late(void)

void __init exynos_init_io(struct map_desc *mach_desc, int size)
{
struct map_desc *iodesc = exynos_iodesc;
int iodesc_sz = ARRAY_SIZE(exynos_iodesc);
#if defined(CONFIG_OF) && defined(CONFIG_ARCH_EXYNOS5)
unsigned long root = of_get_flat_dt_root();

/* initialize the io descriptors we need for initialization */
if (of_machine_is_compatible("samsung,exynos5440"))
iotable_init(exynos5440_iodesc, ARRAY_SIZE(exynos5440_iodesc));
else
iotable_init(exynos_iodesc, ARRAY_SIZE(exynos_iodesc));
if (of_flat_dt_is_compatible(root, "samsung,exynos5440")) {
iodesc = exynos5440_iodesc;
iodesc_sz = ARRAY_SIZE(exynos5440_iodesc);
}
#endif

iotable_init(iodesc, iodesc_sz);

if (mach_desc)
iotable_init(mach_desc, size);
Expand Down
5 changes: 4 additions & 1 deletion trunk/arch/arm/mach-exynos/mach-exynos5-dt.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
*/

#include <linux/of_platform.h>
#include <linux/of_fdt.h>
#include <linux/serial_core.h>

#include <asm/mach/arch.h>
Expand Down Expand Up @@ -83,9 +84,11 @@ static const struct of_dev_auxdata exynos5440_auxdata_lookup[] __initconst = {

static void __init exynos5_dt_map_io(void)
{
unsigned long root = of_get_flat_dt_root();

exynos_init_io(NULL, 0);

if (of_machine_is_compatible("samsung,exynos5250"))
if (of_flat_dt_is_compatible(root, "samsung,exynos5250"))
s3c24xx_init_clocks(24000000);
}

Expand Down

0 comments on commit 45a1b1b

Please sign in to comment.