Commit graph

1366 commits

Author SHA1 Message Date
Kedareswara rao Appana
93b8d7f2f5 lwip: remove unnessary code check in tcl
This patch removes the unnecessary check in the lwip tcl
it is causing the compilation issues in few ethernetlite based designs.

Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com>
Acked-by: Anirudha Sarangi   <anirudh@xilinx.com>
2015-08-03 18:32:01 +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
P L Sai Krishna
ad401f70a5 sdps: Used MB_Sleep API for microblaze.
This patch use MB_Sleep API for microblaze design
and removed sleep.h inclusion in xsdps.h file.

Signed-off-by: P L Sai Krishna <lakshmis@xilinx.com>
Reviewed-by: Harini Katakam <harinik@xilinx.com>
2015-08-03 14:32:32 +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
Harini Katakam
4ceb19f1ae emacps: Do not call error handler with an error code zero
BUFFNA is not an error and hence the status bit is cleared by the
driver. But the error handler callback is called with a zero error
code in this case. Correct the same.

Signed-off-by: Harini Katakam <harinik@xilinx.com>
Acked-by: Punnaiah Choudary Kalluri <punnaia@xilinx.com>
2015-08-02 21:27:20 +05:30
P L Sai Krishna
09cd729c86 xilffs: Used --create option for armcc compiler.
This patch use --create option for armcc compiler
instead of rc option.

Signed-off-by: P L Sai Krishna <lakshmis@xilinx.com>
Reviewed-by: Harini Katakam <harinik@xilinx.com>
2015-07-31 16:56:24 +05:30
Suneel Garapati
15a5404a04 Thirdparty: bsp: freeRTOS support for all architectures
add freeRTOS bsp to support microblaze, cortexa9 and cortexr5
architectures for respective platforms.

Signed-off-by: Suneel Garapati <suneel.garapati@xilinx.com>
Acked-by: Anirudha Sarangi   <anirudh@xilinx.com>
2015-07-31 16:56:23 +05:30
Kinjal Pravinbhai Patel
60c693e0fe bsp: added support for 32bit bsp for A53
This patch modifies standalone bsp tcl to generate 32bit/64bit
a53 bsp by keeping compiler check in the tcl to copy the
appropriate source file while generating standalone bsp

Signed-off-by: Kinjal Pravinbhai Patel <patelki@xilinx.com>
Acked-by: Anirudha Sarangi   <anirudh@xilinx.com>
2015-07-31 16:56:22 +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
Soren Brinkmann
731fcf06db xilsecure: Fix make rules
When building xilsecure with '-rR' as arguments to make causes this error:
  Compiling Xilsecure Library
  make[1]: *** No rule to make target 'xsecure_sha.o', needed by 'libxilsecure.a'.  Stop.
  Makefile:27: recipe for target 'psu_cortexa53_0/libsrc/xilsecure_v1_0/src/make.libs' failed
  make: *** [psu_cortexa53_0/libsrc/xilsecure_v1_0/src/make.libs] Error 2

Fixing this by adding a pattern rules matching the required object files.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Acked-by: Bhavik Ameta <bameta@xilinx.com>
2015-07-31 16:56:17 +05:30
Soren Brinkmann
c8bca6ce1a xilsecure: Remove dead code
Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Acked-by: Bhavik Ameta <bameta@xilinx.com>
2015-07-31 16:56:16 +05:30
Nava kishore Manne
a5ca97dccf Fix for iomodule os tcl to support MultiBd and Packaged Bd
Acked-for-series: Naga Sureshkumar Relli <nagasure@xilinx.com>
Signed-off-by: Nava kishore Manne <navam@xilinx.com>
2015-07-31 16:56:16 +05:30
Nava kishore Manne
cabafea458 Fix for standalone os tcl to support MultiBd and Packaged Bd
Acked-for-series: Naga Sureshkumar Relli <nagasure@xilinx.com>
Signed-off-by: Nava kishore Manne <navam@xilinx.com>
2015-07-31 16:56:15 +05:30
Nava kishore Manne
a96825c608 Fix for xilikernel os tcl to support MultiBd and Packaged Bd
Acked-for-series: Naga Sureshkumar Relli <nagasure@xilinx.com>
Signed-off-by: Nava kishore Manne <navam@xilinx.com>
2015-07-31 16:56:15 +05:30
Kedareswara rao Appana
416cbc369b axiethernet: Fix bug in the driver tcl when axi ethernet is configured with fifo
This patch fixes the issue AXI Ethernet with FIFO will fail to
create the BSP if the interrupt pin on the FIFO is unconnected.

Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com>
Acked-by: Anirudha Sarangi   <anirudh@xilinx.com>
2015-07-31 16:56:14 +05:30
Kedareswara rao Appana
436240a4f7 lwip: Add support for axi ethernet with fifo on zynq
This patch adds lwip support for the axi ethernet with fifo
combination on zynq.

Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com>
Acked-by: Anirudha Sarangi   <anirudh@xilinx.com>
2015-07-31 16:56:13 +05:30
Punnaiah Choudary Kalluri
c46210930c nandpsu: Convert the three line comments to single line
This patch converts the three line comments to single line

