Commit graph

1365 commits

Author SHA1 Message Date
Mirela Simonovic
416151da7e PMUFW: PM: slave: Changed code related to updating state to fix USB bug
-Changed code in PmUpdateSlave to first determine the state to be
 entered
-Added function for finding the state with required capabilities
-Removed function which was finding and changing state of a slave
 (not used anymore)
-Major reason for changing this code is the bug: in USB case,
 when USB is already in right state and upon the set requirement
 request which should be resolved to the same state (nothing to
 configure, state is already configured as requested) PM
 acknowledged an error, although there was no error

Signed-off-by: Mirela Simonovic <mirela.simonovic@aggios.com>
Acked-by: Sören Brinkmann <soren.brinkmann@xilinx.com>
2015-07-31 16:55:20 +05:30
Davorin Mista
a25049cb0d PMUFW: PM: Adjusting PM function return values to use XStatus type
-Using int type for returns
-Error statuses are common Xilinx XST_* codes
-Additional power management status errors are defined in pm_defs.h

Signed-off-by: Mirela Simonovic <mirela.simonovic@aggios.com>
Signed-off-by: Davorin Mista <davorin.mista@aggios.com>
Acked-by: Jyotheeswar Reddy Mutthareddyvari <jyothee@xilinx.com>
Signed-off-by: Sören Brinkmann <soren.brinkmann@xilinx.com>
2015-07-31 16:55:19 +05:30
Mirela Simonovic
8703e57a32 PMUFW: PM: pm_proc: added RPU0..1 processor's sleep (reset assert)
Added reset assert for RPU0..1 processor's sleep functions.
Reset assert is done by directly writing into crl_apb registers,
becase pmu-rom does not expose function for only asserting reset.
Reset assert is a must in order to stop processor from executing
instructions once it's sleep handler gets executed.

Signed-off-by: Mirela Simonovic <mirela.simonovic@aggios.com>
Acked-by: Sören Brinkmann <soren.brinkmann@xilinx.com>
2015-07-31 16:55:17 +05:30
Mirela Simonovic
13e22f9eb0 PMUFW: PM: pm_master: Added default requirements, set upon entering active state
-Added default requirements field in PmRequirements structure
-Added notification of master when primary processor switches from
 forced powerdown to active state. Master has to make sure that all
 default requirements gets set before primary processor enters active
 state.
-In PmMasterNotify, changed behavior when wake event is received:
 if primary processor is in sleep state, everything works as before,
 if primary processor is in forced powerdown, default requirements
 are requested and configured
-In PmRequirementReleaseAll added a check is master using slave and
 if yes, usage flag and requirements are cleared
-Added PmRequirementRequestDefault function called before primary
 processor switches from forced powerdown to active. Function
 automatically requests all default requirements which are later
 configured by PmRequirementUpdateScheduled
-In PmRequirementUpdateScheduled when swapping requirements added
 a check whether master has default requirements. If yes, default
 reqs are saved as next reqs instead of current. Default requirements
 have priority over current requirement. Example: RPU0 keeps boot code
 in one TCM bank and when booted, during the runtime, it keeps that
 bank in retention. For this bank RPU0 should have default requirements
 = on state, and when it boots up it can request retention. If default
 requirements wouldn't exist, it would have to request for boot bank to
 switch from retention to on before calling self suspend, just to get
 on state in scheduled reqs

Signed-off-by: Mirela Simonovic <mirela.simonovic@aggios.com>
Acked-by: Sören Brinkmann <soren.brinkmann@xilinx.com>
Acked-by: Jyotheeswar Reddy Mutthareddyvari <jyothee@xilinx.com>
2015-07-31 16:55:16 +05:30
Mirela Simonovic
2ff64bf7a9 PMUFW: PM: pm_slave: added debug prints when slave state changes
Signed-off-by: Mirela Simonovic <mirela.simonovic@aggios.com>
Acked-by: Sören Brinkmann <soren.brinkmann@xilinx.com>
Acked-by: Jyotheeswar Reddy Mutthareddyvari <jyothee@xilinx.com>
2015-07-31 16:55:15 +05:30
Mirela Simonovic
85705895d7 PMUFW: PM: pm_slave: PmUpdateSlave rewritten to always try to update slave state.
Before, there was a check at the very beginning to see if current state
is having exact required capabilities. However, state should be checked
for having all required capabilities and not for having exact required
caps. Also, even when state have all required capabilities, there could
be state with lower power that still has all required capabilities.
Code is changed to implement above claims.

