project/bcm63xx/atf.git
5 years agoSanitize SPD include paths
Antonio Nino Diaz [Mon, 11 Feb 2019 11:57:57 +0000 (11:57 +0000)]
Sanitize SPD include paths

Commit 09d40e0e0828 ("Sanitise includes across codebase") modified the
include paths of the TSP includes but it didn't remove the include path
from the makefile or did the same for TLK. This patch does the remaining
work.

Change-Id: Iecee2e88fabcd06989d35568c3a4c1f4e7d93572
Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
5 years agoMerge pull request #1810 from antonio-nino-diaz-arm/an/setjmp
Antonio Niño Díaz [Mon, 11 Feb 2019 09:58:53 +0000 (09:58 +0000)]
Merge pull request #1810 from antonio-nino-diaz-arm/an/setjmp

Make setjmp/longjmp compliant with the C standard and move them to libc

5 years agoMerge pull request #1808 from sandrine-bailleux-arm/sb/maintainers
Antonio Niño Díaz [Mon, 11 Feb 2019 09:58:43 +0000 (09:58 +0000)]
Merge pull request #1808 from sandrine-bailleux-arm/sb/maintainers

maintainers: Fix broken links to some Github accounts

5 years agoMerge pull request #1811 from sandrine-bailleux-arm/sb/doc-fixes
Antonio Niño Díaz [Mon, 11 Feb 2019 09:58:34 +0000 (09:58 +0000)]
Merge pull request #1811 from sandrine-bailleux-arm/sb/doc-fixes

Miscellaneous documentation fixes

5 years agoDoc: Remove useless escape characters
Sandrine Bailleux [Fri, 8 Feb 2019 14:26:36 +0000 (15:26 +0100)]
Doc: Remove useless escape characters

Just like has been done in the porting guide a couple of patches
earlier, kill all escaped underscore characters in all documents.

Change-Id: I7fb5b806412849761d9221a6ce3cbd95ec43d611
Signed-off-by: Sandrine Bailleux <sandrine.bailleux@arm.com>
5 years agoMiscellaneous doc fixes/enhancements
Sandrine Bailleux [Fri, 8 Feb 2019 09:50:28 +0000 (10:50 +0100)]
Miscellaneous doc fixes/enhancements

Change-Id: I915303cea787d9fb188428b98ac6cfc610cc4470
Signed-off-by: Sandrine Bailleux <sandrine.bailleux@arm.com>
5 years agoPorting Guide: Fix some broken links
Sandrine Bailleux [Fri, 8 Feb 2019 13:46:42 +0000 (14:46 +0100)]
Porting Guide: Fix some broken links

Fix links to SCC and FreeBSD. Direct links do not need any special
formatting.

Change-Id: I00f7343d029a30ec02dfaa0ef393b3197260cab9
Signed-off-by: Sandrine Bailleux <sandrine.bailleux@arm.com>
5 years agoPorting Guide: Remove useless escape characters
Sandrine Bailleux [Fri, 8 Feb 2019 13:44:53 +0000 (14:44 +0100)]
Porting Guide: Remove useless escape characters

Replace all occurences of escaped underscore characters by plain ones.
This makes the text version of the porting guide easier to read and
grep into.

Change-Id: I7bf3b292b686be4c6d847a467b6708ac16544c90
Signed-off-by: Sandrine Bailleux <sandrine.bailleux@arm.com>
5 years agoMerge pull request #1809 from antonio-nino-diaz-arm/an/fix-trusty
Antonio Niño Díaz [Fri, 8 Feb 2019 13:53:15 +0000 (13:53 +0000)]
Merge pull request #1809 from antonio-nino-diaz-arm/an/fix-trusty

trusty: Require dynamic translation tables

5 years agoMerge pull request #1759 from vwadekar/armlink-support
Antonio Niño Díaz [Fri, 8 Feb 2019 13:48:47 +0000 (13:48 +0000)]
Merge pull request #1759 from vwadekar/armlink-support

Armlink support

5 years agolibc: Move setjmp to libc folder
Antonio Nino Diaz [Fri, 8 Feb 2019 13:20:37 +0000 (13:20 +0000)]
libc: Move setjmp to libc folder

Now that setjmp() and longjmp() are compliant with the standard they can
be moved with the other libc files.

Change-Id: Iea3b91c34eb353ace5e171e72f331602d57774d5
Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
5 years agoMake setjmp.h prototypes comply with the C standard
Antonio Nino Diaz [Fri, 8 Feb 2019 13:10:45 +0000 (13:10 +0000)]
Make setjmp.h prototypes comply with the C standard

Instead of having a custom implementation of setjmp() and longjmp() it
is better to follow the C standard.

The comments in setjmp.h are no longer needed as there are no deviations
from the expected one, so they have been removed.

All SDEI code that relied on them has been fixed to use the new function
prototypes and structs.

Change-Id: I6cd2e21cb5a5bcf81ba12283f2e4c067bd5172ca
Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
5 years agoxlat_tables_v2: mark 'xlat_clean_dcache_range' unused
Varun Wadekar [Wed, 30 Jan 2019 16:31:07 +0000 (08:31 -0800)]
xlat_tables_v2: mark 'xlat_clean_dcache_range' unused

The armclang compiler can warn if a variable is declared but
is never referenced. The '__attribute__((unused))' attribute
informs the compiler to expect an unused variable, and tells
it not to issue a warning.

This patch marks the 'xlat_clean_dcache_range' function as
"unused" to fix this armclang compiler warning.

Change-Id: I7623f61c2975a01db4d1b80554dd4f9a9e0f7eb6
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
5 years agolocks: linker variables to calculate per-cpu bakery lock size
Varun Wadekar [Wed, 30 Jan 2019 16:26:20 +0000 (08:26 -0800)]
locks: linker variables to calculate per-cpu bakery lock size

This patch introduces explicit linker variables to mark the start and
end of the per-cpu bakery lock section to help bakery_lock_normal.c
calculate the size of the section. This patch removes the previously
used '__PERCPU_BAKERY_LOCK_SIZE__' linker variable to make the code
uniform across GNU linker and ARM linker.

