processor-sdk/open-amp.git
6 years agoRewrap README.md and add link to mailing list.
Cyril Chemparathy [Tue, 8 Sep 2015 22:35:11 +0000 (15:35 -0700)]
Rewrap README.md and add link to mailing list.

This commit rewraps the README.md content to fit within 80 columns (for
most sane editors :)).  We also add a link pointing visitors to the
mailing list hosted on googlegroups.  Please subscribe!

6 years agoR5: modified xil_standalone lib and baremetal.c to sync with xilinx repo
Kinjal Pravinbhai Patel [Fri, 7 Aug 2015 06:53:13 +0000 (12:23 +0530)]
R5: modified xil_standalone lib and baremetal.c to sync with xilinx repo

Signed-off-by: Kinjal Pravinbhai Patel <patelki@xilinx.com>
6 years agoR5: added xdebug.h file to xil_standalone lib
Kinjal Pravinbhai Patel [Fri, 7 Aug 2015 06:51:24 +0000 (12:21 +0530)]
R5: added xdebug.h file to xil_standalone lib

Signed-off-by: Kinjal Pravinbhai Patel <patelki@xilinx.com>
6 years agobaremetal slave ZynqMP RPU demos: Remove calls to zynqMP_r5_map_mem_region
Edgar E. Iglesias [Mon, 27 Apr 2015 09:19:03 +0000 (19:19 +1000)]
baremetal slave ZynqMP RPU demos: Remove calls to zynqMP_r5_map_mem_region

Remove hard coded shared memory mappings.

Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Signed-off-by: Wendy Liang <jliang@xilinx.com>
6 years agolibs: zynqMP_r5: baremetal: Simplify zynqMP_r5_map_mem_region and mark as Obsolete
Edgar E. Iglesias [Mon, 27 Apr 2015 09:17:33 +0000 (19:17 +1000)]
libs: zynqMP_r5: baremetal: Simplify zynqMP_r5_map_mem_region and mark as Obsolete

zynqMP_r5_map_mem_region should be removed.

Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
6 years agolibs: zynqMP_r5: baremetal: Implement platform_map_mem_region
Edgar E. Iglesias [Mon, 27 Apr 2015 09:15:14 +0000 (19:15 +1000)]
libs: zynqMP_r5: baremetal: Implement platform_map_mem_region

The generic OpenAMP code uses platform_map_mem_region() to map memory
according to what it needs.

Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
6 years agoXSDK: Add Xil_SetTlbAttributes_size
Edgar E. Iglesias [Mon, 27 Apr 2015 08:50:36 +0000 (18:50 +1000)]
XSDK: Add Xil_SetTlbAttributes_size

Add Xil_SetTlbAttributes_size() to enable the creation of mappings of
other sizes than 1MB.

The SDK should provide a similar function in the future.

Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
6 years agoImproving the readme text document present in the landing page.
arvindraghuraman [Thu, 6 Aug 2015 23:22:22 +0000 (16:22 -0700)]
Improving the readme text document present in the landing page.

6 years agoMerge pull request #5 from MichalPrincFSL/FSL_bugfix_create_endpoint
arvindraghuraman [Tue, 5 May 2015 22:12:12 +0000 (15:12 -0700)]
Merge pull request #5 from MichalPrincFSL/FSL_bugfix_create_endpoint

Fixing potential RPMsg bug: rpmsg_endpoint structure is not cleared when...

6 years agoFixing potential RPMsg bug: rpmsg_endpoint structure is not cleared when dynamically...
Michal Princ (PRNM001) [Mon, 4 May 2015 10:55:51 +0000 (12:55 +0200)]
Fixing potential RPMsg bug: rpmsg_endpoint structure is not cleared when dynamically created

- this causes the hardfault @line 570 when rp_chnl is not a null pointer (writing to undefined dereferenced address)

6 years agoproxy_app: Add --remoteproc to allow to specify a remoteproc
Wendy Liang [Wed, 29 Apr 2015 07:29:28 +0000 (17:29 +1000)]
proxy_app: Add --remoteproc to allow to specify a remoteproc

