* [U-Boot] [PATCH] omap3_logic: Enable libfdt in SPL
@ 2017-11-22 16:28 Adam Ford
2017-11-29 14:10 ` Adam Ford
0 siblings, 1 reply; 2+ messages in thread
From: Adam Ford @ 2017-11-22 16:28 UTC (permalink / raw)
To: u-boot
This commit enables libfdt in SPL and removes manual MMC and serial
driver manuipluation during SPL building.
Signed-off-by: Adam Ford <aford173@gmail.com>
diff --git a/board/logicpd/omap3som/omap3logic.c b/board/logicpd/omap3som/omap3logic.c
index 1da9e38..3d6f3f8 100644
--- a/board/logicpd/omap3som/omap3logic.c
+++ b/board/logicpd/omap3som/omap3logic.c
@@ -40,21 +40,6 @@
DECLARE_GLOBAL_DATA_PTR;
-/* This is only needed until SPL gets OF support */
-#ifdef CONFIG_SPL_BUILD
-static const struct ns16550_platdata omap3logic_serial = {
- .base = OMAP34XX_UART1,
- .reg_shift = 2,
- .clock = V_NS16550_CLK,
- .fcr = UART_FCR_DEFVAL,
-};
-
-U_BOOT_DEVICE(omap3logic_uart) = {
- "ns16550_serial",
- &omap3logic_serial
-};
-#endif
-
/*
* two dimensional array of strucures containining board name and Linux
* machine IDs; row it selected based on CPU column is slected based
diff --git a/configs/omap3_logic_defconfig b/configs/omap3_logic_defconfig
index 8801268..8678271 100644
--- a/configs/omap3_logic_defconfig
+++ b/configs/omap3_logic_defconfig
@@ -55,3 +55,4 @@ CONFIG_USB_GADGET_VENDOR_NUM=0x0451
CONFIG_USB_GADGET_PRODUCT_NUM=0xd022
CONFIG_USB_ETHER=y
CONFIG_BCH=y
+CONFIG_SPL_OF_LIBFDT=y
diff --git a/include/configs/omap3_logic.h b/include/configs/omap3_logic.h
index 3ecfb58..29a9f70 100644
--- a/include/configs/omap3_logic.h
+++ b/include/configs/omap3_logic.h
@@ -17,21 +17,6 @@
#include <configs/ti_omap3_common.h>
-#ifdef CONFIG_SPL_BUILD
-/*
- * Disable MMC DM for SPL build and can be re-enabled after adding
- * DM support in SPL
- */
-#undef CONFIG_DM_MMC
-#undef OMAP_HSMMC_USE_GPIO
-
-/* select serial console configuration for SPL */
-#undef CONFIG_CONS_INDEX
-#define CONFIG_CONS_INDEX 1
-#define CONFIG_SYS_NS16550_COM1 OMAP34XX_UART1
-#endif
-
-
/*
* We are only ever GP parts and will utilize all of the "downloaded image"
* area in SRAM which starts at 0x40200000 and ends at 0x4020FFFF (64KB) in
--
2.7.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [U-Boot] [PATCH] omap3_logic: Enable libfdt in SPL
2017-11-22 16:28 [U-Boot] [PATCH] omap3_logic: Enable libfdt in SPL Adam Ford
@ 2017-11-29 14:10 ` Adam Ford
0 siblings, 0 replies; 2+ messages in thread
From: Adam Ford @ 2017-11-29 14:10 UTC (permalink / raw)
To: u-boot
On Wed, Nov 22, 2017 at 10:28 AM, Adam Ford <aford173@gmail.com> wrote:
> This commit enables libfdt in SPL and removes manual MMC and serial
> driver manuipluation during SPL building.
>
I guess I will NAK my own work. I think I misunderstood what was
going on here, and it's not what I thought.
Sorry for the noise.
adam
> Signed-off-by: Adam Ford <aford173@gmail.com>
>
> diff --git a/board/logicpd/omap3som/omap3logic.c b/board/logicpd/omap3som/omap3logic.c
> index 1da9e38..3d6f3f8 100644
> --- a/board/logicpd/omap3som/omap3logic.c
> +++ b/board/logicpd/omap3som/omap3logic.c
> @@ -40,21 +40,6 @@
>
> DECLARE_GLOBAL_DATA_PTR;
>
> -/* This is only needed until SPL gets OF support */
> -#ifdef CONFIG_SPL_BUILD
> -static const struct ns16550_platdata omap3logic_serial = {
> - .base = OMAP34XX_UART1,
> - .reg_shift = 2,
> - .clock = V_NS16550_CLK,
> - .fcr = UART_FCR_DEFVAL,
> -};
> -
> -U_BOOT_DEVICE(omap3logic_uart) = {
> - "ns16550_serial",
> - &omap3logic_serial
> -};
> -#endif
> -
> /*
> * two dimensional array of strucures containining board name and Linux
> * machine IDs; row it selected based on CPU column is slected based
> diff --git a/configs/omap3_logic_defconfig b/configs/omap3_logic_defconfig
> index 8801268..8678271 100644
> --- a/configs/omap3_logic_defconfig
> +++ b/configs/omap3_logic_defconfig
> @@ -55,3 +55,4 @@ CONFIG_USB_GADGET_VENDOR_NUM=0x0451
> CONFIG_USB_GADGET_PRODUCT_NUM=0xd022
> CONFIG_USB_ETHER=y
> CONFIG_BCH=y
> +CONFIG_SPL_OF_LIBFDT=y
> diff --git a/include/configs/omap3_logic.h b/include/configs/omap3_logic.h
> index 3ecfb58..29a9f70 100644
> --- a/include/configs/omap3_logic.h
> +++ b/include/configs/omap3_logic.h
> @@ -17,21 +17,6 @@
>
> #include <configs/ti_omap3_common.h>
>
> -#ifdef CONFIG_SPL_BUILD
> -/*
> - * Disable MMC DM for SPL build and can be re-enabled after adding
> - * DM support in SPL
> - */
> -#undef CONFIG_DM_MMC
> -#undef OMAP_HSMMC_USE_GPIO
> -
> -/* select serial console configuration for SPL */
> -#undef CONFIG_CONS_INDEX
> -#define CONFIG_CONS_INDEX 1
> -#define CONFIG_SYS_NS16550_COM1 OMAP34XX_UART1
> -#endif
> -
> -
> /*
> * We are only ever GP parts and will utilize all of the "downloaded image"
> * area in SRAM which starts at 0x40200000 and ends at 0x4020FFFF (64KB) in
> --
> 2.7.4
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-11-29 14:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-22 16:28 [U-Boot] [PATCH] omap3_logic: Enable libfdt in SPL Adam Ford
2017-11-29 14:10 ` Adam Ford
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox