<feed xmlns='http://www.w3.org/2005/Atom'>
<title>u-boot.git/board/phytec/common, branch v2024.04</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cgit.235523.xyz/u-boot.git/atom/board/phytec/common?h=v2024.04</id>
<link rel='self' href='http://cgit.235523.xyz/u-boot.git/atom/board/phytec/common?h=v2024.04'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/'/>
<updated>2024-03-17T20:59:11Z</updated>
<entry>
<title>board: phytec: define get_som_type also when SoM detection is disabled</title>
<updated>2024-03-17T20:59:11Z</updated>
<author>
<name>Benjamin Hahn</name>
<email>B.Hahn@phytec.de</email>
</author>
<published>2024-03-12T09:39:11Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=e1897784aa9e8dec30ad1067c1107dbd287e5024'/>
<id>urn:sha1:e1897784aa9e8dec30ad1067c1107dbd287e5024</id>
<content type='text'>
define the phytec_get_som_type function also when the SoM detection is
disabled.

Fixes:
commit 110d321a56c3 ("board: phytec: common: phytec_som_detection: Add phytec_get_som_type")

Signed-off-by: Benjamin Hahn &lt;B.Hahn@phytec.de&gt;
</content>
</entry>
<entry>
<title>board: phytec: common: phytec_som_detection: Add phytec_get_som_type</title>
<updated>2024-03-11T11:42:44Z</updated>
<author>
<name>Benjamin Hahn</name>
<email>B.Hahn@phytec.de</email>
</author>
<published>2024-03-06T16:18:31Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=110d321a56c3ea1824104ea6148efe040adf995d'/>
<id>urn:sha1:110d321a56c3ea1824104ea6148efe040adf995d</id>
<content type='text'>
Add a function that gets the som_type from the EEPROM.
Add an enum for the som_type.