by default the proxy_app only works with zynqmp_r5_remoteproc,
adding the --remoteproc option so that we test other
remoteproc drivers.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
6 years agobaremetal demos: use SWITCH_TO_SYS_MODE() for Zynq
Wendy Liang [Wed, 29 Apr 2015 05:36:07 +0000 (15:36 +1000)]
baremetal demos: use SWITCH_TO_SYS_MODE() for Zynq

Due to the boot code doesn't put the processor on sys mode.
The application needs to do it at the beginning.

Once we switch to use xil_standalone lib, this patch can be
reverted.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
6 years agolibs: zc702evk: baremetal.c platform_cache_all_flush_invalidate
Kinjal Pravinbhai Patel [Mon, 27 Apr 2015 06:03:48 +0000 (11:33 +0530)]
libs: zc702evk: baremetal.c platform_cache_all_flush_invalidate

Use ARM_AR_MEM_DCACHE_ALL_OP(1) to clean and invalidate dcache
instead of ARM_AR_MEM_DCACHE_ALL_OP(0) to invalidate dache only.

Signed-off-by: Kinjal Pravinbhai Patel <patelki@xilinx.com>
6 years agoUpdate xilinx stanadlone libs
Wendy Liang [Fri, 10 Apr 2015 08:30:29 +0000 (18:30 +1000)]
Update xilinx stanadlone libs

Update Xilinx standalone libs:
* license change
* bug fixes

Signed-off-by: Wendy Liang <jliang@xilinx.com>
6 years agozynq sample makefiles: update to define macro for Zynq A9.
Wendy Liang [Wed, 1 Apr 2015 05:56:44 +0000 (15:56 +1000)]
zynq sample makefiles: update to define macro for Zynq A9.

The code in the sample apps differs between ZynqMP R5 and Zynq A9.
We use macro in makefile to differentiate them.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
6 years agozc702evk baremetal: update platform_map_mem_region
Wendy Liang [Wed, 1 Apr 2015 05:41:46 +0000 (15:41 +1000)]
zc702evk baremetal: update platform_map_mem_region

The platform_map_mem_region is updated due to bm_env update
for both ZynqMP_r5 and Zynq

Signed-off-by: Wendy Liang <jliang@xilinx.com>
6 years agomakefile.commons: added new flag OPENAMP_BAREMETAL for baremetal specific compilation
Kinjal Pravinbhai Patel [Mon, 23 Mar 2015 07:27:09 +0000 (12:57 +0530)]
makefile.commons: added new flag OPENAMP_BAREMETAL for baremetal specific compilation

Signed-off-by: Kinjal Pravinbhai Patel <patelki@xilinx.com>
6 years agozynqMP_r5_lib: moved baremetal specific code to baremetal.c and baremetal.h
Kinjal Pravinbhai Patel [Mon, 23 Mar 2015 07:19:50 +0000 (12:49 +0530)]
zynqMP_r5_lib: moved baremetal specific code to baremetal.c and baremetal.h

Signed-off-by: Kinjal Pravinbhai Patel <patelki@xilinx.com>
6 years agozc702_lib: baremetal specific code moved to baremetal.c file
Kinjal Pravinbhai Patel [Mon, 23 Mar 2015 07:17:32 +0000 (12:47 +0530)]
zc702_lib: baremetal specific code moved to baremetal.c file

Signed-off-by: Kinjal Pravinbhai Patel <patelki@xilinx.com>
6 years agozynqmp_r5: moved hw related definitions to platform.h from platform_info.c
Kinjal Pravinbhai Patel [Mon, 23 Mar 2015 07:15:13 +0000 (12:45 +0530)]
zynqmp_r5: moved hw related definitions to platform.h from platform_info.c

Signed-off-by: Kinjal Pravinbhai Patel <patelki@xilinx.com>
6 years agobm_env.c: removed platform specific code from bm_env.c and added the OPENAMP_BAREMETA...
Kinjal Pravinbhai Patel [Mon, 23 Mar 2015 07:12:55 +0000 (12:42 +0530)]
bm_env.c: removed platform specific code from bm_env.c and added the OPENAMP_BAREMETAL flag

Signed-off-by: Kinjal Pravinbhai Patel <patelki@xilinx.com>
6 years agoremoved SWITCH_TO_SYS_MODE from rpc_demo.c
Kinjal Pravinbhai Patel [Mon, 23 Mar 2015 07:10:40 +0000 (12:40 +0530)]
removed SWITCH_TO_SYS_MODE from rpc_demo.c

Signed-off-by: Kinjal Pravinbhai Patel <patelki@xilinx.com>
6 years agoUpdate the kernel user modules copyright
Wendy Liang [Tue, 24 Mar 2015 03:45:16 +0000 (13:45 +1000)]
Update the kernel user modules copyright

Signed-off-by: Wendy Liang <jliang@xilinx.com>
6 years agoAck IPI once it reads IPI ISR
Wendy Liang [Tue, 24 Mar 2015 00:25:49 +0000 (10:25 +1000)]
Ack IPI once it reads IPI ISR

Signed-off-by: Wendy Liang <jliang@xilinx.com>
6 years agoAdd copyright to the kernel user modules examples
Wendy Liang [Mon, 23 Mar 2015 02:39:58 +0000 (12:39 +1000)]
Add copyright to the kernel user modules examples

Signed-off-by: Wendy Liang <jliang@xilinx.com>
6 years agoOpenAMP: Add Xilinx copyright
Wendy Liang [Mon, 23 Mar 2015 02:13:54 +0000 (12:13 +1000)]
OpenAMP: Add Xilinx copyright

Signed-off-by: Wendy Liang <jliang@xilinx.com>
6 years agoUpdate Linux modules, apps
Wendy Liang [Fri, 20 Mar 2015 00:35:56 +0000 (10:35 +1000)]
Update Linux modules, apps

Signed-off-by: Wendy Liang <jliang@xilinx.com>
6 years agoupdate boot.S xil-crt0.S from Kinjal's
Wendy Liang [Thu, 19 Mar 2015 07:09:59 +0000 (17:09 +1000)]
update boot.S xil-crt0.S from Kinjal's

Signed-off-by: Wendy Liang <jliang@xilinx.com>
6 years agoplatform_info.c : zynqMP_r5: update RPU IPI intr for RTL5.2
Wendy Liang [Thu, 19 Mar 2015 07:08:26 +0000 (17:08 +1000)]
platform_info.c : zynqMP_r5: update RPU IPI intr for RTL5.2

Signed-off-by: Wendy Liang <jliang@xilinx.com>
6 years agoupdate apps to use Kinjal's mpu modification
Wendy Liang [Wed, 18 Mar 2015 02:52:14 +0000 (12:52 +1000)]
update apps to use Kinjal's mpu modification

Signed-off-by: Wendy Liang <jliang@xilinx.com>
6 years agoremoteproc: change to unix format
Wendy Liang [Wed, 18 Mar 2015 02:47:02 +0000 (12:47 +1000)]
remoteproc: change to unix format

Signed-off-by: Wendy Liang <jliang@xilinx.com>
6 years agozynqMP_r5 baremetal libs: merge Kinjal's standalone libs
Wendy Liang [Wed, 18 Mar 2015 02:44:36 +0000 (12:44 +1000)]
zynqMP_r5 baremetal libs: merge Kinjal's standalone libs

Signed-off-by: Wendy Liang <jliang@xilinx.com>
6 years agoipi: change to use centralized IPI API
Wendy Liang [Wed, 18 Mar 2015 02:42:40 +0000 (12:42 +1000)]
ipi: change to use centralized IPI API

Signed-off-by: Wendy Liang <jliang@xilinx.com>
6 years agorpmsg:rpmsg_core.c: get avail buf until there is no buf found
Wendy Liang [Wed, 18 Mar 2015 02:27:01 +0000 (12:27 +1000)]
rpmsg:rpmsg_core.c: get avail buf until there is no buf found

