2015-04-11 07:44:37 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2013-2015 Wind River Systems, Inc.
|
|
|
|
*
|
2017-01-19 09:01:01 +08:00
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
2015-04-11 07:44:37 +08:00
|
|
|
*/
|
|
|
|
|
2015-12-04 23:09:39 +08:00
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
* @brief System/hardware module for ti_lm3s6965 platform
|
|
|
|
*
|
2015-10-21 00:42:33 +08:00
|
|
|
* This module provides routines to initialize and support board-level hardware
|
|
|
|
* for the ti_lm3s6965 platform.
|
2015-07-02 05:22:39 +08:00
|
|
|
*/
|
2015-04-11 07:44:37 +08:00
|
|
|
|
2016-12-23 21:35:34 +08:00
|
|
|
#include <kernel.h>
|
2015-07-15 01:28:51 +08:00
|
|
|
#include <device.h>
|
|
|
|
#include <init.h>
|
2015-12-17 21:54:35 +08:00
|
|
|
#include <soc.h>
|
2015-04-11 07:44:37 +08:00
|
|
|
|
2016-03-09 05:13:02 +08:00
|
|
|
#include <arch/cpu.h>
|
2015-04-11 07:44:37 +08:00
|
|
|
|
2015-07-02 05:22:39 +08:00
|
|
|
/**
|
|
|
|
*
|
2015-07-02 05:51:40 +08:00
|
|
|
* @brief Perform basic hardware initialization
|
2015-07-02 05:22:39 +08:00
|
|
|
*
|
|
|
|
* Initialize the interrupt controller device drivers and the
|
|
|
|
* integrated 16550-compatible UART device driver.
|
|
|
|
* Also initialize the timer device driver, if required.
|
|
|
|
*
|
2015-07-15 01:28:51 +08:00
|
|
|
* @return 0
|
2015-07-02 05:22:39 +08:00
|
|
|
*/
|
2015-04-11 07:44:37 +08:00
|
|
|
|
2020-05-01 02:33:38 +08:00
|
|
|
static int ti_lm3s6965_init(const struct device *arg)
|
2015-04-11 07:44:37 +08:00
|
|
|
{
|
2015-07-15 01:28:51 +08:00
|
|
|
ARG_UNUSED(arg);
|
2015-04-21 15:52:13 +08:00
|
|
|
|
|
|
|
/* Install default handler that simply resets the CPU
|
|
|
|
* if configured in the kernel, NOP otherwise
|
|
|
|
*/
|
|
|
|
NMI_INIT();
|
2015-07-15 01:28:51 +08:00
|
|
|
return 0;
|
2015-04-11 07:44:37 +08:00
|
|
|
}
|
2015-07-15 01:28:51 +08:00
|
|
|
|
2016-11-09 03:06:55 +08:00
|
|
|
SYS_INIT(ti_lm3s6965_init, PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
|