Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Side by Side Diff: wpce775x.c

Issue 6731011: Add Tegra2 SPI controller. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/flashrom.git@master
Patch Set: refine comments Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« tegra2_spi.c ('K') | « tegra2_spi.c ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« tegra2_spi.c ('K') | « tegra2_spi.c ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698