Signed-off-by: Wendy Liang <jliang@xilinx.com>
6 years agoEnable rpmsg_retarget send function to send msg to the proxy channel
Wendy Liang [Thu, 12 Mar 2015 07:33:57 +0000 (17:33 +1000)]
Enable rpmsg_retarget send function to send msg to the proxy channel

Signed-off-by: Wendy Liang <jliang@xilinx.com>
6 years agoremove unused r5_example
Wendy Liang [Mon, 9 Mar 2015 05:35:49 +0000 (15:35 +1000)]
remove unused r5_example

Signed-off-by: Wendy Liang <jliang@xilinx.com>
6 years agorpmsg_retarget: removing including "sleep.h"
Wendy Liang [Mon, 9 Mar 2015 05:32:56 +0000 (15:32 +1000)]
rpmsg_retarget: removing including "sleep.h"

Signed-off-by: Wendy Liang <jliang@xilinx.com>
6 years agoAdd Linux master user rpmsg driver and user apps
Wendy Liang [Tue, 3 Mar 2015 03:30:54 +0000 (13:30 +1000)]
Add Linux master user rpmsg driver and user apps

Signed-off-by: Wendy Liang <jliang@xilinx.com>
6 years agoenable matrix_multiply application
Wendy Liang [Tue, 3 Mar 2015 03:02:00 +0000 (13:02 +1000)]
enable matrix_multiply application

Signed-off-by: Wendy Liang <jliang@xilinx.com>
6 years agobaremetal proxy app:use env spin lock
Wendy Liang [Tue, 3 Mar 2015 03:00:40 +0000 (13:00 +1000)]
baremetal proxy app:use env spin lock

after correcting the env spin lock, switch back to use
the env spin lock function.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
6 years agobm_env: correct the xchg function
Wendy Liang [Tue, 3 Mar 2015 03:00:08 +0000 (13:00 +1000)]
bm_env: correct the xchg function

Signed-off-by: Wendy Liang <jliang@xilinx.com>
6 years agoapps Mafilefile: build rpc_demo
Wendy Liang [Mon, 2 Mar 2015 04:22:29 +0000 (14:22 +1000)]
apps Mafilefile: build rpc_demo

Signed-off-by: Wendy Liang <jliang@xilinx.com>
6 years agorpc_demo: use the default linker script in the baremetal
Wendy Liang [Mon, 2 Mar 2015 04:20:46 +0000 (14:20 +1000)]
rpc_demo: use the default linker script in the baremetal

Signed-off-by: Wendy Liang <jliang@xilinx.com>
6 years agorpc_demo: port rpc_demo baremetal for r5
Wendy Liang [Mon, 2 Mar 2015 02:46:15 +0000 (12:46 +1000)]
rpc_demo: port rpc_demo baremetal for r5

Signed-off-by: Wendy Liang <jliang@xilinx.com>
6 years agozc702evk:apply weak to file operations
Wendy Liang [Mon, 2 Mar 2015 02:31:35 +0000 (12:31 +1000)]
zc702evk:apply weak to file operations

apply weak attributes to file operations

Signed-off-by: Wendy Liang <jliang@xilinx.com>
6 years agobaremetal: apply weak attributes to file operations
Wendy Liang [Mon, 2 Mar 2015 02:29:17 +0000 (12:29 +1000)]
baremetal: apply weak attributes to file operations

Apply weak attributes to file operations such as
_read(), _write(), _open(), _close() and so on.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
6 years agoecho_test: make it for baremetal r5
Wendy Liang [Mon, 23 Feb 2015 06:58:39 +0000 (16:58 +1000)]
echo_test: make it for baremetal r5

Signed-off-by: Wendy Liang <jliang@xilinx.com>
6 years agoUpdate isr to clear IPI register after deinit
Wendy Liang [Tue, 17 Feb 2015 08:52:18 +0000 (18:52 +1000)]
Update isr to clear IPI register after deinit

Will need to clear IPI registers after remoteproc/rpmsg
resource deinitialization.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
6 years agorpmsg:move vring notification before rdev_notify
Wendy Liang [Mon, 16 Feb 2015 01:43:49 +0000 (11:43 +1000)]
rpmsg:move vring notification before rdev_notify

