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
1 parent 1b70db0 commit ce4c820d8ccf803dac0329cabdd6e75c78e81f4e
@Dan Handley Dan Handley authored on 30 Mar 2015
Showing 7 changed files
View
bl1/bl1_main.c
View
include/lib/aarch64/arch.h
View
include/lib/aarch64/arch_helpers.h
View
plat/fvp/bl2_fvp_setup.c
View
plat/fvp/include/platform_def.h
View
plat/juno/bl2_plat_setup.c
View
plat/juno/include/platform_def.h