Tegra: platform: support simulation platforms and MISRA fixes
This patch adds support for simulation platforms as well as
fixes issues flagged by the MISRA scans.

Main MISRA fixes:

* Added explicit casts (e.g. 0U) to integers in order for them to be
  compatible with whatever operation they're used in [Rule 10.1]
* Fix return type doesn't match the function type [Rule 10.3]
* Use single return point instead of multiple [Rule 15.5]
* Change return type for the tegra_platform_is_x handlers to bool

Change-Id: I871b7c37b22942f6c0c2049c14cc626d4a24d81c
Signed-off-by: Anthony Zhou <anzhou@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
1 parent cd1f39b commit c62be0799988884fa6a36a43e472190eb44609c7
@Anthony Zhou Anthony Zhou authored on 22 Mar 2017
Varun Wadekar committed on 16 Jan 2019
Showing 2 changed files
View
plat/nvidia/tegra/common/tegra_platform.c
View
plat/nvidia/tegra/include/tegra_platform.h