Bartlomiej Sieka | 087415c | 2007-07-11 20:11:07 +0200 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2007 Schindler Lift Inc. |
| 3 | * |
| 4 | * Author: Michel Marti <mma@objectxp.com> |
| 5 | * |
Wolfgang Denk | bd8ec7e | 2013-10-07 13:07:26 +0200 | [diff] [blame] | 6 | * SPDX-License-Identifier: GPL-2.0+ |
Bartlomiej Sieka | 087415c | 2007-07-11 20:11:07 +0200 | [diff] [blame] | 7 | */ |
| 8 | |
| 9 | #ifndef __FW_UPDATE_H |
| 10 | #define __FW_UPDATE_H |
| 11 | |
| 12 | /* Default prefix for output messages */ |
Bartlomiej Sieka | a6533c8 | 2007-08-03 12:08:16 +0200 | [diff] [blame] | 13 | #define LOG_PREFIX "CM5200:" |
Bartlomiej Sieka | 087415c | 2007-07-11 20:11:07 +0200 | [diff] [blame] | 14 | |
| 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 Zundel | faf47bc | 2008-02-22 17:21:32 +0100 | [diff] [blame] | 26 | #define RS_BOOTARGS "ramdisk_size=8192K" |
Bartlomiej Sieka | 087415c | 2007-07-11 20:11:07 +0200 | [diff] [blame] | 27 | |
| 28 | /* Main function for fwupdate */ |
Bartlomiej Sieka | a6533c8 | 2007-08-03 12:08:16 +0200 | [diff] [blame] | 29 | void cm5200_fwupdate(void); |
Bartlomiej Sieka | 087415c | 2007-07-11 20:11:07 +0200 | [diff] [blame] | 30 | |
| 31 | #endif /* __FW_UPDATE_H */ |