Signed-off-by: Benjamin Hahn &lt;B.Hahn@phytec.de&gt;
</content>
</entry>
<entry>
<title>board: phytec: fix link error when disabling PHYTEC_SOM_DETECTION</title>
<updated>2024-01-15T09:35:50Z</updated>
<author>
<name>Yannic Moog</name>
<email>y.moog@phytec.de</email>
</author>
<published>2024-01-15T09:31:41Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=1aebea9bde46bc123b72a7218a4fd8d99bfa2a90'/>
<id>urn:sha1:1aebea9bde46bc123b72a7218a4fd8d99bfa2a90</id>
<content type='text'>
Commit aa7858fe5e2e ("board: phytec: som_detection: move definitions to
source file") moved function definitions from header to source file.
Makefile however was not updated to unconditionally (from
[..]_SOM_DETECTION) build the imx8 and phytec som detection units.
Also remove unused includes that cause build failures on arm 32bit
boards. SoM detection shall support 32bit boards as well, but arch
specific code should not be included in the generic module.

Fixes: aa7858fe5e2e ("board: phytec: som_detection: move definitions to source file")
Signed-off-by: Yannic Moog &lt;y.moog@phytec.de&gt;
</content>
</entry>
<entry>
<title>board: phytec: phytec_som_detection: fix uninitialized bug</title>
<updated>2023-12-20T18:04:46Z</updated>
<author>
<name>Yannic Moog</name>
<email>y.moog@phytec.de</email>
</author>
<published>2023-12-20T08:45:36Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=e2449ee9680cd316a70053bb638b76e96c6578e5'/>
<id>urn:sha1:e2449ee9680cd316a70053bb638b76e96c6578e5</id>
<content type='text'>
When som_type does not match any case, it is uninitialized and the
function still tries to print the SoM info. Rather, this is an error
condition and the function should abort prematurely. Highlight this by
printing an error message and returning early.

Signed-off-by: Yannic Moog &lt;y.moog@phytec.de&gt;
</content>
</entry>
<entry>
<title>board: phytec: som_detection: move definitions to source file</title>
<updated>2023-12-20T18:04:46Z</updated>
<author>
<name>Yannic Moog</name>
<email>y.moog@phytec.de</email>
</author>
<published>2023-12-20T08:45:35Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=aa7858fe5e2ef3d74129175c4044c9bb59174b4a'/>
<id>urn:sha1:aa7858fe5e2ef3d74129175c4044c9bb59174b4a</id>
<content type='text'>
Move all function definitions in {phytec|imx8m}_som_detection from the
header to the source file to prevent potential linker error regarding
multiple definitions. Also move the #if blocks with the definitions.

Signed-off-by: Yannic Moog &lt;y.moog@phytec.de&gt;
</content>
</entry>
<entry>
<title>board: phytec: phytec_som_detection: fix eeprom_data zero check</title>
<updated>2023-12-20T18:04:46Z</updated>
<author>
<name>Yannic Moog</name>
<email>y.moog@phytec.de</email>
</author>
<published>2023-12-20T08:45:34Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=71714cda3d077b9199e3bfda8cbf0a081b0a5fa9'/>
<id>urn:sha1:71714cda3d077b9199e3bfda8cbf0a081b0a5fa9</id>
<content type='text'>
In phytec_eeprom_data_init, after reading eeprom data into buffer, it is
checked whether all bytes are 0x0 by iterating over chunks of the
buffer. The offset, or index of the chunk, was never changed, leading to
repeated comparison of only the first chunk. Use array notation and
access chunk via array index to compare all chunks of the buffer.

Signed-off-by: Yannic Moog &lt;y.moog@phytec.de&gt;
</content>
</entry>
<entry>
<title>board: phytec: imx8m_som_detection: fix uninitialized pointer bug</title>
<updated>2023-12-20T18:04:46Z</updated>
<author>
<name>Yannic Moog</name>
<email>y.moog@phytec.de</email>
</author>
<published>2023-12-20T08:45:33Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=da37f78525dc8a87a71f9e8d61eb891ba028eaec'/>
<id>urn:sha1:da37f78525dc8a87a71f9e8d61eb891ba028eaec</id>
<content type='text'>
Pointer in phytec_imx8m_detect was accessed without checking it first.
Fix this by moving the pointer check in front of any accesses.

Signed-off-by: Yannic Moog &lt;y.moog@phytec.de&gt;
</content>
</entry>
<entry>
<title>board: phytec: imx8m_som_detection: change phytec_imx8m_detect return type</title>
<updated>2023-12-20T18:04:46Z</updated>
<author>
<name>Yannic Moog</name>
<email>y.moog@phytec.de</email>
</author>
<published>2023-12-20T08:45:32Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=e2be177c8511580bab3c368e8b173135471b671e'/>
<id>urn:sha1:e2be177c8511580bab3c368e8b173135471b671e</id>
<content type='text'>
phytec_imx8m_detect returns -1 on error, but the return type is u8
leading to 255 return values. Fix this by changing the return type to
int; there is no reason to keep it as u8 .

Signed-off-by: Yannic Moog &lt;y.moog@phytec.de&gt;
</content>
</entry>
<entry>
<title>board: phytec: common: phytec_som_detection: Add helper for PCB revision</title>
<updated>2023-10-16T09:27:58Z</updated>
<author>
<name>Teresa Remmet</name>
<email>t.remmet@phytec.de</email>
</author>
<published>2023-08-17T08:57:10Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=44c82e7c90be700719a4b105ec97ff328a40d675'/>
<id>urn:sha1:44c82e7c90be700719a4b105ec97ff328a40d675</id>
<content type='text'>
Add helper function to read out the PCB revision of a PHYTEC SoM.

Signed-off-by: Teresa Remmet &lt;t.remmet@phytec.de&gt;
Reviewed-by: Yannic Moog &lt;y.moog@phytec.de&gt;
Tested-by: Yannic Moog &lt;y.moog@phytec.de&gt;
</content>
</entry>
<entry>
<title>board: phytec: common: Add imx8m specific EEPROM detection support</title>
<updated>2023-10-16T09:27:58Z</updated>
<author>
<name>Teresa Remmet</name>
<email>t.remmet@phytec.de</email>
</author>
<published>2023-08-17T08:57:07Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=a9719ef0455b7e94a610ddc8f0bb0e6acd82dbb4'/>
<id>urn:sha1:a9719ef0455b7e94a610ddc8f0bb0e6acd82dbb4</id>
<content type='text'>
Add imx8m specific detection part. Which includes checking the
EEPROM data for article number options.

Signed-off-by: Teresa Remmet &lt;t.remmet@phytec.de&gt;
Reviewed-by: Yannic Moog &lt;y.moog@phytec.de&gt;
Tested-by: Yannic Moog &lt;y.moog@phytec.de&gt;
</content>
</entry>
</feed>