previously, vring notification is done just after creating
virtqueues, but before setting up the endpoint. That is
IPI interrupt is enabled before it can be handled.
This commit is to fix this.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
6 years agorpmsg_core.c:change to unix line ending
Wendy Liang [Mon, 16 Feb 2015 01:28:56 +0000 (11:28 +1000)]
rpmsg_core.c:change to unix line ending

Signed-off-by: Wendy Liang <jliang@xilinx.com>
6 years agor5_example: use wfi instead of nop in while loop.
Wendy Liang [Wed, 11 Feb 2015 01:00:52 +0000 (11:00 +1000)]
r5_example: use wfi instead of nop in while loop.

use wfi instruction in the while loop to wait for interrupt.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
6 years agobaremetal remote: add nop in the while loop.
Wendy Liang [Tue, 10 Feb 2015 01:37:25 +0000 (11:37 +1000)]
baremetal remote: add nop in the while loop.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
6 years agor5_example:change to only specify default openamp root if it is not defined
Wendy Liang [Mon, 9 Feb 2015 05:19:44 +0000 (21:19 -0800)]
r5_example:change to only specify default openamp root if it is not defined

Signed-off-by: Wendy Liang <jliang@xilinx.com>
6 years agozynqMP_r5: baremetal: clean the standalone lib when doing clean
Wendy Liang [Mon, 9 Feb 2015 01:18:52 +0000 (17:18 -0800)]
zynqMP_r5: baremetal: clean the standalone lib when doing clean

Signed-off-by: Wendy Liang <jliang@xilinx.com>
6 years agorpmsg_core: return unconditionally after the first kick.
Wendy Liang [Mon, 9 Feb 2015 00:31:29 +0000 (16:31 -0800)]
rpmsg_core: return unconditionally after the first kick.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
6 years agompu: init: make the DDR as non-cachable
Wendy Liang [Mon, 9 Feb 2015 00:18:13 +0000 (16:18 -0800)]
mpu: init: make the DDR as non-cachable

Signed-off-by: Wendy Liang <jliang@xilinx.com>
6 years agoecho_test.c: disable dcache for the program.
Wendy Liang [Mon, 9 Feb 2015 00:15:00 +0000 (16:15 -0800)]
echo_test.c: disable dcache for the program.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
6 years agoeach platform define vatophy and phytova mapping.
Wendy Liang [Wed, 4 Feb 2015 06:59:51 +0000 (22:59 -0800)]
each platform define vatophy and phytova mapping.

Let each platform define its vatophy and phytova mapping.
the previous one in the bm_env.c is for PS Zynq only.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
6 years agozynqMP_r5: flush dcache before kick/receive IPI
Wendy Liang [Sun, 1 Feb 2015 12:45:27 +0000 (04:45 -0800)]
zynqMP_r5: flush dcache before kick/receive IPI

Will need to flush dcache to make sure data writes to memory
before kicking IPI or receive IPI.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
6 years agor5_example: add test code.
Wendy Liang [Fri, 23 Jan 2015 08:33:26 +0000 (00:33 -0800)]
r5_example: add test code.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
6 years agoresource table: leave only OCM for the firmware
Wendy Liang [Fri, 23 Jan 2015 08:31:43 +0000 (00:31 -0800)]
resource table: leave only OCM for the firmware

Signed-off-by: Wendy Liang <jliang@xilinx.com>
6 years agolibs:zynqMP_r5: baremetal:xil_standalone:mpu: add DDR to MPU init
Wendy Liang [Fri, 23 Jan 2015 08:26:32 +0000 (00:26 -0800)]
libs:zynqMP_r5: baremetal:xil_standalone:mpu: add DDR to MPU init

Add DDR region to MPU initialization.
This should be done in user application. Need to fix later.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
6 years agolibs: zynqMP_r5: baremetal: Add IPI reg offsets information
Wendy Liang [Thu, 22 Jan 2015 05:39:06 +0000 (21:39 -0800)]
libs: zynqMP_r5: baremetal: Add IPI reg offsets information

