diff options
author | juhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2013-02-04 15:23:04 +0000 |
---|---|---|
committer | juhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2013-02-04 15:23:04 +0000 |
commit | 743b84ed564f288bf4251acf803b674541c1ce3c (patch) | |
tree | 2a64dfa482217b4e313cbb5398a0677646a11210 /target/linux/omap35xx/patches-2.6.36/001-expose_omap3_die_id.patch | |
parent | 6351a51255125f717fae33ff0b2852b0ba3dd551 (diff) |
omap35xx: R.I.P.
It is broken since ~22 months and nobody takes care of that.
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35485 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/omap35xx/patches-2.6.36/001-expose_omap3_die_id.patch')
-rw-r--r-- | target/linux/omap35xx/patches-2.6.36/001-expose_omap3_die_id.patch | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/target/linux/omap35xx/patches-2.6.36/001-expose_omap3_die_id.patch b/target/linux/omap35xx/patches-2.6.36/001-expose_omap3_die_id.patch deleted file mode 100644 index 6d3bed4e9..000000000 --- a/target/linux/omap35xx/patches-2.6.36/001-expose_omap3_die_id.patch +++ /dev/null @@ -1,48 +0,0 @@ -diff --git a/arch/arm/mach-omap2/id.c b/arch/arm/mach-omap2/id.c -index 9a879f9..9cefef4 100644 ---- a/arch/arm/mach-omap2/id.c -+++ b/arch/arm/mach-omap2/id.c -@@ -85,6 +85,9 @@ EXPORT_SYMBOL(omap_type); - - #define read_tap_reg(reg) __raw_readl(tap_base + (reg)) - -+static ssize_t die_id_show(struct kobject *, struct kobj_attribute *, char *); -+static struct kobj_attribute die_id_attr = __ATTR(die_id, 0444, die_id_show, NULL); -+ - struct omap_id { - u16 hawkeye; /* Silicon type (Hawkeye id) */ - u8 dev; /* Device type from production_id reg */ -@@ -104,6 +107,17 @@ static struct omap_id omap_ids[] __initdata = { - static void __iomem *tap_base; - static u16 tap_prod_id; - -+static ssize_t die_id_show(struct kobject *kobj, struct kobj_attribute *attr, -+ char *buf) -+{ -+ return sprintf(buf, "Die ID: %08x%08x%08x%08x\n", -+ read_tap_reg(OMAP_TAP_DIE_ID_0), -+ read_tap_reg(OMAP_TAP_DIE_ID_1), -+ read_tap_reg(OMAP_TAP_DIE_ID_2), -+ read_tap_reg(OMAP_TAP_DIE_ID_3)); -+ -+} -+ - void omap_get_die_id(struct omap_die_id *odi) - { - odi->id_0 = read_tap_reg(OMAP_TAP_DIE_ID_0); -@@ -457,3 +471,15 @@ void __init omap2_set_globals_tap(struct omap_globals *omap2_globals) - else - tap_prod_id = 0x0208; - } -+ -+int __init export_omap_die_id(void) -+{ -+ int error; -+ -+ error = sysfs_create_file(power_kobj, &die_id_attr.attr); -+ if (error) -+ printk(KERN_ERR "sysfs_create_file failed: %d\n", error); -+ return error; -+} -+ -+late_initcall(export_omap_die_id); |