17 #include <linux/pci.h>
37 #define DBG(fmt...) udbg_printf(fmt)
42 #ifdef CONFIG_QUICC_ENGINE
45 unsigned int num_board_infos,
52 for_each_compatible_node(np, type, compatible) {
62 memset(res, 0,
sizeof(res));
76 if (prop && !
strcmp(prop,
"cpu-qe"))
79 for (j = 0; j < num_board_infos; j++) {
125 unsigned int num_board_infos,
133 sysclk = get_brgfreq();
140 ret = of_fsl_spi_probe(
NULL,
"fsl,spi", sysclk, board_infos,
143 of_fsl_spi_probe(
"spi",
"fsl_spi", sysclk, board_infos,
149 static void mpc83xx_spi_cs_control(
struct spi_device *spi,
bool on)
162 .max_speed_hz = 50000000,
163 .modalias =
"mmc_spi",
164 .platform_data = &mpc832x_mmc_pdata,
167 static int __init mpc832x_spi_init(
void)
184 return fsl_spi_init(&mpc832x_spi_boardinfo, 1, mpc83xx_spi_cs_control);
194 static void __init mpc832x_rdb_setup_arch(
void)
196 #if defined(CONFIG_QUICC_ENGINE)
201 ppc_md.progress(
"mpc832x_rdb_setup_arch()", 0);
205 #ifdef CONFIG_QUICC_ENGINE
223 static int __init mpc832x_rdb_probe(
void)
225 unsigned long root = of_get_flat_dt_root();
227 return of_flat_dt_is_compatible(root,
"MPC832xRDB");
231 .name =
"MPC832x RDB",
232 .probe = mpc832x_rdb_probe,
233 .setup_arch = mpc832x_rdb_setup_arch,