forked from Imagelibrary/rtems
bsps: Move bsp-uboot-board-info.c to bsps
This patch is a part of the BSP source reorganization. Update #3285.
This commit is contained in:
@@ -92,7 +92,7 @@ librtemsbsp_a_SOURCES += ../../shared/bspclean.c
|
||||
librtemsbsp_a_SOURCES += ../../shared/bspgetworkarea.c
|
||||
librtemsbsp_a_SOURCES += ../../shared/bsppredriverhook.c
|
||||
librtemsbsp_a_SOURCES += ../../shared/sbrk.c
|
||||
librtemsbsp_a_SOURCES += ../../shared/src/bsp-uboot-board-info.c
|
||||
librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bsp-uboot-board-info.c
|
||||
librtemsbsp_a_SOURCES += ../shared/showbats.c
|
||||
librtemsbsp_a_SOURCES += ../shared/src/memcpy.c
|
||||
librtemsbsp_a_SOURCES += ../shared/startup/bspidle.c
|
||||
|
||||
@@ -41,7 +41,7 @@ librtemsbsp_a_SOURCES += ../../shared/bspclean.c
|
||||
librtemsbsp_a_SOURCES += startup/bspreset.c
|
||||
librtemsbsp_a_SOURCES += startup/bsprestart.c
|
||||
librtemsbsp_a_SOURCES += ../../shared/bspgetworkarea.c
|
||||
librtemsbsp_a_SOURCES += ../../shared/src/bsp-uboot-board-info.c
|
||||
librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bsp-uboot-board-info.c
|
||||
librtemsbsp_a_SOURCES += ../shared/uboot_getenv.c
|
||||
|
||||
# clock
|
||||
|
||||
@@ -1,32 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 2010, 2016 embedded brains GmbH. All rights reserved.
|
||||
*
|
||||
* embedded brains GmbH
|
||||
* Dornierstr. 4
|
||||
* 82178 Puchheim
|
||||
* Germany
|
||||
* <rtems@embedded-brains.de>
|
||||
*
|
||||
* The license and distribution terms for this file may be
|
||||
* found in the file LICENSE in this distribution or at
|
||||
* http://www.rtems.org/license/LICENSE.
|
||||
*/
|
||||
|
||||
#include <bsp/u-boot.h>
|
||||
|
||||
#include <string.h>
|
||||
#include <rtems.h>
|
||||
|
||||
#ifndef U_BOOT_BOARD_INFO_DATA_SECTION
|
||||
#define U_BOOT_BOARD_INFO_DATA_SECTION
|
||||
#endif
|
||||
|
||||
U_BOOT_BOARD_INFO_DATA_SECTION bd_t bsp_uboot_board_info;
|
||||
|
||||
void bsp_uboot_copy_board_info(const bd_t *src)
|
||||
{
|
||||
bd_t *dst = &bsp_uboot_board_info;
|
||||
|
||||
dst = memcpy(dst, src, sizeof(*dst));
|
||||
rtems_cache_flush_multiple_data_lines(dst, sizeof(*dst));
|
||||
}
|
||||
Reference in New Issue
Block a user