Add IPI registers offsets information

Signed-off-by: Wendy Liang <jliang@xilinx.com>
6 years agoporting: zynqMP_r5: use IPI for communication between APU and RPU
Wendy Liang [Thu, 22 Jan 2015 05:33:07 +0000 (21:33 -0800)]
porting: zynqMP_r5: use IPI for communication between APU and RPU

Use IPI for the communication between APU and RPU

Signed-off-by: Wendy Liang <jliang@xilinx.com>
6 years agorpmsg_core: use one openamp channel only.
Wendy Liang [Tue, 20 Jan 2015 08:24:34 +0000 (00:24 -0800)]
rpmsg_core: use one openamp channel only.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
6 years agolibs: zynqMP_r5: baremetal: initialize int distributor
Wendy Liang [Mon, 19 Jan 2015 07:50:30 +0000 (23:50 -0800)]
libs: zynqMP_r5: baremetal: initialize int distributor

Need to initialize int distributor.

However, if two R5 are running in parallel mode.

May need a macro to define whether it is required to initialize
the GIC distributor.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
6 years agorsc_table: put vrings to DDR, add TCM, OCM and DDR to carveout
Wendy Liang [Tue, 20 Jan 2015 01:32:43 +0000 (17:32 -0800)]
rsc_table: put vrings to DDR, add TCM, OCM and DDR to carveout

Signed-off-by: Wendy Liang <jliang@xilinx.com>
6 years agolibs: zynqMP_r5: baremetal: linker_remote: not hardcode vectors addr
Wendy Liang [Tue, 20 Jan 2015 01:29:48 +0000 (17:29 -0800)]
libs: zynqMP_r5: baremetal: linker_remote: not hardcode vectors addr

Do not hardcoded vectors addr in the linker script.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
6 years agoporting: zynqMP_r5: platform_info: vrings in DDR, preserve IPI info
Wendy Liang [Tue, 20 Jan 2015 00:53:27 +0000 (16:53 -0800)]
porting: zynqMP_r5: platform_info: vrings in DDR, preserve IPI info

Put shared memory vrings in DDR, preserve structure for IPI information

Signed-off-by: Wendy Liang <jliang@xilinx.com>
6 years agolibs: zynqMP_R5: baremetal: apply "weak" to file ops
Wendy Liang [Tue, 20 Jan 2015 00:48:59 +0000 (16:48 -0800)]
libs: zynqMP_R5: baremetal: apply "weak" to file ops

Apply "weak" attribute to file operation functions.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
6 years agoOpenAMP lib Makefile: compile source for platform only
Wendy Liang [Tue, 6 Jan 2015 05:41:17 +0000 (21:41 -0800)]
OpenAMP lib Makefile: compile source for platform only

Compile source files for the specified platforms only.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
6 years agoMakefile for openamp lib: change file format to unix style
Wendy Liang [Tue, 6 Jan 2015 05:34:39 +0000 (21:34 -0800)]
Makefile for openamp lib: change file format to unix style

change the file line ending stype from dos to unix

Signed-off-by: Wendy Liang <jliang@xilinx.com>
6 years agolinker_remote script: put the text section to 0xFFFF0000
Wendy Liang [Tue, 6 Jan 2015 03:15:53 +0000 (19:15 -0800)]
linker_remote script: put the text section to 0xFFFF0000

boot from OCM, after reset, R5 will boot from 0xffff000.
and thus, i put the whole text section there.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
6 years agoMove shared memory and vring infos memory to DDR.
Wendy Liang [Tue, 6 Jan 2015 01:08:34 +0000 (17:08 -0800)]
Move shared memory and vring infos memory to DDR.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
6 years agoAdd interrupts intialization to the example application.
Wendy Liang [Tue, 6 Jan 2015 01:00:34 +0000 (17:00 -0800)]
Add interrupts intialization to the example application.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
6 years agolibs: zynqMP_r5: baremetal: Add GIC intialization function to .h
Wendy Liang [Tue, 6 Jan 2015 00:57:51 +0000 (16:57 -0800)]
libs: zynqMP_r5: baremetal: Add GIC intialization function to .h

