[POWERPC] 83xx: add base platform support for the mpc8315 rdb board
authorKim Phillips <kim.phillips@freescale.com>
Fri, 25 Jan 2008 02:46:00 +0000 (20:46 -0600)
committerKumar Gala <galak@kernel.crashing.org>
Mon, 28 Jan 2008 14:33:00 +0000 (08:33 -0600)
mpc8315 identical to mpc8313 here, just check compatible.

Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/platforms/83xx/Kconfig
arch/powerpc/platforms/83xx/mpc831x_rdb.c

index 10a665f7774c8dabe1e692800b391f48361d0238..924408cc5a81b40134b565b917e97dc8f7df9e83 100644 (file)
@@ -7,7 +7,7 @@ config MPC831x_RDB
        bool "Freescale MPC831x RDB"
        select DEFAULT_UIMAGE
        help
-         This option enables support for the MPC8313 RDB board.
+         This option enables support for the MPC8313 RDB and MPC8315 RDB boards.
 
 config MPC832x_MDS
        bool "Freescale MPC832x MDS"
index b484b2b4ba69855b3a439cb6a430f8dbd79a95f4..c4db5172b27ab34de9af690f8a1af8075565def8 100644 (file)
@@ -64,7 +64,8 @@ static int __init mpc831x_rdb_probe(void)
 {
        unsigned long root = of_get_flat_dt_root();
 
-       return of_flat_dt_is_compatible(root, "MPC8313ERDB");
+       return of_flat_dt_is_compatible(root, "MPC8313ERDB") ||
+              of_flat_dt_is_compatible(root, "fsl,mpc8315erdb");
 }
 
 static struct of_device_id __initdata of_bus_ids[] = {