Signed-off-by: Punnaiah Choudary Kalluri <punnaia@xilinx.com>
Acked-by: Anirudha Sarangi   <anirudh@xilinx.com>
2015-07-31 16:56:13 +05:30
Punnaiah Choudary Kalluri
30c8402cdc nandpsu: Remove redundant code
This patch adds common routines by removing the possible redundant
code from the functions.

Signed-off-by: Punnaiah Choudary Kalluri <punnaia@xilinx.com>
Acked-by: Anirudha Sarangi   <anirudh@xilinx.com>
2015-07-31 16:56:12 +05:30
Punnaiah Choudary Kalluri
fb124d3372 nandpsu: Decrease the XNANDPSU_MAX_BLOCKS value
This change is to reduce the size of the static bbt table size
from 8KB to 4KB because so far we have not identified the
flash part that has more than 16K blocks and also it will
reduce the bsp size.

Driver warns if the device has more number of blocks than the
defined value so that this can be incremented in future and if
there is a part available.

Signed-off-by: Punnaiah Choudary Kalluri <punnaia@xilinx.com>
Acked-by: Anirudha Sarangi   <anirudh@xilinx.com>
2015-07-31 16:56:11 +05:30
Punnaiah Choudary Kalluri
ac89dc0908 nandpsu: Remove NO_OOB option for bbt
As per the csurom, Bbt signature is always stored in oob area.
So, to sync with csurom, removing the NO_OOB(Bbt signature stores
in page area) functionality.

Signed-off-by: Punnaiah Choudary Kalluri <punnaia@xilinx.com>
Acked-by: Anirudha Sarangi   <anirudh@xilinx.com>
2015-07-31 16:56:11 +05:30
Punnaiah Choudary Kalluri
aeb988e08a nandpsu: Remove buswidth option
Controller supports only 8 bit mode. So, no need to configure
this value as this is the only option supported.

Signed-off-by: Punnaiah Choudary Kalluri <punnaia@xilinx.com>
Acked-by: Anirudha Sarangi   <anirudh@xilinx.com>
2015-07-31 16:56:09 +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
Anurag Kumar Vulisha
f3e699e477 vdma: Add example for vdma triple buffer api
This patch adds vdma  application to demonstrate how to use the VDMA triple buffer API.

Signed-off-by: Anurag Kumar Vulisha <anuragku@xilinx.com>
Reviewed-by: Kedareswara rao Appana <appanad@xilinx.com>
2015-07-31 16:56:02 +05:30
Anurag Kumar Vulisha
1728d93515 vdma: Add support for 64 bit vdma
This patch adds support for 64 bit vdma.

Signed-off-by: Anurag Kumar Vulisha <anuragku@xilinx.com>
Reviewed-by: Kedareswara rao Appana <appanad@xilinx.com>
2015-07-31 16:55:59 +05:30
Kedareswara rao Appana
187e18e3dc axidma: Add support for 64-bit addressing
This patch updates the driver to support 64-bit addressing.

Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com>
Acked-by: Anirudha Sarangi   <anirudh@xilinx.com>
2015-07-31 16:55:58 +05:30
Kedareswara rao Appana
1ebd52627f axicdma: Add support for 64-bit addressing
This patch updates the driver to support 64-bit addressing.

Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com>
Acked-by: Anirudha Sarangi   <anirudh@xilinx.com>
2015-07-31 16:55:55 +05:30
Kedareswara rao Appana
60efc68c14 lib: bsp: Add UPPER_32_BITS and LOWER_32_BITS macro's
UPPER_32_BITS(x) macro to handle shifts that may be >= the width of
the data type.
LOWER_32_BITS(x) macro to handle masking of 32-bit data types.

Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com>
Acked-by: Anirudha Sarangi   <anirudh@xilinx.com>
2015-07-31 16:55:53 +05:30
Kinjal Pravinbhai Patel
1f3de84cd2 bsp: a53: added memory attribute definition in xil_mmu.h
This patch adds various memory attribute definition
which can be used along with xil_settlbattributes API to
mark certain memory region with required attributes
such as cacheable or non-cacheable, inner/outer/non shareable
or executable or not etc.

