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
e598e471
Commit
e598e471
authored
Mar 29, 2015
by
Ralf Baechle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MIPS: SEAD3: Use symbolic addresses from sead-addr.h in I2C driver.
Signed-off-by:
Ralf Baechle
<
ralf@linux-mips.org
>
parent
fbacc8df
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
arch/mips/mti-sead3/sead3-i2c-drv.c
arch/mips/mti-sead3/sead3-i2c-drv.c
+6
-3
No files found.
arch/mips/mti-sead3/sead3-i2c-drv.c
View file @
e598e471
...
...
@@ -4,6 +4,7 @@
* for more details.
*
* Copyright (C) 2012 MIPS Technologies, Inc. All rights reserved.
* Copyright (C) 2015 Imagination Technologies, Inc.
*/
#include <linux/init.h>
#include <linux/module.h>
...
...
@@ -12,6 +13,8 @@
#include <linux/i2c.h>
#include <linux/platform_device.h>
#include <asm/mips-boards/sead3-addr.h>
#define PIC32_I2CxCON 0x0000
#define PIC32_I2CCON_ON (1<<15)
#define PIC32_I2CCON_ACKDT (1<<5)
...
...
@@ -35,14 +38,14 @@
static
DEFINE_SPINLOCK
(
pic32_bus_lock
);
static
void
__iomem
*
bus_xfer
=
(
void
__iomem
*
)
0xbf000600
;
static
void
__iomem
*
bus_status
=
(
void
__iomem
*
)
0xbf000060
;
static
void
__iomem
*
bus_xfer
=
(
void
__iomem
*
)
SEAD3_PIC32_REGISTERS
;
static
void
__iomem
*
bus_status
=
(
void
__iomem
*
)
SEAD3_PI_PIC32_USB_STATUS
;
#define DELAY() udelay(100)
static
inline
unsigned
int
ioready
(
void
)
{
return
readl
(
bus_status
)
&
1
;
return
readl
(
bus_status
)
&
SEAD3_PI_PIC32_USB_STATUS_IO_RDY
;
}
static
inline
void
wait_ioready
(
void
)
...
...
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