processor-sdk/open-amp.git
5 years agoUpdate for splited system/machine implementation
Wendy Liang [Mon, 1 Feb 2016 21:58:01 +0000 (13:58 -0800)]
Update for splited system/machine implementation

Adjust the lib/Makefile and the apps demos for the updated
system/machine implementation.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agoSplit zynqmp_r5 machine.c
Wendy Liang [Mon, 1 Feb 2016 21:52:13 +0000 (13:52 -0800)]
Split zynqmp_r5 machine.c

zynqmp_r5 machine.c includes OpenAMP and non-OpenAMP but baremetal specific application helper functions.
This patch split it into:
* lib/system/generic/machine/zynqmp_r5/machin_system.c for OpenAMP zynqmp_r5 generic implementation
* apps/system/generic/machine/zynqmp_r5/helper.c for zynqmp_r5 baremetal app helper functions.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agozynq7: split the machine.c/.h
Wendy Liang [Mon, 1 Feb 2016 19:17:10 +0000 (11:17 -0800)]
zynq7: split the machine.c/.h

The old machine.c/.h has included the basic baremetal functions which doesn't belong to OpenAMP lib itself.
it is split into:
* obsolete: which provides the generic Zynq baremetal functions, which will be replaced with Xilinx standalone lib in future
* lib/system/generic/machine/zynq7/machine_system.c, OpenAMP implementation for Zynq7 generic
* apps/system/generic/machine/zynq7/helper.c, helper function for demo apps.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agoMove remoteproc drv from system/machaine to remoteproc
Wendy Liang [Sun, 31 Jan 2016 06:57:48 +0000 (22:57 -0800)]
Move remoteproc drv from system/machaine to remoteproc

Move the remoteproc drivers from system/machine directory
to remoteproce/drivers directory.

Different machines can enable the same remoteproc drivers.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agoRemove *.a from ignore
Wendy Liang [Mon, 11 Jan 2016 09:04:27 +0000 (01:04 -0800)]
Remove *.a from ignore

Since there is *.a in the repository, remove *.a from ignore.
It will be removed in future.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agoRemove obsolete open_amp_build.sh
Wendy Liang [Mon, 11 Jan 2016 07:47:17 +0000 (23:47 -0800)]
Remove obsolete open_amp_build.sh

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agoapps:generic:zynq7:correct common app source files
Wendy Liang [Mon, 11 Jan 2016 07:28:36 +0000 (23:28 -0800)]
apps:generic:zynq7:correct common app source files

Set the right common source files for zynq7 generic
non remoteproc master application.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agozynqmp_r5:remoteproc:fix compilation warning
Wendy Liang [Mon, 11 Jan 2016 01:41:12 +0000 (17:41 -0800)]
zynqmp_r5:remoteproc:fix compilation warning

Since the intr vector ID is unsinged int, when trying to
compare it against 0 to see if it is less than 0, it post
compilation warning.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agozynqmp-r5:remoteproc:solve unused variable warning
Wendy Liang [Mon, 11 Jan 2016 01:37:25 +0000 (17:37 -0800)]
zynqmp-r5:remoteproc:solve unused variable warning

There are functions in the remoteproc driver not using
all the arguments because those functions need to meet
the function type in order to be used as function
variables.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agoMove Linux userspace/kernelspace demo to obsolete
Wendy Liang [Mon, 11 Jan 2016 01:16:57 +0000 (17:16 -0800)]
Move Linux userspace/kernelspace demo to obsolete

The Linux userspace and kernelspace demo applications are not
built with OpenAMP library, move them to obsolete directory.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agoapps:func_test_suite:generic:zynq7:remoteproc master
Wendy Liang [Mon, 11 Jan 2016 01:01:59 +0000 (17:01 -0800)]
apps:func_test_suite:generic:zynq7:remoteproc master

Add remoteproc master support for zynq7 generic app.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agoapps: don't compile rpc_demo for remoteproc master
Wendy Liang [Mon, 11 Jan 2016 00:56:07 +0000 (16:56 -0800)]
apps: don't compile rpc_demo for remoteproc master

RPC demo application doesn't support remoteproc master.
Don't compile the demo if remoteproc master is selected.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agoapps:matrix multiply:zynq7: remoteproc master
Wendy Liang [Mon, 11 Jan 2016 00:54:20 +0000 (16:54 -0800)]
apps:matrix multiply:zynq7: remoteproc master

Add zynq7 generic remoteproc master support for matrix multiply

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agoapps:echo_test:zynq7: generic remoteproc master
Wendy Liang [Mon, 11 Jan 2016 00:31:59 +0000 (16:31 -0800)]
apps:echo_test:zynq7: generic remoteproc master