Change-Id: Ie0c51702cbc0fe8a2076005344a1fcebb48e7cca
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
5 years agoTegra186: trampoline: include bl_common.h
Varun Wadekar [Fri, 11 Jan 2019 22:48:41 +0000 (14:48 -0800)]
Tegra186: trampoline: include bl_common.h

This patch includes bl_common.h from plat_trampoline.S to link with
the __BL31_END__ symbol.

Change-Id: Ie66c5009018472607db668583c9a0b3553f0ae73
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
5 years agoTegra186: use common 'BL31_BASE' variable
Varun Wadekar [Fri, 11 Jan 2019 18:48:47 +0000 (10:48 -0800)]
Tegra186: use common 'BL31_BASE' variable

This patch modfies the 'tegra_soc_pwr_domain_power_down_wfi' handler
to use BL31_BASE variable, provided by bl_common.h

Change-Id: I9747228d0193c1ae6999284458b9f866955a61a2
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
5 years agolib: aarch64: misc_helpers: include bl_common.h
Varun Wadekar [Thu, 10 Jan 2019 23:46:34 +0000 (15:46 -0800)]
lib: aarch64: misc_helpers: include bl_common.h

This patch includes bl_common.h to get access to the linker
defined symbols.

Change-Id: I9aa4a6e730273d75a53438854f69971e485bc904
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
5 years agoRemove unused function symbols
Varun Wadekar [Thu, 10 Jan 2019 23:45:15 +0000 (15:45 -0800)]
Remove unused function symbols

This patch removes the unused functions that are marked as .global
in code but not defined anywhere in the code.

Change-Id: Ia5057a77c0b0b4a61043eab868734cd3437304cc
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
5 years agolib: aarch64: fix non-code symbol errors flagged by armlink
Varun Wadekar [Thu, 10 Jan 2019 23:36:44 +0000 (15:36 -0800)]
lib: aarch64: fix non-code symbol errors flagged by armlink

This patch modifies the code to turn __1printf and __2printf into proper
functions to fix the following errors flagged by armlink.

Error: L6318W: backtrace.o(.text.backtrace) contains branch to a non-code symbol __2printf.
Error: L6318W: backtrace.o(.text.backtrace) contains branch to a non-code symbol __2printf.
Error: L6318W: backtrace.o(.text.backtrace) contains branch to a non-code symbol __2printf.
Error: L6318W: backtrace.o(.text.backtrace) contains branch to a non-code symbol __2printf.
Error: L6318W: backtrace.o(.text.backtrace) contains branch to a non-code symbol __2printf.
Error: L6318W: backtrace.o(.text.backtrace) contains branch to a non-code symbol __2printf.

Change-Id: I89126bc2b9db44ce8b8fc9fb1e3fc4c8c60c47a4
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
5 years agoTegra: remove circular dependency with common_def.h
Varun Wadekar [Fri, 21 Dec 2018 18:55:42 +0000 (10:55 -0800)]
Tegra: remove circular dependency with common_def.h

This patch stops including common_def.h from platform_def.h to
fix a circular depoendency between them.

This means platform_def.h now has to define the linker macros:
* PLATFORM_LINKER_FORMAT
* PLATFORM_LINKER_ARCH

Change-Id: Icd540b1bd32fb37e0e455e9146c8b7f4b314e012
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
5 years agoTegra: define CACHE_WRITEBACK_GRANULE for scatterfile
Kalyani Chidambaram [Fri, 14 Dec 2018 19:36:43 +0000 (11:36 -0800)]
Tegra: define CACHE_WRITEBACK_GRANULE for scatterfile

The scatterfile to support armlink, does not seem to support
shift operator. To handle this define CACHE_WRITEBACK_GRANULE with
the direct value.

Change-Id: I19afc7cb9c55a08cb0703f284d91018d3214353f
Signed-off-by: Kalyani Chidambaram <kalyanic@nvidia.com>
5 years agomaintainers: Fix broken links to some Github accounts
Sandrine Bailleux [Thu, 7 Feb 2019 16:22:28 +0000 (17:22 +0100)]
maintainers: Fix broken links to some Github accounts

Change-Id: I89a451fa22d517f9c59dfa0a74f28deb6d750b8f
Signed-off-by: Sandrine Bailleux <sandrine.bailleux@arm.com>
5 years agotrusty: Require dynamic translation tables
Antonio Nino Diaz [Wed, 6 Feb 2019 13:27:52 +0000 (13:27 +0000)]
trusty: Require dynamic translation tables

Trusty requires dynamic translation tables support, so the makefile of
Trusty itself should request it. Not doing so causes platforms such as
FVP to fail to build with Trusty. Other platforms like Tegra still build
because they use dynamic translation tables by default.

Change-Id: Id67d3b9e1f7d0547fa81e81cefa3faf1e0e6f876
Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
5 years agoMerge pull request #1785 from vwadekar/tf2.0-tegra-downstream-rebase-1.25.19
Antonio Niño Díaz [Wed, 6 Feb 2019 10:20:25 +0000 (10:20 +0000)]
Merge pull request #1785 from vwadekar/tf2.0-tegra-downstream-rebase-1.25.19

Tf2.0 tegra downstream rebase 1.25.19

5 years agoMerge pull request #1805 from antonio-nino-diaz-arm/an/generic-timer
Antonio Niño Díaz [Wed, 6 Feb 2019 10:20:12 +0000 (10:20 +0000)]
Merge pull request #1805 from antonio-nino-diaz-arm/an/generic-timer

drivers: generic_delay_timer: Assert presence of Generic Timer

5 years agodrivers: generic_delay_timer: Assert presence of Generic Timer
Antonio Nino Diaz [Wed, 6 Feb 2019 09:23:04 +0000 (09:23 +0000)]
drivers: generic_delay_timer: Assert presence of Generic Timer

The Generic Timer is an optional extension to an ARMv7-A implementation.
The generic delay timer can be used from any architecture supported by
the Trusted Firmware. In ARMv7 it is needed to check that this feature
is present. In ARMv8 it is always present.

Change-Id: Ib7e8ec13ffbb2f64445d4ee48ed00f26e34b79b7
Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
5 years agodocs: add Tegra186 information to nvidia-tegra.rst
Varun Wadekar [Thu, 3 Jan 2019 23:09:44 +0000 (15:09 -0800)]
docs: add Tegra186 information to nvidia-tegra.rst

This patch adds information about the Tegra186 platforms to the
docs.

