Commit graph

426 commits

Author SHA1 Message Date
Kinjal Pravinbhai Patel
984a96b8c4 sw_apps: openamp matrix multiply tcl modified for hsi change
Signed-off-by: Kinjal Pravinbhai Patel <patelki@xilinx.com>
Acked by: Anirudha Sarangi <anirudh@xilinx.com>
2015-08-25 20:27:05 +05:30
Sarat Chand Savitala
ceb7c06ab2 sw_apps:zynqmp_fsbl: Disable early handoff by default
Currently R5 applications are handedoff immediately after they are loaded.
This feature is configurable in FSBL and now with this change, early handoff
is disabled by default. User can enable this feature again by defining
FSBL_EARLY_HANDOFF_EXCLUDE_VAL as 1.

Signed-off-by: Sarat Chand Savitala <saratcha@xilinx.com>
Acked-by: Krishna Chaitanya Patakamuri <kpataka@xilinx.com>
2015-08-25 18:07:54 +05:30
Bhavik Ameta
98f41cbf14 sw_services:xilsecure: Removing NULL checking asserts on input buffer locations to correct assert failures
Removing NULL checking asserts for the data buffers where 0x00 is a possible
location. This will resolve the assert failures in xilsecure.

Signed-off-by: Bhavik Ameta <bameta@xilinx.com>
Acked-by: Srikanth Vemula <svemula@xilinx.com>
2015-08-24 23:07:35 +05:30
Kinjal Pravinbhai Patel
b38a8677a2 sw_apps: modified openamp matrix multiply for proper OS check
This patch modifies openamp matrix multiply application tcl file
to check if OS is standalone or freertos for which the application
is being built

Signed-off-by: Kinjal Pravinbhai Patel <patelki@xilinx.com>
Acked by: Anirudha Sarangi <anirudh@xilinx.com>
2015-08-21 15:01:41 +05:30
Kinjal Pravinbhai Patel
f119e134e9 sw_apps: modified openamp rpc demo application
This patch modifies openamp rpc demo to support the latest kernel
changes by modifying IPI channel bit mask, moving the code to DDR
from 0xfffc0000 to avoid conflict with ATF

Signed-off-by: Kinjal Pravinbhai Patel <patelki@xilinx.com>
Acked by: Anirudha Sarangi <anirudh@xilinx.com>
2015-08-20 23:14:25 +05:30
Kinjal Pravinbhai Patel
ebb97640ae sw_apps: modified openamp echo test application
This patch modifies openamp echo test to support the latest kernel
changes by modifying IPI channel bit mask, moving the code to DDR
from 0xfffc0000 to avoid conflict with ATF

Signed-off-by: Kinjal Pravinbhai Patel <patelki@xilinx.com>
Acked by: Anirudha Sarangi <anirudh@xilinx.com>
2015-08-20 23:14:11 +05:30
Kinjal Pravinbhai Patel
fefbadcdf0 sw_apps: modified openamp matrix_multiply application
This patch modifies openamp matrix multiply application to pick
correct linker script for baremetal and freertos. This patch
also modifies linker scripts to put the data into DDR instead
of part of OCM where ATF lies. This patch modifies IPI mask in
openamp application to support it with latest linux changes

Signed-off-by: Kinjal Pravinbhai Patel <patelki@xilinx.com>
Acked by: Anirudha Sarangi <anirudh@xilinx.com>
2015-08-20 23:13:59 +05:30
P L Sai Krishna
20398c29dc bsp: Corrected interrupt ID's of TTC.
This patch correct the interrupt ID's of TTC which
will be used by TEST APP.

Signed-off-by: P L Sai Krishna <lakshmis@xilinx.com>
Reviewed-by: Harini Katakam <harinik@xilinx.com>
2015-08-19 19:06:42 +05:30
P L Sai Krishna
8eaf69e7fc bsp: Added PSU definitions for TEST APP.
This patch add PSU definitions for TEST APP in
xparameters_ps.h file for a53 (32,64 bit) and r5.

