]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
powerpc/p5020: fixup portal config info
authorHaiying Wang <Haiying.Wang@freescale.com>
Wed, 28 Sep 2011 14:51:15 +0000 (10:51 -0400)
committerKumar Gala <galak@kernel.crashing.org>
Fri, 14 Oct 2011 04:38:09 +0000 (23:38 -0500)
P5020 has 10 qman portals, we need to configure all of them:
* As there are only 2 physical cores sdest can only be 0 or 1
* We assign dqrr & frame data LIODNs for all portals so if they
  are utilized the proper mapping tables can be setup uniquely
  (PAMU stashing)
* We set Portal 6-10 to LIODN offsets 1-5 as the global LIODN
  assignments are tuned around an assumption of at most 5
  partitions.

Signed-off-by: Haiying Wang <Haiying.Wang@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/cpu/mpc85xx/p5020_ids.c

index 2911c13884c72217312bbfffe425c70daca56c11..4254dd56c790dcaaf917ddd0f9c6983cd01805fe 100644 (file)
 #ifdef CONFIG_SYS_DPAA_QBMAN
 struct qportal_info qp_info[CONFIG_SYS_QMAN_NUM_PORTALS] = {
        /* dqrr liodn, frame data liodn, liodn off, sdest */
-       SET_QP_INFO( 1,  2,  1, 0),
-       SET_QP_INFO( 3,  4,  2, 1),
-       SET_QP_INFO( 5,  6,  3, 2),
-       SET_QP_INFO( 7,  8,  4, 3),
-       SET_QP_INFO( 9, 10,  5, 4),
-       SET_QP_INFO( 0,  0,  0, 5),
-       SET_QP_INFO( 0,  0,  0, 6),
-       SET_QP_INFO( 0,  0,  0, 7),
-       SET_QP_INFO( 0,  0,  0, 0), /* for now sdest to 0 */
-       SET_QP_INFO( 0,  0,  0, 0), /* for now sdest to 0 */
+       SET_QP_INFO(1, 2, 1, 0),
+       SET_QP_INFO(3, 4, 2, 1),
+       SET_QP_INFO(5, 6, 3, 0),
+       SET_QP_INFO(7, 8, 4, 1),
+       SET_QP_INFO(9, 10, 5, 0),
+       SET_QP_INFO(11, 12, 1, 1),
+       SET_QP_INFO(13, 14, 2, 0),
+       SET_QP_INFO(15, 16, 3, 1),
+       SET_QP_INFO(17, 18, 4, 0),
+       SET_QP_INFO(19, 20, 5, 1),
 };
 #endif