Change-Id: I69525c60a0126030dc15505ec7f02ccf8250be6f
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
5 years agoTegra186: remove ENABLE_AFI_DEVICE macro usage
Varun Wadekar [Fri, 25 Jan 2019 17:38:14 +0000 (09:38 -0800)]
Tegra186: remove ENABLE_AFI_DEVICE macro usage

This patch removes this macro and its usage as it is used only
within the Tegra186 files and all derived platforms keep the
macro enabled.

Change-Id: Ib831b3c002ba4dedc3d5fafbb7d321daa28fa9ea
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
5 years agospd: trusty: memmap trusty's code memory before peeking
Varun Wadekar [Thu, 3 Jan 2019 18:44:22 +0000 (10:44 -0800)]
spd: trusty: memmap trusty's code memory before peeking

This patch dynamically maps the first page of trusty's code memory,
before accessing it to find out if we are running a 32-bit or 64-bit
image.

On Tegra platforms, this means we have to increase the mappings to
accomodate the new memmap entry.

Change-Id: If370d1e6cfcccd69b260134c1b462d8d17bee03d
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
5 years agoTegra: initialise per-CPU GIC interface(s)
Varun Wadekar [Thu, 3 Jan 2019 18:12:55 +0000 (10:12 -0800)]
Tegra: initialise per-CPU GIC interface(s)

This patch initilises the per-CPU GIC bits during cold boot and
secondary CPU power up. Commit 80c50ee accidentally left out this
part.

Change-Id: I73ce59dbc83580a84b827cab89fe7e1f65f9f130
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
5 years agoTegra: spe: prepend '\r' to '\n'
Varun Wadekar [Mon, 7 May 2018 18:21:57 +0000 (11:21 -0700)]
Tegra: spe: prepend '\r' to '\n'

This patch udpates the SPE console driver to prepend '\r' to
'\n'. This fixes the alignment of prints seen by the host
machines on their UART ports.

Tested by collecting the logs from host PC using Cutecom

Reported by: Mustafa Bilgen <mbilgen@nvidia.com>

Change-Id: I6e0b412bd71ff5eb889582071df8c157da5175ed
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
5 years agoTegra: Enable irq as wake-up event for cpu_standby
Vignesh Radhakrishnan [Fri, 20 Apr 2018 21:31:41 +0000 (14:31 -0700)]
Tegra: Enable irq as wake-up event for cpu_standby

As per ARM ARM D1.17.2, any physical IRQ interrupt received by the PE
will be treated as a wake-up event, if SCR_EL3.IRQ is set to '1',
irrespective of the value of the PSTATE.I bit value.

This patch programs the SCR_EL3.IRQ bit before entering CPU standby
state, to allow an IRQ to wake the PE. On waking up, the previous
SCR_EL3 value is restored.

Change-Id: Ie81cf3a7668f5ac35f4bf2ecc461b91b9b60650c
Signed-off-by: Vignesh Radhakrishnan <vigneshr@nvidia.com>
5 years agoTegra: remove unused libc files from makefile
Anthony Zhou [Mon, 2 Apr 2018 11:34:59 +0000 (19:34 +0800)]
Tegra: remove unused libc files from makefile

This patch redefines the variable LIBC_SRCS for Tegra platforms,
to remove unused libc files from the list. This patch is a building
block to eventually use other libc implementations in the future.

Change-Id: Iccde5a75f5e2d6f4e2dbc6274beb423b80e846fd
Signed-off-by: Anthony Zhou <anzhou@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
5 years agoIntroduce build option to override libc
Varun Wadekar [Thu, 31 Jan 2019 17:22:30 +0000 (09:22 -0800)]
Introduce build option to override libc

This patch introduces a build option 'OVERRIDE_LIBC' that platforms
can set to override libc from the BL image. The default value is '0'
to keep the library.

Change-Id: I10a0b247f6a782eeea4a0359e30a8d79b1e9e4e1
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
5 years agoMerge pull request #1804 from antonio-nino-diaz-arm/an/cleanup
Antonio Niño Díaz [Tue, 5 Feb 2019 11:31:15 +0000 (11:31 +0000)]
Merge pull request #1804 from antonio-nino-diaz-arm/an/cleanup

Minor cleanup

5 years agoMerge pull request #1806 from thomas-arm/master
Antonio Niño Díaz [Tue, 5 Feb 2019 11:31:05 +0000 (11:31 +0000)]
Merge pull request #1806 from thomas-arm/master

sgi/sgm: add a second maintainer for Arm's SGI and SGM platforms

5 years agosgi/sgm: add a second maintainer for Arm's SGI and SGM platforms
Thomas Abraham [Fri, 7 Dec 2018 04:28:50 +0000 (09:58 +0530)]
sgi/sgm: add a second maintainer for Arm's SGI and SGM platforms

Add a second maintainer for Arm's SGI and SGM platform support in
trusted firmware to handle the review and maintenance of
existing and upcoming platforms.

Change-Id: Ie7fa8da280d9351f7543122fb261d6ac6c7e15ad
Signed-off-by: Thomas Abraham <thomas.abraham@arm.com>
5 years agoMerge pull request #1799 from soby-mathew/sm/gicr_probe
Antonio Niño Díaz [Mon, 4 Feb 2019 18:19:07 +0000 (18:19 +0000)]
Merge pull request #1799 from soby-mathew/sm/gicr_probe

GICv3: Allow probe for fewer GICR interfaces than exposed by the frame

5 years agoMerge pull request #1783 from thloh85-intel/integration_v2
Antonio Niño Díaz [Mon, 4 Feb 2019 18:14:58 +0000 (18:14 +0000)]
Merge pull request #1783 from thloh85-intel/integration_v2

plat: intel: Add BL2 support for Stratix 10 SoC

5 years agoGICv3: Allow probe for fewer GICR interfaces than exposed by the frame
Soby Mathew [Thu, 17 Jan 2019 14:57:54 +0000 (14:57 +0000)]
GICv3: Allow probe for fewer GICR interfaces than exposed by the frame

Previously the GICv3 redistributor probe function
(gicv3_rdistif_base_addrs_probe()) asserted that the number of
per-CPU redistributor interfaces expected to be probed by the
platform is equal to the number exported by the redistributor
frame. This is a problem in case the number of CPUs in the
platform is less than the number of redistributor interfaces
in the frame. Hence this patch removes the assertion check
and allows probe for fewer redistributor interfaces as required
by the platform.

