diff mbox series

[U-Boot,02/12] board/BuR/common: drop simple-framebuffer setup

Message ID 1530884489-28089-3-git-send-email-oe5hpm@oevsv.at
State Accepted
Commit dc36b657956324de451bbf3bd318de03e25ac5b2
Delegated to: Tom Rini
Headers show
Series Refactor bur board/common code | expand

Commit Message

Hannes Schmelzer July 6, 2018, 1:41 p.m. UTC
The linux systems running on the brppt1 targets are using modern DRM
drivers since long time ago. Further we are going to drop the LCD
support completely on this board, so the simple-framebuffer setup
becomes obsolete.

Signed-off-by: Hannes Schmelzer <oe5hpm@oevsv.at>
---

 board/BuR/common/common.c | 26 --------------------------
 1 file changed, 26 deletions(-)

Comments

Tom Rini July 20, 2018, 12:36 p.m. UTC | #1
On Fri, Jul 06, 2018 at 03:41:19PM +0200, Hannes Schmelzer wrote:

> The linux systems running on the brppt1 targets are using modern DRM
> drivers since long time ago. Further we are going to drop the LCD
> support completely on this board, so the simple-framebuffer setup
> becomes obsolete.
> 
> Signed-off-by: Hannes Schmelzer <oe5hpm@oevsv.at>

Applied to u-boot/master, thanks!
diff mbox series

Patch

diff --git a/board/BuR/common/common.c b/board/BuR/common/common.c
index 98132b7..29430e9 100644
--- a/board/BuR/common/common.c
+++ b/board/BuR/common/common.c
@@ -28,7 +28,6 @@ 
 #include <lcd.h>
 #include "bur_common.h"
 #include "../../../drivers/video/am335x-fb.h"
-#include <fdt_simplefb.h>
 
 static struct ctrl_dev *cdev = (struct ctrl_dev *)CTRL_DEVICE_BASE;
 
@@ -171,31 +170,6 @@  int ft_board_setup(void *blob, bd_t *bd)
 		puts("set bootloader version 'bl-version' prop. not in dtb!\n");
 		return -1;
 	}
-	/*
-	 * if no simplefb is requested through environment, we don't set up
-	 * one, instead we turn off backlight.
-	 */
-	if (env_get_ulong("simplefb", 10, 0) == 0) {
-		lcdbacklight(0);
-		return 0;
-	}
-	/* Setup simplefb devicetree node, also adapt memory-node,
-	 * upper limit for kernel e.g. linux is memtop-framebuffer alligned
-	 * to a full megabyte.
-	 */
-	u64 start = gd->bd->bi_dram[0].start;
-	u64 size = (gd->fb_base - start) & ~0xFFFFF;
-	int rc = fdt_fixup_memory_banks(blob, &start, &size, 1);
-
-	if (rc) {
-		puts("cannot setup simplefb: Error reserving memory!\n");
-		return rc;
-	}
-	rc = lcd_dt_simplefb_enable_existing_node(blob);
-	if (rc) {
-		puts("cannot setup simplefb: error enabling simplefb node!\n");
-		return rc;
-	}
 
 	return 0;
 }