Commit graph

122 commits

Author SHA1 Message Date
VNSL Durga
841227f998 xilskey: Added new version v3_0
Modified tcl for adding macro in xparameters.h based on the
processor.As support is being added for Ultrascale and hence
supported processors are a9 and microblaze too, removed
supported peripherals option in mld.

Signed-off-by: VNSL Durga <vnsldurg@xilinx.com>
Reviewed-by: Harini Katakam <harinik@xilinx.com>
2015-08-05 21:03:24 +05:30
Bhavik Ameta
d27a264328 sw_services:xilsecure: Changed RSA API error codes
RSA sign verification error codes combined into XST_FAILURE.

Signed-off-by: Bhavik Ameta <bameta@xilinx.com>
Acked-by: Sarat Chand Savitala <saratcha@xilinx.com>
2015-08-04 18:05:10 +05:30
Bhavik Ameta
976c6455ad sw_services:xilsecure: Pointer warnings fixed
Changed u64 casts to UINTPTR, to fix the warnings.

Signed-off-by: Bhavik Ameta <bameta@xilinx.com>
Acked-by: Sarat Chand Savitala <saratcha@xilinx.com>
2015-08-04 18:05:01 +05:30
Bhavik Ameta
2491b4d9a2 sw_services:xilsecure: R5 build failure fixed
Removed individual checks for compilers from Makefile.These were causing build failure.

Signed-off-by: Bhavik Ameta <bameta@xilinx.com>
Acked-by: Sarat Chand Savitala <saratcha@xilinx.com>
2015-08-04 18:04:29 +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
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
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
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
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
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
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
P L Sai Krishna
0a1c15f45c xilffs: Card detection checked after disk status.
This patch does card detection check before disk
status call, since BaseAddress and card detect
variables will be assigned in disk_status API.

Signed-off-by: P L Sai Krishna <lakshmis@xilinx.com>
Reviewed-by: Harini Katakam <harinik@xilinx.com>
2015-07-17 20:32:25 +05:30
P L Sai Krishna
b7134896b7 xilskey: Changed supported peripheral name to ps7_cortexa9.
This patch modifies the supported peripheral name
to ps7_cortexa9.

Signed-off-by: P L Sai Krishna <lakshmis@xilinx.com>
2015-07-09 19:47:17 +05:30
P L Sai Krishna
c54a28c510 xilrsa: Changed Support peripheral name to ps7_cortexa9.
This patch changes the supported peripheral name to
ps7_cortexa9.

Signed-off-by: P L Sai Krishna <lakshmis@xilinx.com>
2015-07-09 19:47:17 +05:30
P L Sai Krishna
71589358e1 xilffs: Added support for SD1.
This patch add support for SD1.

Signed-off-by: P L Sai Krishna <lakshmis@xilinx.com>
2015-07-09 19:33:51 +05:30
P L Sai Krishna
380282ca43 xilffs: Removed Change Bus Speed, Clock API's in glue layer.
This patch removes Change Bus Speed, Clock Freq, SelectCard
API's in glue layer since driver is taking care of those
things.

Signed-off-by: Srinivas Goud <sgoud@xilinx.com>
2015-07-09 19:33:50 +05:30
Naga Sureshkumar Relli
0a7fcbc746 xilflash_v4_1: Added Pass/Fail string to readwrite_example.
This patch adds Pass/Fail string to xilflash_readwrite_example.

Signed-off-by: Naga Sureshkumar Relli <nagasure@xilinx.com>
2015-07-06 11:49:25 +05:30
Bhavik Ameta
a2f0af55aa sw_services:xilsecure: Windows build issue fixed
Makefile has been corrected to fix the build issue on Windows

Signed-off-by: Bhavik Ameta <bameta@xilinx.com>
2015-07-06 10:48:30 +05:30
P L Sai Krishna
42f46f2ddb xilffs: Added notes in the example.
This patch add notes in the example.

Signed-off-by: P L Sai Krishna <lakshmis@xilinx.com>
2015-07-02 17:22:51 +05:30
P L Sai Krishna
d2fc5aa4ab xilffs: Added Read_Only option.
This patch modifies .mld and .tcl files to provide the
Read_Only option to the user. By default this option
is false.

Signed-off-by: P L Sai Krishna <lakshmis@xilinx.com>
2015-07-02 17:22:50 +05:30
P L Sai Krishna
746db5f257 xilffs: Removed compilation errors,added ReadOnly option.
This patch removes compilation errors in xilffs library.
This errors are coming when we configure ReadOnly, use
StringFunctions and use LFN options. This patch also does
configuring _FS_READONLY macro based on the option given
by the user.

Signed-off-by: P L Sai Krishna <lakshmis@xilinx.com>
2015-07-02 17:22:50 +05:30
P L Sai Krishna
456ed53663 xilisf: Removed compilation errors on DC1.
This patch removes compilation errors by enabling the
IntelStmFlashInitialize function for STM flash family
on DC1.

