summaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx
diff options
context:
space:
mode:
authorjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-03-12 20:38:57 +0000
committerjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-03-12 20:38:57 +0000
commit710f4ecdd12f9fdc263cb0683b88a3348f428fbd (patch)
treeb70c3769d0947971a2725d69e5424693bc755294 /target/linux/ar71xx
parentda951178da4e4285108debcdec1d813636a2c031 (diff)
ar71xx: merge ar934x_bo_ddr_flush patch
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30912 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx')
-rw-r--r--target/linux/ar71xx/files/arch/mips/ath79/dev-eth.c17
-rw-r--r--target/linux/ar71xx/patches-3.2/710-ar934x_no_ddr_flush.patch49
-rw-r--r--target/linux/ar71xx/patches-3.3/710-ar934x_no_ddr_flush.patch49
3 files changed, 5 insertions, 110 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/dev-eth.c b/target/linux/ar71xx/files/arch/mips/ath79/dev-eth.c
index 27c8a40b6..557457f19 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/dev-eth.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/dev-eth.c
@@ -331,6 +331,10 @@ static void ar934x_set_speed_ge1(int speed)
/* TODO */
}
+static void ath79_ddr_no_flush(void)
+{
+}
+
static void ath79_ddr_flush_ge0(void)
{
ath79_ddr_wb_flush(AR71XX_DDR_REG_FLUSH_GE0);
@@ -371,16 +375,6 @@ static void ar933x_ddr_flush_ge1(void)
ath79_ddr_wb_flush(AR933X_DDR_REG_FLUSH_GE1);
}
-static void ar934x_ddr_flush_ge0(void)
-{
- ath79_ddr_wb_flush(AR934X_DDR_REG_FLUSH_GE0);
-}
-
-static void ar934x_ddr_flush_ge1(void)
-{
- ath79_ddr_wb_flush(AR934X_DDR_REG_FLUSH_GE1);
-}
-
static struct resource ath79_eth0_resources[] = {
{
.name = "mac_base",
@@ -817,17 +811,16 @@ void __init ath79_register_eth(unsigned int id)
if (id == 0) {
pdata->reset_bit = AR934X_RESET_GE0_MAC |
AR934X_RESET_GE0_MDIO;
- pdata->ddr_flush =ar934x_ddr_flush_ge0;
pdata->set_speed = ar934x_set_speed_ge0;
} else {
pdata->reset_bit = AR934X_RESET_GE1_MAC |
AR934X_RESET_GE1_MDIO;
- pdata->ddr_flush = ar934x_ddr_flush_ge1;
pdata->set_speed = ar934x_set_speed_ge1;
pdata->switch_data = &ath79_switch_data;
}
+ pdata->ddr_flush = ath79_ddr_no_flush;
pdata->has_gbit = 1;
pdata->is_ar724x = 1;
diff --git a/target/linux/ar71xx/patches-3.2/710-ar934x_no_ddr_flush.patch b/target/linux/ar71xx/patches-3.2/710-ar934x_no_ddr_flush.patch
deleted file mode 100644
index c405a7524..000000000
--- a/target/linux/ar71xx/patches-3.2/710-ar934x_no_ddr_flush.patch
+++ /dev/null
@@ -1,49 +0,0 @@
---- a/arch/mips/ath79/dev-eth.c
-+++ b/arch/mips/ath79/dev-eth.c
-@@ -331,6 +331,10 @@ static void ar934x_set_speed_ge1(int spe
- /* TODO */
- }
-
-+static void ath79_ddr_no_flush(void)
-+{
-+}
-+
- static void ath79_ddr_flush_ge0(void)
- {
- ath79_ddr_wb_flush(AR71XX_DDR_REG_FLUSH_GE0);
-@@ -371,16 +375,6 @@ static void ar933x_ddr_flush_ge1(void)
- ath79_ddr_wb_flush(AR933X_DDR_REG_FLUSH_GE1);
- }
-
--static void ar934x_ddr_flush_ge0(void)
--{
-- ath79_ddr_wb_flush(AR934X_DDR_REG_FLUSH_GE0);
--}
--
--static void ar934x_ddr_flush_ge1(void)
--{
-- ath79_ddr_wb_flush(AR934X_DDR_REG_FLUSH_GE1);
--}
--
- static struct resource ath79_eth0_resources[] = {
- {
- .name = "mac_base",
-@@ -817,17 +811,16 @@ void __init ath79_register_eth(unsigned
- if (id == 0) {
- pdata->reset_bit = AR934X_RESET_GE0_MAC |
- AR934X_RESET_GE0_MDIO;
-- pdata->ddr_flush =ar934x_ddr_flush_ge0;
- pdata->set_speed = ar934x_set_speed_ge0;
- } else {
- pdata->reset_bit = AR934X_RESET_GE1_MAC |
- AR934X_RESET_GE1_MDIO;
-- pdata->ddr_flush = ar934x_ddr_flush_ge1;
- pdata->set_speed = ar934x_set_speed_ge1;
-
- pdata->switch_data = &ath79_switch_data;
- }
-
-+ pdata->ddr_flush = ath79_ddr_no_flush;
- pdata->has_gbit = 1;
- pdata->is_ar724x = 1;
-
diff --git a/target/linux/ar71xx/patches-3.3/710-ar934x_no_ddr_flush.patch b/target/linux/ar71xx/patches-3.3/710-ar934x_no_ddr_flush.patch
deleted file mode 100644
index c405a7524..000000000
--- a/target/linux/ar71xx/patches-3.3/710-ar934x_no_ddr_flush.patch
+++ /dev/null
@@ -1,49 +0,0 @@
---- a/arch/mips/ath79/dev-eth.c
-+++ b/arch/mips/ath79/dev-eth.c
-@@ -331,6 +331,10 @@ static void ar934x_set_speed_ge1(int spe
- /* TODO */
- }
-
-+static void ath79_ddr_no_flush(void)
-+{
-+}
-+
- static void ath79_ddr_flush_ge0(void)
- {
- ath79_ddr_wb_flush(AR71XX_DDR_REG_FLUSH_GE0);
-@@ -371,16 +375,6 @@ static void ar933x_ddr_flush_ge1(void)
- ath79_ddr_wb_flush(AR933X_DDR_REG_FLUSH_GE1);
- }
-
--static void ar934x_ddr_flush_ge0(void)
--{
-- ath79_ddr_wb_flush(AR934X_DDR_REG_FLUSH_GE0);
--}
--
--static void ar934x_ddr_flush_ge1(void)
--{
-- ath79_ddr_wb_flush(AR934X_DDR_REG_FLUSH_GE1);
--}
--
- static struct resource ath79_eth0_resources[] = {
- {
- .name = "mac_base",
-@@ -817,17 +811,16 @@ void __init ath79_register_eth(unsigned
- if (id == 0) {
- pdata->reset_bit = AR934X_RESET_GE0_MAC |
- AR934X_RESET_GE0_MDIO;
-- pdata->ddr_flush =ar934x_ddr_flush_ge0;
- pdata->set_speed = ar934x_set_speed_ge0;
- } else {
- pdata->reset_bit = AR934X_RESET_GE1_MAC |
- AR934X_RESET_GE1_MDIO;
-- pdata->ddr_flush = ar934x_ddr_flush_ge1;
- pdata->set_speed = ar934x_set_speed_ge1;
-
- pdata->switch_data = &ath79_switch_data;
- }
-
-+ pdata->ddr_flush = ath79_ddr_no_flush;
- pdata->has_gbit = 1;
- pdata->is_ar724x = 1;
-