Re: [RFC] Provide a generic interface for getting the SOC ID and version


Liu, Baohong
 

Hi Andrew,

-----Original Message-----
From: Boie, Andrew P
Sent: Friday, July 15, 2016 10:56 AM
To: Liu, Baohong <baohong.liu(a)intel.com>; devel(a)lists.zephyrproject.org
Subject: RE: [RFC] Provide a generic interface for getting the SOC ID and
version

Good questions. My understanding the main idea is the scalability on
reading these information from registers at run time vs. hardcoding them
at build time.
Scalability across HW with the same binary is not one of Zephyr's goals. We
really try to do everything at build time to make the OS as small and fast as
possible. This is why dynamic interrupts were removed, for example.

So given a choice between doing something at runtime or coding it at build
time, to date the preference has been for the latter.
Actually that's not what this API meant to achieve. Some confusion in the text;
the purpose is to provide a generic API for retrieving this information. How the information
is obtained is implementation detail and in fact, As much possible should be build time
decided as you pointe it out.


Andrew

Join devel@lists.zephyrproject.org to automatically receive all group messages.