Changeset c52a968 in rtems


Ignore:
Timestamp:
Nov 2, 2017, 10:20:56 AM (18 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
4b055e23
Parents:
81fd79d
git-author:
Sebastian Huber <sebastian.huber@…> (11/02/17 10:20:56)
git-committer:
Sebastian Huber <sebastian.huber@…> (11/02/17 10:23:59)
Message:

bsp/imx: Implement bsp_reset()

Update #3090.

Location:
c/src/lib/libbsp/arm/imx
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/imx/Makefile.am

    r81fd79d rc52a968  
    4949include_arm_freescale_imx_HEADERS += include/arm/freescale/imx/imx_srcreg.h
    5050include_arm_freescale_imx_HEADERS += include/arm/freescale/imx/imx_uartreg.h
     51include_arm_freescale_imx_HEADERS += include/arm/freescale/imx/imx_wdogreg.h
    5152
    5253###############################################################################
  • c/src/lib/libbsp/arm/imx/preinstall.am

    r81fd79d rc52a968  
    164164PREINSTALL_FILES += $(PROJECT_INCLUDE)/arm/freescale/imx/imx_uartreg.h
    165165
     166$(PROJECT_INCLUDE)/arm/freescale/imx/imx_wdogreg.h: include/arm/freescale/imx/imx_wdogreg.h $(PROJECT_INCLUDE)/arm/freescale/imx/$(dirstamp)
     167        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/arm/freescale/imx/imx_wdogreg.h
     168PREINSTALL_FILES += $(PROJECT_INCLUDE)/arm/freescale/imx/imx_wdogreg.h
     169
    166170$(PROJECT_LIB)/start.$(OBJEXT): start.$(OBJEXT) $(PROJECT_LIB)/$(dirstamp)
    167171        $(INSTALL_DATA) $< $(PROJECT_LIB)/start.$(OBJEXT)
  • c/src/lib/libbsp/arm/imx/startup/bspreset.c

    r81fd79d rc52a968  
    1515#include <bsp/bootcard.h>
    1616
     17#include <arm/freescale/imx/imx_wdogreg.h>
     18
    1719void bsp_reset(void)
    1820{
    19   /* TODO */
     21  volatile uint16_t *pcr;
     22
     23  pcr = (volatile uint16_t *) 0x30280000;
     24  *pcr &= ~WDOG_CR_SRS;
     25  *pcr &= ~WDOG_CR_SRS;
     26  *pcr &= ~WDOG_CR_SRS;
     27
     28  while (true) {
     29    /* Wait */
     30  }
    2031}
Note: See TracChangeset for help on using the changeset viewer.