Page 1 of 1

QSPI Auxiliary Functionality

Posted: Tue Apr 24, 2018 4:46 pm
by steved
The QSPI devices I've looked at have some auxiliary functionality - a multi-byte unique ID, and a certain amount of OTP memory.

Any thoughts on how this could best be exposed to the outside world?

My initial thought is a single ioctl()-like interface, to make it simple to add additional options later.

Re: QSPI Auxiliary Functionality

Posted: Tue Apr 24, 2018 5:45 pm
by Giovanni
Hi,

It is already possible to send custom commands by calling the inner functions, currently there is no official API, it could be an idea.

Giovanni

Re: QSPI Auxiliary Functionality

Posted: Thu May 03, 2018 1:34 pm
by steved
I implemented this using the threatened ioctl()-like interface, as the attached.
Mostly to give some ideas - maybe add a pointer in the VMT to the ioctl() routine. And there are some other error codes which could usefully be added.

Re: QSPI Auxiliary Functionality

Posted: Wed Jul 24, 2019 9:24 am
by steved
Just revisiting this - any comments?

Re: QSPI Auxiliary Functionality

Posted: Wed Jul 24, 2019 5:51 pm
by Giovanni
Not yet, I will do another pass on the flash driver later, I am on another thing right now.

Giovanni

Re: QSPI Auxiliary Functionality

Posted: Wed Jul 24, 2019 9:08 pm
by steved
No problem; I'll stick with what I've got for now (or maybe generalise it a bit)