Commit graph

49 commits

Author SHA1 Message Date
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
Venkata Naga Sai Krishna Kolapalli
ca82675069 xilskey_v2_1 : Modified xilskey files to fix warnings.
This patch modifies files to fix warnings that got
generated when -Wextra flag was used.

Signed-off-by: Venkata Naga Sai Krishna Kolapalli <venkatan@xilinx.com>
2015-04-03 18:22:40 +05:30
Venkata Naga Sai Krishna Kolapalli
22b5585a09 xilskey_v2_1 : created new v2.1 version for xilskey.
This patch deprecates the old v2.0 version and created
new v2.1 version for xilskey library.

Signed-off-by: Venkata Naga Sai Krishna Kolapalli <venkatan@xilinx.com>
2015-04-03 18:22:21 +05:30
Bhavik Ameta
8764622019 sw_services:xilsecure_v1_0: changed RSA api
Changed RSA api after code review
2015-03-26 11:19:34 +05:30
Bhavik Ameta
ad78049acf sw_services:xilsecure_v1_0: indentation changes after code review
Changed indentation after code review.
2015-03-26 11:19:33 +05:30
Bhavik Ameta
888308d4a2 sw_services:xilsecure_v1_0: updated tcl file
changed include directories in tcl file
2015-03-26 11:19:33 +05:30
P L Sai Krishna
a37779ae8e xilffs_v2_3: Deleted the v2.3 version.
This patch delete the older version of xilffs.

Signed-off-by: P L Sai Krishna <lakshmis@xilinx.com>
2015-02-17 12:51:28 +05:30
Bhavik Ameta
be9e79763e lib:added secure library initial version
This library contains routine to use SHA, AES and RSA hardware on Alto
Signed-off-by: Bhavik Ameta <bameta@xilinx.com>
2015-02-09 12:34:25 +05:30
Kishore Kumar Korathaluri
2c607219ab xilrsa : added common namespace to all common tcl commands.
Signed-off-by: Kishore Kumar Korathaluri <kkorath@xilinx.com>
2015-01-22 11:52:55 +05:30
Kishore Kumar Korathaluri
3d32d48568 xilmfs : added common namespace to all common tcl commands.
Signed-off-by: Kishore Kumar Korathaluri <kkorath@xilinx.com>
2015-01-22 11:52:55 +05:30
Kishore Kumar Korathaluri
4b63dbe582 xilrsa : added namespace for all HSI TCL commands.
Signed-off-by: Kishore Kumar Korathaluri <kkorath@xilinx.com>
2015-01-08 16:15:12 +05:30
Kishore Kumar Korathaluri
bc6b0dc99e xilmfs : Modified namespace from HSM to HSI.
Signed-off-by: Kishore Kumar Korathaluri <kkorath@xilinx.com>
2014-12-23 16:09:33 +05:30
P L Sai Krishna
79458f03a1 xilffs_v3_0: Added new version for xilffs library.
This patch add new version for xilffs library and deprecated the older version.

Signed-off-by: P L Sai Krishna <lakshmis@xilinx.com>
2014-12-18 15:52:12 +05:30
Suneel Garapati
0ae197d5e4 all: make source code non-executable
Changes -
find -name "*.h" -exec chmod a-x '{}' ';'
find -name "*.c" -exec chmod a-x '{}' ';'
find -name "*.S" -exec chmod a-x '{}' ';'
find -name "*.ld" -exec chmod a-x '{}' ';'
find -name Makefile -exec chmod a-x '{}' ';'

Signed-off-by: Suneel Garapati <suneel.garapati@xilinx.com>
2014-12-17 15:13:03 +05:30
P L Sai Krishna
aeae1a8d96 xilffs_v2_3: updated the xilffs example.
This patch modifies the xilffs example according to latest xilffs library version.

Signed-off-by: P L Sai Krishna <lakshmis@xilinx.com>
2014-12-09 11:13:08 +05:30
P L Sai Krishna
26967d0248 xilffs_v2_3: Updated to latest xilffs version.
This Patch updates the xilffs library to latest version R0.10b

Signed-off-by: P L Sai Krishna <lakshmis@xilinx.com>
2014-12-09 11:12:57 +05:30
P L Sai Krishna
0f23b0e3fa xilffs_v2_3: Added support for micro SD without WP/CD check.
This Patch add support for micro SD without WP/CD check.

Signed-off-by: P L Sai Krishna <lakshmis@xilinx.com>
2014-12-04 15:30:15 +05:30
P L Sai Krishna
1d21bc23ba xilffs_v2_3: Added new version of xilffs library.
This patch add new version of xilffs library by changing mld file.

Signed-off-by: P L Sai Krishna <lakshmis@xilinx.com>
2014-12-04 15:30:14 +05:30
Kishore Kumar Korathaluri
fbb6edaf03 Renaming of common TCL procs of HSM
CR: 767582

Wall Data:
  Originally submitted from RDI_kkorath_new
  Build Type: full
  Test Types: pre-commits, gui pre-commits
[git-p4: depot-paths = "//Rodin/HEAD/data/embeddedsw/": change = 926519]
2014-06-03 17:15:22 +05:30
Harini Katakam
c97a9104c7 lib: sw_services: Update copyright
This patch updates the copyright for the following libraries:
xilffs
xilflash
xilisf
xilmfs
xilrsa
xilskey

Signed-off-by: Harini Katakam <harinik@xilinx.com>
Acked-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
2014-05-28 11:39:42 +05:30
Harini Katakam
e89c7b5f67 embeddedsw: xilrsa: Fix for RCB approved CR# 783276
Change error message in tcl to say "library" is not supported.

Signed-off-by: Harini Katakam <harinik@xilinx.com>
Acked-by: Anirudha Sarangi <anirudh@xilinx.com>
2014-04-28 14:44:00 +05:30
Harini Katakam
55a9795fc2 embeddedsw: xilrsa fix for CR#783276
Add error when xilrsa is selected for processors other than cortexa9.

Signed-off-by: Harini Katakam <harinik@xilinx.com>
2014-04-17 18:26:03 +05:30
git perforce import user
a539aa2c1a Initial import of //Rodin/HEAD/data/embeddedsw/ from the state at revision #head
[git-p4: depot-paths = "//Rodin/HEAD/data/embeddedsw/": change = 884492]
2014-04-09 17:06:57 +05:30