Skip to content

Conversation

@junaidaslamRS
Copy link
Collaborator

@junaidaslamRS junaidaslamRS commented Jul 24, 2024

  • DMA IP works ok as Memory mapped reading of external flash via DMA produced successful results as shown in the image below. GPT Also Working fine.
    image

Copy link

@rahul-r-shah-pub rahul-r-shah-pub left a comment

Choose a reason for hiding this comment

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

Some changes and some things to discuss

examples for andes_v5_ae350 DMA instance
dma0: dma0@f0c00000 {
compatible = "andestech,atcdmac300";

Choose a reason for hiding this comment

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

Suggested change
compatible = "andestech,atcdmac300";
compatible = "andestech,atcdmac100";

};

spi0: spi@A0800000 {
compatible = "andestech,atcspi200";

Choose a reason for hiding this comment

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

This file name in the code hierarchy is andestech.atcspi200.yaml, it should be andestech,atcspi200.yaml. Notice the full-stop should be replaced by comma

Copy link
Collaborator

@rahul-r-shah rahul-r-shah left a comment

Choose a reason for hiding this comment

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

Last of reviews done, couple of changes

printf("%s flash has status disabled...%s\n", ATTR_ERR,ATTR_RST);
} else {
printf("%s flash Object is Created. Initialize to Test Via DMA%s\n", ATTR_INF,ATTR_RST);
if(flash != NULL) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we need this extra check? Youve already check this above flash == NULL, or do you mean to be checking for DMA here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Actually now we dont need it now. Earlier i was doing deferred initialization of flash. There it was needed. that extra initialization line is removed. I will remove this.


struct __attribute__((packed, aligned(4))) chain_block {
uint32_t ctrl;
uint32_t srcaddrl;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Hey, whats the 'l' at the end of srcaddr?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

in ATCDMAC300 we have low and high registers. I removed all the srcaddrh type variables and left srcaddrl type. May be i can rename it to remove this l part as well.

Copy link
Collaborator

@rahul-r-shah rahul-r-shah left a comment

Choose a reason for hiding this comment

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

LGTM

@rahul-r-shah rahul-r-shah merged commit d677273 into virgo_soc_support Aug 18, 2024
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.

4 participants