Signed-off-by: P L Sai Krishna <lakshmis@xilinx.com>
Reviewed-by: Punnaiah Choudary Kalluri <punnaia@xilinx.com>
2015-08-18 12:26:54 +05:30
Sarat Chand Savitala
5b3ea5f28f sw_apps:zynqmp_fsbl: Removed unnecessary file in sources
FSBL Tcl file changed to remove unnecessary file from build.

Signed-off-by: Sarat Chand Savitala <saratcha@xilinx.com>
Acked-by: Krishna Chaitanya Patakamuri <kpataka@xilinx.com>
2015-08-17 09:09:35 +05:30
Sarat Chand Savitala
4fb856ad83 sw_apps:zynqmp_fsbl: Disabled debug prints in FSBL
Except banner all prints are disabled in FSBL.

Signed-off-by: Sarat Chand Savitala <saratcha@xilinx.com>
Acked-by: Krishna Chaitanya Patakamuri <kpataka@xilinx.com>
2015-08-17 09:09:25 +05:30
Sarat Chand Savitala
71d7769303 sw_apps:zynqmp_fsbl: Change of invalid load address value for PL bitstream
When load address is not mentioned for PL bitstream, bootgen now makes this
as 0xFFFFFFFF to indicate it is invalid. Hence, FSBL uses default address to
load bitstream when load address from bootgen is 0xFFFFFFFF.

Signed-off-by: Sarat Chand Savitala <saratcha@xilinx.com>
Acked-by: Krishna Chaitanya Patakamuri <kpataka@xilinx.com>
2015-08-17 09:09:03 +05:30
Jyotheeswar Reddy
73154541df PMUFW: lscript: Force generation of single loadable section
Bootgen currently has no support for multiple loadable sections
in elfs. So a workaround is being implemented in PMUFW linker
script. All sections are forced to be loadable and dummy bytes
are added to fill the gaps. This change causes linker to throw
a warning about bss section being made PROGBITS.

Signed-off-by: Jyotheeswar Reddy <jyothee@xilinx.com>
Acked-by: Sören Brinkmann <soren.brinkmann@xilinx.com>
2015-08-14 15:57:27 +05:30
Sarat Chand Savitala
e8ac191579 sw_apps:zynq_fsbl: Corrected the format specifier in print statements
Changed the format specifiers from %x to %lx and %d to %lu
while printing unsigned long variables.
Without these changes many warnings are shown in FSBL when xil_printf
type in BSP is changed to be compatible with printf.

Signed-off-by: Sarat Chand Savitala <saratcha@xilinx.com>
Acked-by: Krishna Chaitanya Patakamuri <kpataka@xilinx.com>
2015-08-14 11:59:09 +05:30
Kinjal Pravinbhai Patel
da9e3d6e71 sw_apps: openamp matrix multiply: Added freertos support
Signed-off-by: Kinjal Pravinbhai Patel <patelki@xilinx.com>
Acked-by: Anirudha Sarangi   <anirudh@xilinx.com>
2015-08-14 11:43:33 +05:30
Kinjal Pravinbhai Patel
0cdcbdafd3 sw_apps: rpc demo: changed baremetal ipi_isr type
This patch modifies ipi_isr in baremetal.c to make it compatible
with freertos supported openamp library.

Signed-off-by: Kinjal Pravinbhai Patel <patelki@xilinx.com>
Acked-by: Anirudha Sarangi   <anirudh@xilinx.com>
2015-08-14 11:43:23 +05:30
Kinjal Pravinbhai Patel
60a8d226c8 sw_apps: echo test: changed baremetal ipi_isr type
This patch modifies ipi_isr in baremetal.c to make it compatible
with freertos supported openamp library.

Signed-off-by: Kinjal Pravinbhai Patel <patelki@xilinx.com>
Acked-by: Anirudha Sarangi   <anirudh@xilinx.com>
2015-08-14 11:43:15 +05:30
Sarat Chand Savitala
fe3cd5aba2 sw_apps:zynqmp_fsbl: Corrected compiler flags for R5
Currently for R5, compiler flag for, floating-point ABI is mentioned
as "softfp". This causes abort on encountering floating point arithmetic
operation. Hence changing this flag to "soft".

