📄 bbuboot.c
字号:
/******************************************************************************
**
** COPYRIGHT (C) 2002 Intel Corporation.
**
** This software as well as the software described in it is furnished under
** license and may only be used or copied in accordance with the terms of the
** license. The information in this file is furnished for informational use
** only, is subject to change without notice, and should not be construed as
** a commitment by Intel Corporation. Intel Corporation assumes no
** responsibility or liability for any errors or inaccuracies that may appear
** in this document or any software that may be provided in association with
** this document.
** Except as permitted by such license, no part of this document may be
** reproduced, stored in a retrieval system, or transmitted in any form or by
** any means without the express written consent of Intel Corporation.
**
** FILENAME: BBUBoot.c
**
** PURPOSE: This file contains the Bulverde Keypad POST code for
** the Intel(r) XScale(tm) Microarchitecture.
**
** LAST MODIFIED: $Modtime: 7/17/03 1:01p $
******************************************************************************/
/*
*******************************************************************************
* HEADER FILES
*******************************************************************************
*/
#include "string.h"
#include "stdio.h"
#include <stdlib.h>
#include <ctype.h>
#include "systypes.h"
#include "timedelays.h"
#include "dm_errors.h"
#include "xsuart.h"
#include "xsffuart.h"
#include "xsbtuart.h"
#include "xsstuart.h"
#include "uarts.h"
#include "DM_SerialInOut.h"
#include "dm_debug.h"
#include "platform.h"
#include "XsMemCtrl.h"
#include "boardcontrol.h"
#include "xsClkMgr.h"
/*
*******************************************************************************
* GLOBAL DEFINITIONS
*******************************************************************************
*/
/*
*******************************************************************************
* LOCAL DEFINITIONS
*******************************************************************************
*/
/*
*******************************************************************************
* Mainstone Platform Registers for the Keypad
*******************************************************************************
*/
#define MISC_WRITE1 (*(volatile UINT32 *) 0x08000080)
/*
*******************************************************************************
*
* FUNCTION:
* PostBBU
*
* DESCRIPTION:
* Reboot the system - which will bring up the BBU program as long as the platform
* switches are set to boot the BBU code!
*
* INPUT PARAMETERS:
* None.
*
* RETURNS:
* None
*
* GLOBAL EFFECTS:
* None.
*
* ASSUMPTIONS:
* None.
*
* CALLS:
* None.
*
* CALLED BY:
* Post main function.
*
* PROTOTYPE:
* int PostBBU(void);
*
*******************************************************************************
*/
int PostBBU(void)
{
printf(" Be sure platform switches are set for BBU boot!\r\n");
printf(" ......Booting BBU\r\n");
MISC_WRITE1 = 1; // Set the platform reset bit
return (0); // The code should never get here.... but just in case - do a return
}
void KPostBBU(PVOID arg, PCHAR param)
{
PostBBU();
}
// end of PostKeypadTest()
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -