[U-Boot] [u-boot][RFC v1] sdp4430: Initialize board id using CONFIG_MACH_TYPE

Use CONFIG_MACH_TYPE generic macro to set the machine type number in the common arm code instead of setting it in the board code.
Signed-off-by: Oleksandr Tyshchenko oleksandr.tyshchenko@ti.com --- board/ti/sdp4430/sdp.c | 1 - include/configs/omap4_sdp4430.h | 1 + 2 files changed, 1 insertion(+), 1 deletion(-)
diff --git a/board/ti/sdp4430/sdp.c b/board/ti/sdp4430/sdp.c index 5dd1ba3..9f457e7 100644 --- a/board/ti/sdp4430/sdp.c +++ b/board/ti/sdp4430/sdp.c @@ -44,7 +44,6 @@ int board_init(void) { gpmc_init();
- gd->bd->bi_arch_number = MACH_TYPE_OMAP_4430SDP; gd->bd->bi_boot_params = (0x80000000 + 0x100); /* boot param addr */
return 0; diff --git a/include/configs/omap4_sdp4430.h b/include/configs/omap4_sdp4430.h index 9e03291..9a4dea0 100644 --- a/include/configs/omap4_sdp4430.h +++ b/include/configs/omap4_sdp4430.h @@ -33,6 +33,7 @@ * High Level Configuration Options */ #define CONFIG_4430SDP 1 /* working with SDP */ +#define CONFIG_MACH_TYPE MACH_TYPE_OMAP_4430SDP
#include <configs/omap4_common.h>

On Tue, Aug 06, 2013 at 02:03:27PM +0300, Oleksandr Tyshchenko wrote:
Use CONFIG_MACH_TYPE generic macro to set the machine type number in the common arm code instead of setting it in the board code.
Signed-off-by: Oleksandr Tyshchenko oleksandr.tyshchenko@ti.com
Applied to u-boot-ti/master, thanks!

Hi Tom,
On Wed, 28 Aug 2013 14:25:25 -0400, Tom Rini trini@ti.com wrote:
On Tue, Aug 06, 2013 at 02:03:27PM +0300, Oleksandr Tyshchenko wrote:
Use CONFIG_MACH_TYPE generic macro to set the machine type number in the common arm code instead of setting it in the board code.
Signed-off-by: Oleksandr Tyshchenko oleksandr.tyshchenko@ti.com
Applied to u-boot-ti/master, thanks!
So it was not an RFC, then?
Amicalement,

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 10/03/2013 05:15 PM, Albert ARIBAUD wrote:
Hi Tom,
On Wed, 28 Aug 2013 14:25:25 -0400, Tom Rini trini@ti.com wrote:
On Tue, Aug 06, 2013 at 02:03:27PM +0300, Oleksandr Tyshchenko wrote:
Use CONFIG_MACH_TYPE generic macro to set the machine type number in the common arm code instead of setting it in the board code.
Signed-off-by: Oleksandr Tyshchenko oleksandr.tyshchenko@ti.com
Applied to u-boot-ti/master, thanks!
So it was not an RFC, then?
Yes, there was nothing really RFC-worthy here, it was a small change.
- -- Tom
participants (3)
-
Albert ARIBAUD
-
Oleksandr Tyshchenko
-
Tom Rini