Signed-off-by: Sarat Chand Savitala <saratcha@xilinx.com>
Acked-by: Krishna Chaitanya Patakamuri <kpataka@xilinx.com>
2015-08-12 20:27:48 +05:30
Jyotheeswar Reddy
e9a4597006 PMUFW:lscript: Remove redundant serv ext table section
Signed-off-by: Jyotheeswar Reddy <jyothee@xilinx.com>
Reviewed-by: Sören Brinkmann <soren.brinkmann@xilinx.com>
2015-08-11 22:37:26 +05:30
Harini Katakam
1ec39318a8 lwip_echo_server: Add support for A53
Add support for A53:
- Add __aarch64__ in conditional compilation
- Disable data cache as lwip is not working on A53 with caches enabled

Signed-off-by: Harini Katakam <harinik@xilinx.com>
Acked-by: Anirudha   Sarangi <anirudh@xilinx.com>
2015-08-11 15:54:18 +05:30
Harini Katakam
243210232c lwip_echo_server: Add support for A53 in the tcl
Add support for A53 in the tcl.

Signed-off-by: Harini Katakam <harinik@xilinx.com>
Acked-by: Anirudha   Sarangi <anirudh@xilinx.com>
2015-08-11 15:54:08 +05:30
P L Sai Krishna
3e2f36ff4e xilisf: Modified SPIPS examples to support on ZynqMP.
This patch modifies the SPIPS examples to support on
ZynqMP. In Zynq we are selecting hardware using chip
select 0 where as 1 in ZynqMP and also we will use
two different interrupt id's in two platforms.

Signed-off-by: P L Sai Krishna <lakshmis@xilinx.com>
Reviewed-by: Harini Katakam <harinik@xilinx.com>
2015-08-10 17:14:36 +05:30
P L Sai Krishna
2d669b2c21 xilisf: Added examples to test QSPIPSU interface.
This patch add polled and interrupt examples to test
QSPIPSU flash interface.

Signed-off-by: P L Sai Krishna <lakshmis@xilinx.com>
Reviewed-by: Harini Katakam <harinik@xilinx.com>
2015-08-10 17:14:28 +05:30
P L Sai Krishna
37e2397703 xilisf: Added QSPIPSU flash interface support.
This patch add QSPIPSU flash interface support
in ZynqMP.

Signed-off-by: P L Sai Krishna <lakshmis@xilinx.com>
Reviewed-by: Harini Katakam <harinik@xilinx.com>
2015-08-10 17:14:19 +05:30
P L Sai Krishna
e177ff8390 xilisf: Added psu_spi support in tcl file.
This patch add support for spips peripheral
for ZynqMP in tcl file.

Signed-off-by: P L Sai Krishna <lakshmis@xilinx.com>
Reviewed-by: Harini Katakam <harinik@xilinx.com>
2015-08-10 17:14:11 +05:30
P L Sai Krishna
a75b45ece3 xilisf: Added qspipsu support in tcl file.
This patch add qspipsu peripheral support in
tcl file.

Signed-off-by: P L Sai Krishna <lakshmis@xilinx.com>
Reviewed-by: Harini Katakam <harinik@xilinx.com>
2015-08-10 17:14:02 +05:30
P L Sai Krishna
9a1c2b947c xilisf: Added new minor version for xilisf.
This patch changes the version number to v5.4

Signed-off-by: P L Sai Krishna <lakshmis@xilinx.com>
Reviewed-by: Harini Katakam <harinik@xilinx.com>
2015-08-10 17:13:51 +05:30
Sarat Chand Savitala
1b1368305f sw_apps:zynqmp_fsbl: Fix to handle invalid cluster id
Added check to detect invalid cluster id and throw error accordingly.

Signed-off-by: Sarat Chand Savitala <saratcha@xilinx.com>
Acked-by: Krishna Chaitanya Patakamuri <kpataka@xilinx.com>
2015-08-10 16:47:18 +05:30
Sarat Chand Savitala
22f0a46409 sw_apps:zynqmp_fsbl: Added explicit namespaces for HSI commands in tcl
Signed-off-by: Sarat Chand Savitala <saratcha@xilinx.com>
Acked-by: Krishna Chaitanya Patakamuri <kpataka@xilinx.com>
2015-08-10 16:46:56 +05:30
Sarat Chand Savitala
f5f3b0a518 sw_apps:zynqmp_fsbl: Fix to include compiler flags in FSBL tcl
This fix enables the compiler flags specified in HSI command line
to be appended to those specified in FSBL tcl file.