Add remoteproc master support to zynq7 generic echo_test.

5 years agoapps:generic:zynq7: add remotproc master support
Wendy Liang [Mon, 11 Jan 2016 00:31:25 +0000 (16:31 -0800)]
apps:generic:zynq7: add remotproc master support

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agoAdd linux_firmware sample app for zynq7
Wendy Liang [Mon, 11 Jan 2016 00:24:52 +0000 (16:24 -0800)]
Add linux_firmware sample app for zynq7

Add linux_firmware sample application for zynq7 remoteproc
master.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agoRemove unused directory apps/firmware
Wendy Liang [Sat, 9 Jan 2016 07:23:08 +0000 (23:23 -0800)]
Remove unused directory apps/firmware

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agoapps:generic:zynq7: Add ACRH_CFLAGS to CFLAGS
Wendy Liang [Sat, 9 Jan 2016 02:12:53 +0000 (18:12 -0800)]
apps:generic:zynq7: Add ACRH_CFLAGS to CFLAGS

include ARCH CFLAGS into CFLAGS

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agogeneric: zynqmp_r5: allow extern generic headers
Wendy Liang [Sat, 9 Jan 2016 01:10:17 +0000 (17:10 -0800)]
generic: zynqmp_r5: allow extern generic headers

Allow user to use extern generic headers instead of
those in the obsolete/ directory.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agoapps:generic:zynqmp_r5: Add Makefile.include
Wendy Liang [Sat, 9 Jan 2016 01:06:11 +0000 (17:06 -0800)]
apps:generic:zynqmp_r5: Add Makefile.include

Add zynqmp_r5 generic Makefile.include for common
compilation settings for zynqmp_r5 generic applications.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agogeneric:zynqmp_r5:remoteproc: include machine.h
Wendy Liang [Sat, 9 Jan 2016 01:04:02 +0000 (17:04 -0800)]
generic:zynqmp_r5:remoteproc: include machine.h

Includes machine.h for the machine specific functions.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agoRestruct obsolete directory
Wendy Liang [Sat, 9 Jan 2016 00:25:32 +0000 (16:25 -0800)]
Restruct obsolete directory

Restruct obsolete directory to make it
obsolete/system/<SYSTEM>/machine/<MACHINE>/

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agoMove func_test_suite to directly under apps/
Wendy Liang [Fri, 8 Jan 2016 23:09:19 +0000 (15:09 -0800)]
Move func_test_suite to directly under apps/

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agoMove rpc_demo to directly under apps/
Wendy Liang [Fri, 8 Jan 2016 22:57:30 +0000 (14:57 -0800)]
Move rpc_demo to directly under apps/

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agoMove matrix_multiply/ to directly under apps/
Wendy Liang [Fri, 8 Jan 2016 22:21:37 +0000 (14:21 -0800)]
Move matrix_multiply/ to directly under apps/

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agoMove echo_test directly under apps/
Wendy Liang [Fri, 8 Jan 2016 21:49:51 +0000 (13:49 -0800)]
Move echo_test directly under apps/

It is not necessary to have other directories between
echo_test/ and apps/, move it under apps/

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agoapps: Update Makefile
Wendy Liang [Fri, 8 Jan 2016 21:56:55 +0000 (13:56 -0800)]
apps: Update Makefile

Update apps' Makefile for the changes to move
applicaitons directly under apps/ directory.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agoAdd zynq7 apps common Makefile.include
Wendy Liang [Fri, 8 Jan 2016 21:55:12 +0000 (13:55 -0800)]
Add zynq7 apps common Makefile.include

Introduce common zynq7 apps' Makefile.include
for compilation settings to build zynq7 applications.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agofix warning of redefining __section
Wendy Liang [Fri, 8 Jan 2016 21:51:17 +0000 (13:51 -0800)]
fix warning of redefining __section

In the resource table, it redefine __section to allow
tokens in the input arguments. However, using the
same name will generate compilation warnning.
Rename the redefined __section.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agoMove apps/common/system to apps/system
Wendy Liang [Thu, 7 Jan 2016 23:57:33 +0000 (15:57 -0800)]
Move apps/common/system to apps/system

Additional common/ directory is not nessary.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agoMove the resource tables to common
Wendy Liang [Thu, 7 Jan 2016 21:06:22 +0000 (13:06 -0800)]
Move the resource tables to common

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agoremove MASTER macro
Wendy Liang [Thu, 7 Jan 2016 19:49:23 +0000 (11:49 -0800)]
remove MASTER macro