Signed-off-by: Mirela Simonovic <mirela.simonovic@aggios.com>
Acked-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Acked-by: Jyotheeswar Reddy Mutthareddyvari <jyothee@xilinx.com>
2015-07-31 16:55:14 +05:30
Davorin Mista
e3bb1821b7 PMUFW: PM: Removed action arrays, added one enterState for slave FSM
-Removed action arrays and instId pointers used in PmSlaveFsm
-Removed unused macros and typedefs
-Removed redundant functions for Sram retention entry/exit
-Added enterState function in PmSlaveFsm. Slave state is entered
 based on arguments (slave pointer and next state).
-Added xpbr function pointers in PmSlave derived objects (usb and sram)

Signed-off-by: Mirela Simonovic <mirela.simonovic@aggios.com>
Reviewed-by: Jyotheeswar Reddy <jyothee@xilinx.com>
2015-07-31 16:55:13 +05:30
Soren Brinkmann
b24bb9228d PMUFW: PM: Remove _g suffix from static variables
Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Acked-by: Jyotheeswar Reddy Mutthareddyvari <jyothee@xilinx.com>
2015-07-31 16:55:11 +05:30
Davorin Mista
34df243f1d PMUFW: PM: EnableProxyWake: Check first whether proc is sleeping
We should only enable the scheduled wake-up sources in the GIC Proxy
if the processor is sleeping.

Signed-off-by: Davorin Mista <davorin.mista@aggios.com>
Reviewed-by: Jyotheeswar Reddy <jyothee@xilinx.com>
2015-07-31 16:55:10 +05:30
Davorin Mista
0e9de73072 PMUFW: PM: Cleanup
improve comments and messages; remove unused code/structures

Signed-off-by: Davorin Mista <davorin.mista@aggios.com>
Acked-by: Sören Brinkmann <soren.brinkmann@xilinx.com>
Acked-by: Jyotheeswar Reddy Mutthareddyvari <jyothee@xilinx.com>
2015-07-31 16:55:08 +05:30
Davorin Mista
b8db439393 PMUFW: PM: Minor MISRA compliance fixes
Signed-off-by: Davorin Mista <davorin.mista@aggios.com>
Reviewed-by: Sören Brinkmann <soren.brinkmann@xilinx.com>
Acked-by: Jyotheeswar Reddy Mutthareddyvari <jyothee@xilinx.com>
2015-07-31 16:55:06 +05:30
Davorin Mista
b380c07463 PMUFW: PM: Prefix PmDbg prints with function name
Signed-off-by: Davorin Mista <davorin.mista@aggios.com>
Signed-off-by: Sören Brinkmann <soren.brinkmann@xilinx.com>
Acked-by: Jyotheeswar Reddy Mutthareddyvari <jyothee@xilinx.com>
2015-07-31 16:55:05 +05:30
Soren Brinkmann
20c80ed9ad PMUFW: scheduler: Fix print format string
A print format string had a typo in the conversion specifier.

Fixes: ae1b22f628eeae491136205dd99cac745bad5b54 "Scheduler: Add Scheduler files"
Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Reviewed-by: Jyotheeswar Reddy <jyothee@xilinx.com>
2015-07-31 16:55:03 +05:30
Soren Brinkmann
6941dfdcdc PMUFW: ROM interface: Add ROM hook table
Reserve the area in RAM that the ROM expects the extension hook table to
be in. Also provide a definition for the table in a header so FW can insert
entries easily, if needed.

Cc: Kristopher Bechamp <kristop@xilinx.com>
Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Reviewed-by: Jyotheeswar Reddy <jyothee@xilinx.com>
2015-07-31 16:55:03 +05:30
Nava kishore Manne
e35699808d Update Tcl files to support MultiBd and Packaged Bd Designs
Signed-off-by: Nava kishore Manne <navam@xilinx.com>
Acked-by: Naga Sureshkumar Relli <nagasure@xilinx.com>
2015-07-31 16:55:01 +05:30
Sarat Chand Savitala
5b9d1a3f61 sw_apps:zynq_fsbl: Updated release version to 2015.3
Updated release version from 2015.2 to 2015.3

