diff mbox series

[6/8] atmel: Remove CONFIG_AT91SAM9G45_LCD_BASE

Message ID 20220312040736.3537388-6-trini@konsulko.com
State Accepted
Commit b601906ed5d83ccfc2ab300d3949937af0d58861
Delegated to: Tom Rini
Headers show
Series [1/8] Convert CONFIG_AM335X_USB0 et al to Kconfig | expand

Commit Message

Tom Rini March 12, 2022, 4:07 a.m. UTC
This variable is used once and is noted as board-specific.  Use the
value directly with a comment.

Cc: Eugen Hristev <eugen.hristev@microchip.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
---
 board/atmel/at91sam9m10g45ek/at91sam9m10g45ek.c | 3 ++-
 include/configs/at91sam9m10g45ek.h              | 2 --
 2 files changed, 2 insertions(+), 3 deletions(-)

Comments

Tom Rini March 19, 2022, 1:28 a.m. UTC | #1
On Fri, Mar 11, 2022 at 11:07:34PM -0500, Tom Rini wrote:

> This variable is used once and is noted as board-specific.  Use the
> value directly with a comment.
> 
> Cc: Eugen Hristev <eugen.hristev@microchip.com>
> Signed-off-by: Tom Rini <trini@konsulko.com>

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

Patch

diff --git a/board/atmel/at91sam9m10g45ek/at91sam9m10g45ek.c b/board/atmel/at91sam9m10g45ek/at91sam9m10g45ek.c
index b1462b3e3ebd..fcca8923e38f 100644
--- a/board/atmel/at91sam9m10g45ek/at91sam9m10g45ek.c
+++ b/board/atmel/at91sam9m10g45ek/at91sam9m10g45ek.c
@@ -214,7 +214,8 @@  static void at91sam9m10g45ek_lcd_hw_init(void)
 
 	at91_periph_clk_enable(ATMEL_ID_LCDC);
 
-	gd->fb_base = CONFIG_AT91SAM9G45_LCD_BASE;
+	/* board specific(not enough SRAM) */
+	gd->fb_base = 0x73E00000;
 }
 
 #ifdef CONFIG_LCD_INFO
diff --git a/include/configs/at91sam9m10g45ek.h b/include/configs/at91sam9m10g45ek.h
index 2616ca68eb5f..31e075350fd4 100644
--- a/include/configs/at91sam9m10g45ek.h
+++ b/include/configs/at91sam9m10g45ek.h
@@ -27,8 +27,6 @@ 
 #define CONFIG_LCD_INFO_BELOW_LOGO
 #define CONFIG_ATMEL_LCD
 #define CONFIG_ATMEL_LCD_RGB565
-/* board specific(not enough SRAM) */
-#define CONFIG_AT91SAM9G45_LCD_BASE		0x73E00000
 
 /* SDRAM */
 #define CONFIG_SYS_SDRAM_BASE           0x70000000