Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F106126825
D12737.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
812 B
Referenced Files
None
Subscribers
None
D12737.diff
View Options
diff --git a/sys/mips/broadcom/bcm_machdep.c b/sys/mips/broadcom/bcm_machdep.c
--- a/sys/mips/broadcom/bcm_machdep.c
+++ b/sys/mips/broadcom/bcm_machdep.c
@@ -116,6 +116,9 @@
extern int *edata;
extern int *end;
+/* from sys/mips/mips/machdep.c */
+extern char cpu_model[];
+
static struct bcm_platform bcm_platform_data;
static bool bcm_platform_data_avail = false;
@@ -399,6 +402,12 @@
return (error);
}
+ /* All hex formatted IDs are within the range of 0x4000-0x9C3F (40000-1) */
+ if (bp->cid.chip_id >= 0x4000 && bp->cid.chip_id <= 0x9C3F)
+ snprintf(cpu_model, 10, "BCM%hX", bp->cid.chip_id);
+ else
+ snprintf(cpu_model, 10, "BCM%hu", bp->cid.chip_id);
+
/* Fetch chipc capability flags */
bp->cc_caps = BCM_SOC_READ_4(bp->cc_addr, CHIPC_CAPABILITIES);
bp->cc_caps_ext = 0x0;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Dec 26, 8:26 PM (11 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15607706
Default Alt Text
D12737.diff (812 B)
Attached To
Mode
D12737: [mips/broadcom] set sysctl "hw.model" by SoC ChipCommon ID
Attached
Detach File
Event Timeline
Log In to Comment