Signed-off-by: Kinjal Pravinbhai Patel <patelki@xilinx.com>
Acked-by: Anirudha Sarangi   <anirudh@xilinx.com>
2015-07-31 16:55:51 +05:30
Kinjal Pravinbhai Patel
39f94f2135 bsp: a53: change in boot.s to include more memory attributes
This patch inclues memory attributes like device memory and
write through cacheable memory attributes to memory
attribute index register in boot.S

Signed-off-by: Kinjal Pravinbhai Patel <patelki@xilinx.com>
Acked-by: Anirudha Sarangi   <anirudh@xilinx.com>
2015-07-31 16:55:49 +05:30
Soren Brinkmann
59de0ec3be xilffs: Fix make rules
When building xilffs with '-rR' as arguments to make causes this error:
  Compiling XilFFs Library
  gmake[2]: *** No rule to make target 'ff.o', needed by 'libxilffs.a'.  Stop.
  Makefile:27: recipe for target 'psu_cortexa53_0/libsrc/xilffs_v3_1/src/make.libs' failed
  gmake[1]: *** [psu_cortexa53_0/libsrc/xilffs_v3_1/src/make.libs] Error 2

Fixing this by adding a pattern rules matching the required object files.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Reviewed-by: Harini Katakam <harinik@xilinx.com>
2015-07-31 16:55:48 +05:30
Mirela Simonovic
c064d50c14 PMUFW: PM: Added missing power up/down behavior for GpuPPs
-GpuPP now has its own PmSlave derived structure and the FSM
 (new structure is added because there is no peripheral with
 exactly the same behavior - Usbs have also their own power island,
 but compared to them GpuPPs do not have wake-up capabilities
 through GIC Proxy, and GpuPPs depend on FPD while LPD is
 considered always-on)

Signed-off-by: Mirela Simonovic <mirela.simonovic@aggios.com>
Tested-by: Rohit Fule <rohitf@xilinx.com>
Acked-by: Jyotheeswar Reddy Mutthareddyvari <jyothee@xilinx.com>
2015-07-31 16:55:46 +05:30
Mirela Simonovic
3283e01d23 PMUFW: xpfw_rom_interface.h: Added inline functions for power up/down GpuPPs
-Added missing power up/down inline functions for graphic processors
 needed by power management/GpuPP's FSM

Signed-off-by: Mirela Simonovic <mirela.simonovic@aggios.com>
Tested-by: Rohit Fule <rohitf@xilinx.com>
Acked-by: Jyotheeswar Reddy Mutthareddyvari <jyothee@xilinx.com>
2015-07-31 16:55:44 +05:30
Davorin Mista
860c409ea5 PMUFW: PM: Remove error-only acknowledge option
Signed-off-by: Davorin Mista <davorin.mista@aggios.com>
Acked-by: Jyotheeswar Reddy Mutthareddyvari <jyothee@xilinx.com>
2015-07-31 16:55:43 +05:30
Soren Brinkmann
1f36fb5736 PMUFW: ROM interface: Fix hook table type
The ROM handlers and hooks have a different signature.

Fixes: aea3444396c3 'ROM interface: Add ROM hook table'
Cc: Kristopher Bechamp <kristop@xilinx.com>
Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Acked-by: Jyotheeswar Reddy Mutthareddyvari <jyothee@xilinx.com>
2015-07-31 16:55:41 +05:30
Filip Drazic
09090a4bc5 PMUFW: PM: slave: Added slave peripherals
Signed-off-by: Mirela Simonovic <mirela.simonovic@aggios.com>
Acked-by: Jyotheeswar Reddy Mutthareddyvari <jyothee@xilinx.com>
2015-07-31 16:55:40 +05:30
Davorin Mista
353cc695ad PMUFW: PM: Update/fix documentation
Signed-off-by: Davorin Mista <davorin.mista@aggios.com>
Acked-by: Jyotheeswar Reddy Mutthareddyvari <jyothee@xilinx.com>
2015-07-31 16:55:38 +05:30
Davorin Mista
e6089585af PMUFW: PM: Remove workaround for older PMU-ROM version
XpbrPwrUpFpdHandler used to not always return XST_SUCCESS, this
problem no longer exists hence the workaround can be dropped.

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:36 +05:30
Mirela Simonovic
5ad6dc1280 PMUFW: PM: PLL: Added PLL slaves
-Added PLL nodes (PLLs are PM slaves)
-Implemented PLL's FSM in pm_pll.h/c
-Added PmRequirement structures for APU and RPU_0, both can request
 any PLL for usage
-Implemented saving of FPD PLLs' context and powering down FPD PLLs
 before FPD gets powered down (this is PLL suspend)
