Commit graph

243 commits

Author SHA1 Message Date
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
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
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
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
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
Sarat Chand Savitala
61bd977834 sw_apps:zynqmp_fsbl: Corrected the logic used to determinte A53 Execution state
Execution state of A53 (64-bit/32-bit) is now determined based on __aarch64__ value

Signed-off-by: Sarat Chand Savitala <saratcha@xilinx.com>
Acked-by: Krishna Chaitanya Patakamuri <kpataka@xilinx.com>
2015-08-07 16:01:05 +05:30
Sarat Chand Savitala
84204047c7 sw_apps:zynqmp_fsbl: Added A53 32-bit support in FSBL
This patch adds support for FSBL running in A53 32-bit mode and
also supports handing off to A53 32-bit applications from FSBL.

Signed-off-by: Sarat Chand Savitala <saratcha@xilinx.com>
Acked-by: Krishna Chaitanya Patakamuri <kpataka@xilinx.com>
2015-08-06 15:33:14 +05:30
Nava kishore Manne
7a47ffd9e8 Removed executable file permission from source code files.
Signed-off-by: Nava kishore Manne <navam@xilinx.com>
Acked-by: Anirudha Sarangi   <anirudh@xilinx.com>
2015-08-03 18:32:57 +05:30
Sarat Chand Savitala
4968e7c610 sw_apps:zynqmp_fsbl: Updated watchdog code for JTAG bootmode
As in JTAG bootmode, watchdog is not initialized, avoided stopping of
watchdog in JTAG bootmode.

Signed-off-by: Sarat Chand Savitala <saratcha@xilinx.com>
Acked-by: Krishna Chaitanya Patakamuri <kpataka@xilinx.com>
2015-08-03 14:55:49 +05:30
Sarat Chand Savitala
dff2a597f9 sw_apps:zynqmp_fsbl: Added watchdog support
This patch adds System Watchdog Timer support

Signed-off-by: Sarat Chand Savitala <saratcha@xilinx.com>
Acked-by: Krishna Chaitanya Patakamuri <kpataka@xilinx.com>
2015-08-02 21:27:53 +05:30
Sarat Chand Savitala
e1dd360db8 sw_apps:zynqmp_fsbl: Code cleanup involving emulation platforms
Signed-off-by: Sarat Chand Savitala <saratcha@xilinx.com>
Acked-by: Krishna Chaitanya Patakamuri <kpataka@xilinx.com>
2015-07-31 16:56:20 +05:30
RamyaSree
8dc4f9e7fd sw_apps: zynqmp_fsbl: Modified bus width in dummy phase.
This patch modifies the buswidth in dummy phase as
in data phase.

Signed-off-by: RamyaSree <rdarapun@xilinx.com>
Reviewed-by: Harini Katakam <harinik@xilinx.com>
2015-07-31 16:56:19 +05:30
RamyaSree
8e402be829 sw_apps: zynqmp_fsbl: enabled cache for qspipsu boot.
This patch enables cache for qspipsu boot.

Signed-off-by: RamyaSree <rdarapun@xilinx.com>
Reviewed-by: Harini Katakam <harinik@xilinx.com>
2015-07-31 16:56:19 +05:30
RamyaSree
6f67bc7850 sw_apps: zynqmp_fsbl: added Tx/Rx Flags in qspi message format
This patch added Tx/Rx flags in qspi message format
according to qspipsu driver changes.

Signed-off-by: RamyaSree <rdarapun@xilinx.com>
Reviewed-by: Harini Katakam <harinik@xilinx.com>
2015-07-31 16:56:18 +05:30
Kinjal Pravinbhai Patel
73e7150785 sw_apps: openamp: modified rpc_demp application
This patch modifies openamp rpc_demo application to
remove the hardcoded shared memory region and support for the
memory region configuration as per requirement of the code
in MPU region settings

Signed-off-by: Kinjal Pravinbhai Patel <patelki@xilinx.com>
Acked-by: Anirudha Sarangi   <anirudh@xilinx.com>
2015-07-31 16:56:07 +05:30
Kinjal Pravinbhai Patel
31b60a0499 sw_apps: openamp: modified echo_test application
This patch modifies openamp echo_test application to
remove the hardcoded shared memory region and support for the
memory region configuration as per requirement of the code
in MPU region settings

Signed-off-by: Kinjal Pravinbhai Patel <patelki@xilinx.com>
Acked-by: Anirudha Sarangi   <anirudh@xilinx.com>
2015-07-31 16:56:05 +05:30
Kinjal Pravinbhai Patel
078a7131d6 sw_apps: openamp: modified matrix_multiply application
This patch modifies openamp matrix_multiply application to
remove the hardcoded shared memory region and support for the
memory region configuration as per requirement of the code
in MPU region settings

Signed-off-by: Kinjal Pravinbhai Patel <patelki@xilinx.com>
Acked-by: Anirudha Sarangi   <anirudh@xilinx.com>
2015-07-31 16:56:04 +05:30