Amba device porting
Hi,
I planned to port the omap3 SDTI (Serial Debug Trace Interface) driver to amba based interface.
SDTI memory map is two parts composed:
0x54500000 0x5450FFFF 4KB SDTI module (configuration) - coresight based format. 0x54510000 0x545FFFFF 1984KB Reserved 0x54600000 0x546FFFFF 1MB SDTI module (window)
But amba interface seems to support only one memory region resource.
Is there any way to pass two memory regions?
Regards
Roman Tereshonkov
Quoted 10 lines · Roman
Hi,
I planned to port the omap3 SDTI (Serial Debug Trace Interface) driver to amba based interface.
SDTI memory map is two parts composed:
0x54500000 0x5450FFFF 4KB SDTI module (configuration) - coresight based format. 0x54510000 0x545FFFFF 1984KB Reserved 0x54600000 0x546FFFFF 1MB SDTI module (window)But amba interface seems to support only one memory region resource.
The 'amba' interface is more a primecell interface. Is SDTI a primecell peripheral? If not, then it shouldn't be using the AMBA "primecell" bus support.
Quoted 10 lines · ext Russell King - ARM Linux
Quoted 9 lines · Roman
Hi,
I planned to port the omap3 SDTI (Serial Debug Trace Interface) driver to amba based interface.
SDTI memory map is two parts composed:
0x54500000 0x5450FFFF 4KB SDTI module (configuration) - coresight based format. 0x54510000 0x545FFFFF 1984KB Reserved 0x54600000 0x546FFFFF 1MB SDTI module (window)
Quoted 5 lines
Quoted 1 line
But amba interface seems to support only one memory region resource.
The 'amba' interface is more a primecell interface. Is SDTI a primecell peripheral? If not, then it shouldn't be using the AMBA "primecell" bus support.
Yes, SDTI can be considered as a PrimeCell IP.
SDTI is the Coresight component which is the subgroup of PrimeCell.
So my question is still valid.
How does the 'amba' interface handle the fragmented memory regions?
I understand that for the right Coresight IP it should not happen and the whole register space should be continous and ended by the Peripherial and Component Ids. If I use SDTI module (window) memory region as a static definition inside driver will my patch be accepted?
Regards
Roman Tereshonkov
Quoted 17 lines · Roman
Quoted 10 lines · ext Russell King - ARM Linux
Quoted 9 lines · Roman
Hi,
I planned to port the omap3 SDTI (Serial Debug Trace Interface) driver to amba based interface.
SDTI memory map is two parts composed:
0x54500000 0x5450FFFF 4KB SDTI module (configuration) - coresight based format. 0x54510000 0x545FFFFF 1984KB Reserved 0x54600000 0x546FFFFF 1MB SDTI module (window)Quoted 5 lines
Quoted 1 line
But amba interface seems to support only one memory region resource.
The 'amba' interface is more a primecell interface. Is SDTI a primecell peripheral? If not, then it shouldn't be using the AMBA "primecell" bus support.
Quoted 5 lines
Yes, SDTI can be considered as a PrimeCell IP.
SDTI is the Coresight component which is the subgroup of PrimeCell.So my question is still valid.
How does the 'amba' interface handle the fragmented memory regions?
It doesn't. Primecells have exactly one region and only one region. So I'm confused.
Quoted 3 lines
I understand that for the right Coresight IP it should not happen and the whole register space should be continous and ended by the Peripherial and Component Ids.
Correct. It could be that this Coresight stuff just calls itself a Primecell peripheral when it isn't actually a proper Primecell. If it doesn't conform, maybe it's best that it doesn't use the AMBA bus support.
Quoted 2 lines
If I use SDTI module (window) memory region as a static definition inside driver will my patch be accepted?
That ties it firmly to the platform you created the driver for, making the driver useless on any other platform.