Before using interrupts, we will need to initialize GIC.
Add the function to baremetal.h file.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
6 years agomodify r5_example Makefile to use r5 baremetal linker script.
Wendy Liang [Mon, 5 Jan 2015 09:00:31 +0000 (01:00 -0800)]
modify r5_example Makefile to use r5 baremetal linker script.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
6 years agolinker_remote.ld: increase heap size to 16KBytes
Wendy Liang [Mon, 5 Jan 2015 08:53:48 +0000 (00:53 -0800)]
linker_remote.ld: increase heap size to 16KBytes

each virtqueue requires 4200 Bytes, will need to enlarge heaps from
original 0x2000 to bigger.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
6 years agolinker_remote.ld: remove "end" definition
Wendy Liang [Mon, 5 Jan 2015 06:33:18 +0000 (22:33 -0800)]
linker_remote.ld: remove "end" definition

With the latest cortex_r5 toolchain, there is no need to
define "end" in the linker script.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
6 years agoxil_standalone_lib: _sbrk.c: fix issues with sbrk function
Wendy Liang [Mon, 5 Jan 2015 06:30:28 +0000 (22:30 -0800)]
xil_standalone_lib: _sbrk.c: fix issues with sbrk function

Signed-off-by: Wendy Liang <jliang@xilinx.com>
6 years agoAdd R5 remote baremetal starting point example
Wendy Liang [Mon, 5 Jan 2015 02:50:49 +0000 (18:50 -0800)]
Add R5 remote baremetal starting point example

This applicaiton is for developing and debugging only.
It is not a complete OpenAMP remote baremetal application.
And it will be delete in the end.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
6 years agoIn progress: R5 remote baremetal support
Wendy Liang [Mon, 5 Jan 2015 02:32:51 +0000 (18:32 -0800)]
In progress: R5 remote baremetal support

It passed compilation, however, the following questions remain:

* Interrupts implementation not tested
* memory mapping not final
   * ATF will occupy OCM
   * Should also allow run the code in TCM
   * Code may need to run in DDR if it is large
   * shared memory needs to be in DDR
* file operation syscalls cannot be redefined in application
   * looks like they have strong definition in newlib
   * as workaround, I apply "weak" attribute to those functions
     for non-proxy OpenAMP application.
     * _fstat(), _isatty(), _lseek(), _open(), _close(), _read() and write()
       in baremetal.c have "weak" attribute for non proxy application.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
6 years agoporting: env: remove zynq specific function
Wendy Liang [Tue, 23 Dec 2014 14:08:14 +0000 (06:08 -0800)]
porting: env: remove zynq specific function

Signed-off-by: Wendy Liang <jliang@xilinx.com>
6 years agoremoteproc: initialize status value in handle_rsc_table
Wendy Liang [Tue, 23 Dec 2014 07:29:48 +0000 (23:29 -0800)]
remoteproc: initialize status value in handle_rsc_table

to avoid gcc compilation warning. Initialize variable status
of function handle_rsc_table(). variable status is used to
store return value.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
6 years agoremoteproc: initialize status of remoteproc_loader_delete
Wendy Liang [Tue, 23 Dec 2014 07:07:29 +0000 (23:07 -0800)]
remoteproc: initialize status of remoteproc_loader_delete

To avoid GCC warnings, initialize variable status as 0 in
function remoteproc_loader_delete().
The status variable is used for return.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
6 years agoMakefile.commons: introduce platform specific include file
Wendy Liang [Tue, 23 Dec 2014 07:03:53 +0000 (23:03 -0800)]
Makefile.commons: introduce platform specific include file

Remove the platform related settings from <OPENAMP>/Makefile.commons.
Add Makefile.commons.<platform> for platform specific settings.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
6 years agoAdding libfdt and zlib sources. openamp_zynq_kernel_3.17
eanjum [Thu, 2 Apr 2015 10:04:01 +0000 (15:04 +0500)]
Adding libfdt and zlib sources.

