Lines Matching refs:pfc
801 unsigned long pfc; in db1200_dev_setup() local
818 pfc = alchemy_rdsys(AU1000_SYS_PINFUNC); in db1200_dev_setup()
819 pfc &= ~(SYS_PINFUNC_P0A | SYS_PINFUNC_P0B); in db1200_dev_setup()
820 pfc &= ~(SYS_PINFUNC_P1A | SYS_PINFUNC_P1B | SYS_PINFUNC_FS3); in db1200_dev_setup()
821 pfc |= SYS_PINFUNC_P1C; /* SPI is configured later */ in db1200_dev_setup()
822 alchemy_wrsys(pfc, AU1000_SYS_PINFUNC); in db1200_dev_setup()
827 pfc = clk_round_rate(c, 50000000); in db1200_dev_setup()
828 if ((pfc < 1) || (abs(50000000 - pfc) > 2500000)) in db1200_dev_setup()
831 clk_set_rate(c, pfc); in db1200_dev_setup()
863 pfc = alchemy_rdsys(AU1000_SYS_PINFUNC) & ~SYS_PINFUNC_P0A; in db1200_dev_setup()
876 pfc |= (2 << 17); /* GPIO2 block owns GPIO215 */ in db1200_dev_setup()
884 pfc |= (1 << 17); /* PSC0 owns GPIO215 */ in db1200_dev_setup()
889 alchemy_wrsys(pfc, AU1000_SYS_PINFUNC); in db1200_dev_setup()