Change-Id: I3449763a3ad70817224442cbe184d001030c9874
Signed-off-by: Soby Mathew <soby.mathew@arm.com>
5 years agoMerge pull request #1803 from sandrine-bailleux-arm/sb/arm-bl33-fixes
Antonio Niño Díaz [Mon, 4 Feb 2019 11:27:35 +0000 (11:27 +0000)]
Merge pull request #1803 from sandrine-bailleux-arm/sb/arm-bl33-fixes

Fixes related to BL33 image on Arm platforms

5 years agoMerge pull request #1796 from grandpaul/rpi3-sdhost-driver
Antonio Niño Díaz [Mon, 4 Feb 2019 11:26:00 +0000 (11:26 +0000)]
Merge pull request #1796 from grandpaul/rpi3-sdhost-driver

RPi3 SDHost driver

5 years agoplat: intel: Add BL2 support for Stratix 10 SoC
Loh Tien Hock [Mon, 4 Feb 2019 08:17:24 +0000 (16:17 +0800)]
plat: intel: Add BL2 support for Stratix 10 SoC

This adds BL2 support for Intel Stratix 10 SoC FPGA.
Functionality includes:
- Release and setup peripherals from reset
- Calibrate DDR
- ECC DDR Scrubbing
- Load FIP (bl31 and bl33)

Signed-off-by: Loh Tien Hock <tien.hock.loh@intel.com>
5 years agoRemove unneeded include paths in PLAT_INCLUDES
Antonio Nino Diaz [Fri, 1 Feb 2019 12:22:22 +0000 (12:22 +0000)]
Remove unneeded include paths in PLAT_INCLUDES

Also, update platform_def.h guidelines about includes in the porting
guide.

Change-Id: I1ae338c9dd3242b309f6d53687ba2cb755d488c3
Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
5 years agoxlat v2: Fix comment
Antonio Nino Diaz [Fri, 25 Jan 2019 13:12:07 +0000 (13:12 +0000)]
xlat v2: Fix comment

Change-Id: Id7c22d76b896d1dcac18cdb0e564ce4e02583e33
Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
5 years agoRemove duplicated definitions of linker symbols
Antonio Nino Diaz [Fri, 25 Jan 2019 13:28:38 +0000 (13:28 +0000)]
Remove duplicated definitions of linker symbols

Many parts of the code were duplicating symbols that are defined in
include/common/bl_common.h. It is better to only use the definitions in
this header.

As all the symbols refer to virtual addresses, they have to be
uintptr_t, not unsigned long. This has also been fixed in bl_common.h.

Change-Id: I204081af78326ced03fb05f69846f229d324c711
Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
5 years agoMerge pull request #1800 from sandrine-bailleux-arm/sb/load-img-v2
Antonio Niño Díaz [Fri, 1 Feb 2019 11:43:17 +0000 (11:43 +0000)]
Merge pull request #1800 from sandrine-bailleux-arm/sb/load-img-v2

Remove dead code related to LOAD_IMAGE_V2=0

5 years agoMerge pull request #1802 from oscardagrach/master
Antonio Niño Díaz [Fri, 1 Feb 2019 11:42:09 +0000 (11:42 +0000)]
Merge pull request #1802 from oscardagrach/master

hikey960: EDMAC: leave channel 0 as secure

5 years agoArm platforms: Fix max size of BL33 image
Sandrine Bailleux [Thu, 31 Jan 2019 14:06:21 +0000 (15:06 +0100)]
Arm platforms: Fix max size of BL33 image

The BL33 image must not go past the end of DRAM.

Change-Id: I56668ab760d82332d69a8904d125d9a055aa91d5
Signed-off-by: Sandrine Bailleux <sandrine.bailleux@arm.com>
5 years agoArm platforms: Rename PLAT_ARM_NS_IMAGE_OFFSET
Sandrine Bailleux [Thu, 31 Jan 2019 14:01:32 +0000 (15:01 +0100)]
Arm platforms: Rename PLAT_ARM_NS_IMAGE_OFFSET

PLAT_ARM_NS_IMAGE_OFFSET is in fact not an offset relative to some base
address, it is an absolute address. Rename it to avoid any confusion.

Change-Id: I1f7f5e8553cb267786afe7e5f3cd4d665b610d3f
Signed-off-by: Sandrine Bailleux <sandrine.bailleux@arm.com>
5 years agomaintainers: Add maintainter for Raspberry Pi 3 platform.
Ying-Chun Liu (PaulLiu) [Thu, 31 Jan 2019 21:27:32 +0000 (05:27 +0800)]
maintainers: Add maintainter for Raspberry Pi 3 platform.

This patch adds myself to co-maintainer list of Raspberry Pi 3
platform.

Signed-off-by: Ying-Chun Liu (PaulLiu) <paulliu@debian.org>
5 years agorpi3: Enable SDHost driver in BL2
Ying-Chun Liu (PaulLiu) [Tue, 29 Jan 2019 20:20:38 +0000 (04:20 +0800)]
rpi3: Enable SDHost driver in BL2

This patch inits SDHost in BL2 earlysetup. BL2 can start operating mmc
commands to read/write MMC raw blocks.

Signed-off-by: Ying-Chun Liu (PaulLiu) <paulliu@debian.org>
5 years agorpi3: Add SDHost driver
Ying-Chun Liu (PaulLiu) [Tue, 29 Jan 2019 20:17:32 +0000 (04:17 +0800)]
rpi3: Add SDHost driver

This commit adds SDHost driver for RaspberryPi3. SDHost driver uses the
GPIO driver to connect the SDCard and SDHost. By using this driver it is
able to read/write raw blocks on SDCard.

Signed-off-by: Ying-Chun Liu (PaulLiu) <paulliu@debian.org>
5 years agoMerge pull request #1801 from sandrine-bailleux-arm/sb/doc
Antonio Niño Díaz [Thu, 31 Jan 2019 17:03:17 +0000 (17:03 +0000)]
Merge pull request #1801 from sandrine-bailleux-arm/sb/doc

User Guide: Move ARM_PLAT_MT doc to Arm build flags

