Skip to content

Commit

Permalink
arm64: cpuinfo: add system serial support
Browse files Browse the repository at this point in the history
Change-Id: I4542f07226e47e67be1f2792cffaa71fd6401442
Signed-off-by: Huang, Tao <[email protected]>

platform 85be89e
  • Loading branch information
rkhuangtao authored and scpcom committed May 27, 2020
1 parent 815ccbf commit f4b398d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions arch/arm64/kernel/cpuinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@
#include <linux/smp.h>
#include <linux/delay.h>

unsigned int system_serial_low;
EXPORT_SYMBOL(system_serial_low);

unsigned int system_serial_high;
EXPORT_SYMBOL(system_serial_high);

/*
* In case the boot CPU is hotpluggable, we record its initial state and
* current state separately. Certain system registers may contain different
Expand Down Expand Up @@ -179,6 +185,9 @@ static int c_show(struct seq_file *m, void *v)
seq_printf(m, "CPU revision\t: %d\n\n", MIDR_REVISION(midr));
}

seq_printf(m, "Serial\t\t: %08x%08x\n",
system_serial_high, system_serial_low);

return 0;
}

Expand Down

0 comments on commit f4b398d

Please sign in to comment.