[OpenWrt-Devel] naming for new subtarget in mpc83xx
ct at xmodus-systems.de
Tue Sep 23 05:10:17 EDT 2014
On 23.09.2014 09:53, Imre Kaloz wrote:
> Hi Claudio,
> On Tue, 23 Sep 2014 09:44:03 +0200, Claudio Thomas
> <ct at xmodus-systems.de> wrote:
>> I would like to add a new device to /target/linux/mpc83xx witch needs a
>> special kernel.
> In what way is it special? Why can't the same kernel support your
> board as well?
> Last time you've said you are going to re-analyse the problem ;)
The RB600/RB300 uses a MPC8377, the XM1700 uses a MPC8306. They are
quite similar, but not equal.
The main problem is, that I need some patches for the MPC8306.
Two examples based on the QE
* The QUICC Engine Block is different on the MPC8306 comparing to other
MPC83xx, it does not support certain range of snum thread (Table 4-29.
SNUM Table comment 7 on page 297), multiplex timers on page 299.
Another example (/arch/powerpc/platforms/83xx/mpc83xx.h)
#define MPC837X_SICRL_USB_ULPI 0x50000000
#define MPC837X_SICRL_USBB_MASK 0x30000000
+#define MPC8306_SICRL_USB_ULPI 0x00000000
+#define MPC8306_SICRL_USB_MASK 0x003C0000
#define MPC837X_SICRH_SPI_MASK 0x00000003
#define MPC837X_SICRH_SD 0x00000001
+#define MPC8306_SICRH_USB_MASK 0x0F00F300
+#define MPC8306_SICRH_USB_ULPI 0x00000000
My conclusion is, that this changes need to have a flag in the config
for the MPC8306 that can not be in the config for the rb600.
I would also appreciate to use only one config, but I don't know how I
could patch the kernel to fit for both.
I'm open for suggestions.
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
More information about the openwrt-devel