common: iotrace: do optimize
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: I260f46e744a4059ba5b3022586c26910187606eb
This commit is contained in:
parent
ed9976b572
commit
a78c1921ec
|
|
@ -213,6 +213,11 @@ config BOOTARGS
|
|||
CONFIG_BOOTARGS goes into the environment value "bootargs". Note that
|
||||
this value will also override the "chosen" node in FDT blob.
|
||||
|
||||
config IO_TRACE
|
||||
bool "Enable iotrace"
|
||||
help
|
||||
This enable iotrace feature.
|
||||
|
||||
menu "Console"
|
||||
|
||||
config MENU
|
||||
|
|
|
|||
|
|
@ -122,7 +122,6 @@ obj-$(CONFIG_$(SPL_TPL_)FIT) += image-fit.o
|
|||
obj-$(CONFIG_$(SPL_)MULTI_DTB_FIT) += boot_fit.o common_fit.o
|
||||
obj-$(CONFIG_$(SPL_TPL_)FIT_SIGNATURE) += image-sig.o
|
||||
endif
|
||||
obj-$(CONFIG_IO_TRACE) += iotrace.o
|
||||
|
||||
obj-y += memsize.o
|
||||
obj-y += stdio.o
|
||||
|
|
@ -162,6 +161,7 @@ obj-y += s_record.o
|
|||
obj-y += xyzModem.o
|
||||
|
||||
ifndef CONFIG_SPL_BUILD
|
||||
obj-$(CONFIG_IO_TRACE) += iotrace.o
|
||||
obj-$(CONFIG_ANDROID_WRITE_KEYBOX) += write_keybox.o
|
||||
obj-$(CONFIG_ANDROID_KEYMASTER_CA) += keymaster.o
|
||||
obj-$(CONFIG_ANDROID_KEYMASTER_CA) += attestation_key.o
|
||||
|
|
|
|||
|
|
@ -89,16 +89,20 @@ u32 iotrace_readl(const void *ptr)
|
|||
{
|
||||
u32 v;
|
||||
|
||||
printf("[iotrace]: read addr 0x%08lx... ", (ulong)ptr);
|
||||
v = readl(ptr);
|
||||
add_record(IOT_32 | IOT_READ, ptr, v);
|
||||
printf("OK\n");
|
||||
|
||||
return v;
|
||||
}
|
||||
|
||||
void iotrace_writel(ulong value, const void *ptr)
|
||||
{
|
||||
printf("[iotrace]: write addr 0x%08lx value 0x%08lx... ", (ulong)ptr, value);
|
||||
add_record(IOT_32 | IOT_WRITE, ptr, value);
|
||||
writel(value, ptr);
|
||||
printf("OK\n");
|
||||
}
|
||||
|
||||
u16 iotrace_readw(const void *ptr)
|
||||
|
|
|
|||
Loading…
Reference in New Issue