-Implemented restoring of PLL states when PLL is needed for usage
 if FPD has been powered down (this is PLL resume)

Signed-off-by: Mirela Simonovic <mirela.simonovic@aggios.com>
Acked-by: Jyotheeswar Reddy Mutthareddyvari <jyothee@xilinx.com>
2015-07-31 16:55:35 +05:30
Mirela Simonovic
568b6a1494 PMUFW: PM: Save/restore CRF_APB's context on FPD power down/up
-Added array of CRF_APB module's register address/value pairs used
 for saving/restoring CRF_APB register contents (excluding PLL
 registers - PLLs have their own logic for save/restore)
-Added saving context of CRF_APB registers before FPD is powered
 down and restoring saved context after FPD is powered up

Signed-off-by: Mirela Simonovic <mirela.simonovic@aggios.com>
Acked-by: Jyotheeswar Reddy Mutthareddyvari <jyothee@xilinx.com>
2015-07-31 16:55:33 +05:30
Mirela Simonovic
64ad843e0d PMUFW: PM: slave: Power up power parent before entering state
-Added PM_CAP_POWER as generic capability (defined in pm_defs).
-Slaves' FSMs should define PM_CAP_POWER capability in states which
 require power parent to be ON before the state is entered. This
 capability has no effect if slave node does not have power parent
-Powering up parent of a slave is done automatically by the
 framework before the FSM of a slave is triggered to change the
 state (slave's FSM should assume all prerequisites regarding power
 are configured before FSM is triggered)
-Added PM_CAP_POWER capability in ON state of standard fsm (used for
 SATA)

Signed-off-by: Mirela Simonovic <mirela.simonovic@aggios.com>
Acked-by: Jyotheeswar Reddy Mutthareddyvari <jyothee@xilinx.com>
2015-07-31 16:55:32 +05:30
Mirela Simonovic
8fdbe8728d PMUFW: PM: binding: Fixed bug of not handling multiple simultaneous IPIs
-There was a bug in pmu-fw/pm binding through IPIs, because of
 which in case of multiple IPI interrupts generated simultaneously
 only first interrupt was handled, other interrupts were lost
-The bug existed because PM handles one request in each
 XPfw_PmIpiHandler invocation, and pmu-fw clears all bitfields
 in ISR register after PM handles request. Therefore, if multiple
 bits were set in ISR register (simultaneous IPI interrupts), only
 first one was handled and other bits were just cleared
-XPfw_PmIpiHandler now returns status and through an argument
 pointer an IPI mask of master whose request has been handled
-In xpfw_user_startup.c/PmIpiHandler, return of XPfw_PmIpiHandler
 is checked. If PM successfully handled IPI, only the bitfield of
 master whose request is handled is set (only that IPI interrupt
 is cleared). If something went wrong in PmIpiHandler/IPI0 case,
 we clear all bits set in ISR register, to avoid system hanging on
 this interrupt handler
-In pm_master, a check whether the master owns given mask was
 performed by using '==' instead '&'. Therefore, when 2 masters
 generated interrupt at the same time, PM function that checks
 whether the IPI is PM related returned that the ISR value does
 not match any master. This bug is fixed

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:30 +05:30
Mirela Simonovic
8255c72de3 PMUFW: PM: slave: GIC Proxy macros - using definitions from lpd_slcr.h
-Replaced PM defined macro definitions with macros defined in
 lpd_slcr.h
-Other macros that are defined in pm_slave.h do not exist as is,
 therefore are still used

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:28 +05:30
Mirela Simonovic
4c9c9b51a9 PMUFW: PM: system_shutdown: Implemented shutdown call for shutdown argument
-Added macros in pm_defs.h for system shutdown argument 'restart'
-Exposed array of all masters needed to initiate their suspend upon
 receiving of system shutdown call
-Added checking for restart argument of system shutdown call in pm_api.c
-Implemented PmSystemShutdown for argument restart=0 (shutdown)
-Further improvement in PmSystemShutdown depend on timeout implementation

Signed-off-by: Mirela Simonovic <mirela.simonovic@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:27 +05:30
Mirela Simonovic
245017b13c PMUFW: PM: master: Using unique ipiMask to encode master's bitfield in IPI
-Every master has unique bitfield in all IPI registers
-PMU power management accesses status, trigger and enable registers
 for a master using the unique master's ipiMask now

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:25 +05:30
Soren Brinkmann
1bd06b620c PMUFW: PM: Track suspend requests within master struct
Move the tracking of suspend requests into the corresponding master
structures.
This patch limits the number of possible requestors to 1.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Acked-by: Jyotheeswar Reddy Mutthareddyvari <jyothee@xilinx.com>
2015-07-31 16:55:24 +05:30