Signed-off-by: P L Sai Krishna <lakshmis@xilinx.com>
2015-06-26 16:56:17 +05:30
Sarat Chand Savitala
c7791d8bb0 sw_services:xilsecure: Secure bitstream support added
This patch adds support to decrypt PL bitstream.

Signed-off-by: Sarat Chand Savitala <saratcha@xilinx.com>
2015-06-22 11:31:52 +05:30
Sarat Chand Savitala
a01d2a94ac sw_services:xilsecure: Fix to avoid clearing of AES key
Clearing the CSU_AES_KEY_CLEAR register to avoid clearing of AES key.

Signed-off-by: Sarat Chand Savitala <saratcha@xilinx.com>
2015-06-19 17:57:08 +05:30
naga sureshkumar relli
d9923bc7bf xilflash_v4_1: Fix Write buffer programming for IntelStrataFlash
This patch fixes the writebufer programming for IntelStrataFlash.

Signed-off-by: naga sureshkumar relli <nagasure@xilinx.com>
2015-06-10 20:36:54 +05:30
naga sureshkumar relli
3b8769e4f8 xilflash_v4_1: Fix warnings.
This patch fixes the warnings.

Signed-off-by: naga sureshkumar relli <nagasure@xilinx.com>
2015-06-10 20:36:52 +05:30
naga sureshkumar relli
cc85685a73 xilflash_v4_1: Fix Spansion write buffer programming.
This patch fixes the spansion write buffer programming
issue.

Signed-off-by: naga sureshkumar relli <nagasure@xilinx.com>
2015-06-10 20:36:51 +05:30
naga sureshkumar relli
6c21998270 xilflash_v4_0: deprecated version 4.0 and created new version 4.1
This patch deprecates the xilflash_v4_0 and
creates new version xilflash_v4_1.

Signed-off-by: naga sureshkumar relli <nagasure@xilinx.com>
2015-06-10 20:36:49 +05:30
P L Sai Krishna
01c429ca1a xilisf: Modified the check in flash read APIs for parallel case.
This patch modifies the check for whether bank crossover
in flash read functions for parallel case. This will fix
the bug where wrap around occurs to the top of flash when
reading very bottom..

Signed-off-by: P L Sai Krishna <lakshmis@xilinx.com>
2015-06-04 13:09:43 +05:30
P L Sai Krishna
dbff6b1fe4 xilisf: Created new minor version.
This patch deprecates the xilisf_v5_2 and created new
minor version xilisf_v5_3.

Signed-off-by: P L Sai Krishna <lakshmis@xilinx.com>
2015-06-04 13:09:42 +05:30
Soren Brinkmann
159e188d9d xilpm: Remove useless assignments from enum declarations
Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
2015-06-03 18:40:00 +05:30
Soren Brinkmann
69bae79a14 xilpm: Expand 'req' to 'request'
To avoid confustion between request vs requirement, spell them out.

Scripted change:
  find -type f -name "*.[chS]" -exec sed -i -e 's/PM_REQ_WAKEUP/PM_REQUEST_WAKEUP/g' -e 's/PM_REQ_SUSPEND/PM_REQUEST_SUSPEND/g' -e 's/PM_REQ_NODE/PM_REQUEST_NODE/g' -e 's/REQ_ACK_NO/REQUEST_ACK_NO/g' -e 's/REQ_ACK_BLOCKING/REQUEST_ACK_BLOCKING/g' -e 's/REQ_ACK_CB_STANDARD/REQUEST_ACK_CB_STANDARD/g' -e 's/REQ_ACK_CB_ERROR/REQUEST_ACK_CB_CERROR/g' -e 's/IPI_BUFFER_REQ_OFFSET/IPI_BUFFER_REQUEST_OFFSET/g' -e 's/XPm_ReqSuspend/XPm_RequestSuspend/g' -e 's/XPm_ReqWakeUp/XPm_RequestWakeUp/g' -e 's/XPm_ReqNode/XPm_RequestNode/g' '{}' ';'

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
2015-06-03 18:40:00 +05:30
Nava kishore Manne
398cbdc152 lib:sw_services:standalone drivers license changes
Signed-off-by: Nava kishore Manne <navam@xilinx.com>
2015-05-15 14:48:25 +05:30
Harini Katakam
19801ef984 xilffs: Card check only if card detect signal is present
Check for card detection only if that signal is present
(based on HAS_CD macro)

Signed-off-by: Srinivas Goud <srinivas.goud@xilinx.com>
Signed-off-by: Harini Katakam <harinik@xilinx.com>
2015-05-14 22:23:54 +05:30
Harini Katakam
2e8bfd71a8 xilffs: Add card check logic to support Zynq Ultrascale+ MPSoC
Add card detection logic as per Zynq Ultrascale+ MPSoc specification.

