summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/shared/src/bsp-uboot-board-info.c
blob: 5d2564f8981576cc0b019ad63d054cb9759213fb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
 * Copyright (c) 2010 embedded brains GmbH.  All rights reserved.
 *
 *  embedded brains GmbH
 *  Obere Lagerstr. 30
 *  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>

bd_t bsp_uboot_board_info;

void bsp_uboot_copy_board_info(const bd_t *src)
{
  const int *s = (const int *) src;
  int *d = (int *) &bsp_uboot_board_info;
  int i = 0;
  int n = sizeof(*src) / sizeof(int);

  for (i = 0; i < n; ++i) {
    d [i] = s [i];
  }
}