5 years agoTegra: restrict non-secure PMC accesses
Varun Wadekar [Mon, 12 Mar 2018 22:11:55 +0000 (15:11 -0700)]
Tegra: restrict non-secure PMC accesses

Platforms that do not support bpmp firmware, do not need access
to the PMC block from outside of the CPU complex. The agents
running on the CPU can always access the PMC through the EL3
exception space.

This patch restricts non-secure world access to the PMC block on
such platforms.

Change-Id: I2c4318dc07ddf6407c1700595e0f4aac377ba258
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
5 years agoTegra186: memctrl: disable stream id writes for MC clients
Krishna Reddy [Thu, 7 Dec 2017 21:52:39 +0000 (13:52 -0800)]
Tegra186: memctrl: disable stream id writes for MC clients

As per the latest recommendations from the hardware team, write access
needs to be disabled for APE, BPMP, NvDec and SCE clients. This patch
disables stream id register writes for these MC clients to implement
those recommendations.

Change-Id: I8887c0f2cc5bc3fc5bba42074810ba5c1d3f121f
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
5 years agoTegra: bpmp: mark device "not present" on boot timeout
Varun Wadekar [Mon, 23 Apr 2018 20:25:42 +0000 (13:25 -0700)]
Tegra: bpmp: mark device "not present" on boot timeout

This patch updates the state machine to "not present" if the bpmp
firmware is not found in the system during boot. The suspend
handler also checks now if the interface exists, before updating
the internal state machine.

Reported by: Kalyani Chidambaram Vaidyanathan <kalyanic@nvidia.com>

Change-Id: If8fd7f8e412bb603944555c24826855226e7f48c
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
5 years agoTegra210: toggle ring oscillator across cluster idle
Varun Wadekar [Fri, 20 Apr 2018 00:50:31 +0000 (17:50 -0700)]
Tegra210: toggle ring oscillator across cluster idle

This patch toggles the ring oscillator state across cluster idle
as DFLL loses its state. We dont want garbage values being written
to the pmic when we enter cluster idle state, so enable "open loop"
when we enter CC6 and restore the state to "closed loop" on exit.

Change-Id: I56f4649f57bcc651d6c415a6dcdc978e9444c97b
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
5 years agoTegra210: clear PMC_DPD registers on resume
kalyani chidambaram [Mon, 9 Apr 2018 21:40:02 +0000 (14:40 -0700)]
Tegra210: clear PMC_DPD registers on resume

This patch clears the PMC's DPD registers on resuming from System
Suspend, for all Tegra210 platforms that support the sc7entry-fw.

Change-Id: I7881ef0a5f609ed28b158bc2f4016abea3c7f305
Signed-off-by: kalyani chidambaram <kalyanic@nvidia.com>
5 years agoTegra210: suspend/resume bpmp interface across System Suspend
Varun Wadekar [Wed, 4 Apr 2018 18:14:05 +0000 (11:14 -0700)]
Tegra210: suspend/resume bpmp interface across System Suspend

The BPMP firmware takes some time to initialise its state on exiting
System Suspend state. The CPU needs to synchronize with the BPMP during
this process to avoid any race conditions. This patch suspends and resumes
the BPMP interface across a System Suspend cycle, to fix this race.

Change-Id: I82a61d12ef3eee267bdd8d4386bed23397fbfd2d
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
5 years agoTegra: bpmp: suspend/resume handlers
Varun Wadekar [Wed, 4 Apr 2018 18:09:41 +0000 (11:09 -0700)]
Tegra: bpmp: suspend/resume handlers

This patch adds suspend and resume handlers for the BPMP
interface. Mark the interface as "suspended" before entering
System Suspend and verify that BPMP is alive on exit.

Change-Id: I74ccbc86125079b46d06360fc4c7e8a5acfbdfb2
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
5 years agospd: trusty: pass max affinity level to Trusty
Stephen Wolfe [Thu, 29 Mar 2018 19:32:08 +0000 (12:32 -0700)]
spd: trusty: pass max affinity level to Trusty

During System Suspend, the entire system loses its state. To allow Trusty
to save/restore its context and allow its TAs to participate in the suspend
process, it needs to look at the max affinity level being suspended. This
patch passes the max affinity level to Trusty to enable to do so.

Change-Id: If7838dae10c3f5a694baedb15ec56fbad41f2b36
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
5 years agoTegra210: skip past sc7entry-fw signature header
Varun Wadekar [Mon, 19 Mar 2018 22:19:28 +0000 (15:19 -0700)]
Tegra210: skip past sc7entry-fw signature header

This patch skips past the signature header added to the sc7entry-fw
binary by the previous level bootloader. Currently, the size of
the header is 1KB, so adjust the start address and the binary size
at the time of copy.

Change-Id: Id0494548009749035846d54df417a960c640c8f9
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
5 years agoTegra210: move sc7entry-fw inside the TZDRAM fence
Varun Wadekar [Wed, 7 Mar 2018 19:13:58 +0000 (11:13 -0800)]
Tegra210: move sc7entry-fw inside the TZDRAM fence

This patch uses the sc7entry-fw base/size values to calculate the
TZDRAM fence, so as to move sc7entry-fw inside the TZDRAM fence.

Change-Id: I91aeeeece857076c478cdc4c18a6ad70dc265031
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
5 years agoTegra210: SiP handlers to allow PMC access
kalyani chidambaram [Wed, 7 Mar 2018 00:36:57 +0000 (16:36 -0800)]
Tegra210: SiP handlers to allow PMC access

This patch adds SiP handler for Tegra210 platforms to service
read/write requests for PMC block. None of the secure registers
are accessible to the NS world though.

Change-Id: I7dc1f10c6a6ee6efc642ddcfb1170fb36d3accff
Signed-off-by: kalyani chidambaram <kalyanic@nvidia.com>
5 years agoTegra210: power off all DMA masters before System Suspend entry
Varun Wadekar [Mon, 5 Mar 2018 18:19:37 +0000 (10:19 -0800)]
Tegra210: power off all DMA masters before System Suspend entry

This patch puts all the DMA masters in reset before starting the System
Suspend sequence. This helps us make sure that there are no rogue agents
in the system trying to over-write the SC7 Entry Firmware with their own.