Signed-off-by: Sarat Chand Savitala <saratcha@xilinx.com>
Acked-by: Krishna Chaitanya Patakamuri <kpataka@xilinx.com>
2015-08-10 16:46:38 +05:30
Sarat Chand Savitala
272bff49fb sw_apps:zynqmp_fsbl: Code changes done to avoid warnings
Warnings generated during compiling FSBL sources are addressed.

Signed-off-by: Sarat Chand Savitala <saratcha@xilinx.com>
Acked-by: Krishna Chaitanya Patakamuri <kpataka@xilinx.com>
2015-08-10 16:45:58 +05:30
Kinjal Pravinbhai Patel
c057e98588 bsp: a53: modified translation table in a53 32bit bsp
This patch modifies a53 32bit bsp translation table to fix the
incorrect translation table entries for addresses beyond
0xfA000000

Signed-off-by: Kinjal Pravinbhai Patel <patelki@xilinx.com>
Acked-by: Anirudha Sarangi   <anirudh@xilinx.com>
2015-08-10 14:26:48 +05:30
Kinjal Pravinbhai Patel
959f06aa0b bsp: a53: change in 32bit bsp makefile
This patch removes floating point flags from 32bit bsp makefile
as floating point unit is disabled in bsp for now

Signed-off-by: Kinjal Pravinbhai Patel <patelki@xilinx.com>
Acked-by: Anirudha Sarangi   <anirudh@xilinx.com>
2015-08-10 14:26:11 +05:30
Jyotheeswar Reddy
b3ce29e2a1 PMUFW: Core: Clear DONT_SLEEP bit during initialization
DONT_SLEEP bit in PMU GLobal control register, if set,  wakes up the
microblaze from sleep state. This makes the "sleep" instruction
ineffective by making the MB to toggle between sleep and wake states
in the core loop. So this bit is cleared to prevent such a situation
and ensure that MB wakes up only in case of an interrupt event.

Signed-off-by: Jyotheeswar Reddy <jyothee@xilinx.com>
Acked-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
2015-08-07 18:39:03 +05:30
Jyotheeswar Reddy
4ae20ca9bf PMUFW: Headers: Remove unused register definitions from PMU Local
Some registers in PMU Local register set are not intended to be
published out. So removing all register definitions which are not
used by PMU FW currently.

Signed-off-by: Jyotheeswar Reddy <jyothee@xilinx.com>
Tested-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
2015-08-07 18:38:47 +05:30
Jyotheeswar Reddy
07377abe62 PMUFW: Exceptions: Log exception details and set FW error bit
Exception handler is modified to log the ESR and EAR registers
into persistent global storage registers(0,1) and set FW error bit-0.
If bit-0 of FWError group in ERROR_2 register set is configured to do
a SRST,then post reset, SW can read the reason for exception from
these persistent registers.

Signed-off-by: Jyotheeswar Reddy <jyothee@xilinx.com>
2015-08-07 18:38:28 +05:30
Jyotheeswar Reddy
fd53261bc5 PMUFW: IPI: Add IPI Framework
Basic APIs are provided for modules to send/receive IPI messages.
These are wrappers around IPI driver functions and are intended to
support a common message structure. Currently only a module's IPI ID
is considered.This can be extended to include checksum and other fields in
IPI message and dispatching IPIs based on module id.

Signed-off-by: Jyotheeswar Reddy <jyothee@xilinx.com>
2015-08-07 18:38:07 +05:30
Jyotheeswar Reddy
15dfa120ad PMUFW: EM: Integrate new Error Management framework as a module
This patch integrates the new EM framework and removes
redundant error handler files

Signed-off-by: Jyotheeswar Reddy <jyothee@xilinx.com>
2015-08-07 18:37:40 +05:30
Jyotheeswar Reddy
a414510d6a PMUFW: EM: Add new error management framework
A framework to enable handling of HW errors reported via ERROR_1 and ERROR_2
registers in PMU GLOBAL space is provided. User can choose to register an
action for an error by using the provided API. An API is provided to enable
Error reporting via PSERR pin.

