Bartlomiej Sieka | fa1df30 | 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 | 3765b3e | 2013-10-07 13:07:26 +0200 | [diff] [blame] | 6 | * SPDX-License-Identifier: GPL-2.0+ |
Bartlomiej Sieka | fa1df30 | 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 | 86b116b | 2007-08-03 12:08:16 +0200 | [diff] [blame] | 13 | #define LOG_PREFIX "CM5200:" |
Bartlomiej Sieka | fa1df30 | 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 | e5084af | 2008-02-22 17:21:32 +0100 | [diff] [blame] | 26 | #define RS_BOOTARGS "ramdisk_size=8192K" |
Bartlomiej Sieka | fa1df30 | 2007-07-11 20:11:07 +0200 | [diff] [blame] | 27 | |
| 28 | /* Main function for fwupdate */ |
Bartlomiej Sieka | 86b116b | 2007-08-03 12:08:16 +0200 | [diff] [blame] | 29 | void cm5200_fwupdate(void); |
Bartlomiej Sieka | fa1df30 | 2007-07-11 20:11:07 +0200 | [diff] [blame] | 30 | |
| 31 | #endif /* __FW_UPDATE_H */ |