6 years agoapps: samples: master: linux: kernelspace: 3.17 kernel zynq remoteproc
Wendy Liang [Mon, 8 Dec 2014 01:07:09 +0000 (11:07 +1000)]
apps: samples: master: linux: kernelspace: 3.17 kernel zynq remoteproc

Update zyne remoteproc kernel driver to match 3.17 kernel

Signed-off-by: Wendy Liang <jliang@xilinx.com>
6 years agoporting: zc702evk: platform_info: update vrings IPI
Wendy Liang [Wed, 1 Apr 2015 06:20:35 +0000 (16:20 +1000)]
porting: zc702evk: platform_info: update vrings IPI

Kernel 3.17 preserve software interrupt 0 to 7 on Zynq.
For IPI, we will need to use 8 to 15.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
6 years agozc702evk linux remote:Add prebuilt libfdt and zlib back
Wendy Liang [Wed, 1 Apr 2015 04:29:35 +0000 (14:29 +1000)]
zc702evk linux remote:Add prebuilt libfdt and zlib back

Add libfdt and zlib prebuilt back

Signed-off-by: Wendy Liang <jliang@xilinx.com>
6 years agoopen_amp_build.h: rebuild baremetal lib when builds OpenAMP apps
Wendy Liang [Tue, 27 Jan 2015 04:12:27 +0000 (20:12 -0800)]
open_amp_build.h: rebuild baremetal lib when builds OpenAMP apps

Rebuild baremetal lib for zc702evk when runs open_amp_build.sh

Signed-off-by: Wendy Liang <jliang@xilinx.com>
6 years agoproxy: linux: userspace: proxy_app.c: wait after terminate
Wendy Liang [Fri, 5 Dec 2014 09:05:31 +0000 (19:05 +1000)]
proxy: linux: userspace: proxy_app.c: wait after terminate

Before release remoteproc after sending terminating message, it needs
to wait for some time for remote do finish termination to release resource.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
6 years agoDelete *.a files
Wendy Liang [Fri, 5 Dec 2014 04:35:34 +0000 (14:35 +1000)]
Delete *.a files

*.a files are generated by build, don't need to version control them

Signed-off-by: Wendy Liang <jliang@xilinx.com>
6 years agolibs: zc702evk: baremetal: corret LIB macro in makefile
Wendy Liang [Fri, 5 Dec 2014 04:32:34 +0000 (14:32 +1000)]
libs: zc702evk: baremetal: corret LIB macro in makefile

Corret the library macro of clean target in makefile to
actually remove the generated library.

Add a .build/ directory to keep all the object files.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
6 years agolibs: system: zc702evk: baremetal: Makefile line ending style
Wendy Liang [Mon, 8 Dec 2014 04:07:59 +0000 (14:07 +1000)]
libs: system: zc702evk: baremetal: Makefile line ending style

Change libs/system/zc702evk/baremetal/Makefile line ending style
to unix style.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
6 years ago.gitignore: Add *.a into .gitigore file
Wendy Liang [Fri, 5 Dec 2014 04:29:04 +0000 (14:29 +1000)]
.gitignore: Add *.a into .gitigore file

*.a are files generated during build, don't need to version control them.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
6 years agogitignore: Ignore temporary build files
Wendy Liang [Tue, 2 Dec 2014 01:14:58 +0000 (11:14 +1000)]
gitignore: Ignore temporary build files

Signed-off-by: Wendy Liang <jliang@xilinx.com>
6 years agoAdding updated documents.
eanjum [Sun, 14 Dec 2014 11:54:20 +0000 (16:54 +0500)]
Adding updated documents.

7 years agoRemoving left over Nucleus references.
eanjum [Thu, 27 Nov 2014 10:38:23 +0000 (15:38 +0500)]
Removing left over Nucleus references.

7 years agoRemoving Nucleus references from OpenAMP repo. Documentation changes are pending
eanjum [Thu, 27 Nov 2014 08:13:12 +0000 (13:13 +0500)]
Removing Nucleus references from OpenAMP repo. Documentation changes are pending