Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
1e8081da
Commit
1e8081da
authored
Oct 25, 2013
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'spi/topic/butterfly' into spi-next
parents
dd8c26f0
ac8ed236
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
drivers/spi/spi-butterfly.c
drivers/spi/spi-butterfly.c
+6
-7
No files found.
drivers/spi/spi-butterfly.c
View file @
1e8081da
...
...
@@ -147,8 +147,8 @@ static void butterfly_chipselect(struct spi_device *spi, int value)
/* we only needed to implement one mode here, and choose SPI_MODE_0 */
#define
spidelay(X) do{}while
(0)
/
/#define spidelay ndelay
#define
spidelay(X) do { } while
(0)
/
* #define spidelay ndelay */
#include "spi-bitbang-txrx.h"
...
...
@@ -171,15 +171,15 @@ static struct mtd_partition partitions[] = { {
/* sector 0 = 8 pages * 264 bytes/page (1 block)
* sector 1 = 248 pages * 264 bytes/page
*/
.
name
=
"bookkeeping"
,
/
/ 66 KB
.
name
=
"bookkeeping"
,
/
* 66 KB */
.
offset
=
0
,
.
size
=
(
8
+
248
)
*
264
,
// .mask_flags = MTD_WRITEABLE,
/* .mask_flags = MTD_WRITEABLE, */
},
{
/* sector 2 = 256 pages * 264 bytes/page
* sectors 3-5 = 512 pages * 264 bytes/page
*/
.
name
=
"filesystem"
,
/
/ 462 KB
.
name
=
"filesystem"
,
/
* 462 KB */
.
offset
=
MTDPART_OFS_APPEND
,
.
size
=
MTDPART_SIZ_FULL
,
}
};
...
...
@@ -209,7 +209,7 @@ static void butterfly_attach(struct parport *p)
* and no way to be selective about what it binds to.
*/
master
=
spi_alloc_master
(
dev
,
sizeof
*
pp
);
master
=
spi_alloc_master
(
dev
,
sizeof
(
*
pp
)
);
if
(
!
master
)
{
status
=
-
ENOMEM
;
goto
done
;
...
...
@@ -289,7 +289,6 @@ static void butterfly_attach(struct parport *p)
pr_debug
(
"%s: dataflash at %s
\n
"
,
p
->
name
,
dev_name
(
&
pp
->
dataflash
->
dev
));
// dev_info(_what?_, ...)
pr_info
(
"%s: AVR Butterfly
\n
"
,
p
->
name
);
butterfly
=
pp
;
return
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment