From 4abc4d1e2c5c1097704ace444c3f59ccf05bae78 Mon Sep 17 00:00:00 2001 From: Chirayu Desai Date: Sat, 23 Nov 2013 14:27:28 +0530 Subject: powerpc/mpc55xxevb: Move startup/reset.c to startup/bspreset.c --- c/src/lib/libbsp/powerpc/mpc55xxevb/Makefile.am | 2 +- .../libbsp/powerpc/mpc55xxevb/startup/bspreset.c | 38 ++++++++++++++++++++++ .../lib/libbsp/powerpc/mpc55xxevb/startup/reset.c | 38 ---------------------- 3 files changed, 39 insertions(+), 39 deletions(-) create mode 100644 c/src/lib/libbsp/powerpc/mpc55xxevb/startup/bspreset.c delete mode 100644 c/src/lib/libbsp/powerpc/mpc55xxevb/startup/reset.c diff --git a/c/src/lib/libbsp/powerpc/mpc55xxevb/Makefile.am b/c/src/lib/libbsp/powerpc/mpc55xxevb/Makefile.am index ad1f92e9cb..5412b4ca36 100644 --- a/c/src/lib/libbsp/powerpc/mpc55xxevb/Makefile.am +++ b/c/src/lib/libbsp/powerpc/mpc55xxevb/Makefile.am @@ -77,7 +77,7 @@ libbsp_a_SOURCES += startup/bspstart.c libbsp_a_SOURCES += startup/bspworkareainit.c libbsp_a_SOURCES += startup/exc-vector-base.S libbsp_a_SOURCES += startup/get-system-clock.c -libbsp_a_SOURCES += startup/reset.c +libbsp_a_SOURCES += startup/bspreset.c libbsp_a_SOURCES += startup/restart.c libbsp_a_SOURCES += startup/idle-thread.c libbsp_a_SOURCES += startup/start-config-clock.c diff --git a/c/src/lib/libbsp/powerpc/mpc55xxevb/startup/bspreset.c b/c/src/lib/libbsp/powerpc/mpc55xxevb/startup/bspreset.c new file mode 100644 index 0000000000..386ddb0613 --- /dev/null +++ b/c/src/lib/libbsp/powerpc/mpc55xxevb/startup/bspreset.c @@ -0,0 +1,38 @@ +/** + * @file + * + * @ingroup mpc55xx + * + * @brief BSP reset. + */ + +/* + * Copyright (c) 2011 embedded brains GmbH. All rights reserved. + * + * embedded brains GmbH + * Obere Lagerstr. 30 + * 82178 Puchheim + * Germany + * + * + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * http://www.rtems.com/license/LICENSE. + */ + +#include + +#include + +#include + +void bsp_reset(void) +{ + while (true) { + #if MPC55XX_CHIP_FAMILY == 564 + /* TODO */ + #else + SIU.SRCR.R = 1U << (31 - 0); + #endif + } +} diff --git a/c/src/lib/libbsp/powerpc/mpc55xxevb/startup/reset.c b/c/src/lib/libbsp/powerpc/mpc55xxevb/startup/reset.c deleted file mode 100644 index 386ddb0613..0000000000 --- a/c/src/lib/libbsp/powerpc/mpc55xxevb/startup/reset.c +++ /dev/null @@ -1,38 +0,0 @@ -/** - * @file - * - * @ingroup mpc55xx - * - * @brief BSP reset. - */ - -/* - * Copyright (c) 2011 embedded brains GmbH. All rights reserved. - * - * embedded brains GmbH - * Obere Lagerstr. 30 - * 82178 Puchheim - * Germany - * - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - */ - -#include - -#include - -#include - -void bsp_reset(void) -{ - while (true) { - #if MPC55XX_CHIP_FAMILY == 564 - /* TODO */ - #else - SIU.SRCR.R = 1U << (31 - 0); - #endif - } -} -- cgit v1.2.3