Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

openamp-xlnx: Parse non-dedicated IPIs for OpenAMP channels #1

Conversation

bentheredonethat
Copy link
Contributor

As OpenAMP uses channel information to configure IPC,
add the follwing:

  • sample ipi's in input system DT
  • parsing for ipis in openamp-xlnx assist
  • file generation in openamp-xlnx assist

Signed-off-by: Ben Levinsky ben.levinsky@xilinx.com

 As OpenAMP uses channel information to configure IPC,
 add the follwing:

 - sample ipi's in input system DT
 - parsing for ipis in  openamp-xlnx assist
 - file generation in openamp-xlnx assist

Signed-off-by: Ben Levinsky <ben.levinsky@xilinx.com>
@@ -24,6 +24,52 @@
from lopper import Lopper
from lopper import LopperFmt
import lopper
from lopper_tree import *

openamp_file_name = "openamp_lopper_gen.h"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ben, Do we think that the filename might vary ? In that case, this can be the default and we could check the options dictionary in the assist callback for a filename. That way it could passed via a lop file and changed if needed.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good point. added option to set file name via input r5 lop file in later commit

@@ -54,6 +56,30 @@
};
};
};
ps_ipi_1 {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I recall feedback that if there's a reg property in the node, the name should include the unit address, i.e. https://elinux.org/Device_Tree_Usage#Node_Names

If so, should we add some @ to these ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added unit address to name in later commit.

Ben Levinsky added 3 commits June 8, 2020 08:57
Previously header file for openamp channel was hard-coded.

Change to instead use file provided by input lop if specified

Signed-off-by: Ben Levinsky <ben.levinsky@xilinx.com>
Signed-off-by: Ben Levinsky <ben.levinsky@xilinx.com>
Signed-off-by: Ben Levinsky <ben.levinsky@xilinx.com>
@bentheredonethat
Copy link
Contributor Author

Hi Bruce,

The latest commits should resolve your comments.

Best Regards,
Ben

@zeddii
Copy link
Collaborator

zeddii commented Jun 10, 2020

merged!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants