Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 234925
b: refs/heads/master
c: ffb9fc6
h: refs/heads/master
i:
  234923: a9c2989
v: v3
  • Loading branch information
Sebastian Andrzej Siewior authored and Thomas Gleixner committed Feb 23, 2011
1 parent 7c6c4de commit 96f605b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3879a6f32948330782889cebc4d74c4f2316c676
refs/heads/master: ffb9fc68dff38f811eeb24c15aba0418b6a8ee53
19 changes: 19 additions & 0 deletions trunk/arch/x86/kernel/devicetree.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include <linux/of_platform.h>
#include <linux/slab.h>

#include <asm/hpet.h>
#include <asm/irq_controller.h>
#include <asm/apic.h>

Expand Down Expand Up @@ -98,6 +99,23 @@ void __init add_dtb(u64 data)
initial_dtb = data + offsetof(struct setup_data, data);
}

static void __init dtb_setup_hpet(void)
{
struct device_node *dn;
struct resource r;
int ret;

dn = of_find_compatible_node(NULL, NULL, "intel,ce4100-hpet");
if (!dn)
return;
ret = of_address_to_resource(dn, 0, &r);
if (ret) {
WARN_ON(1);
return;
}
hpet_address = r.start;
}

static void __init dtb_lapic_setup(void)
{
#ifdef CONFIG_X86_LOCAL_APIC
Expand Down Expand Up @@ -197,5 +215,6 @@ void __init x86_dtb_get_config(unsigned int unused)
of_scan_flat_dt(early_init_dt_scan_root, NULL);

unflatten_device_tree();
dtb_setup_hpet();
dtb_apic_setup();
}

0 comments on commit 96f605b

Please sign in to comment.