Change-Id: I7eb39999d229951e612fbfeb9f86c4efb8f98b5a
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
5 years agospd: tlkd: remove unwanted assert on System Suspend entry
Mihir Joshi [Thu, 1 Mar 2018 22:36:24 +0000 (14:36 -0800)]
spd: tlkd: remove unwanted assert on System Suspend entry

c_rt_ctx is used to store current SP before the system goes
into suspend. The assert for its value being zero is not
really necessary as the value gets over-written eventually.

This patch removes assert(tlk_ctx->c_rt_ctx == 0) from the
System Suspend path, as a result.

Change-Id: If41f15e74ebbbfd82958d8e179114899b2ffb0a7
Signed-off-by: Mihir Joshi <mihirj@nvidia.com>
5 years agoTegra: support for System Suspend using sc7entry-fw binary
Varun Wadekar [Tue, 27 Feb 2018 22:33:57 +0000 (14:33 -0800)]
Tegra: support for System Suspend using sc7entry-fw binary

This patch adds support to enter System Suspend on Tegra210 platforms
without the traditional BPMP firmware. The BPMP firmware will no longer
be supported on Tegra210 platforms and its functionality will be
divided across the CPU and sc7entry-fw.

The sc7entry-fw takes care of performing the hardware sequence required
to enter System Suspend (SC7 power state) from the COP. The CPU is required
to load this firmware to the internal RAM of the COP and start the sequence.
The CPU also make sure that the COP is off after cold boot and is only
powered on when we want to start the actual System Suspend sequence.

The previous bootloader loads the firmware to TZDRAM and passes its base and
size as part of the boot parameters. The EL3 layer is supposed to sanitize
the parameters before touching the firmware blob.

To assist the warmboot code with the PMIC discovery, EL3 is also supposed to
program PMC's scratch register #210, with appropriate values. Without these
settings the warmboot code wont be able to get the device out of System
Suspend.

Change-Id: I5a7b868512dbfd6cfefd55acf3978a1fd7ebf1e2
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
5 years agoTegra210: remove support for cluster power down
Varun Wadekar [Wed, 14 Feb 2018 19:06:05 +0000 (11:06 -0800)]
Tegra210: remove support for cluster power down

This patch removes support for powering down a CPU cluster on
Tegra210 platforms as none of them actually use it.

Change-Id: I9665634cf2b5b7b8a1b5a2700cae152dc9165fe3
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
5 years agoTegra210: support for cluster idle from the CPU
Varun Wadekar [Wed, 14 Feb 2018 04:31:12 +0000 (20:31 -0800)]
Tegra210: support for cluster idle from the CPU

This patch adds support to enter/exit to/from cluster idle power
state on Tegra210 platforms that do not load BPMP firmware.

The CPU initates the cluster idle sequence on the last standing
CPU, by following these steps:

Entry
-----
* stop other CPUs from waking up
* program the PWM pinmux to tristate for OVR PMIC
* program the flow controller to enter CC6 state
* skip L1 $ flush during cluster power down, as L2 $ is inclusive
  of L1 $ on Cortex-A57 CPUs

Exit
----
* program the PWM pinmux to un-tristate for OVR PMIC
* allow other CPUs to wake up

This patch also makes sure that cluster idle state entry is not
enabled until CL-DVFS is ready.

Change-Id: I54cf31bf72b4a09d9bf9d2baaed6ee5a963c7808
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
5 years agoTegra: pmc: helper function to find last ON CPU
Varun Wadekar [Wed, 14 Feb 2018 04:22:19 +0000 (20:22 -0800)]
Tegra: pmc: helper function to find last ON CPU

This patch adds a helper function to find the last standing CPU
in a cluster.

Change-Id: Id018f1958f458c772c7b0c52af8ddf7532b1cec5
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
5 years agoTegra: platform dependent address space sizes
Steven Kao [Fri, 9 Feb 2018 12:50:02 +0000 (20:50 +0800)]
Tegra: platform dependent address space sizes

This patch moves the PLAT_PHY_ADDR_SPACE_SIZE & PLAT_VIRT_ADDR_SPACE
macros to tegra_def.h, to define the virtual/physical address space
size on the platform.

Change-Id: I1c5d264c7ffc1af0e7b14cc16ae2c0416efc76f6
Signed-off-by: Steven Kao <skao@nvidia.com>
5 years agoTegra: organize memory/mmio apertures to decrease memmap latency
Varun Wadekar [Tue, 23 Jan 2018 22:38:51 +0000 (14:38 -0800)]
Tegra: organize memory/mmio apertures to decrease memmap latency

This patch organizes the memory and mmio maps linearly, to make the
mmap_add_region process faster. The microsecond timer has been moved
to individual platforms instead of making it a common step, as it
further speeds up the memory map creation process.

Change-Id: I6fdaee392f7ac5d99daa182380ca9116a001f5d6
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
5 years agoTegra210: Enable WDT_CPU interrupt for FIQ Debugger
Varun Wadekar [Thu, 3 Jan 2019 01:53:15 +0000 (17:53 -0800)]
Tegra210: Enable WDT_CPU interrupt for FIQ Debugger

This patch enables the watchdog timer's interrupt as an FIQ
interrupt to the CPU. The interrupt generated by the watchdog
is connected to the flow controller for power management reasons,
and needs to be routed to the GICD for it to reach the CPU.

Change-Id: I9437b516da2c5d763eca72694ed7f3c7389b3d9e
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
5 years agoTegra: flowctrl: helper functions to assist with cluster power states
Varun Wadekar [Wed, 14 Feb 2018 16:38:27 +0000 (08:38 -0800)]
Tegra: flowctrl: helper functions to assist with cluster power states

This patch adds helper functions to help platforms with cluster state entry
and exit decisions.

* tegra_fc_ccplex_pgexit_lock(): lock CPU power ungate
* tegra_fc_ccplex_pgexit_unlock(): unlock CPU power ungate
* tegra_fc_is_ccx_allowed(): CCx state entry allowed on this CPU?

Change-Id: I6490d34bf380dc03ae203eb3028f61984f06931c
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
5 years agoTegra: bpmp: remove bpmp init failed error print
Varun Wadekar [Wed, 14 Feb 2018 04:08:24 +0000 (20:08 -0800)]
Tegra: bpmp: remove bpmp init failed error print

