]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: coresight: common definition for (OS) Lock Access Register key value
authorDietmar Eggemann <dietmar.eggemann@arm.com>
Sun, 14 Oct 2012 19:23:04 +0000 (20:23 +0100)
committerWill Deacon <will.deacon@arm.com>
Thu, 10 Jan 2013 21:13:05 +0000 (21:13 +0000)
commit20bf4fa925b39a2975a68da2e9152d394ea2e1b5
tree6a2db29823171f8236b650361e97653481bc82b6
parent0535dafcce1bd9f556e205dba871e11794ee3a77
ARM: coresight: common definition for (OS) Lock Access Register key value

Coresight components and debug are using a common lock control mechansim.
Writing 0xC5ACCE55 to the Lock Access Register (LAR) in case of a coresight
components enables further access to the coresight device registers. Writing
any other value to it removes the write access.
Writing 0xC5ACCE55 to the OS Lock Access Register (OSLAR) in case of debug
locks the debug register for further access to the debug registers. Writing
any other value to it unlocks the debug registers.

Unfortunately, the existing coresight code uses the terms lock and unlock the
other way around. Unlocking stands for enabling write access and locking for
removing write access.

That is why the definition of the LAR and OSLAR key value has been changed to
CS_LAR_KEY.

Signed-off-by: Dietmar Eggemann <dietmar.eggemann@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm/include/asm/cti.h
arch/arm/include/asm/hardware/coresight.h
arch/arm/kernel/hw_breakpoint.c