Remove use of PLATFORM_CACHE_LINE_SIZE
authorDan Handley <dan.handley@arm.com>
Mon, 30 Mar 2015 16:15:16 +0000 (17:15 +0100)
committerDan Handley <dan.handley@arm.com>
Mon, 27 Apr 2015 17:05:06 +0000 (18:05 +0100)
commitce4c820d8ccf803dac0329cabdd6e75c78e81f4e
tree65ec4e21ba293bc53bc58c182805e05e0873918f
parent1b70db06ff8dcd34c4d6ad5a3499f602318d376d
Remove use of PLATFORM_CACHE_LINE_SIZE

The required platform constant PLATFORM_CACHE_LINE_SIZE is
unnecessary since CACHE_WRITEBACK_GRANULE effectively provides the
same information. CACHE_WRITEBACK_GRANULE is preferred since this
is an architecturally defined term and allows comparison with the
corresponding hardware register value.

Replace all usage of PLATFORM_CACHE_LINE_SIZE with
CACHE_WRITEBACK_GRANULE.

Also, add a runtime assert in BL1 to check that the provided
CACHE_WRITEBACK_GRANULE matches the value provided in CTR_EL0.

Change-Id: If87286be78068424217b9f3689be358356500dcd
bl1/bl1_main.c
include/lib/aarch64/arch.h
include/lib/aarch64/arch_helpers.h
plat/fvp/bl2_fvp_setup.c
plat/fvp/include/platform_def.h
plat/juno/bl2_plat_setup.c
plat/juno/include/platform_def.h