This patch removes the error print displayed when bpmp init
fails. On platforms that do not load the bpmp firmware, this
print is seen on every cluster idle and powerdown request,
cluttering the logs.

Change-Id: I9e30007a913080406052fc32d5360ff70a019d75
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
5 years agotlkd: support new TLK SMCs
Mihir Joshi [Mon, 22 Jan 2018 22:02:16 +0000 (14:02 -0800)]
tlkd: support new TLK SMCs

This patch adds support to handle following TLK SMCs:
{TLK_SS_REGISTER_HANDLER, TLK_REGISTER_NS_DRAM_RANGES, TLK_SET_ROOT_OF_TRUST}

These SMCs need to be supported in ATF in order to forward them to
TLK. Otherwise, these functionalities won't work.

Brief:
TLK_SS_REGISTER_HANDLER: This SMC is issued by TLK Linux Driver to
set up secure storage buffers.

TLK_REGISTER_NS_DRAM_RANGES: Cboot performs this SMC during boot to
pass NS memory ranges to TLK.

TLK_SET_ROOT_OF_TRUST: Cboot performs this SMC during boot to pass
Verified Boot parameters to TLK.

Change-Id: I18af35f6dd6f510dfc22c1d1d1d07f643c7b82bc
Reviewed-on: https://git-master.nvidia.com/r/1643851
Signed-off-by: Mihir Joshi <mihirj@nvidia.com>
5 years agoTegra: fiq_glue: support to handle LEGACY_FIQ PPIs for Tegra SoCs
Varun Wadekar [Fri, 26 Jan 2018 18:33:42 +0000 (10:33 -0800)]
Tegra: fiq_glue: support to handle LEGACY_FIQ PPIs for Tegra SoCs

This patch adds support to handle secure PPIs for Tegra watchdog timers. This
functionality is currently protected by the ENABLE_WDT_LEGACY_FIQ_HANDLING
configuration variable and is only enabled for Tegra210 platforms, for now.

Change-Id: I0752ef54a986c58305e1bc8ad9be71d4a8bbd394
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
5 years agoTegra: flowctrl: support to enable/disable WDT's legacy FIQ routing
Varun Wadekar [Fri, 26 Jan 2018 18:05:02 +0000 (10:05 -0800)]
Tegra: flowctrl: support to enable/disable WDT's legacy FIQ routing

On earlier Tegra platforms, e.g. Tegra210, the watchdog timer's FIQ interrupt
is not direclty wired to the GICD. It goes to the flow controller instead, for
power state management. But the flow controller can route the FIQ to the GICD,
as a PPI, which can then get routed to the target CPU.

This patch adds routines to enable/disable routing the legacy FIQ used by
the watchdog timers, to the GICD.

Change-Id: Idd07c88c8d730b5f0e93e3a6e4fdc59bdcb2161b
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
5 years agoTegra: SiP: set GPU in reset after vpr resize
Jeetesh Burman [Mon, 22 Jan 2018 10:10:08 +0000 (15:40 +0530)]
Tegra: SiP: set GPU in reset after vpr resize

Whenever the VPR memory is resized, the GPU is put into reset first
and then the new VPR parameters are programmed to the memory controller
block. There exists a scenario, where the GPU might be out before we
program the new VPR parameters. This means, the GPU would still be
using older settings and leak secrets.

This patch puts the GPU back into reset, if it is out of reset after
resizing VPR, to mitigate this hole.

Change-Id: I38a1000e3803f80909efcb02e27da4bd46909931
Signed-off-by: Jeetesh Burman <jburman@nvidia.com>
5 years agoTegra: handle FIQ interrupts when NS handler is not registered
Varun Wadekar [Thu, 4 Jan 2018 21:41:27 +0000 (13:41 -0800)]
Tegra: handle FIQ interrupts when NS handler is not registered

This patch updates the secure interrupt handler to mark the interrupt
as complete in case the NS world has not registered a handler.

Change-Id: Iebe952305f7db46375303699b6150611439475df
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
5 years agoTegra: bpmp_ipc: support to enable/disable module clocks
steven kao [Wed, 3 Jan 2018 03:07:00 +0000 (19:07 -0800)]
Tegra: bpmp_ipc: support to enable/disable module clocks

This patch adds support to the bpmp_ipc driver to allow clients to
enable/disable clocks to hardware blocks. Currently, the API only
supports SE devices.

Change-Id: I9a361e380c0bcda59f5a92ca51c86a46555b2e90
Signed-off-by: steven kao <skao@nvidia.com>
5 years agoTegra: fix offset used to dump GICD registers from crash handler
Varun Wadekar [Tue, 2 Jan 2018 22:10:18 +0000 (14:10 -0800)]
Tegra: fix offset used to dump GICD registers from crash handler

The GICD registers are 32-bits wide whereas the crash handler was reading
them as 64-bit ones. This patch fixes the code to read the GICD registers,
32-bits at a time, from the paltform's crash handler.

Change-Id: If3d6608529684ecc02be6a1b715012310813b2a4
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
5 years agoTegra: default platform handler for the CPU_STANDBY state
Varun Wadekar [Thu, 28 Dec 2017 02:10:12 +0000 (18:10 -0800)]
Tegra: default platform handler for the CPU_STANDBY state

This patch adds a default implementation for the platform specific
CPU standby power handler. Tegra SoCs can override this handler
with their own implementations.

Change-Id: I91e513842f194b1e2b1defa2d833bb4d9df5f06b
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
5 years agoTegra186: smmu: add support for backup multiple smmu regs
Pritesh Raithatha [Thu, 26 Oct 2017 11:29:58 +0000 (16:59 +0530)]
Tegra186: smmu: add support for backup multiple smmu regs

Modifying smmu macros to pass base address of smmu so that it can be
used with multiple smmus.

Added macro for combining smmu backup regs that can be used for multiple
smmus.

Change-Id: I4f3bb83d66d5df14a3b91bc82f7fc26ec8e4592e
Signed-off-by: Pritesh Raithatha <praithatha@nvidia.com>
5 years agoUser Guide: Move ARM_PLAT_MT doc to Arm build flags
Sandrine Bailleux [Thu, 31 Jan 2019 12:12:41 +0000 (13:12 +0100)]
User Guide: Move ARM_PLAT_MT doc to Arm build flags