Signed-off-by: Sarat Chand Savitala <saratcha@xilinx.com>
Reviewed-by: Srikanth Vemula <svemula@xilinx.com>
2015-07-31 16:54:58 +05:30
Kedareswara rao Appana
5241673129 mcap: linux: Fix race condition while programming bitfiles
During programming the bit files as per flow
in case of errors need to do a full reset of mcap
config space. This patch fixes this issue.

Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com>
Reviewed-by: Srikanth Vemula <svemula@xilinx.com>
2015-07-31 16:54:57 +05:30
Kedareswara rao Appana
dd458e20d2 mcap: linux: Options -c and -C may be confusing
This patch modifies the Access Device Configuration Space
option to -a instead of -c.

Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com>
Reviewed-by: Srikanth Vemula <svemula@xilinx.com>
2015-07-31 16:54:56 +05:30
Kedareswara rao Appana
2d4fbf6e77 mcap: linux: update README
This patch updaets README in the
driver for the updated changes.

Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com>
Reviewed-by: Srikanth Vemula <svemula@xilinx.com>
2015-07-31 16:54:55 +05:30
Kedareswara rao Appana
70c875feea mcap: linux: Update copyright
This patch updates the copyright info.

Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com>
Reviewed-by: Srikanth Vemula <svemula@xilinx.com>
2015-07-31 16:54:55 +05:30
Kedareswara rao Appana
74b5ab5e36 mcap: linux: Modify Programfiles handling
This patch fixes the issues with the program files(.rbt,.bit)
handling.

Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com>
Reviewed-by: Srikanth Vemula <svemula@xilinx.com>
2015-07-31 16:54:53 +05:30
Kedareswara rao Appana
04f84f637b mcap: linux: Add support for multiple bitstreams
This patch adds support for configuring
a partial clear file followed by a partial bit file.
(Ex: ./mcap -x 0x8038 -C partialclear.bit -p partial.bit)

Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com>
Reviewed-by: Srikanth Vemula <svemula@xilinx.com>
2015-07-31 16:54:53 +05:30
Kedareswara rao Appana
03d6ee77cf mcap: linux: Add support for partial reconfiguration clear file
This patch adds support for programming the partial
Reconfiguration clear file.

Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com>
Reviewed-by: Srikanth Vemula <svemula@xilinx.com>
2015-07-31 16:54:52 +05:30
Kedareswara rao Appana
e1557c765f mcap: linux: Add check for bitstream completion
This patch fixes the issue
Done pin doesn't go high after programming
the 2nd stage bit stream.

Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com>
Reviewed-by: Srikanth Vemula <svemula@xilinx.com>
2015-07-31 16:54:51 +05:30
Kedareswara rao Appana
554c3f5dd2 mcap: linux: Dump all registers option (-d) Returns "Failed Reading Registers"
when -d option is used to dump all the registers,
It should ignore the Data register if it's empty or
Not set and should not return a failure in reading those registers.

Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com>
Reviewed-by: Srikanth Vemula <svemula@xilinx.com>
2015-07-31 16:54:50 +05:30
Kedareswara rao Appana
d9904389a5 mcap: linux: Add the "Type" Information for -c Option to the Help Menu
This patch adds the "Type" option of (b or h or w)
for the -c option when the help menu is printed.

Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com>
Reviewed-by: Srikanth Vemula <svemula@xilinx.com>
2015-07-31 16:54:49 +05:30
Kedareswara rao Appana
8c62367e0d mcap: Add MCAP Linux Library
The MCAP interface enables an embedded microprocessor, such as MicroBlaze,
    to read and write the FPGA configuration memory.
    This library allows user to access the MCAP i/f.

Signed-off-by: Srikanth Thokala <sthokal@xilinx.com>
Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com>
Reviewed-by: Srikanth Vemula <svemula@xilinx.com>
2015-07-31 16:54:48 +05:30
Jagannadha Sutradharudu Teki
d4fbf2b72f license: Add license.txt file
Added license.txt file - information about various licenses
and copyrights.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
Reviewed-by: Srikanth Vemula <svemula@xilinx.com>
2015-07-31 16:54:47 +05:30
Jagannadha Sutradharudu Teki
02f0dcc5aa embeddesw: Add initial code support
Added initial support Xilinx Embedded Software.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
Reviewed-by: Srikanth Vemula <svemula@xilinx.com>
2015-07-31 16:54:46 +05:30
Sarat Chand Savitala
077e879e61 sw_apps:zynqmp_fsbl: Changed location of handoff for PMU FW
PMU FW if present, is now handed off immediately after its load and validation.