Signed-off-by: Srinivas Goud <srinivas.goud@xilinx.com>
Signed-off-by: Harini Katakam <harinik@xilinx.com>
2015-05-14 22:23:54 +05:30
P L Sai Krishna
ca1fb25835 xilffs_v3_1: Added new minor version.
This patch add new minor version v3.1 and deprecates v3.0

Signed-off-by: P L Sai Krishna <lakshmis@xilinx.com>
2015-05-14 22:23:54 +05:30
Soren Brinkmann
9383db5c21 xilsecure: Don't consider directory components in toolchain check
The makefile tries to detect gnu vs ARM toolchain by string-comparing
the COMPILER with some hardcoded values. This fails when the toolchain
is specified with directory components. Hence, remove directory
components from the tests.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
2015-05-13 11:06:43 +05:30
Bhavik Ameta
ec8a0b20f7 sw_services:xilsecure_v1_0: resolved AES and RSA failures
DMA interrupt clearing after each transfer in AES
resolved RSA failure due to incorrect data type

Signed-off-by: Bhavik Ameta <bameta@xilinx.com>
2015-05-05 23:42:49 +05:30
Soren Brinkmann
4b7afd3d4e xilpm: Remove stdint.h
Migrate to the standard standalone types.

Scripted change:
  find -type f -name "*.[ch]" -exec sed -i -e 's/uint32_t/u32/g' -e 's/uint8_t/u8/g' -e 's/uint16_t/u16/g' '{}' ';'
  find -type f -name "*.[ch]" -exec sed -i -e 's/int32_t/s32/g' -e 's/int8_t/s8/g' -e 's/int16_t/s16/g' '{}' ';'

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
2015-04-24 11:57:12 +05:30
Soren Brinkmann
1a875cb79f xilpm: Remove pm_this_cpuid
Remove this unused macro.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
2015-04-24 11:57:11 +05:30
Soren Brinkmann
a8b9765edc xilpm: Move common parts to common header
The pm_client.h headers hold processor specific information. Move common
information to the common header.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
2015-04-24 11:57:11 +05:30
Soren Brinkmann
92747ad56a xilpm example: Remove GicEnableInterrupt()
The function is just a trivial wrapper => inline.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
2015-04-24 11:57:11 +05:30
Soren Brinkmann
fcd1ad8d4e xilpm example: Remove gic_setup_handler()
The function is just a trivial wrapper and used once only. Just inline
it.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
2015-04-24 11:57:10 +05:30
Soren Brinkmann
bb2e0bdb77 xilpm: Clean up
Fix some white space and comment issues.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
2015-04-24 11:57:10 +05:30
Jyotheeswar Reddy
22b06a8e40 lib:xilpm:example: Use TCM-A for saving context
swbeta2 commit 90e16f97eb510ea91702729bf38bc7c7d5d62dba

FSBL inits the TCMs that are used by R5 Apps. We have vectors in TCM-A
and that  data is passed on to FSBL and it is initialized. So using the
same TCM block as vectors ensures that we use an intialized memory and
avoids ECC errors due to RMW or Reads of uninitialized memory locations.
In JTAG mode, TCM still needs to be initialized using XSDB.

Signed-off-by: Jyotheeswar Reddy <jyothee@xilinx.com>
2015-04-24 11:57:08 +05:30
Soren Brinkmann
1eca099af7 xilpm: self-suspend: Set VINITH on R5
swbeta2 commit 8e5bf013a42c56c713efcfa1ab00c78e648b2333

To ensure we resume at the correct vector address, set the VINITH bit
accordingly.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
2015-04-24 11:57:08 +05:30
Soren Brinkmann
879cc61c83 xilpm: self-suspend: Set RVBAR on A53
swbeta2 commit 7ebba935262ebff0df604fd560f4a023d32a7c72

To ensure the application is resumed at the vector table, set the RVBAR
accordingly.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
2015-04-24 11:57:08 +05:30
Jyotheeswar Reddy
ef6ec50aa5 libs:xilpm_v1_0: Adding Power Management Library for ZynqMP
swbeta2 commit 8e824dfe3b169461916c0190194a3eb5a7810b1a

xilpm provides a set of APIs which can be used by standalone applications
to call in PMUFW power management APIs via IPI. Self-suspend example is
provided to demonstrate the usage of this library.

Signed-off-by: Jyotheeswar Reddy <jyothee@xilinx.com>
2015-04-24 11:57:08 +05:30
P L Sai Krishna
411bfef505 xilskey_v2_1: Initialised RSAKeyReadback value with zero
This patch initialises RSAKeyReadback value with zero's since
if RSA key is read with XSK_EFUSEPS_ENABLE_RSA_KEY_HASH as FALSE
then it will return zero.

Signed-off-by: P L Sai Krishna <lakshmis@xilinx.com>
2015-04-07 00:11:25 +05:30