BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mangoh-drivers
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
mangoh-drivers
Commits
5b11e6c6
Commit
5b11e6c6
authored
Jan 21, 2019
by
Zahid Chowdhury
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
By default this chip output's square waves at 32768 Hz - set it to 0 instead
parent
6214266d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
rtc-pcf85063.c
linux_kernel_modules/rtc-pcf85063/rtc-pcf85063.c
+11
-2
No files found.
linux_kernel_modules/rtc-pcf85063/rtc-pcf85063.c
View file @
5b11e6c6
...
...
@@ -49,10 +49,10 @@
#define PCF85063_REG_YR 0x0A
/* Lookup for square-wave clkout frequencies */
#define NUM_FREQUENCIES
7
#define NUM_FREQUENCIES
8
static
const
int
clkout_freq_table
[
NUM_FREQUENCIES
][
2
]
=
{
{
32768
,
0
},
{
16384
,
1
},
{
8192
,
2
},
{
4096
,
3
},
{
2048
,
4
},
{
1024
,
5
},
{
1
,
6
}
{
2048
,
4
},
{
1024
,
5
},
{
1
,
6
}
,
{
0
,
7
}
};
static
struct
i2c_driver
pcf85063_driver
;
...
...
@@ -334,6 +334,15 @@ static int pcf85063_probe(struct i2c_client *client,
goto
exit
;
}
/* By default this chip output's square waves at 32768 Hz - let's
* set to off or COF[2:0] == 7
*/
err
=
i2c_smbus_write_byte_data
(
client
,
PCF85063_REG_CTRL2
,
(
u8
)
0x7
);
if
(
err
)
{
dev_err
(
&
client
->
dev
,
"Failed to write register PCF85063_REG_CTRL2
\n
"
);
goto
exit
;
}
err
=
pcf85063_sysfs_register
(
&
client
->
dev
);
if
(
err
)
goto
exit
;
...
...
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