Port-arm archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Change to support Pogoplug mobile.



Hi!


From: Lwazi <lwazidub%gmail.com@localhost>
Date: Sat, 23 Nov 2013 16:06:46 -0500

> These are the changes I made to support Pogoplug mobile in the
> SHEEVAPLUG kernel. Should also work for Pogoplug series 4.
> 
> Index: sys/arch/arm/marvell/mvsoc.c
> ===================================================================
> RCS file: /cvsroot/src/sys/arch/arm/marvell/mvsoc.c,v
> retrieving revision 1.13
> diff -u -r1.13 mvsoc.c
> --- sys/arch/arm/marvell/mvsoc.c    30 Sep 2013 13:19:28 -0000    1.13
> +++ sys/arch/arm/marvell/mvsoc.c    23 Nov 2013 20:17:14 -0000

> @@ -881,7 +883,13 @@
>              model = PCI_PRODUCT_MARVELL_88F5082;
>      }
>  #endif
> -
> +    //POGOPLUG Mobile has 88F6192 with 0x6281 PCI DeviceID
> +    if (model == PCI_PRODUCT_MARVELL_88F6281) {
> +        reg = *(volatile uint32_t *)(regbase + MVSOC_MISC_DEVICEID);
> +        if (1 == reg)
> +            model = MARVELL_KIRKWOOD_88F6192;
> +    }
> +
>      return model;
>  }
> 
> Index: sys/arch/arm/marvell/mvsocreg.h
> ===================================================================
> RCS file: /cvsroot/src/sys/arch/arm/marvell/mvsocreg.h,v
> retrieving revision 1.5
> diff -u -r1.5 mvsocreg.h
> --- sys/arch/arm/marvell/mvsocreg.h    30 Sep 2013 13:15:46 -0000    1.5
> +++ sys/arch/arm/marvell/mvsocreg.h    23 Nov 2013 20:17:14 -0000
> @@ -66,6 +66,7 @@
>   */
>  #define MVSOC_DEVBUS_BASE    (UNITID2PHYS(DEVBUS))    /* 0x10000 */
> 
> +#define MVSOC_MISC_DEVICEID     (MVSOC_DEVBUS_BASE + 0x0034)
>  /*
>   * General Purpose Port Registers
>   */

I think that the misc register is good to move into kirkwoodreg.h.
# Also shall we move the misc register of ArmadaXP to armadaxpreg.h...

Thanks,
--
kiyohara


Home | Main Index | Thread Index | Old Index