<feed xmlns='http://www.w3.org/2005/Atom'>
<title>u-boot.git/board/mediatek, branch master</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cgit.235523.xyz/u-boot.git/atom/board/mediatek?h=master</id>
<link rel='self' href='http://cgit.235523.xyz/u-boot.git/atom/board/mediatek?h=master'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/'/>
<updated>2026-06-24T15:06:16Z</updated>
<entry>
<title>arm: mediatek: mt7988: fix gd-&gt;bd-&gt;bi_dram[0].size</title>
<updated>2026-06-24T15:06:16Z</updated>
<author>
<name>David Lechner</name>
<email>dlechner@baylibre.com</email>
</author>
<published>2026-06-15T19:23:34Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=3b7adad0b5223422d9993e08faa9c879c023742d'/>
<id>urn:sha1:3b7adad0b5223422d9993e08faa9c879c023742d</id>
<content type='text'>
Use board_get_usable_ram_top() instead of get_effective_memsize() to
set gd-&gt;ram_top to something &lt;= 4GiB.

Both board_get_usable_ram_top() and get_effective_memsize() are used to
set gd-&gt;ram_top in setup_dest_addr(). However, get_effective_memsize()
also sets gd-&gt;bd-&gt;bi_dram[0].size in dram_init_banksize(), which is
undesirable.

Prior to commit bddd6bbef3dc ("arm: mediatek: mt7988:
drop dram_init_banksize()"), gd-&gt;bd-&gt;bi_dram[0].size was overridden in
a board-specific dram_init_banksize() implementation. When that was
removed get_effective_memsize() set gd-&gt;bd-&gt;bi_dram[0].size to the wrong
value because of CFG_MAX_MEM_MAPPED.

Rather than continue to use an old-style CFG_ option and the potentially
confusing overriding of gd-&gt;bd-&gt;bi_dram[0].size (it is difficult to see
which order the functions that set it are called), we can just use
board_get_usable_ram_top() to set gd-&gt;ram_top to the correct value
instead. This is possible now, thanks to LMB_LIMIT_DMA_BELOW_RAM_TOP
being set by default for 64-bit Mediatek ARM SoCs.

The CFG_MAX_MEM_MAPPED option is removed since it is no longer needed.
The config header and Kconfig option are also removed since that was
the last CFG_ option.

Reported-by: Rudy Andram &lt;rmandrad@gmail.com&gt;
Closes: https://lore.kernel.org/u-boot/20260602162233.2418471-1-rmandrad@gmail.com/
Fixes: bddd6bbef3dc ("arm: mediatek: mt7988: drop dram_init_banksize()")
Link: https://patch.msgid.link/20260615-mtk-fix-ram-size-v2-4-f72cfc52ce58@baylibre.com
Signed-off-by: David Lechner &lt;dlechner@baylibre.com&gt;
</content>
</entry>
<entry>
<title>arm: mediatek: mt7987: fix gd-&gt;bd-&gt;bi_dram[0].size</title>
<updated>2026-06-24T15:06:16Z</updated>
<author>
<name>David Lechner</name>
<email>dlechner@baylibre.com</email>
</author>
<published>2026-06-15T19:23:33Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=c074950b489957931296bc1efdb5e19f6f64e9a5'/>
<id>urn:sha1:c074950b489957931296bc1efdb5e19f6f64e9a5</id>
<content type='text'>
Use board_get_usable_ram_top() instead of get_effective_memsize() to
set gd-&gt;ram_top to something &lt;= 4GiB.

Both board_get_usable_ram_top() and get_effective_memsize() are used to
set gd-&gt;ram_top in setup_dest_addr(). However, get_effective_memsize()
also sets gd-&gt;bd-&gt;bi_dram[0].size in dram_init_banksize(), which is
undesirable.

Prior to commit 56183fb025c2 ("arm: mediatek: mt7987: drop
dram_init_banksize()"), gd-&gt;bd-&gt;bi_dram[0].size was overridden in
a board-specific dram_init_banksize() implementation. When that was
removed get_effective_memsize() set gd-&gt;bd-&gt;bi_dram[0].size to the wrong
value because of CFG_MAX_MEM_MAPPED.

Rather than continue to use an old-style CFG_ option and the potentially
confusing overriding of gd-&gt;bd-&gt;bi_dram[0].size (it is difficult to see
which order the functions that set it are called), we can just use
board_get_usable_ram_top() to set gd-&gt;ram_top to the correct value
instead. This is possible now, thanks to LMB_LIMIT_DMA_BELOW_RAM_TOP
being set by default for 64-bit Mediatek ARM SoCs.

On mt7987, there is already an implementation of
board_get_usable_ram_top() for other reasons, so it is modified to
also limit ram_top to 4GiB (mt7987 is currently the only thing that
sets CONFIG_MTK_TZ_MOVABLE=y so it is safe to change this here without
unintentional side-effects).

The CFG_MAX_MEM_MAPPED option is removed since it is no longer needed.
The config header and Kconfig option are also removed since that was
the last CFG_ option.

Fixes: 56183fb025c2 ("arm: mediatek: mt7987: drop dram_init_banksize()")
Link: https://patch.msgid.link/20260615-mtk-fix-ram-size-v2-3-f72cfc52ce58@baylibre.com
Signed-off-by: David Lechner &lt;dlechner@baylibre.com&gt;
</content>
</entry>
<entry>
<title>configs: mt7622: remove empty header file</title>
<updated>2026-04-29T14:02:16Z</updated>
<author>
<name>Weijie Gao</name>
<email>weijie.gao@mediatek.com</email>
</author>
<published>2026-04-28T03:36:25Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=3c14cd8388dad4c93c24fac53a7b6d21bc81765c'/>
<id>urn:sha1:3c14cd8388dad4c93c24fac53a7b6d21bc81765c</id>
<content type='text'>
Remove the empty include/configs/mt7622.h header file as it is not needed.
The Kconfig entry that referenced it is also removed.

Signed-off-by: Weijie Gao &lt;weijie.gao@mediatek.com&gt;
Link: https://patch.msgid.link/20260428033625.109032-1-weijie.gao@mediatek.com
Signed-off-by: David Lechner &lt;dlechner@baylibre.com&gt;
</content>
</entry>
<entry>
<title>config: mediatek: add UFS defconfigs for Genio 520/720 EVKs</title>
<updated>2026-04-17T22:05:54Z</updated>
<author>
<name>David Lechner</name>
<email>dlechner@baylibre.com</email>
</author>
<published>2026-03-30T20:42:18Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=c09e994585cccffbda1264766a48db627761027c'/>
<id>urn:sha1:c09e994585cccffbda1264766a48db627761027c</id>
<content type='text'>
Add variants of the Genio 520/720 EVK defconfigs for UFS boot. These
have a different devicetree when the boot DIP switches/jumpers on the
EVK are set for UFS instead of eMMC. These also enable UFS and related
drivers that aren't enabled in the eMMC defconfigs since UFS is
disconnected in that case.

Reviewed-by: Macpaul Lin &lt;macpaul.lin@mediatek.com&gt;
Link: https://patch.msgid.link/20260330-mtk-genio-720-ufs-v1-6-3bad8362ed70@baylibre.com
Signed-off-by: David Lechner &lt;dlechner@baylibre.com&gt;
</content>
</entry>
<entry>
<title>arm: dts: mediatek: add UFS variant of Genio 520/720 EVK</title>
<updated>2026-04-17T22:05:54Z</updated>
<author>
<name>David Lechner</name>
<email>dlechner@baylibre.com</email>
</author>
<published>2026-03-30T20:42:17Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=58a60707ae07a6896d68195e81685d7b62fee50a'/>
<id>urn:sha1:58a60707ae07a6896d68195e81685d7b62fee50a</id>
<content type='text'>
Add a devicetree overlay and UFS variants of the Genio 520 and Genio 720
EVK devicetree targets. There are dip switches and jumpers on the EVK
that disconnect the eMMC and connect the UFS instead. The overlay
adjusts the devicetree for this.

Reviewed-by: Macpaul Lin &lt;macpaul.lin@mediatek.com&gt;
Link: https://patch.msgid.link/20260330-mtk-genio-720-ufs-v1-5-3bad8362ed70@baylibre.com
Signed-off-by: David Lechner &lt;dlechner@baylibre.com&gt;
</content>
</entry>
<entry>
<title>configs: add new defconfig for mt8395_genio_1200_evk_ufs</title>
<updated>2026-04-17T22:05:54Z</updated>
<author>
<name>Julien Stephan</name>
<email>jstephan@baylibre.com</email>
</author>
<published>2026-03-18T16:51:01Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=a69b77da4879e237ed703606b682e8a062bf5772'/>
<id>urn:sha1:a69b77da4879e237ed703606b682e8a062bf5772</id>
<content type='text'>
This new defconfig is based on mt8395_genio_1200_evk_defconfig, with
additional configs for UFS.  In order to avoid duplicating defconfig, we
introduce configs/mt8195.config.

Signed-off-by: Julien Stephan &lt;jstephan@baylibre.com&gt;
Link: https://patch.msgid.link/20260318-mt8195-add-ufs-support-v2-9-f18eeeeb0e72@baylibre.com
Signed-off-by: David Lechner &lt;dlechner@baylibre.com&gt; [moved PMIC enable to mt8195.config]
</content>
</entry>
<entry>
<title>arm: dts: add U-Boot overrides for Genio 520 and 720 SD card</title>
<updated>2026-04-07T16:07:44Z</updated>
<author>
<name>David Lechner</name>
<email>dlechner@baylibre.com</email>
</author>
<published>2026-03-16T21:55:15Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=fbd4bd3a1e4dd0f1fc1ef37c9694c4165edfabb3'/>
<id>urn:sha1:fbd4bd3a1e4dd0f1fc1ef37c9694c4165edfabb3</id>
<content type='text'>
Add U-Boot-specific device tree overrides for the Genio 520 and 720 EVK
boards. These are needed to enable SD card support in U-Boot due to
current driver limitations. It is expected that these files will remain
after eventually converting these to CONFIG_OF_UPSTREAM, so we use
separate .u-boot.dtsi files for this.

Reviewed-by: Julien Stephan &lt;jstephan@baylibre.com&gt;
Link: https://patch.msgid.link/20260316-mtk-ext-mmc-boot-v1-2-1aae51a44705@baylibre.com
Signed-off-by: David Lechner &lt;dlechner@baylibre.com&gt;
</content>
</entry>
<entry>
<title>board: mediatek: Add Genio 520/720 EVK defconfigs</title>
<updated>2026-04-07T15:57:00Z</updated>
<author>
<name>Chris-QJ Chen</name>
<email>chris-qj.chen@mediatek.com</email>
</author>
<published>2026-03-23T20:16:57Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=ed53a7b2a6d3f7b5400881246d463fd9faf829a7'/>
<id>urn:sha1:ed53a7b2a6d3f7b5400881246d463fd9faf829a7</id>
<content type='text'>
Add basic defconfigs for Genio 520 and 720 EVKs.

Signed-off-by: Chris-QJ Chen &lt;chris-qj.chen@mediatek.com&gt;
Signed-off-by: Macpaul Lin &lt;macpaul.lin@mediatek.com&gt;
Reviewed-by: Julien Stephan &lt;jstephan@baylibre.com&gt;
Reviewed-by: Macpaul Lin &lt;macpaul.lin@mediatek.com&gt;
Link: https://patch.msgid.link/20260323-mtk-mt8391-initial-support-v3-6-19dd92f4543f@baylibre.com
Signed-off-by: David Lechner &lt;dlechner@baylibre.com&gt;
</content>
</entry>
<entry>
<title>configs: mt8370/mt8390/mt8395 add myself as maintainer</title>
<updated>2026-04-06T23:39:11Z</updated>
<author>
<name>Julien Stephan</name>
<email>jstephan@baylibre.com</email>
</author>
<published>2026-03-18T16:45:28Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=6db02cfebf68f23e690517fe788fd628746d068b'/>
<id>urn:sha1:6db02cfebf68f23e690517fe788fd628746d068b</id>
<content type='text'>
Set myself as maintainer for the following genio boards:
- mt8370-genio-510-evk
- mt8393-genio-700-evk
- mt8395-genio-1200-evk

Signed-off-by: Julien Stephan &lt;jstephan@baylibre.com&gt;
Link: https://patch.msgid.link/20260318-rename-genio-defconfigs-v2-6-1f77580d72f3@baylibre.com
Signed-off-by: David Lechner &lt;dlechner@baylibre.com&gt;
</content>
</entry>
<entry>
<title>configs: mt8370/mt8390: introduce mt8188.config to avoid duplication</title>
<updated>2026-04-06T23:39:11Z</updated>
<author>
<name>Julien Stephan</name>
<email>jstephan@baylibre.com</email>
</author>
<published>2026-03-18T16:45:27Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=f72ecf8edb183f242736f9665531103c528c1561'/>
<id>urn:sha1:f72ecf8edb183f242736f9665531103c528c1561</id>
<content type='text'>
mt8370_genio_510_evk_defconfig and mt8390_genio_700_evk_defconfig are
both based on MT8188, add a new mt8188.config file to share common
config.

Signed-off-by: Julien Stephan &lt;jstephan@baylibre.com&gt;
Link: https://patch.msgid.link/20260318-rename-genio-defconfigs-v2-5-1f77580d72f3@baylibre.com
Signed-off-by: David Lechner &lt;dlechner@baylibre.com&gt;
</content>
</entry>
</feed>