Macro MAMSTER is not used, remove it.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agoAdd REMOTERPROC_MASTER
Wendy Liang [Thu, 7 Jan 2016 19:47:45 +0000 (11:47 -0800)]
Add REMOTERPROC_MASTER

Use REMOTEPROC_MASTER to define if the applicaiton is
remoteproc master

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agoRemove OPENAMP_BAREMETAL
Wendy Liang [Thu, 7 Jan 2016 19:39:24 +0000 (11:39 -0800)]
Remove OPENAMP_BAREMETAL

bm_env.c will be picked when the system is set to generic.
It is not required to set OPENAMP_BAREMETAL macro anymore.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agoUse lib/ for source files for OpenAMP library
Wendy Liang [Fri, 8 Jan 2016 04:10:12 +0000 (20:10 -0800)]
Use lib/ for source files for OpenAMP library

Move OpenAMP source files into lib/ directory.

Porting/ is not necessary, move porting/system/ to system/

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agoMove porting/system/ to system/
Wendy Liang [Fri, 8 Jan 2016 02:15:37 +0000 (18:15 -0800)]
Move porting/system/ to system/

extra porting/ directory is not required.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agoMove libs/ to obsolete/
Wendy Liang [Thu, 7 Jan 2016 18:12:56 +0000 (10:12 -0800)]
Move libs/ to obsolete/

The libs/ directory is used to build extra required libs maybe
required by applications.
They are not part of the OpenAMP lib. Move them to obsolete.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agoRemove unused zynq7 Makefiles
Wendy Liang [Thu, 7 Jan 2016 18:11:57 +0000 (10:11 -0800)]
Remove unused zynq7 Makefiles

Remove unused zynq7 Makefiles in the buildling extra libs directory.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agoleave xil_standalone_lib only in the zynqmp_r5 extra libs dir
Wendy Liang [Thu, 7 Jan 2016 18:04:35 +0000 (10:04 -0800)]
leave xil_standalone_lib only in the zynqmp_r5 extra libs dir

Leave xil_standalone_lib only in the zymqmp_r5 extra libs
directory.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agoMove files in common/*/ directly under common/
Wendy Liang [Thu, 7 Jan 2016 06:16:17 +0000 (22:16 -0800)]
Move files in common/*/ directly under common/

Move files in the subdirectories under common/ directly under
common/

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agoMove linker scripts to apps/
Wendy Liang [Thu, 7 Jan 2016 02:02:57 +0000 (18:02 -0800)]
Move linker scripts to apps/

Move the example linker scripts to apps/ directory

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agoRename baremetal to generic
Wendy Liang [Thu, 7 Jan 2016 01:37:01 +0000 (17:37 -0800)]
Rename baremetal to generic

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agoMerge platform.h and baremetal.h
Wendy Liang [Thu, 7 Jan 2016 01:04:37 +0000 (17:04 -0800)]
Merge platform.h and baremetal.h

Merge platform and baremeta.h into machine.h

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agoRemove including platform.h from platform_info.c
Wendy Liang [Thu, 7 Jan 2016 00:39:08 +0000 (16:39 -0800)]
Remove including platform.h from platform_info.c

It is not required to include the platform.h in the
platform_info.c file.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agoMakefile.commons:Set default OpenAMP home dir
Wendy Liang [Thu, 7 Jan 2016 07:34:28 +0000 (23:34 -0800)]
Makefile.commons:Set default OpenAMP home dir

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agoMove zynqmp_r5 baremetal.c to OpenAMP lib
Wendy Liang [Wed, 6 Jan 2016 23:56:55 +0000 (15:56 -0800)]
Move zynqmp_r5 baremetal.c to OpenAMP lib

Move zynqmp_r5 baremetal.c to OpenAMP lib instead
of building it as a separate lib.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agoInclude zynq7 baremetal.c in the OpenAMP lib
Wendy Liang [Wed, 6 Jan 2016 23:50:57 +0000 (15:50 -0800)]
Include zynq7 baremetal.c in the OpenAMP lib

Include the zynq7 baremetal in the OpenAMP lib
instead of building it as a separate lib.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agoInclude proxy lib into OpenAMP lib
Wendy Liang [Wed, 6 Jan 2016 23:20:13 +0000 (15:20 -0800)]
Include proxy lib into OpenAMP lib

include proxy lib which is used by a processor
to access the device on the other processor with
file operations.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agoRename zc702evk to zynq7
Wendy Liang [Wed, 6 Jan 2016 23:07:04 +0000 (15:07 -0800)]
Rename zc702evk to zynq7

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agoRename zynqMP_r5 to zynqmp_r5
Wendy Liang [Wed, 6 Jan 2016 23:04:50 +0000 (15:04 -0800)]
Rename zynqMP_r5 to zynqmp_r5

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agoRemove unused Makefiles
Wendy Liang [Wed, 6 Jan 2016 22:22:56 +0000 (14:22 -0800)]
Remove unused Makefiles

