| OLD | NEW |
| 1 /* | 1 /* |
| 2 * This file is part of the flashrom project. | 2 * This file is part of the flashrom project. |
| 3 * | 3 * |
| 4 * Copyright (C) 2010 Google, Inc. | 4 * Copyright (C) 2010 Google, Inc. |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * | 9 * |
| 10 * Redistributions of source code must retain the above copyright | 10 * Redistributions of source code must retain the above copyright |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 * LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE, | 31 * LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE, |
| 32 * EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. | 32 * EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. |
| 33 * | 33 * |
| 34 * This is an UNOFFICIAL patch for the Nuvoton WPCE775x/NPCE781x. It was tested | 34 * This is an UNOFFICIAL patch for the Nuvoton WPCE775x/NPCE781x. It was tested |
| 35 * for a specific hardware and firmware configuration and should be considered | 35 * for a specific hardware and firmware configuration and should be considered |
| 36 * unreliable. Please see the following URL for Nuvoton's authoritative, | 36 * unreliable. Please see the following URL for Nuvoton's authoritative, |
| 37 * officially supported flash update utility: | 37 * officially supported flash update utility: |
| 38 * http://sourceforge.net/projects/nuvflashupdate/ | 38 * http://sourceforge.net/projects/nuvflashupdate/ |
| 39 */ | 39 */ |
| 40 | 40 |
| 41 #if defined(__i386__) || defined(__x86_64__) |
| 41 #include <assert.h> | 42 #include <assert.h> |
| 42 #include <string.h> | 43 #include <string.h> |
| 43 #include <sys/time.h> | 44 #include <sys/time.h> |
| 44 #include <time.h> | 45 #include <time.h> |
| 45 #include <unistd.h> | 46 #include <unistd.h> |
| 46 #include <stdlib.h> | 47 #include <stdlib.h> |
| 47 #include "flash.h" | 48 #include "flash.h" |
| 48 #include "chipdrivers.h" | 49 #include "chipdrivers.h" |
| 49 #include "flashchips.h" | 50 #include "flashchips.h" |
| 50 #include "programmer.h" | 51 #include "programmer.h" |
| (...skipping 881 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 932 default: | 933 default: |
| 933 /* unsupported opcodes */ | 934 /* unsupported opcodes */ |
| 934 msg_pdbg("unsupported SPI opcode: %02x\n", opcode); | 935 msg_pdbg("unsupported SPI opcode: %02x\n", opcode); |
| 935 rc = 1; | 936 rc = 1; |
| 936 break; | 937 break; |
| 937 } | 938 } |
| 938 | 939 |
| 939 msg_pdbg("%s: opcode: 0x%02x\n", __func__, opcode); | 940 msg_pdbg("%s: opcode: 0x%02x\n", __func__, opcode); |
| 940 return rc; | 941 return rc; |
| 941 } | 942 } |
| 943 #endif |
| OLD | NEW |