rename and define some local var/funcs static
Signed-off-by: Sam Sortais <sam.sortais@xilinx.com>
Signed-off-by: Sam Sortais <sam.sortais@xilinx.com>
invalidate cache instead of disabling
Signed-off-by: Sam Sortais <sam.sortais@xilinx.com>
Signed-off-by: Sam Sortais <sam.sortais@xilinx.com>
zynqmp: drivers use platform_isr instead of hil_isr
Signed-off-by: Sam Sortais <sam.sortais@xilinx.com>
Signed-off-by: Sam Sortais <sam.sortais@xilinx.com>
zynqmp: replace logical-AND by bit-AND with ipi_chn_mask
Signed-off-by: Sam Sortais <sam.sortais@xilinx.com>
Signed-off-by: Sam Sortais <sam.sortais@xilinx.com>
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>
- unsigned long bitmap[0] removed from sh_mem_pool structure
Signed-off-by: Michal Princ (NXA17570) <michal.princ@nxp.com>
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>
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>
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>
- 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>
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>
Need to always unmask IPI interrupt since the IPI interrupt
can be initailly masked.
Signed-off-by: Wendy Liang <jliang@xilinx.com>
Avoid memory leak in rpmsg_init()
rpmsg_deinit() did not delete proc instance initialized during the rpmsg_rdev_init()
rpmsg_deinit() did not delete proc instance initialized during the rpmsg_rdev_init()
Switch params for sh_mem_free_buffer call
This is the bugfix of the wrong param order for sh_mem_free_buffer call
This is the bugfix of the wrong param order for sh_mem_free_buffer call
Add rpc_demo README
Add description on how to use the rpc_demo.
Signed-off-by: Wendy Liang <jliang@xilinx.com>
Add description on how to use the rpc_demo.
Signed-off-by: Wendy Liang <jliang@xilinx.com>
Add matrix_multiply README
Provide description on how to use the matrix_multiply demo.
Signed-off-by: Wendy Liang <jliang@xilinx.com>
Provide description on how to use the matrix_multiply demo.
Signed-off-by: Wendy Liang <jliang@xilinx.com>
Add echo_test demo README.
Provide a description on how to use the echo_test demo.
Signed-off-by: Wendy Liang <jliang@xilinx.com>
Provide a description on how to use the echo_test demo.
Signed-off-by: Wendy Liang <jliang@xilinx.com>
Remove obsolete getting started guide
Signed-off-by: Wendy Liang <jliang@xilinx.com>
Signed-off-by: Wendy Liang <jliang@xilinx.com>
Update README for the OpenAMP
Signed-off-by: Wendy Liang <jliang@xilinx.com>
Signed-off-by: Wendy Liang <jliang@xilinx.com>
Remove Makefile
Since the compilation has been moved to use CMake, remove
Makefiles
Signed-off-by: Wendy Liang <jliang@xilinx.com>
Since the compilation has been moved to use CMake, remove
Makefiles
Signed-off-by: Wendy Liang <jliang@xilinx.com>
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>
using cmake is in order to make OpenAMP compilation
easier to cross OSes and compilers
Signed-off-by: Wendy Liang <jliang@xilinx.com>
zynqmp_r5: remove IPI handler
It is not necessary to have IPI handler.
Signed-off-by: Wendy Liang <jliang@xilinx.com>
It is not necessary to have IPI handler.
Signed-off-by: Wendy Liang <jliang@xilinx.com>
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>
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>
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>
Adjust the lib/Makefile and the apps demos for the updated
system/machine implementation.
Signed-off-by: Wendy Liang <jliang@xilinx.com>
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>
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>
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>
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>
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>
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>
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>
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>
Remove obsolete open_amp_build.sh
Signed-off-by: Wendy Liang <jliang@xilinx.com>
Signed-off-by: Wendy Liang <jliang@xilinx.com>
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>
Set the right common source files for zynq7 generic
non remoteproc master application.
Signed-off-by: Wendy Liang <jliang@xilinx.com>
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>
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>
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>
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>
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>
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>
apps:func_test_suite:generic:zynq7:remoteproc master
Add remoteproc master support for zynq7 generic app.
Signed-off-by: Wendy Liang <jliang@xilinx.com>
Add remoteproc master support for zynq7 generic app.
Signed-off-by: Wendy Liang <jliang@xilinx.com>
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>
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>
apps:matrix multiply:zynq7: remoteproc master
Add zynq7 generic remoteproc master support for matrix multiply
Signed-off-by: Wendy Liang <jliang@xilinx.com>
Add zynq7 generic remoteproc master support for matrix multiply
Signed-off-by: Wendy Liang <jliang@xilinx.com>
apps:echo_test:zynq7: generic remoteproc master
Add remoteproc master support to zynq7 generic echo_test.
Add remoteproc master support to zynq7 generic echo_test.
apps:generic:zynq7: add remotproc master support
Signed-off-by: Wendy Liang <jliang@xilinx.com>
Signed-off-by: Wendy Liang <jliang@xilinx.com>
Add linux_firmware sample app for zynq7
Add linux_firmware sample application for zynq7 remoteproc
master.
Signed-off-by: Wendy Liang <jliang@xilinx.com>
Add linux_firmware sample application for zynq7 remoteproc
master.
Signed-off-by: Wendy Liang <jliang@xilinx.com>
Remove unused directory apps/firmware
Signed-off-by: Wendy Liang <jliang@xilinx.com>
Signed-off-by: Wendy Liang <jliang@xilinx.com>
apps:generic:zynq7: Add ACRH_CFLAGS to CFLAGS
include ARCH CFLAGS into CFLAGS
Signed-off-by: Wendy Liang <jliang@xilinx.com>
include ARCH CFLAGS into CFLAGS
Signed-off-by: Wendy Liang <jliang@xilinx.com>
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>
Allow user to use extern generic headers instead of
those in the obsolete/ directory.
Signed-off-by: Wendy Liang <jliang@xilinx.com>
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>
Add zynqmp_r5 generic Makefile.include for common
compilation settings for zynqmp_r5 generic applications.
Signed-off-by: Wendy Liang <jliang@xilinx.com>
generic:zynqmp_r5:remoteproc: include machine.h
Includes machine.h for the machine specific functions.
Signed-off-by: Wendy Liang <jliang@xilinx.com>
Includes machine.h for the machine specific functions.
Signed-off-by: Wendy Liang <jliang@xilinx.com>
Restruct obsolete directory
Restruct obsolete directory to make it
obsolete/system/<SYSTEM>/machine/<MACHINE>/
Signed-off-by: Wendy Liang <jliang@xilinx.com>
Restruct obsolete directory to make it
obsolete/system/<SYSTEM>/machine/<MACHINE>/
Signed-off-by: Wendy Liang <jliang@xilinx.com>
Move func_test_suite to directly under apps/
Signed-off-by: Wendy Liang <jliang@xilinx.com>
Signed-off-by: Wendy Liang <jliang@xilinx.com>
Move rpc_demo to directly under apps/
Signed-off-by: Wendy Liang <jliang@xilinx.com>
Signed-off-by: Wendy Liang <jliang@xilinx.com>
Move matrix_multiply/ to directly under apps/
Signed-off-by: Wendy Liang <jliang@xilinx.com>
Signed-off-by: Wendy Liang <jliang@xilinx.com>
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>
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>
apps: Update Makefile
Update apps' Makefile for the changes to move
applicaitons directly under apps/ directory.
Signed-off-by: Wendy Liang <jliang@xilinx.com>
Update apps' Makefile for the changes to move
applicaitons directly under apps/ directory.
Signed-off-by: Wendy Liang <jliang@xilinx.com>
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>
Introduce common zynq7 apps' Makefile.include
for compilation settings to build zynq7 applications.
Signed-off-by: Wendy Liang <jliang@xilinx.com>
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>
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>
Move apps/common/system to apps/system
Additional common/ directory is not nessary.
Signed-off-by: Wendy Liang <jliang@xilinx.com>
Additional common/ directory is not nessary.
Signed-off-by: Wendy Liang <jliang@xilinx.com>
Move the resource tables to common
Signed-off-by: Wendy Liang <jliang@xilinx.com>
Signed-off-by: Wendy Liang <jliang@xilinx.com>
remove MASTER macro
Macro MAMSTER is not used, remove it.
Signed-off-by: Wendy Liang <jliang@xilinx.com>
Macro MAMSTER is not used, remove it.
Signed-off-by: Wendy Liang <jliang@xilinx.com>
Add REMOTERPROC_MASTER
Use REMOTEPROC_MASTER to define if the applicaiton is
remoteproc master
Signed-off-by: Wendy Liang <jliang@xilinx.com>
Use REMOTEPROC_MASTER to define if the applicaiton is
remoteproc master
Signed-off-by: Wendy Liang <jliang@xilinx.com>
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>
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>
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>
Move OpenAMP source files into lib/ directory.
Porting/ is not necessary, move porting/system/ to system/
Signed-off-by: Wendy Liang <jliang@xilinx.com>
Move porting/system/ to system/
extra porting/ directory is not required.
Signed-off-by: Wendy Liang <jliang@xilinx.com>
extra porting/ directory is not required.
Signed-off-by: Wendy Liang <jliang@xilinx.com>
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>
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>
Remove unused zynq7 Makefiles
Remove unused zynq7 Makefiles in the buildling extra libs directory.
Signed-off-by: Wendy Liang <jliang@xilinx.com>
Remove unused zynq7 Makefiles in the buildling extra libs directory.
Signed-off-by: Wendy Liang <jliang@xilinx.com>
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>
Leave xil_standalone_lib only in the zymqmp_r5 extra libs
directory.
Signed-off-by: Wendy Liang <jliang@xilinx.com>
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>
Move files in the subdirectories under common/ directly under
common/
Signed-off-by: Wendy Liang <jliang@xilinx.com>
Move linker scripts to apps/
Move the example linker scripts to apps/ directory
Signed-off-by: Wendy Liang <jliang@xilinx.com>
Move the example linker scripts to apps/ directory
Signed-off-by: Wendy Liang <jliang@xilinx.com>
Rename baremetal to generic
Signed-off-by: Wendy Liang <jliang@xilinx.com>
Signed-off-by: Wendy Liang <jliang@xilinx.com>
Merge platform.h and baremetal.h
Merge platform and baremeta.h into machine.h
Signed-off-by: Wendy Liang <jliang@xilinx.com>
Merge platform and baremeta.h into machine.h
Signed-off-by: Wendy Liang <jliang@xilinx.com>
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>
It is not required to include the platform.h in the
platform_info.c file.
Signed-off-by: Wendy Liang <jliang@xilinx.com>
Makefile.commons:Set default OpenAMP home dir
Signed-off-by: Wendy Liang <jliang@xilinx.com>
Signed-off-by: Wendy Liang <jliang@xilinx.com>
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>
Move zynqmp_r5 baremetal.c to OpenAMP lib instead
of building it as a separate lib.
Signed-off-by: Wendy Liang <jliang@xilinx.com>
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>
Include the zynq7 baremetal in the OpenAMP lib
instead of building it as a separate lib.
Signed-off-by: Wendy Liang <jliang@xilinx.com>
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>
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>
Rename zc702evk to zynq7
Signed-off-by: Wendy Liang <jliang@xilinx.com>
Signed-off-by: Wendy Liang <jliang@xilinx.com>
Rename zynqMP_r5 to zynqmp_r5
Signed-off-by: Wendy Liang <jliang@xilinx.com>
Signed-off-by: Wendy Liang <jliang@xilinx.com>
Remove unused Makefiles
Remove Makefiles which are not used.
Signed-off-by: Wendy Liang <jliang@xilinx.com>
Remove Makefiles which are not used.
Signed-off-by: Wendy Liang <jliang@xilinx.com>
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>
The platform_info.c application specific.
Move it to apps/ directory.
Signed-off-by: Wendy Liang <jliang@xilinx.com>
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>
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>
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>
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>
Introduce system
Use system for target OS.
Signed-off-by: Wendy Liang <jliang@xilinx.com>
Use system for target OS.
Signed-off-by: Wendy Liang <jliang@xilinx.com>
Introduce machine
Introduce machine for hardware specific implementation.
A machine is specific to a hardware platform.
Signed-off-by: Wendy Liang <jliang@xilinx.com>
Introduce machine for hardware specific implementation.
A machine is specific to a hardware platform.
Signed-off-by: Wendy Liang <jliang@xilinx.com>
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>
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>
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>
Remove mem barrier definition since it is already defined in
platform.h
Signed-off-by: Wendy Liang <jliang@xilinx.com>
Makefile.commons:Set default OpenAMP home
Set default OpenAMP home directory if it is not set.
Signed-off-by: Wendy Liang <jliang@xilinx.com>
Set default OpenAMP home directory if it is not set.
Signed-off-by: Wendy Liang <jliang@xilinx.com>
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>
Move the OS/platform Makefile to OS/platform directory
Signed-off-by: Wendy Liang <jliang@xilinx.com>
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>
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>
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>
Move platform specific implementation out of bm_env.c
and into each platform.
Signed-off-by: Wendy Liang <jliang@xilinx.com>
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>
Keep all the zynqMP_r5 remoteproc internal implementation
inside the platform.c.
Signed-off-by: Wendy Liang <jliang@xilinx.com>
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
Keep internal Zynq platform.c implementation
inside the file.
Signed-off-by: Wendy Liang <jliang@xilinx.com>
Conflicts:
porting/zc702evk/platform.c
Move headers to include/
Use include/ for all the headers
Signed-off-by: Wendy Liang <jliang@xilinx.com>
Use include/ for all the headers
Signed-off-by: Wendy Liang <jliang@xilinx.com>
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>
porting/config is to implementation firmware parsing.
Move it to common/firmware
Signed-off-by: Wendy Liang <jliang@xilinx.com>
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
Only firmware related implementation is left
in porting/config/config.h
Signed-off-by: Wendy Liang <jliang@xilinx.com>
Conflicts:
porting/config/config.h
Remove firmware from gitignore
The firmware is going to be a directory for parsing firmware.
Signed-off-by: Wendy Liang <jliang@xilinx.com>
The firmware is going to be a directory for parsing firmware.
Signed-off-by: Wendy Liang <jliang@xilinx.com>
Covert to Linux indentation
Signed-off-by: Wendy Liang <jliang@xilinx.com>
Signed-off-by: Wendy Liang <jliang@xilinx.com>
Covert to Linux file format
Signed-off-by: Wendy Liang <jliang@xilinx.com>
Signed-off-by: Wendy Liang <jliang@xilinx.com>
Packed macros renaming
Introduce packet struct macros for supported compilers
see https://github.com/OpenAMP/open-amp/pull/9
see https://github.com/OpenAMP/open-amp/pull/9
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>
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>
Move memory barrier define from bm_env.c to baremetal.h
Signed-off-by: Wendy Liang <jliang@xilinx.com>
Signed-off-by: Wendy Liang <jliang@xilinx.com>
porting: zynqMP_r5: correct copyright
Add Mentor copyright back
Signed-off-by: Wendy Liang <jliang@xilinx.com>
Add Mentor copyright back
Signed-off-by: Wendy Liang <jliang@xilinx.com>
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>
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>
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>
Need to run wmb() before kick another processor in order to
make sure memory operations' finished.
Signed-off-by: Wendy Liang <jliang@xilinx.com>
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>
Since PMU occupies default APU IPI, use PL0 IPI for OpenAMP APU
Signed-off-by: Wendy Liang <jliang@xilinx.com>
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>
Since toolchain prefix has been changed, the make files
are updated to reflect the changes
Signed-off-by: Wendy Liang <jliang@xilinx.com>
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>
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>
libs:zynqMP_r5:baremetal: Add xil_mpu.h to includes
Missing xil_mpu.h from includes
Signed-off-by: Wendy Liang <jliang@xilinx.com>
Missing xil_mpu.h from includes
Signed-off-by: Wendy Liang <jliang@xilinx.com>