Remove Makefiles which are not used.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agoMove platform_info.c to apps
Wendy Liang [Wed, 6 Jan 2016 22:18:38 +0000 (14:18 -0800)]
Move platform_info.c to apps

The platform_info.c application specific.
Move it to apps/ directory.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agozc702evk: rename remoteproc file platform.c
Wendy Liang [Wed, 6 Jan 2016 22:06:06 +0000 (14:06 -0800)]
zc702evk: rename remoteproc file platform.c

Rename zc702evk remoteproc file to remoteproc_zynq7.c
and put remote related files to this directory:
porting/system/baremeta/machine/zc702evk/

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agozynqMP_r5:rename remoteproc file platform.c
Wendy Liang [Wed, 6 Jan 2016 21:57:13 +0000 (13:57 -0800)]
zynqMP_r5:rename remoteproc file platform.c

Rename zynqMP_r5 platform.c to remoteproc_zynqmp.c
and move it to porting/system/baremetal/machine/zynqMP_r5/

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agoIntroduce system
Wendy Liang [Wed, 6 Jan 2016 21:26:21 +0000 (13:26 -0800)]
Introduce system

Use system for target OS.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agoIntroduce machine
Wendy Liang [Wed, 6 Jan 2016 19:44:46 +0000 (11:44 -0800)]
Introduce machine

Introduce machine for hardware specific implementation.
A machine is specific to a hardware platform.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agozc702evk: baremetal.h: remove internal function from header
Wendy Liang [Fri, 1 Jan 2016 05:01:24 +0000 (21:01 -0800)]
zc702evk: baremetal.h: remove internal function from header

Remove internal function from header and do not use internal type
for the functions which will be used externally.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agobaremetal.h: remove mem barrier define
Wendy Liang [Fri, 1 Jan 2016 04:48:29 +0000 (20:48 -0800)]
baremetal.h: remove mem barrier define

Remove mem barrier definition since it is already defined in
platform.h

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agoMakefile.commons:Set default OpenAMP home
Wendy Liang [Thu, 7 Jan 2016 07:57:47 +0000 (23:57 -0800)]
Makefile.commons:Set default OpenAMP home

Set default OpenAMP home directory if it is not set.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agoMove Makefile.commons.XXX to OS/platform directory
Wendy Liang [Fri, 1 Jan 2016 04:41:15 +0000 (20:41 -0800)]
Move Makefile.commons.XXX to OS/platform directory

Move the OS/platform Makefile to OS/platform directory

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agozynqMP_r5: move get processor info and fw function to platform.c
Wendy Liang [Fri, 1 Jan 2016 04:34:02 +0000 (20:34 -0800)]
zynqMP_r5: move get processor info and fw function to platform.c

Move the platform_get_processor_info() and platform_get_processor_for_fw()
from platform_info.c to platform.c since they don't rely on
app. However, platform_info.c is app specific.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agoMove platform specific implementation out of bm_env.c
Wendy Liang [Fri, 1 Jan 2016 01:56:19 +0000 (17:56 -0800)]
Move platform specific implementation out of bm_env.c

Move platform specific implementation out of bm_env.c
and into each platform.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agokeep zynqMP_r5 remoteproc implementation in platform.c
Wendy Liang [Fri, 1 Jan 2016 01:42:54 +0000 (17:42 -0800)]
keep zynqMP_r5 remoteproc implementation in platform.c

Keep all the zynqMP_r5 remoteproc internal implementation
inside the platform.c.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agoKeep zynq remotproc implementation in platform.c
Wendy Liang [Fri, 1 Jan 2016 01:35:26 +0000 (17:35 -0800)]
Keep zynq remotproc implementation in platform.c

Keep internal Zynq platform.c implementation
inside the file.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
Conflicts:
porting/zc702evk/platform.c

5 years agoMove headers to include/
Wendy Liang [Fri, 1 Jan 2016 01:17:30 +0000 (17:17 -0800)]
Move headers to include/

Use include/ for all the headers

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agomove porting/config to common/firmware
Wendy Liang [Fri, 1 Jan 2016 00:31:17 +0000 (16:31 -0800)]
move porting/config to common/firmware

porting/config is to implementation firmware parsing.
Move it to common/firmware

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agoRemove isr from porting/config/config.h
Wendy Liang [Fri, 1 Jan 2016 00:28:32 +0000 (16:28 -0800)]
Remove isr from porting/config/config.h