ARM_PLAT_MT build flag is specific to Arm platforms so should not
be classified as a common build option.

Change-Id: I79e411958846759a5b60d770e53f44bbec5febe6
Signed-off-by: Sandrine Bailleux <sandrine.bailleux@arm.com>
5 years agoRemove dead code related to LOAD_IMAGE_V2=0
Sandrine Bailleux [Wed, 30 Jan 2019 15:27:16 +0000 (16:27 +0100)]
Remove dead code related to LOAD_IMAGE_V2=0

Commit ed51b51f7a9163a ("Remove build option LOAD_IMAGE_V2") intended
to remove all code related to LOAD_IMAGE_V2=0 but missed a few things.

Change-Id: I16aaf52779dd4af1e134e682731328c5f1e5d622
Signed-off-by: Sandrine Bailleux <sandrine.bailleux@arm.com>
5 years agohikey960: EDMAC: leave channel 0 as secure
Ryan Grachek [Fri, 11 Jan 2019 14:33:00 +0000 (08:33 -0600)]
hikey960: EDMAC: leave channel 0 as secure

Channel 0 is used to communicate with LPM3, a coprocessor
for power management. Leave it as secure.

Signed-off-by: Ryan Grachek <ryan@edited.us>
5 years agoMerge pull request #1798 from pbeesley-arm/pb/fix-code-style
Antonio Niño Díaz [Thu, 31 Jan 2019 13:32:31 +0000 (13:32 +0000)]
Merge pull request #1798 from pbeesley-arm/pb/fix-code-style

doc: Fix broken code blocks in coding guidelines

5 years agodoc: Fix broken code blocks in coding guidelines
Paul Beesley [Thu, 31 Jan 2019 11:39:01 +0000 (11:39 +0000)]
doc: Fix broken code blocks in coding guidelines

Sections 2.2, 2.3 and 2.4 contained example code blocks that were not
being formatted properly due to missing newlines.

Change-Id: I0dbce90c931cf69e4f47d2ccbcc8bc0e20f8fd66
Signed-off-by: Paul Beesley <paul.beesley@arm.com>
5 years agoMerge pull request #1797 from antonio-nino-diaz-arm/an/remove-smccc-v2
Antonio Niño Díaz [Thu, 31 Jan 2019 10:23:06 +0000 (10:23 +0000)]
Merge pull request #1797 from antonio-nino-diaz-arm/an/remove-smccc-v2

Remove support for the SMC Calling Convention 2.0

5 years agoMerge pull request #1745 from svenauhagen/bugfix/a8k
Antonio Niño Díaz [Thu, 31 Jan 2019 10:22:50 +0000 (10:22 +0000)]
Merge pull request #1745 from svenauhagen/bugfix/a8k

Armada8k GPIO Register macro fix

5 years agoMerge pull request #1793 from marex/arm/master/fixes-v2.0.0
Antonio Niño Díaz [Thu, 31 Jan 2019 10:22:36 +0000 (10:22 +0000)]
Merge pull request #1793 from marex/arm/master/fixes-v2.0.0

Arm/master/fixes v2.0.0

5 years agoMerge pull request #1792 from satheesbalya-arm/sb1/sb1_2159_v84_xlat
Antonio Niño Díaz [Thu, 31 Jan 2019 09:24:08 +0000 (09:24 +0000)]
Merge pull request #1792 from satheesbalya-arm/sb1/sb1_2159_v84_xlat

lib/xlat_tables: Add support for ARMv8.4-TTST

5 years agoMerge pull request #1795 from pbeesley-arm/pb/code-style
Antonio Niño Díaz [Thu, 31 Jan 2019 09:23:40 +0000 (09:23 +0000)]
Merge pull request #1795 from pbeesley-arm/pb/code-style

Move coding guidelines into docs directory

5 years agoMerge pull request #1753 from Yann-lms/emmc_ret
Antonio Niño Díaz [Thu, 31 Jan 2019 09:20:45 +0000 (09:20 +0000)]
Merge pull request #1753 from Yann-lms/emmc_ret

mmc: correctly check ret in mmc_fill_device_info

5 years agoRemove support for the SMC Calling Convention 2.0
Antonio Nino Diaz [Wed, 30 Jan 2019 16:01:49 +0000 (16:01 +0000)]
Remove support for the SMC Calling Convention 2.0

This reverts commit 2f370465241c ("Add support for the SMC Calling
Convention 2.0").

SMCCC v2.0 is no longer required for SPM, and won't be needed in the
future. Removing it makes the SMC handling code less complicated.

The SPM implementation based on SPCI and SPRT was using it, but it has
been adapted to SMCCC v1.0.

Change-Id: I36795b91857b2b9c00437cfbfed04b3c1627f578
Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
5 years agolib/xlat_tables: Add support for ARMv8.4-TTST
Sathees Balya [Fri, 25 Jan 2019 11:36:01 +0000 (11:36 +0000)]
lib/xlat_tables: Add support for ARMv8.4-TTST

ARMv8.4-TTST (Small Translation tables) relaxes the lower limit on the
size of translation tables by increasing the maximum permitted value
of the T1SZ and T0SZ fields in TCR_EL1, TCR_EL2, TCR_EL3, VTCR_EL2 and
VSTCR_EL2.

This feature is supported in AArch64 state only.

This patch adds support for this feature to both versions of the
translation tables library. It also removes the static build time
checks for virtual address space size checks to runtime assertions.

Change-Id: I4e8cebc197ec1c2092dc7d307486616786e6c093
Signed-off-by: Sathees Balya <sathees.balya@arm.com>
5 years agoMerge pull request #1791 from antonio-nino-diaz-arm/an/rk-gic
Antonio Niño Díaz [Wed, 30 Jan 2019 09:53:07 +0000 (09:53 +0000)]
Merge pull request #1791 from antonio-nino-diaz-arm/an/rk-gic

rockchip: Fix GICv2 interrupts

5 years agoMerge pull request #1789 from Anson-Huang/lpm
Antonio Niño Díaz [Wed, 30 Jan 2019 09:52:48 +0000 (09:52 +0000)]
Merge pull request #1789 from Anson-Huang/lpm

Add power optimization for i.MX8QM/i.MX8QX