mpc83xx: Add ATM makefile entry for MPC8360EMDS and MPC832XEMDS and typo fix
PATCH 1/1 mpc83xx: Add ATM makefile entry for MPC8360EMDS and MPC832XEMDS and typo fix
Add ATM make entry for MPC8360EMDS and MPC832XEMDS And type fix for MPC832XEMDS ATM
Signed-off-by Tony Li <[email protected]>
--- Makefile | 22 +++++++++++++++++++--- board/freescale/common/pq-mds-pib.c | 26 +++++++++++++------------- 2 files changed, 32 insertions(+), 16 deletions(-)
Makefile +19 -3
@@ -1765,7 +1765,8 @@ MPC8323ERDB_config: unconfig MPC832XEMDS_config \ MPC832XEMDS_HOST_33_config \ MPC832XEMDS_HOST_66_config \ -MPC832XEMDS_SLAVE_config: unconfig +MPC832XEMDS_SLAVE_config \ +MPC832XEMDS_ATM_config: unconfig @mkdir -p $(obj)include @echo "" >$(obj)include/config.h ; \ if [ "$(findstring _HOST_,$@)" ] ; then \
@@ -1780,11 +1781,18 @@ MPC832XEMDS_SLAVE_config: unconfig if [ "$(findstring _33_,$@)" ] ; then \ echo -n "...33M ..." ; \ echo "#define PCI_33M" >>$(obj)include/config.h ; \ + echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ fi ; \ if [ "$(findstring _66_,$@)" ] ; then \ echo -n "...66M..." ; \ echo "#define PCI_66M" >>$(obj)include/config.h ; \ - fi ; + echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ + fi ; \ + if [ "$(findstring _ATM_,$@)" ] ; then \ + echo -n "...ATM..." ; \ + echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ + echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \ + fi ; @$(MKCONFIG) -a MPC832XEMDS ppc mpc83xx mpc832xemds freescale MPC8349EMDS_config: unconfig
@@ -1807,7 +1815,8 @@ MPC8349ITXGP_config: unconfig MPC8360EMDS_config \ MPC8360EMDS_HOST_33_config \ MPC8360EMDS_HOST_66_config \ -MPC8360EMDS_SLAVE_config: unconfig +MPC8360EMDS_SLAVE_config \ +MPC8360EMDS_ATM_config: unconfig @mkdir -p $(obj)include @echo "" >$(obj)include/config.h ; \ if [ "$(findstring _HOST_,$@)" ] ; then \
@@ -1822,10 +1831,17 @@ MPC8360EMDS_SLAVE_config: unconfig if [ "$(findstring _33_,$@)" ] ; then \ echo -n "...33M ..." ; \ echo "#define PCI_33M" >>$(obj)include/config.h ; \ + echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ fi ; \ if [ "$(findstring _66_,$@)" ] ; then \ echo -n "...66M..." ; \ echo "#define PCI_66M" >>$(obj)include/config.h ; \ + echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ + fi ; \ + if [ "$(findstring _ATM_,$@)" ] ; then \ + echo -n "...ATM..." ; \ + echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ + echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \ fi ; @$(MKCONFIG) -a MPC8360EMDS ppc mpc83xx mpc8360emds freescale
board/freescale/common/pq-mds-pib.c +13 -13
@@ -79,19 +79,19 @@ int pib_init(void)printf ("QOC3 ATM card on PMC0\n" );#elif defined(CONFIG_MPC832XEMDS ) - val =0 ; -i2c_write (0x26 ,0x7 ,1 , &val,1 ); - val =0xf7 ; -i2c_write (0x26 ,0x3 ,1 , &val,1 ); - - val =0 ; -i2c_write (0x21 ,0x6 ,1 , &val,1 ); -i2c_write (0x21 ,0x7 ,1 , &val,1 ); - - val =0xdf ; -i2c_write (0x21 ,0x2 ,1 , &val,1 ); - val =0xef ; -i2c_write (0x21 ,0x3 ,1 , &val,1 ); + val8 =0 ; +i2c_write (0x26 ,0x7 ,1 , &val8,1 ); + val8 =0xf7 ; +i2c_write (0x26 ,0x3 ,1 , &val8,1 ); + + val8 =0 ; +i2c_write (0x21 ,0x6 ,1 , &val8,1 ); +i2c_write (0x21 ,0x7 ,1 , &val8,1 ); + + val8 =0xdf ; +i2c_write (0x21 ,0x2 ,1 , &val8,1 ); + val8 =0xef ; +i2c_write (0x21 ,0x3 ,1 , &val8,1 );eieio ();
Signature · 1 line
1.5.2