Signed-off-by: Sarat Chand Savitala <saratcha@xilinx.com>
Acked-by: Krishna Chaitanya Patakamuri <kpataka@xilinx.com>
2015-07-31 16:54:45 +05:30
Sarat Chand Savitala
f513b80c1e sw_apps:zynqmp_fsbl: Added early handoff support
Support added to handoff to R5 applications after thery are loaded.
This feature can be turned ON by using conditional switch.

Signed-off-by: Sarat Chand Savitala <saratcha@xilinx.com>
Acked-by: Krishna Chaitanya Patakamuri <kpataka@xilinx.com>
2015-07-31 16:54:44 +05:30
P L Sai Krishna
f3f817d7e9 xilffs: Modified the file size to test on emulation platform.
This patch modifies the file size as 8KB to test on emulation
platform. Since 8MB in emulation platform taking long time,
reduced file size to 8KB.

Signed-off-by: P L Sai Krishna <lakshmis@xilinx.com>
Reviewed-by: Harini Katakam <harinik@xilinx.com>
2015-07-31 16:54:43 +05:30
P L Sai Krishna
c8eeadf710 sdps: Modified the code according to MISRAC-2012.
This patch modifies the source code according to
MISRAC-2012.

Signed-off-by: P L Sai Krishna <lakshmis@xilinx.com>
Reviewed-by: Harini Katakam <harinik@xilinx.com>
2015-07-31 16:54:42 +05:30
Kinjal Pravinbhai Patel
6e145b38ae bsp: r5: change in makefile for compiler check
Modified cortexr5/gcc/Makefile to keep a correct check of a compiler
to update ECC_FLAGS correctly.

Signed-off-by: Kinjal Pravinbhai Patel <patelki@xilinx.com>
Reviewed-by: Anirudha Sarangi   <anirudh@xilinx.com>
2015-07-31 16:54:41 +05:30
Kinjal Pravinbhai Patel
2645d56b26 bsp: a9: chnage in gcc makefile for compiler check
Modified cortexa9/gcc/Makefile to keep a correct check of a compiler
to update ECC_FLAGS to fix a bug introduced during new version creation
of BSP

Signed-off-by: Kinjal Pravinbhai Patel <patelki@xilinx.com>
Reviewed-by: Anirudha Sarangi   <anirudh@xilinx.com>
2015-07-31 16:54:40 +05:30
Kinjal Pravinbhai Patel
363baf34d9 bsp: a53: xil_settlbattributes modified for addresses > 4GB
This patch modifies xil_settlbattributes API to work with
addresses > 4GB by modifying the address masking value
appropriate for higher addresses lies beyond 4GB

Signed-off-by: Kinjal Pravinbhai Patel <patelki@xilinx.com>
Reviewed-by: Anirudha Sarangi   <anirudh@xilinx.com>
2015-07-31 16:54:39 +05:30
Harini Katakam
f85e3a62b3 lwip_echo_server: Add support for Zynq Ultrascale MPSoC
Add a separate platform file for Zynq Ultrascale MPSoC using the
respective timer and driver functions. The platform selection is
based on the processor recognized in the tcl file.

Signed-off-by: Harini Katakam <harinik@xilinx.com>
Reviewed-by: Anirudha Sarangi   <anirudh@xilinx.com>
2015-07-31 16:54:13 +05:30
Harini Katakam
1cb1e03722 lwip_echo_server: Add detection of A53 and R5 in tcl
Add support for recognizing processor A53 or R5 to work for
Zynq Ultrascale MPSoC

Signed-off-by: Harini Katakam <harinik@xilinx.com>
Reviewed-by: Anirudha Sarangi   <anirudh@xilinx.com>
2015-07-31 16:54:04 +05:30
Harini Katakam
7f8e620772 lwip: Add support for Zynq Ultrascale MPSoC
Add support to be used with newer version of GEM in Zynq Ultrascale MPSoC.
Use TX Q1 and RX Q0; segregate Zynq specific TLB attributes and SLCR settings.

Signed-off-by: Harini Katakam <harinik@xilinx.com>
Reviewed-by: Anirudha Sarangi   <anirudh@xilinx.com>
2015-07-23 12:51:12 +05:30
Harini Katakam
baa1675449 lwip: Add support for A53 and R5
Add support for lwip library to be picked for A53 & R5 and to use
necessary GIC. Comment informational prints.
This is to add support for Zynq Ultrascale MPSoC.