Only firmware related implementation is left
in porting/config/config.h

Signed-off-by: Wendy Liang <jliang@xilinx.com>
Conflicts:
porting/config/config.h

5 years agoRemove firmware from gitignore
Wendy Liang [Fri, 1 Jan 2016 00:16:59 +0000 (16:16 -0800)]
Remove firmware from gitignore

The firmware is going to be a directory for parsing firmware.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agoCovert to Linux indentation
Wendy Liang [Tue, 5 Jan 2016 23:10:19 +0000 (15:10 -0800)]
Covert to Linux indentation

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agoCovert to Linux file format
Wendy Liang [Tue, 5 Jan 2016 22:43:36 +0000 (14:43 -0800)]
Covert to Linux file format

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agoPacked macros renaming
Michal Princ (NXA17570) [Thu, 4 Feb 2016 12:24:18 +0000 (13:24 +0100)]
Packed macros renaming

5 years agoIntroduce packet struct macros for supported compilers
Michal Princ (NXA17570) [Wed, 27 Jan 2016 15:33:57 +0000 (16:33 +0100)]
Introduce packet struct macros for supported compilers

see https://github.com/OpenAMP/open-amp/pull/9

5 years agoproxy dev driver: set driver data before send msg to proxy ept
Wendy Liang [Fri, 1 Jan 2016 05:54:07 +0000 (21:54 -0800)]
proxy dev driver: set driver data before send msg to proxy ept

Set driver data before sending the msg with proxy ept.
Otherwise, the data may not be set when the message from the proxy
ept is received.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agoMove memory barrier define from bm_env.c to baremetal.h
Wendy Liang [Thu, 13 Aug 2015 03:56:33 +0000 (20:56 -0700)]
Move memory barrier define from bm_env.c to baremetal.h

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agoporting: zynqMP_r5: correct copyright
Wendy Liang [Wed, 9 Dec 2015 04:48:10 +0000 (20:48 -0800)]
porting: zynqMP_r5: correct copyright

Add Mentor copyright back

Signed-off-by: Wendy Liang <jliang@xilinx.com>
6 years agoUse stdint.h instead of private definition
Feng Wei [Thu, 20 Aug 2015 09:41:01 +0000 (17:41 +0800)]
Use stdint.h instead of private definition

This patch helps to avoid duplicated type definition issue when the
application uses stdint.h.
At the same time, buffer length type is uniformed.

Signed-off-by: Feng Wei <wei.feng@freescale.com>
6 years agoporting: zynMP_r5: run wmb() before kick
Wendy Liang [Thu, 13 Aug 2015 03:54:19 +0000 (20:54 -0700)]
porting: zynMP_r5: run wmb() before kick

Need to run wmb() before kick another processor in order to
make sure memory operations' finished.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
6 years agoporting: zynqMP: update IPI APU mask
Wendy Liang [Wed, 12 Aug 2015 11:44:28 +0000 (04:44 -0700)]
porting: zynqMP: update IPI APU mask

Since PMU occupies default APU IPI, use PL0 IPI for OpenAMP APU

Signed-off-by: Wendy Liang <jliang@xilinx.com>
6 years agoMakefile: Update to use armr5 toolchain
Wendy Liang [Wed, 12 Aug 2015 11:43:39 +0000 (04:43 -0700)]
Makefile: Update to use armr5 toolchain

Since toolchain prefix has been changed, the make files
are updated to reflect the changes

Signed-off-by: Wendy Liang <jliang@xilinx.com>
6 years agolibs:zynqMP_r5:baremetal.h: remove IPI Intr ID
Wendy Liang [Fri, 28 Aug 2015 16:54:47 +0000 (09:54 -0700)]
libs:zynqMP_r5:baremetal.h: remove IPI Intr ID

the IPI is specified in the platform.h,
and it should not be in the baremetal.h.

Removing it.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
6 years agolibs:zynqMP_r5:baremetal: Add xil_mpu.h to includes
Wendy Liang [Fri, 28 Aug 2015 17:40:48 +0000 (10:40 -0700)]
libs:zynqMP_r5:baremetal: Add xil_mpu.h to includes

Missing xil_mpu.h from includes

Signed-off-by: Wendy Liang <jliang@xilinx.com>
6 years agoMerge pull request #10 from cyrilchemparathy/master
Cyril Chemparathy [Tue, 8 Sep 2015 23:10:14 +0000 (16:10 -0700)]
Merge pull request #10 from cyrilchemparathy/master

Rewrap README.md and add link to mailing list.

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>