projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[adm5120] update trxsplit
[openwrt.git]
/
target
/
linux
/
adm5120-2.6
/
files
/
arch
/
mips
/
adm5120
/
boards
/
compex.c
diff --git
a/target/linux/adm5120-2.6/files/arch/mips/adm5120/boards/compex.c
b/target/linux/adm5120-2.6/files/arch/mips/adm5120/boards/compex.c
index
bbc5106
..
7a48cb0
100644
(file)
--- a/
target/linux/adm5120-2.6/files/arch/mips/adm5120/boards/compex.c
+++ b/
target/linux/adm5120-2.6/files/arch/mips/adm5120/boards/compex.c
@@
-46,7
+46,7
@@
static void switch_bank_gpio5(unsigned bank)
static void wp54_reset(void)
{
static void wp54_reset(void)
{
- gpio_
direction_output
(ADM5120_GPIO_PIN3, 0);
+ gpio_
set_value
(ADM5120_GPIO_PIN3, 0);
}
static struct mtd_partition wp54g_wrt_partitions[] = {
}
static struct mtd_partition wp54g_wrt_partitions[] = {
@@
-78,6
+78,7
@@
static struct platform_device *wp54_devices[] __initdata = {
static void __init np2xg_setup(void)
{
gpio_request(ADM5120_GPIO_PIN5, NULL); /* for flash A20 line */
static void __init np2xg_setup(void)
{
gpio_request(ADM5120_GPIO_PIN5, NULL); /* for flash A20 line */
+ gpio_direction_output(ADM5120_GPIO_PIN5, 0);
/* setup data for flash0 device */
adm5120_flash0_data.switch_bank = switch_bank_gpio5;
/* setup data for flash0 device */
adm5120_flash0_data.switch_bank = switch_bank_gpio5;
@@
-88,7
+89,11
@@
static void __init np2xg_setup(void)
static void __init wp54_setup(void)
{
gpio_request(ADM5120_GPIO_PIN5, NULL); /* for flash A20 line */
static void __init wp54_setup(void)
{
gpio_request(ADM5120_GPIO_PIN5, NULL); /* for flash A20 line */
+ gpio_direction_output(ADM5120_GPIO_PIN5, 0);
+
gpio_request(ADM5120_GPIO_PIN3, NULL); /* for system reset */
gpio_request(ADM5120_GPIO_PIN3, NULL); /* for system reset */
+ gpio_direction_output(ADM5120_GPIO_PIN3, 1);
+
/* setup data for flash0 device */
adm5120_flash0_data.switch_bank = switch_bank_gpio5;
/* setup data for flash0 device */
adm5120_flash0_data.switch_bank = switch_bank_gpio5;
@@
-99,7
+104,10
@@
static void __init wp54_setup(void)
static void __init wp54_wrt_setup(void)
{
gpio_request(ADM5120_GPIO_PIN5, NULL); /* for flash A20 line */
static void __init wp54_wrt_setup(void)
{
gpio_request(ADM5120_GPIO_PIN5, NULL); /* for flash A20 line */
+ gpio_direction_output(ADM5120_GPIO_PIN5, 0);
+
gpio_request(ADM5120_GPIO_PIN3, NULL); /* for system reset */
gpio_request(ADM5120_GPIO_PIN3, NULL); /* for system reset */
+ gpio_direction_output(ADM5120_GPIO_PIN3, 1);
/* setup data for flash0 device */
adm5120_flash0_data.switch_bank = switch_bank_gpio5;
/* setup data for flash0 device */
adm5120_flash0_data.switch_bank = switch_bank_gpio5;
This page took
0.025973 seconds
and
4
git commands to generate.