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
3a27f6e0
Commit
3a27f6e0
authored
Jul 28, 2010
by
Marek Vasut
Committed by
Eric Miao
Aug 05, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ARM] pxa/balloon3: Add MAX1586 PMIC support
Signed-off-by:
Marek Vasut
<
marek.vasut@gmail.com
>
parent
e6a8ef54
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
55 additions
and
0 deletions
+55
-0
arch/arm/mach-pxa/balloon3.c
arch/arm/mach-pxa/balloon3.c
+55
-0
No files found.
arch/arm/mach-pxa/balloon3.c
View file @
3a27f6e0
...
...
@@ -29,6 +29,7 @@
#include <linux/i2c/pcf857x.h>
#include <linux/mtd/nand.h>
#include <linux/mtd/physmap.h>
#include <linux/regulator/max1586.h>
#include <asm/setup.h>
#include <asm/mach-types.h>
...
...
@@ -679,6 +680,59 @@ static void __init balloon3_nand_init(void)
static
inline
void
balloon3_nand_init
(
void
)
{}
#endif
/******************************************************************************
* Core power regulator
******************************************************************************/
#if defined(CONFIG_REGULATOR_MAX1586) || \
defined(CONFIG_REGULATOR_MAX1586_MODULE)
static
struct
regulator_consumer_supply
balloon3_max1587a_consumers
[]
=
{
{
.
supply
=
"vcc_core"
,
}
};
static
struct
regulator_init_data
balloon3_max1587a_v3_info
=
{
.
constraints
=
{
.
name
=
"vcc_core range"
,
.
min_uV
=
900000
,
.
max_uV
=
1705000
,
.
always_on
=
1
,
.
valid_ops_mask
=
REGULATOR_CHANGE_VOLTAGE
,
},
.
consumer_supplies
=
balloon3_max1587a_consumers
,
.
num_consumer_supplies
=
ARRAY_SIZE
(
balloon3_max1587a_consumers
),
};
static
struct
max1586_subdev_data
balloon3_max1587a_subdevs
[]
=
{
{
.
name
=
"vcc_core"
,
.
id
=
MAX1586_V3
,
.
platform_data
=
&
balloon3_max1587a_v3_info
,
}
};
static
struct
max1586_platform_data
balloon3_max1587a_info
=
{
.
subdevs
=
balloon3_max1587a_subdevs
,
.
num_subdevs
=
ARRAY_SIZE
(
balloon3_max1587a_subdevs
),
.
v3_gain
=
MAX1586_GAIN_R24_3k32
,
/* 730..1550 mV */
};
static
struct
i2c_board_info
__initdata
balloon3_pi2c_board_info
[]
=
{
{
I2C_BOARD_INFO
(
"max1586"
,
0x14
),
.
platform_data
=
&
balloon3_max1587a_info
,
},
};
static
void
__init
balloon3_pmic_init
(
void
)
{
pxa27x_set_i2c_power_info
(
NULL
);
i2c_register_board_info
(
1
,
ARRAY_AND_SIZE
(
balloon3_pi2c_board_info
));
}
#else
static
inline
void
balloon3_pmic_init
(
void
)
{}
#endif
/******************************************************************************
* Machine init
******************************************************************************/
...
...
@@ -699,6 +753,7 @@ static void __init balloon3_init(void)
balloon3_mmc_init
();
balloon3_nand_init
();
balloon3_nor_init
();
balloon3_pmic_init
();
balloon3_ts_init
();
balloon3_udc_init
();
balloon3_uhc_init
();
...
...
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