blob: ca77f89ab05a2637d00fef494189b4160811df34 [file] [log] [blame]
Bartlomiej Siekafa1df302007-07-11 20:11:07 +02001/*
2 * (C) Copyright 2007 Schindler Lift Inc.
3 *
4 * Author: Michel Marti <mma@objectxp.com>
5 *
Wolfgang Denk1a459662013-07-08 09:37:19 +02006 * SPDX-License-Identifier: GPL-2.0+
Bartlomiej Siekafa1df302007-07-11 20:11:07 +02007 */
8
9#ifndef __FW_UPDATE_H
10#define __FW_UPDATE_H
11
12/* Default prefix for output messages */
Bartlomiej Sieka86b116b2007-08-03 12:08:16 +020013#define LOG_PREFIX "CM5200:"
Bartlomiej Siekafa1df302007-07-11 20:11:07 +020014
15/* Extra debug macro */
16#ifdef CONFIG_FWUPDATE_DEBUG
17#define FW_DEBUG(fmt...) printf(LOG_PREFIX fmt)
18#else
19#define FW_DEBUG(fmt...)
20#endif
21
22/* Name of the directory holding firmware images */
23#define FW_DIR "nx-fw"
24#define RESCUE_IMAGE "nxrs.img"
25#define LOAD_ADDR 0x400000
Detlev Zundele5084af2008-02-22 17:21:32 +010026#define RS_BOOTARGS "ramdisk_size=8192K"
Bartlomiej Siekafa1df302007-07-11 20:11:07 +020027
28/* Main function for fwupdate */
Bartlomiej Sieka86b116b2007-08-03 12:08:16 +020029void cm5200_fwupdate(void);
Bartlomiej Siekafa1df302007-07-11 20:11:07 +020030
31#endif /* __FW_UPDATE_H */