sparc: Use shared font data
authorDr. David Alan Gilbert <linux@treblig.org>
Mon, 7 Aug 2023 01:09:14 +0000 (02:09 +0100)
committerAndreas Larsson <andreas@gaisler.com>
Fri, 16 Feb 2024 15:49:58 +0000 (16:49 +0100)
commit0f1991949d9bd5cf6d4e1c490b7e9ba2d2d56d7f
tree6abbb823a053125e42520fd989167425ebf0487d
parent0955723ef93583be768c5ddc22aff11d6c3cc260
sparc: Use shared font data

sparc has a 'btext' font used for the console which is almost identical
to the shared font_sun8x16, so use it rather than duplicating the data.

They were actually identical until about a decade ago when
   commit bcfbeecea11c ("drivers: console: font_: Change a glyph from
                        "broken bar" to "vertical line"")

which changed the | in the shared font to be a solid
bar rather than a broken bar.  That's the only difference.

This was originally spotted by PMD which noticed that PPC does
the same thing with the same data, and they also share a bunch
of functions to manipulate the data.

Tested very lightly with a boot without FS in qemu.

Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Acked-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Andreas Larsson <andreas@gaisler.com>
Link: https://lore.kernel.org/r/20230807010914.799713-1-linux@treblig.org
arch/sparc/Kconfig
arch/sparc/kernel/btext.c