From c31e0c62b14d0fc651d31c93863fe6a421a3f78a Mon Sep 17 00:00:00 2001
From: Simon Glass <sjg@chromium.org>
Date: Sun, 16 Oct 2022 15:56:56 -0600
Subject: [PATCH] BuR: ronetix: siemens: Drop old LCD code

This relies on the old LCD implementation which is to be removed. Drop it.

Signed-off-by: Simon Glass <sjg@chromium.org>
---
 board/BuR/common/common.c     |  1 -
 board/ronetix/pm9263/pm9263.c | 17 -----------------
 include/configs/pxm2.h        |  5 -----
 3 files changed, 23 deletions(-)

diff --git a/board/BuR/common/common.c b/board/BuR/common/common.c
index c6126e251e..3c78020bf9 100644
--- a/board/BuR/common/common.c
+++ b/board/BuR/common/common.c
@@ -14,7 +14,6 @@
 #include <env.h>
 #include <fdtdec.h>
 #include <i2c.h>
-#include <lcd.h>
 #include <asm/global_data.h>
 #include <linux/delay.h>
 #include "bur_common.h"
diff --git a/board/ronetix/pm9263/pm9263.c b/board/ronetix/pm9263/pm9263.c
index 8684e5229d..84926cdc68 100644
--- a/board/ronetix/pm9263/pm9263.c
+++ b/board/ronetix/pm9263/pm9263.c
@@ -69,20 +69,6 @@ static void pm9263_nand_hw_init(void)
 }
 #endif
 
-#ifdef CONFIG_LCD
-
-static void pm9263_lcd_hw_init(void)
-{
-	/* Power Control */
-	at91_set_pio_output(AT91_PIO_PORTA, 22, 1);
-	at91_set_pio_value(AT91_PIO_PORTA, 22, 0);	/* power down */
-
-	gd->fb_base = ATMEL_BASE_SRAM0;
-
-}
-
-#endif /* CONFIG_LCD */
-
 int board_early_init_f(void)
 {
 	return 0;
@@ -101,9 +87,6 @@ int board_init(void)
 #endif
 #ifdef CONFIG_USB_OHCI_NEW
 	at91_uhp_hw_init();
-#endif
-#ifdef CONFIG_LCD
-	pm9263_lcd_hw_init();
 #endif
 	return 0;
 }
diff --git a/include/configs/pxm2.h b/include/configs/pxm2.h
index 4f24b13f50..586a7edcbb 100644
--- a/include/configs/pxm2.h
+++ b/include/configs/pxm2.h
@@ -18,11 +18,6 @@
 #define DDR_IOCTRL_VAL		0x18b
 #define DDR_PLL_FREQ		266
 
-#define BOARD_DFU_BUTTON_GPIO	59
-#define BOARD_LCD_POWER		111
-#define BOARD_BACK_LIGHT	112
-#define BOARD_TOUCH_POWER	57
-
 #define CONFIG_ENV_SETTINGS_BUTTONS_AND_LEDS \
 	"button_dfu0=59\0" \
 	"led0=117,0,1\0" \
-- 
2.39.5