Signed-off-by: Harini Katakam <harinik@xilinx.com>
Reviewed-by: Anirudha Sarangi   <anirudh@xilinx.com>
2015-07-23 12:50:58 +05:30
Harini Katakam
f406b72805 xilffs: Modify makefile to check for IAR compiler
Modify makefile to check for IAR compiler to use --create and
remove individual checks for all other compilers.

Signed-off-by: Harini Katakam <harinik@xilinx.com>
Reviewed-by: Anirudha Sarangi   <anirudh@xilinx.com>
2015-07-23 12:34:26 +05:30
Naga Sureshkumar Relli
e8f23f0aa5 uartlite: Removed received data updation outside critical region.
This patch modifies the XUartLite_ReceiveBuffer function to
update the received data in critical region. Earlier the data
updation is outside the critical region.

Signed-off-by: Naga Sureshkumar Relli <nagasure@xilinx.com>
Reviewed-by: Anirudha Sarangi   <anirudh@xilinx.com>
2015-07-23 12:34:03 +05:30
Naga Sureshkumar Relli
f40ca1f4d4 iomodule: Fix for BSP Generation error with iomodule.
This patch updates the iomodule_define_vector_table proc by
removing old hsi commands like xget_handle and also updates
the generate proc to get iomodule canonical definitions in
xparameters.h

Signed-off-by: Naga Sureshkumar Relli <nagasure@xilinx.com>
Reviewed-by: Anirudha Sarangi   <anirudh@xilinx.com>
2015-07-23 12:33:32 +05:30
Shadul Shaikh
6e365cf4e0 dptxss: Renamed DP TX subsystem sub-core files name with prefix xdptxss
This patch renames DisplayPort TX Subsystem sub-core files name
with prefix xdptxss_, functions with prefix XDpTxSs_ and macors
with prefix XDPTXSS_.

Signed-off-by: Shadul Shaikh <shaduls@xilinx.com>
Reviewed-by: Andrei Simion <andreis@xilinx.com>
2015-07-23 12:06:43 +05:30
Shadul Shaikh
dd14268862 video_common: Added DP159 configuration API's
This patch adds
        - xvidc_dp159.h
        - xvidc_dp159.c
files, provides API's to configure DP159.

Signed-off-by: Shadul Shaikh <shaduls@xilinx.com>
Reviewed-by: Andrei Simion <andreis@xilinx.com>
2015-07-23 12:06:08 +05:30
Rohit Consul
476fbb01a4 vprocss: Updated driver to align with hip flow
This patch supports HIP based video processing subsystem.
Added makefile and tcl to build the subsystem tree and updated
the driver to construct sub-core baseaddress

Signed-off-by: Rohit Consul <rohit.consul@xilinx.com>
Reviewed-by: Andrei Simion <andreis@xilinx.com>
2015-07-23 11:01:43 +05:30
Rohit Consul
a545768505 v_vscaler: Updated driver to align with hip flow
This patch supports HIP based video processing subsystem by reorganizing
the HLS generated code to align with xilinx driver guidelines.

Signed-off-by: Rohit Consul <rohit.consul@xilinx.com>
Reviewed-by: Andrei Simion <andreis@xilinx.com>
2015-07-23 11:01:31 +05:30
Rohit Consul
e9d58acc53 v_vcresampler: Updated driver to align with hip flow
This patch supports HIP based video processing subsystem by reorganizing
the HLS generated code to align with xilinx driver guidelines.

Signed-off-by: Rohit Consul <rohit.consul@xilinx.com>
Reviewed-by: Andrei Simion <andreis@xilinx.com>
2015-07-23 11:01:15 +05:30
Rohit Consul
6eb74b2a31 v_letterbox: Updated driver to align with hip flow
This patch supports HIP based video processing subsystem by reorganizing
the HLS generated code to align with xilinx driver guidelines.

Signed-off-by: Rohit Consul <rohit.consul@xilinx.com>
Reviewed-by: Andrei Simion <andreis@xilinx.com>
2015-07-23 11:01:00 +05:30
Rohit Consul
b276c69121 v_hscaler: Updated driver to align with hip flow
This patch supports HIP based video processing subsystem by reorganizing
the HLS generated code to align with xilinx driver guidelines.

Signed-off-by: Rohit Consul <rohit.consul@xilinx.com>
Reviewed-by: Andrei Simion <andreis@xilinx.com>
2015-07-23 11:00:40 +05:30