Signed-off-by: Jyotheeswar Reddy <jyothee@xilinx.com>
2015-08-07 18:37:18 +05:30
Jyotheeswar Reddy
63266cf2b9 PMUFW: Scheduler: Fix interval comparision logic
Signed-off-by: Jyotheeswar Reddy <jyothee@xilinx.com>
2015-08-07 18:36:51 +05:30
Jyotheeswar Reddy
54d744d315 PMUFW: Core: Add API to remove a task from scheduler
Signed-off-by: Jyotheeswar Reddy <jyothee@xilinx.com>
2015-08-07 18:36:15 +05:30
Jyotheeswar Reddy
40cd4f3229 PMUFW: Mod: Add CSU lock down request to legacy module
Register for secure lock-down request from CSU and
call the corresponding ROM handler when this event occurs

Signed-off-by: Jyotheeswar Reddy <jyothee@xilinx.com>
2015-08-07 18:35:33 +05:30
Jyotheeswar Reddy
7968c6a661 PMUFW: Interrupts: Add CSU secure lock down interrupt handler
Signed-off-by: Jyotheeswar Reddy <jyothee@xilinx.com>
2015-08-07 18:35:12 +05:30
Jyotheeswar Reddy
f5b94e4ea2 PMUFW: Events: Add CSU secure lock down request events
Signed-off-by: Jyotheeswar Reddy <jyothee@xilinx.com>
2015-08-07 18:34:27 +05:30
Jyotheeswar Reddy
b7d22226d9 PMUFW: Interrupts: Fix Event IDs in debug message
Signed-off-by: Jyotheeswar Reddy <jyothee@xilinx.com>
2015-08-07 18:33:57 +05:30
Jyotheeswar Reddy
6b0ba64eda PMUFW: MOD: Add new module for legacy power request handling
CSU ROM and FSBL send power up/down requests to PMU via the
PWR_UP/PWR_DN request register in PMU_GLOBAL. This module
handles these requests and routes them to respective ROM handlers

Signed-off-by: Jyotheeswar Reddy <jyothee@xilinx.com>
2015-08-07 18:33:11 +05:30
Jyotheeswar Reddy
bc66b745b7 PMUFW: Events: Add REQ_PWRUP and REQ_PWRDN events
Add new events and supporting functions to handle legacy
ROM power up and power down requests that are initiated
using PMU GLOBAL registers.

Signed-off-by: Jyotheeswar Reddy <jyothee@xilinx.com>
2015-08-07 18:32:51 +05:30
Jyotheeswar Reddy
6fe99fac43 PMUFW: MOD: Add DAP Wake Module
Add DAP event handler to PMU Firmware as a new user module and pass on
the handling to respective ROM Handlers.When a DAP wake arrives,
PMU should ACK the DAP Wake using its local registers.
PMU ROM has handlers for these and we will re-use these handlers here.
This module is enabled only if ENABLE_PM is not defined to avoid conflict
with the PM module

Signed-off-by: Jyotheeswar Reddy <jyothee@xilinx.com>
2015-08-07 18:23:31 +05:30
Suneel Garapati
9a13c33ea1 lib: sw_apps: freertos support for latest bsp
change to freertos821_xilinx version

Signed-off-by: Suneel Garapati <suneel.garapati@xilinx.com>
Acked-by: Anirudha Sarangi   <anirudh@xilinx.com>
2015-08-07 16:10:39 +05:30
Rohit Fule
6c9a54d19b PMUFW: PM: Modified serial ordering of PM API ids
This patch removes the gap in serial numbering of PM API ids
between PM_SET_MAX_LATENCY and PM_RESET_ASSERT defined in
pm_defs.h

Signed-off-by: Rohit Fule <rohitf@xilinx.com>
Tested-by: Sören Brinkmann <soren.brinkmann@xilinx.com>
Acked-by: Jyotheeswar Reddy Mutthareddyvari <jyothee@xilinx.com>
2015-08-07 16:03:33 +05:30