Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
22566040
Commit
22566040
authored
Sep 16, 2009
by
Stephen Rothwell
Browse files
Options
Browse Files
Download
Plain Diff
Merge commit 'avr32/avr32-arch'
parents
453d1b11
2c731afd
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
21 deletions
+23
-21
arch/avr32/boards/atngw100/mrmt.c
arch/avr32/boards/atngw100/mrmt.c
+1
-0
arch/avr32/boards/atngw100/setup.c
arch/avr32/boards/atngw100/setup.c
+0
-5
arch/avr32/mach-at32ap/at32ap700x.c
arch/avr32/mach-at32ap/at32ap700x.c
+19
-16
arch/avr32/mach-at32ap/include/mach/board.h
arch/avr32/mach-at32ap/include/mach/board.h
+1
-0
arch/avr32/mach-at32ap/include/mach/cpu.h
arch/avr32/mach-at32ap/include/mach/cpu.h
+2
-0
No files found.
arch/avr32/boards/atngw100/mrmt.c
View file @
22566040
...
...
@@ -302,6 +302,7 @@ static int __init mrmt1_init(void)
at32_select_periph
(
GPIO_PIOB_BASE
,
1
<<
(
PB_EXTINT_BASE
+
TS_IRQ
),
GPIO_PERIPH_A
,
AT32_GPIOF_DEGLITCH
);
set_irq_type
(
AT32_EXTINT
(
TS_IRQ
),
IRQ_TYPE_EDGE_FALLING
);
at32_spi_setup_slaves
(
0
,
spi01_board_info
,
ARRAY_SIZE
(
spi01_board_info
));
spi_register_board_info
(
spi01_board_info
,
ARRAY_SIZE
(
spi01_board_info
));
#endif
...
...
arch/avr32/boards/atngw100/setup.c
View file @
22566040
...
...
@@ -56,13 +56,8 @@ static struct spi_board_info spi0_board_info[] __initdata = {
static
struct
mci_platform_data
__initdata
mci0_data
=
{
.
slot
[
0
]
=
{
.
bus_width
=
4
,
#if defined(CONFIG_BOARD_ATNGW100_EVKLCD10X) || defined(CONFIG_BOARD_ATNGW100_MRMT1)
.
detect_pin
=
GPIO_PIN_NONE
,
.
wp_pin
=
GPIO_PIN_NONE
,
#else
.
detect_pin
=
GPIO_PIN_PC
(
25
),
.
wp_pin
=
GPIO_PIN_PE
(
0
),
#endif
},
};
...
...
arch/avr32/mach-at32ap/at32ap700x.c
View file @
22566040
...
...
@@ -1181,19 +1181,32 @@ static struct resource atmel_spi1_resource[] = {
DEFINE_DEV
(
atmel_spi
,
1
);
DEV_CLK
(
spi_clk
,
atmel_spi1
,
pba
,
1
);
static
void
__init
at32_spi_setup_slaves
(
unsigned
int
bus_num
,
struct
spi_board_info
*
b
,
unsigned
int
n
,
const
u8
*
pins
)
void
__init
at32_spi_setup_slaves
(
unsigned
int
bus_num
,
struct
spi_board_info
*
b
,
unsigned
int
n
)
{
/*
* Manage the chipselects as GPIOs, normally using the same pins
* the SPI controller expects; but boards can use other pins.
*/
static
u8
__initdata
spi_pins
[][
4
]
=
{
{
GPIO_PIN_PA
(
3
),
GPIO_PIN_PA
(
4
),
GPIO_PIN_PA
(
5
),
GPIO_PIN_PA
(
20
)
},
{
GPIO_PIN_PB
(
2
),
GPIO_PIN_PB
(
3
),
GPIO_PIN_PB
(
4
),
GPIO_PIN_PA
(
27
)
},
};
unsigned
int
pin
,
mode
;
/* There are only 2 SPI controllers */
if
(
bus_num
>
1
)
return
;
for
(;
n
;
n
--
,
b
++
)
{
b
->
bus_num
=
bus_num
;
if
(
b
->
chip_select
>=
4
)
continue
;
pin
=
(
unsigned
)
b
->
controller_data
;
if
(
!
pin
)
{
pin
=
pins
[
b
->
chip_select
];
pin
=
spi_pins
[
bus_num
]
[
b
->
chip_select
];
b
->
controller_data
=
(
void
*
)
pin
;
}
mode
=
AT32_GPIOF_OUTPUT
;
...
...
@@ -1206,16 +1219,6 @@ at32_spi_setup_slaves(unsigned int bus_num, struct spi_board_info *b,
struct
platform_device
*
__init
at32_add_device_spi
(
unsigned
int
id
,
struct
spi_board_info
*
b
,
unsigned
int
n
)
{
/*
* Manage the chipselects as GPIOs, normally using the same pins
* the SPI controller expects; but boards can use other pins.
*/
static
u8
__initdata
spi0_pins
[]
=
{
GPIO_PIN_PA
(
3
),
GPIO_PIN_PA
(
4
),
GPIO_PIN_PA
(
5
),
GPIO_PIN_PA
(
20
),
};
static
u8
__initdata
spi1_pins
[]
=
{
GPIO_PIN_PB
(
2
),
GPIO_PIN_PB
(
3
),
GPIO_PIN_PB
(
4
),
GPIO_PIN_PA
(
27
),
};
struct
platform_device
*
pdev
;
u32
pin_mask
;
...
...
@@ -1228,7 +1231,7 @@ at32_add_device_spi(unsigned int id, struct spi_board_info *b, unsigned int n)
select_peripheral
(
PIOA
,
(
1
<<
0
),
PERIPH_A
,
AT32_GPIOF_PULLUP
);
select_peripheral
(
PIOA
,
pin_mask
,
PERIPH_A
,
0
);
at32_spi_setup_slaves
(
0
,
b
,
n
,
spi0_pins
);
at32_spi_setup_slaves
(
0
,
b
,
n
);
break
;
case
1
:
...
...
@@ -1239,7 +1242,7 @@ at32_add_device_spi(unsigned int id, struct spi_board_info *b, unsigned int n)
select_peripheral
(
PIOB
,
(
1
<<
0
),
PERIPH_B
,
AT32_GPIOF_PULLUP
);
select_peripheral
(
PIOB
,
pin_mask
,
PERIPH_B
,
0
);
at32_spi_setup_slaves
(
1
,
b
,
n
,
spi1_pins
);
at32_spi_setup_slaves
(
1
,
b
,
n
);
break
;
default:
...
...
arch/avr32/mach-at32ap/include/mach/board.h
View file @
22566040
...
...
@@ -49,6 +49,7 @@ at32_add_device_eth(unsigned int id, struct eth_platform_data *data);
struct
spi_board_info
;
struct
platform_device
*
at32_add_device_spi
(
unsigned
int
id
,
struct
spi_board_info
*
b
,
unsigned
int
n
);
void
at32_spi_setup_slaves
(
unsigned
int
bus_num
,
struct
spi_board_info
*
b
,
unsigned
int
n
);
struct
atmel_lcdfb_info
;
struct
platform_device
*
...
...
arch/avr32/mach-at32ap/include/mach/cpu.h
View file @
22566040
...
...
@@ -31,5 +31,7 @@
#define cpu_is_at91sam9263() (0)
#define cpu_is_at91sam9rl() (0)
#define cpu_is_at91cap9() (0)
#define cpu_is_at91sam9g10() (0)
#define cpu_is_at91sam9g45() (0)
#endif
/* __ASM_ARCH_CPU_H */
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