]> git.sur5r.net Git - u-boot/blobdiff - drivers/video/console_truetype.c
sunxi: revert disabling of features
[u-boot] / drivers / video / console_truetype.c
index b770ad446ea5b775fec9370702ecf48c21f7cddb..e16f95a02ce61f282caa41c4b3c46babb88291d3 100644 (file)
@@ -289,6 +289,7 @@ static int console_truetype_putc_xy(struct udevice *dev, uint x, uint y,
                }
 #endif
                default:
+                       free(data);
                        return -ENOSYS;
                }
 
@@ -444,7 +445,24 @@ struct font_info {
        .end = __ttf_ ## _name ## _end, \
        }
 
+FONT_DECL(nimbus_sans_l_regular);
+FONT_DECL(ankacoder_c75_r);
+FONT_DECL(rufscript010);
+FONT_DECL(cantoraone_regular);
+
 static struct font_info font_table[] = {
+#ifdef CONFIG_CONSOLE_TRUETYPE_NIMBUS
+       FONT_ENTRY(nimbus_sans_l_regular),
+#endif
+#ifdef CONFIG_CONSOLE_TRUETYPE_ANKACODER
+       FONT_ENTRY(ankacoder_c75_r),
+#endif
+#ifdef CONFIG_CONSOLE_TRUETYPE_RUFSCRIPT
+       FONT_ENTRY(rufscript010),
+#endif
+#ifdef CONFIG_CONSOLE_TRUETYPE_CANTORAONE
+       FONT_ENTRY(cantoraone_regular),
+#endif
        {} /* sentinel */
 };