]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
powerpc/rman: fix RMan support for t4240 and b4860
authorMinghuan Lian <Minghuan.Lian@freescale.com>
Wed, 3 Jul 2013 10:32:41 +0000 (18:32 +0800)
committerYork Sun <yorksun@freescale.com>
Fri, 9 Aug 2013 19:41:41 +0000 (12:41 -0700)
1. Add CONFIG_SYS_DPAA_RMAN macro to t4240 and b4860.
2. Decrease RMan liodn offset number.
SET_RMAN_LIODN() is used to set liodn offset of RMan blocks 0-3.
For t4240 and b4860, RMan liodn base is assigned to 922, the original
offset number is too large that the liodn (base+offset 922+678 = 1600)
is greater than 0x500 the maximum liodn number.

Signed-off-by: Minghuan Lian <Minghuan.Lian@freescale.com>
Signed-off-by: York Sun <yorksun@freescale.com>
arch/powerpc/cpu/mpc85xx/b4860_ids.c
arch/powerpc/cpu/mpc85xx/t4240_ids.c
include/configs/B4860QDS.h
include/configs/T4240EMU.h
include/configs/T4240QDS.h

index 19595807634b87373d67646c0ccee7f5fa3ac58e..39b8e3ecc2ccc99f99ce8587a0520bf192dd0cdb 100644 (file)
@@ -112,10 +112,10 @@ int sec_liodn_tbl_sz = ARRAY_SIZE(sec_liodn_tbl);
 #ifdef CONFIG_SYS_DPAA_RMAN
 struct liodn_id_table rman_liodn_tbl[] = {
        /* Set RMan block 0-3 liodn offset */
-       SET_RMAN_LIODN(0, 678),
-       SET_RMAN_LIODN(1, 679),
-       SET_RMAN_LIODN(2, 680),
-       SET_RMAN_LIODN(3, 681),
+       SET_RMAN_LIODN(0, 6),
+       SET_RMAN_LIODN(1, 7),
+       SET_RMAN_LIODN(2, 8),
+       SET_RMAN_LIODN(3, 9),
 };
 int rman_liodn_tbl_sz = ARRAY_SIZE(rman_liodn_tbl);
 #endif
index d0bb27d9c6ddfddfecac231455079d8b6acbd8b4..54c1cfd2c10cf5fe2e413a9e2c55f8c009d88cde 100644 (file)
@@ -159,10 +159,10 @@ int sec_liodn_tbl_sz = ARRAY_SIZE(sec_liodn_tbl);
 #ifdef CONFIG_SYS_DPAA_RMAN
 struct liodn_id_table rman_liodn_tbl[] = {
        /* Set RMan block 0-3 liodn offset */
-       SET_RMAN_LIODN(0, 678),
-       SET_RMAN_LIODN(1, 679),
-       SET_RMAN_LIODN(2, 680),
-       SET_RMAN_LIODN(3, 681),
+       SET_RMAN_LIODN(0, 6),
+       SET_RMAN_LIODN(1, 7),
+       SET_RMAN_LIODN(2, 8),
+       SET_RMAN_LIODN(3, 9),
 };
 int rman_liodn_tbl_sz = ARRAY_SIZE(rman_liodn_tbl);
 #endif
index 7bc3428f4acbd9539ac41b0f6357169f80891ba8..2f0bc6b062b325e2f35282e378bbad0201ed1d1a 100644 (file)
@@ -584,6 +584,8 @@ unsigned long get_board_ddr_clk(void);
 
 #define CONFIG_SYS_DPAA_FMAN
 
+#define CONFIG_SYS_DPAA_RMAN
+
 /* Default address of microcode for the Linux Fman driver */
 #if defined(CONFIG_SPIFLASH)
 /*
index 537ff81250d9d5f563aa6f1c0d01954fba571f46..033992db9b9070435d0673a016bc30fa5e5753b1 100644 (file)
 #define CONFIG_SYS_DPAA_PME
 #define CONFIG_SYS_PMAN
 #define CONFIG_SYS_DPAA_DCE
+#define CONFIG_SYS_DPAA_RMAN
 #define CONFIG_SYS_INTERLAKEN
 
 #define CONFIG_SYS_QE_FMAN_FW_IN_NOR
index d92de3596cfaf053a96b0ac7e6486dada05f7df1..92a30ab09fc95e44255d9395470eb3d33872f483 100644 (file)
@@ -360,6 +360,7 @@ unsigned long get_board_ddr_clk(void);
 #define CONFIG_SYS_DPAA_PME
 #define CONFIG_SYS_PMAN
 #define CONFIG_SYS_DPAA_DCE
+#define CONFIG_SYS_DPAA_RMAN
 #define CONFIG_SYS_INTERLAKEN
 
 /* Default address of microcode for the Linux Fman driver */