pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/sysutils/u-boot Align sunxi FB start to 8KB to match N...
details: https://anonhg.NetBSD.org/pkgsrc/rev/0311d59a8ea5
branches: trunk
changeset: 372850:0311d59a8ea5
user: jmcneill <jmcneill%pkgsrc.org@localhost>
date: Mon Dec 18 23:27:14 2017 +0000
description:
Align sunxi FB start to 8KB to match NetBSD arm PAGE_SIZE
diffstat:
sysutils/u-boot/distinfo | 3 +-
sysutils/u-boot/patches/patch-drivers_video_sunxi_sunxi__display.c | 26 ++++++++++
2 files changed, 28 insertions(+), 1 deletions(-)
diffs (46 lines):
diff -r 7b437c341e93 -r 0311d59a8ea5 sysutils/u-boot/distinfo
--- a/sysutils/u-boot/distinfo Mon Dec 18 21:25:12 2017 +0000
+++ b/sysutils/u-boot/distinfo Mon Dec 18 23:27:14 2017 +0000
@@ -1,10 +1,11 @@
-$NetBSD: distinfo,v 1.8 2017/11/15 22:08:27 jmcneill Exp $
+$NetBSD: distinfo,v 1.9 2017/12/18 23:27:14 jmcneill Exp $
SHA1 (u-boot-2017.11.tar.bz2) = 6a3932b39a0f165aba210663ea2500bcfb9c8794
RMD160 (u-boot-2017.11.tar.bz2) = 38e1331640b81e74ea78ebf41f94bcdbd675dcb2
SHA512 (u-boot-2017.11.tar.bz2) = 485b9ab7cea0a250d964822bdb99a8426852b4e815b506329dedc4f5a69757c8b1a812998561161d44d98f6fabb9c8937e8250de1244d258fc9f13624b38d643
Size (u-boot-2017.11.tar.bz2) = 11982382 bytes
SHA1 (patch-arch_arm_cpu_armv8_Kconfig) = 63cbbf2e3cebd46793fc03cc8e62297f6dc01aa9
+SHA1 (patch-drivers_video_sunxi_sunxi__display.c) = 0a441ed39e95b11fa621b1e8e8568e7e4f1fd33a
SHA1 (patch-include_configs_tegra-common.h) = 01b68620414f85edd029e54f7f8dc158888c4072
SHA1 (patch-lib_bch.c) = b1f1c7418f1004c151b9e5e06ab7047a1736ae47
SHA1 (patch-tools_Makefile) = adc5082d369363113135d5c892822b57ee80ff19
diff -r 7b437c341e93 -r 0311d59a8ea5 sysutils/u-boot/patches/patch-drivers_video_sunxi_sunxi__display.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/u-boot/patches/patch-drivers_video_sunxi_sunxi__display.c Mon Dec 18 23:27:14 2017 +0000
@@ -0,0 +1,26 @@
+$NetBSD: patch-drivers_video_sunxi_sunxi__display.c,v 1.1 2017/12/18 23:27:14 jmcneill Exp $
+
+Align FB address to 8KB for NetBSD/arm.
+
+--- drivers/video/sunxi/sunxi_display.c.orig 2017-11-14 01:08:06.000000000 +0000
++++ drivers/video/sunxi/sunxi_display.c
+@@ -1186,7 +1186,7 @@ void *video_hw_init(void)
+ /* We want to keep the fb_base for simplefb page aligned, where as
+ * the sunxi dma engines will happily accept an unaligned address. */
+ if (overscan_offset)
+- sunxi_display.fb_size += 0x1000;
++ sunxi_display.fb_size += 0x2000;
+
+ if (sunxi_display.fb_size > CONFIG_SUNXI_MAX_FB_SIZE) {
+ printf("Error need %dkB for fb, but only %dkB is reserved\n",
+@@ -1208,8 +1208,8 @@ void *video_hw_init(void)
+ fb_dma_addr = gd->fb_base - CONFIG_SYS_SDRAM_BASE;
+ sunxi_display.fb_addr = gd->fb_base;
+ if (overscan_offset) {
+- fb_dma_addr += 0x1000 - (overscan_offset & 0xfff);
+- sunxi_display.fb_addr += (overscan_offset + 0xfff) & ~0xfff;
++ fb_dma_addr += 0x2000 - (overscan_offset & 0x1fff);
++ sunxi_display.fb_addr += (overscan_offset + 0x1fff) & ~0x1fff;
+ memset((void *)gd->fb_base, 0, sunxi_display.fb_size);
+ flush_cache(gd->fb_base, sunxi_display.fb_size);
+ }
Home |
Main Index |
Thread Index |
Old Index