PetervdPerk-NXP commented on PR #18817:
URL: https://github.com/apache/nuttx/pull/18817#issuecomment-4343794775

   > I know that commenting on a PR is probably not the right place for this; 
this PR is all fine by me.
   > 
   > But a little bit related to this PR - it would be nice, if there was some 
common place in NuttX source tree for SoC specific files/drivers which are not 
specific for a specific CPU architecture. For i.MX93/95 more or less every 
driver and header file is almost a copy of each other in "arm64" and "arm". 
Only because the SoC just happens to have both Cortex-A and Cortex-M cores, but 
all the memory maps and peripherals are the same.
   > 
   > Of course, this is the way how we must do it now, when such place doesn't 
exist.
   
   I think for some drivers it could make sense, but we gotta be careful about 
architecture specific details i.e. 32-bit vs 64-bit. AARCH64 vs ARMv7, usage of 
eDMA memory mapping / translation. Different hardware erratums per chip, 
different peripheral versions/features for example LPI2C on i.MX95 is version 
1.3 with 8 fifo buffers.
   
   There are some drivers that work across chips/architectures i.e. SJA1000 
#11868 maybe you could start experimenting by converting a driver that could be 
hardware agnostic i.e. FlexCAN or FlexIO.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to