Changeset 42507


Ignore:
Timestamp:
2014-09-12T08:53:43+02:00 (3 years ago)
Author:
blogic
Message:

atheros: add AR2316 and AR2318 SoCs detection

Tested with AR2315, AR2316 and AR2317 SoCs, not tested with AR2318 but
changes seems correct: revision is one more than AR2317.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@…>

Location:
trunk/target/linux/atheros/patches-3.14
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/atheros/patches-3.14/100-board.patch

    r42504 r42507  
    20972097--- /dev/null 
    20982098+++ b/arch/mips/ar231x/ar2315.c 
    2099 @@ -0,0 +1,556 @@ 
     2099@@ -0,0 +1,562 @@ 
    21002100+/* 
    21012101+ * This file is subject to the terms and conditions of the GNU General Public 
     
    26232623+       devid = ar231x_read_reg(AR2315_SREV) & AR2315_REV_CHIP; 
    26242624+       switch (devid) { 
     2625+       case 0x91:      /* Need to check */ 
     2626+               ar231x_devtype = DEV_TYPE_AR2318; 
     2627+               break; 
    26252628+       case 0x90: 
    2626 +       case 0x91: 
    26272629+               ar231x_devtype = DEV_TYPE_AR2317; 
    26282630+               break; 
     2631+       case 0x87: 
     2632+               ar231x_devtype = DEV_TYPE_AR2316; 
     2633+               break; 
     2634+       case 0x86: 
    26292635+       default: 
    26302636+               ar231x_devtype = DEV_TYPE_AR2315; 
     
    27822788--- /dev/null 
    27832789+++ b/arch/mips/ar231x/devices.h 
    2784 @@ -0,0 +1,38 @@ 
     2790@@ -0,0 +1,39 @@ 
    27852791+#ifndef __AR231X_DEVICES_H 
    27862792+#define __AR231X_DEVICES_H 
     
    27962802+       DEV_TYPE_AR2316, 
    27972803+       DEV_TYPE_AR2317, 
     2804+       DEV_TYPE_AR2318, 
    27982805+ 
    27992806+       DEV_TYPE_UNKNOWN 
     
    28232830--- /dev/null 
    28242831+++ b/arch/mips/ar231x/devices.c 
    2825 @@ -0,0 +1,180 @@ 
     2832@@ -0,0 +1,181 @@ 
    28262833+#include <linux/kernel.h> 
    28272834+#include <linux/init.h> 
     
    29322939+       [DEV_TYPE_AR2316] = "Atheros AR2316", 
    29332940+       [DEV_TYPE_AR2317] = "Atheros AR2317", 
     2941+       [DEV_TYPE_AR2318] = "Atheros AR2318", 
    29342942+       [DEV_TYPE_UNKNOWN] = "Atheros (unknown)", 
    29352943+}; 
  • trunk/target/linux/atheros/patches-3.14/105-ar2315_pci.patch

    r42506 r42507  
    383383                do_IRQ(AR2315_IRQ_MISC_INTRS); 
    384384        else if (pending & CAUSEF_IP7) 
    385 @@ -554,3 +558,18 @@ ar2315_plat_setup(void) 
     385@@ -560,3 +564,18 @@ ar2315_plat_setup(void) 
    386386        ar231x_serial_setup(AR2315_UART0, AR2315_MISC_IRQ_UART0, 
    387387                            ar2315_apb_frequency()); 
Note: See TracChangeset for help on using the changeset viewer.