processor-sdk/open-amp.git
5 years agoAdd CMake depends to check OpenAMP dependencies
Wendy Liang [Fri, 27 May 2016 20:43:30 +0000 (13:43 -0700)]
Add CMake depends to check OpenAMP dependencies

Introduce depends.cmake to check dependencies for
OpenAMP library.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agoAdd CMake module for look for libmetal
Wendy Liang [Fri, 27 May 2016 20:38:48 +0000 (13:38 -0700)]
Add CMake module for look for libmetal

Add a CMake module to look for the libmetal library
and header files.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agoZynqMP_R5: Add support to out of repo libxil
Wendy Liang [Fri, 27 May 2016 20:33:49 +0000 (13:33 -0700)]
ZynqMP_R5: Add support to out of repo libxil

Allow CMake to search for libxil and its header files.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agoshared mem: fix the get first zero bit function
Wendy Liang [Thu, 13 Oct 2016 04:12:49 +0000 (21:12 -0700)]
shared mem: fix the get first zero bit function

The previous API doesn't work on 64bit machine.
This patch is to fix it.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agoswap the trace and devmem rsc handler
Wendy Liang [Wed, 12 Oct 2016 22:17:47 +0000 (15:17 -0700)]
swap the trace and devmem rsc handler

Match the resource handlers sequence in the resource
handlers table to the resource type definition sequence.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agoFixed cast to (void *) preventing error free compilation with g++ (#24)
Simon Brummer [Thu, 22 Sep 2016 20:08:26 +0000 (22:08 +0200)]
Fixed cast to (void *) preventing error free compilation with g++ (#24)

5 years agovirtio: Redefine vring_avail_event
Edgar E. Iglesias [Thu, 19 Nov 2015 13:58:09 +0000 (14:58 +0100)]
virtio: Redefine vring_avail_event

Redefine vring_avail_event to avoid accessing ring.id as
a 16bit integer and breaking the C aliasing rules.

This fixes a build warning:
virtio/virtqueue.c: In function ‘vq_ring_must_notify_host’:
virtio/virtqueue.c:658:9: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
         event_idx = vring_avail_event(&vq->vq_ring);
         ^

No functional change.

Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agoUse standard types in resource table
Wendy Liang [Fri, 1 Jul 2016 17:54:08 +0000 (10:54 -0700)]
Use standard types in resource table

Resource table fields are declared as unsigned int or char.
As the lengths of these types varies between different platforms,
reousrce table may change shape. Change these fields to uint32_t
or uint8_t.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agorpmsg.h: move code to maximize match against Linux
Wendy Liang [Fri, 1 Jul 2016 22:18:38 +0000 (15:18 -0700)]
rpmsg.h: move code to maximize match against Linux

Move rpmsg_send() and rpmsg_sendto() to maximize match against
Linux include/linux/rpmsg.h

Signed-off-by: Wendy Liang <jliang@xilinx.com>
Signed-off-by: Cyril Chemparathy <cyril.chemparathy@xilinx.com>
5 years agoRemove redundant checking in rpmsg send
Wendy Liang [Fri, 1 Jul 2016 22:13:15 +0000 (15:13 -0700)]
Remove redundant checking in rpmsg send

As rpmag_send_offchannel_raw() does the input arguments
checking, remove the redundant checking in its caller
rpmsg send functions.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agorpmsg.h: remove leading space of function declare
Wendy Liang [Fri, 1 Jul 2016 22:01:10 +0000 (15:01 -0700)]
rpmsg.h: remove leading space of function declare

Remove leading spece of function declaration and definition.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
Cyril Chemparathy <cyril.chemparathy@xilinx.com>

5 years agoUse standard types in rpmsg
Cyril Chemparathy [Thu, 23 Jun 2016 23:08:35 +0000 (16:08 -0700)]
Use standard types in rpmsg

The use of integer types in rpmsg headers is wrong, and consequently
doesn't match the Linux definitions on 64-bit platforms.

This patch fixes the issue by replacing with stdint types.

Signed-off-by: Cyril Chemparathy <cyril.chemparathy@xilinx.com>
Signed-off-by: Wendy Liang <jliang@xilinx.com>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
5 years agoCorrect the name of the Xilinx supported platform
Wendy Liang [Wed, 18 May 2016 05:03:16 +0000 (22:03 -0700)]
Correct the name of the Xilinx supported platform

Correct the name of Xilinx Zynq UltraScale+ MPSoC platform.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agochange rpmsg error base v2016.04
Wendy Liang [Thu, 21 Apr 2016 21:39:52 +0000 (14:39 -0700)]
change rpmsg error base

This is to fix the issue that RPMSG and VQUEUE use the same
error base.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agoFix rpmsg_end on REMOTE causes buffer "leak"
Wendy Liang [Wed, 20 Apr 2016 22:51:23 +0000 (15:51 -0700)]
Fix rpmsg_end on REMOTE causes buffer "leak"

void getting tx buffer out of the buffers pool when the payload
to be sent does not fit into the buffer length.

Signed-off-by: Michal Princ (NXA17570) <michal.princ@nxp.com>
Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agoAdd env_assert() API
Wendy Liang [Thu, 21 Apr 2016 21:31:42 +0000 (14:31 -0700)]
Add env_assert() API

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agoAdd missing #else statement into the compiler.h
Michal Princ (NXA17570) [Wed, 20 Apr 2016 10:40:56 +0000 (12:40 +0200)]
Add missing #else statement into the compiler.h

Signed-off-by: Michal Princ (NXA17570) <michal...@nxp.com>
5 years agoAdd maintainers file
Wendy Liang [Thu, 14 Apr 2016 18:51:04 +0000 (11:51 -0700)]
Add maintainers file

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agoAdd license file
Wendy Liang [Thu, 14 Apr 2016 17:45:10 +0000 (10:45 -0700)]
Add license file

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agoChange the NXP copyright to Freescale
Michal Princ (NXA17570) [Tue, 19 Apr 2016 10:56:09 +0000 (12:56 +0200)]
Change the NXP copyright to Freescale

Signed-off-by: Michal Princ (NXA17570) <michal.princ@nxp.com>
5 years agoFix double free, occurs if a channel destroyed callback is fired from interrupt durin...
Michal Princ (NXA17570) [Thu, 31 Mar 2016 09:05:04 +0000 (11:05 +0200)]
Fix double free, occurs if a channel destroyed callback is fired from interrupt during the rpmsg_deinit function running in non-interrupt context.

- rpmsg_rdev_get_chnl_from_addr() removed because it is not used

Signed-off-by: Michal Princ (NXA17570) <michal.princ@nxp.com>
5 years agoFix deadlock in rpmsg_send_ns_message caused by error
Michal Princ (NXA17570) [Thu, 31 Mar 2016 10:53:27 +0000 (12:53 +0200)]
Fix deadlock in rpmsg_send_ns_message caused by error

handling

Signed-off-by: Michal Princ (NXA17570) <michal.princ@nxp.com>
5 years agofix deallocation issue on deinit
Sam Sortais [Sat, 5 Mar 2016 00:27:00 +0000 (16:27 -0800)]
fix deallocation issue on deinit

Signed-off-by: Sam Sortais <sam.sortais@xilinx.com>
5 years agorm compilation warnings, clean comments, file rename
Sam Sortais [Sat, 5 Mar 2016 02:15:27 +0000 (18:15 -0800)]
rm compilation warnings, clean comments, file rename

Signed-off-by: Sam Sortais <sam.sortais@xilinx.com>
5 years agorename and define some local var/funcs static
Sam Sortais [Mon, 29 Feb 2016 06:05:50 +0000 (22:05 -0800)]
rename and define some local var/funcs static

Signed-off-by: Sam Sortais <sam.sortais@xilinx.com>
5 years agoinvalidate cache instead of disabling
Sam Sortais [Mon, 29 Feb 2016 05:52:18 +0000 (21:52 -0800)]
invalidate cache instead of disabling

Signed-off-by: Sam Sortais <sam.sortais@xilinx.com>
5 years agozynqmp: drivers use platform_isr instead of hil_isr
Sam Sortais [Mon, 29 Feb 2016 05:37:45 +0000 (21:37 -0800)]
zynqmp: drivers use platform_isr instead of hil_isr

Signed-off-by: Sam Sortais <sam.sortais@xilinx.com>
5 years agozynqmp: replace logical-AND by bit-AND with ipi_chn_mask
Sam Sortais [Mon, 29 Feb 2016 05:19:17 +0000 (21:19 -0800)]
zynqmp: replace logical-AND by bit-AND with ipi_chn_mask

Signed-off-by: Sam Sortais <sam.sortais@xilinx.com>
5 years agoAvoid using zero length arrays in sh_mem_pool structure
Michal Princ (NXA17570) [Tue, 23 Feb 2016 08:12:26 +0000 (09:12 +0100)]
Avoid using zero length arrays in sh_mem_pool structure

- unsigned long bitmap[0] removed from sh_mem_pool structure

Signed-off-by: Michal Princ (NXA17570) <michal.princ@nxp.com>
5 years agoFix the way the create endpoint function returns the address number when RPMSG_ADDR_A...
Michal Princ (NXA17570) [Thu, 18 Feb 2016 07:12:08 +0000 (08:12 +0100)]
Fix the way the create endpoint function returns the address number when RPMSG_ADDR_ANY is passed the parameter

This bug has been revealed when performing following steps:
1. create one endpoint with address RPMSG_ADDR_ANY.
2. get the address of that endpoint after it is created successfully.
3. use that address to create another endpoint.
It should not create the second endpoint with address of the first endpoint but somehow both endpoints were created successfully.

Restrict the endpoint address - zero address can't be assigned (due to the conflict in Linux world)

Signed-off-by: Michal Princ (NXA17570) <michal.princ@nxp.com>
5 years agoAvoid using zero length arrays in rpmsg_hdr struct
Michal Princ (NXA17570) [Wed, 17 Feb 2016 09:47:38 +0000 (10:47 +0100)]
Avoid using zero length arrays in rpmsg_hdr struct

- unsigned char data[1] removed from rpmsg_hdr structure

Signed-off-by: Michal Princ (NXA17570) <michal.princ@nxp.com>
Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agoremoteproc: zynqmp to a53: always enable IPI intr
Wendy Liang [Wed, 10 Feb 2016 07:38:15 +0000 (23:38 -0800)]
remoteproc: zynqmp to a53: always enable IPI intr

Need to always unmask IPI interrupt since the IPI interrupt
can be initailly masked.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agoAvoid memory leak in rpmsg_init()
Michal Princ (NXA17570) [Thu, 11 Feb 2016 10:00:29 +0000 (11:00 +0100)]
Avoid memory leak in rpmsg_init()

rpmsg_deinit() did not delete proc instance initialized during the rpmsg_rdev_init()

5 years agoSwitch params for sh_mem_free_buffer call
Marian Cingel (B37642) [Wed, 9 Sep 2015 17:01:13 +0000 (19:01 +0200)]
Switch params for sh_mem_free_buffer call

This is the bugfix of the wrong param order for sh_mem_free_buffer call

5 years agoAdd rpc_demo README
Wendy Liang [Sat, 2 Jan 2016 06:35:49 +0000 (22:35 -0800)]
Add rpc_demo README

Add description on how to use the rpc_demo.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agoAdd matrix_multiply README
Wendy Liang [Sat, 2 Jan 2016 06:17:15 +0000 (22:17 -0800)]
Add matrix_multiply README

Provide description on how to use the matrix_multiply demo.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agoAdd echo_test demo README.
Wendy Liang [Sat, 2 Jan 2016 06:03:43 +0000 (22:03 -0800)]
Add echo_test demo README.

Provide a description on how to use the echo_test demo.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agoRemove obsolete getting started guide
Wendy Liang [Sat, 2 Jan 2016 05:30:41 +0000 (21:30 -0800)]
Remove obsolete getting started guide

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agoUpdate README for the OpenAMP
Wendy Liang [Fri, 1 Jan 2016 07:44:53 +0000 (23:44 -0800)]
Update README for the OpenAMP

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agoRemove Makefile
Wendy Liang [Mon, 11 Jan 2016 09:13:14 +0000 (01:13 -0800)]
Remove Makefile

Since the compilation has been moved to use CMake, remove
Makefiles

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agoUse CMake for compilation
Wendy Liang [Mon, 11 Jan 2016 09:09:35 +0000 (01:09 -0800)]
Use CMake for compilation

using cmake is in order to make OpenAMP compilation
easier to cross OSes and compilers

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agozynqmp_r5: remove IPI handler
Wendy Liang [Tue, 2 Feb 2016 06:51:12 +0000 (22:51 -0800)]
zynqmp_r5: remove IPI handler

It is not necessary to have IPI handler.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
5 years agozynqmp_r5: rename machine.c to machine_system.c
Wendy Liang [Mon, 1 Feb 2016 22:08:17 +0000 (14:08 -0800)]
zynqmp_r5: rename machine.c to machine_system.c

rename lib/system/generic/machine/zynqmp_r5/machine.c to
lib/system/generic/machine/zynqmp_r5/machine_system.c

Signed-off-by: Wendy Liang <jliang@xilinx.com>
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>