| /rk3399_rockchip-uboot/drivers/fpga/ |
| H A D | spartan3.c | 115 int cookie = desc->cookie; /* make a local copy */ in spartan3_sp_load() local 143 printf ("Loading FPGA Device %d...\n", cookie); in spartan3_sp_load() 149 (*fn->pre) (cookie); in spartan3_sp_load() 153 (*fn->pgm) (true, true, cookie); /* Assert the program, commit */ in spartan3_sp_load() 157 (*fn->pgm) (false, true, cookie); /* Deassert the program, commit */ in spartan3_sp_load() 165 (*fn->abort) (cookie); /* abort the burn */ in spartan3_sp_load() 168 } while ((*fn->init) (cookie) && (*fn->busy) (cookie)); in spartan3_sp_load() 170 (*fn->wr) (true, true, cookie); /* Assert write, commit */ in spartan3_sp_load() 171 (*fn->cs) (true, true, cookie); /* Assert chip select, commit */ in spartan3_sp_load() 172 (*fn->clk) (true, true, cookie); /* Assert the clock pin */ in spartan3_sp_load() [all …]
|
| H A D | spartan2.c | 111 int cookie = desc->cookie; /* make a local copy */ in spartan2_sp_load() local 139 printf ("Loading FPGA Device %d...\n", cookie); in spartan2_sp_load() 145 (*fn->pre) (cookie); in spartan2_sp_load() 149 (*fn->pgm) (true, true, cookie); /* Assert the program, commit */ in spartan2_sp_load() 153 (*fn->pgm) (false, true, cookie); /* Deassert the program, commit */ in spartan2_sp_load() 161 (*fn->abort) (cookie); /* abort the burn */ in spartan2_sp_load() 164 } while ((*fn->init) (cookie) && (*fn->busy) (cookie)); in spartan2_sp_load() 166 (*fn->wr) (true, true, cookie); /* Assert write, commit */ in spartan2_sp_load() 167 (*fn->cs) (true, true, cookie); /* Assert chip select, commit */ in spartan2_sp_load() 168 (*fn->clk) (true, true, cookie); /* Assert the clock pin */ in spartan2_sp_load() [all …]
|
| H A D | virtex2.c | 169 int cookie = desc->cookie; in virtex2_ssm_load() local 194 printf ("Initializing FPGA Device %d...\n", cookie); in virtex2_ssm_load() 200 (*fn->pre) (cookie); in virtex2_ssm_load() 209 (*fn->pgm) (true, true, cookie); in virtex2_ssm_load() 217 (*fn->abort) (cookie); in virtex2_ssm_load() 220 } while (!(*fn->init) (cookie)); in virtex2_ssm_load() 222 (*fn->pgm) (false, true, cookie); in virtex2_ssm_load() 224 (*fn->clk) (true, true, cookie); in virtex2_ssm_load() 236 (*fn->abort) (cookie); in virtex2_ssm_load() 239 } while ((*fn->init) (cookie) && (*fn->busy) (cookie)); in virtex2_ssm_load() [all …]
|
| H A D | ACEX1K.c | 102 int cookie = desc->cookie; /* make a local copy */ in ACEX1K_ps_load() local 116 printf ("Loading FPGA Device %d...", cookie); in ACEX1K_ps_load() 123 (*fn->pre) (cookie); in ACEX1K_ps_load() 127 (*fn->config) (true, true, cookie); /* Assert nCONFIG */ in ACEX1K_ps_load() 132 (*fn->done) (cookie); in ACEX1K_ps_load() 133 if ( !(*fn->status) (cookie) ) { in ACEX1K_ps_load() 135 (*fn->abort) (cookie); in ACEX1K_ps_load() 139 (*fn->config) (false, true, cookie); /* Deassert nCONFIG */ in ACEX1K_ps_load() 148 (*fn->abort) (cookie); in ACEX1K_ps_load() 151 (*fn->done) (cookie); in ACEX1K_ps_load() [all …]
|
| H A D | stratixII.c | 73 int cookie; in StratixII_ps_fpp_load() local 98 cookie = desc->cookie; in StratixII_ps_fpp_load() 111 if ((ret_val = fns->pre (cookie)) < 0) { in StratixII_ps_fpp_load() 119 fns->config (0, 1, cookie); in StratixII_ps_fpp_load() 121 fns->config (1, 1, cookie); in StratixII_ps_fpp_load() 126 fns->clk (0, 1, cookie); in StratixII_ps_fpp_load() 131 if (fns->status (cookie) != 1) { in StratixII_ps_fpp_load() 135 fns->abort (cookie); in StratixII_ps_fpp_load() 143 fns->data ((data >> i) & 1, 1, cookie); in StratixII_ps_fpp_load() 146 fns->clk (1, 1, cookie); in StratixII_ps_fpp_load() [all …]
|
| H A D | cyclon2.c | 106 int cookie = desc->cookie; /* make a local copy */ in CYC2_ps_load() local 119 printf ("Loading FPGA Device %d...", cookie); in CYC2_ps_load() 126 (*fn->pre) (cookie); in CYC2_ps_load() 130 (*fn->config) (false, true, cookie); /* De-assert nCONFIG */ in CYC2_ps_load() 132 (*fn->config) (true, true, cookie); /* Assert nCONFIG */ in CYC2_ps_load() 142 (*fn->abort) (cookie); in CYC2_ps_load() 145 } while (!(*fn->status) (cookie)); in CYC2_ps_load() 150 ret = (*fn->write) (buf, bsize, true, cookie); in CYC2_ps_load() 153 (*fn->abort) (cookie); in CYC2_ps_load() 170 if ( ! (*fn->done) (cookie) ) { in CYC2_ps_load() [all …]
|
| H A D | stratixv.c | 46 int cookie = desc->cookie; in stratixv_load() local 58 (pfns->pre)(cookie); in stratixv_load() 63 (pfns->config)(false, true, cookie); in stratixv_load() 69 (pfns->config)(true, true, cookie); in stratixv_load() 81 ret = (pfns->write)(rbf_data, rbf_size, true, cookie); in stratixv_load() 87 spi_bus = COOKIE2SPI_BUS(cookie); in stratixv_load() 88 spi_dev = COOKIE2SPI_DEV(cookie); in stratixv_load() 96 ret = (pfns->done)(cookie); in stratixv_load()
|
| /rk3399_rockchip-uboot/include/ |
| H A D | zynqpl.h | 46 #define XILINX_XC7Z007S_DESC(cookie) \ argument 47 { xilinx_zynq, devcfg, XILINX_XC7Z007S_SIZE, NULL, cookie, FPGA_ZYNQPL_OPS, \ 50 #define XILINX_XC7Z010_DESC(cookie) \ argument 51 { xilinx_zynq, devcfg, XILINX_XC7Z010_SIZE, NULL, cookie, FPGA_ZYNQPL_OPS, \ 54 #define XILINX_XC7Z012S_DESC(cookie) \ argument 55 { xilinx_zynq, devcfg, XILINX_XC7Z012S_SIZE, NULL, cookie, FPGA_ZYNQPL_OPS, \ 58 #define XILINX_XC7Z014S_DESC(cookie) \ argument 59 { xilinx_zynq, devcfg, XILINX_XC7Z014S_SIZE, NULL, cookie, FPGA_ZYNQPL_OPS, \ 62 #define XILINX_XC7Z015_DESC(cookie) \ argument 63 { xilinx_zynq, devcfg, XILINX_XC7Z015_SIZE, NULL, cookie, FPGA_ZYNQPL_OPS, \ [all …]
|
| H A D | spartan3.h | 78 #define XILINX_XC3S50_DESC(iface, fn_table, cookie) \ argument 79 { xilinx_spartan3, iface, XILINX_XC3S50_SIZE, fn_table, cookie, \ 82 #define XILINX_XC3S200_DESC(iface, fn_table, cookie) \ argument 83 { xilinx_spartan3, iface, XILINX_XC3S200_SIZE, fn_table, cookie, \ 86 #define XILINX_XC3S400_DESC(iface, fn_table, cookie) \ argument 87 { xilinx_spartan3, iface, XILINX_XC3S400_SIZE, fn_table, cookie, \ 90 #define XILINX_XC3S1000_DESC(iface, fn_table, cookie) \ argument 91 { xilinx_spartan3, iface, XILINX_XC3S1000_SIZE, fn_table, cookie, \ 94 #define XILINX_XC3S1500_DESC(iface, fn_table, cookie) \ argument 95 { xilinx_spartan3, iface, XILINX_XC3S1500_SIZE, fn_table, cookie, \ [all …]
|
| H A D | virtex2.h | 65 #define XILINX_XC2V40_DESC(iface, fn_table, cookie) \ argument 66 { xilinx_virtex2, iface, XILINX_XC2V40_SIZE, fn_table, cookie, \ 69 #define XILINX_XC2V80_DESC(iface, fn_table, cookie) \ argument 70 { xilinx_virtex2, iface, XILINX_XC2V80_SIZE, fn_table, cookie, \ 73 #define XILINX_XC2V250_DESC(iface, fn_table, cookie) \ argument 74 { xilinx_virtex2, iface, XILINX_XC2V250_SIZE, fn_table, cookie, \ 77 #define XILINX_XC2V500_DESC(iface, fn_table, cookie) \ argument 78 { xilinx_virtex2, iface, XILINX_XC2V500_SIZE, fn_table, cookie, \ 81 #define XILINX_XC2V1000_DESC(iface, fn_table, cookie) \ argument 82 { xilinx_virtex2, iface, XILINX_XC2V1000_SIZE, fn_table, cookie, \ [all …]
|
| H A D | spartan2.h | 68 #define XILINX_XC2S15_DESC(iface, fn_table, cookie) \ argument 69 { xilinx_spartan2, iface, XILINX_XC2S15_SIZE, fn_table, cookie, \ 72 #define XILINX_XC2S30_DESC(iface, fn_table, cookie) \ argument 73 { xilinx_spartan2, iface, XILINX_XC2S30_SIZE, fn_table, cookie, \ 76 #define XILINX_XC2S50_DESC(iface, fn_table, cookie) \ argument 77 { xilinx_spartan2, iface, XILINX_XC2S50_SIZE, fn_table, cookie, \ 80 #define XILINX_XC2S100_DESC(iface, fn_table, cookie) \ argument 81 { xilinx_spartan2, iface, XILINX_XC2S100_SIZE, fn_table, cookie, \ 84 #define XILINX_XC2S150_DESC(iface, fn_table, cookie) \ argument 85 { xilinx_spartan2, iface, XILINX_XC2S150_SIZE, fn_table, cookie, \ [all …]
|
| H A D | xilinx.h | 44 int cookie; /* implementation specific cookie */ member 67 typedef int (*xilinx_pgm_fn)(int assert_pgm, int flush, int cookie); 68 typedef int (*xilinx_init_fn)(int cookie); 69 typedef int (*xilinx_err_fn)(int cookie); 70 typedef int (*xilinx_done_fn)(int cookie); 71 typedef int (*xilinx_clk_fn)(int assert_clk, int flush, int cookie); 72 typedef int (*xilinx_cs_fn)(int assert_cs, int flush, int cookie); 73 typedef int (*xilinx_wr_fn)(int assert_write, int flush, int cookie); 74 typedef int (*xilinx_rdata_fn)(unsigned char *data, int cookie); 75 typedef int (*xilinx_wdata_fn)(unsigned char data, int flush, int cookie); [all …]
|
| H A D | altera.h | 79 int cookie; member 90 typedef int (*Altera_pre_fn)( int cookie ); 91 typedef int (*Altera_config_fn)( int assert_config, int flush, int cookie ); 92 typedef int (*Altera_status_fn)( int cookie ); 93 typedef int (*Altera_done_fn)( int cookie ); 94 typedef int (*Altera_clk_fn)( int assert_clk, int flush, int cookie ); 95 typedef int (*Altera_data_fn)( int assert_data, int flush, int cookie ); 96 typedef int(*Altera_write_fn)(const void *buf, size_t len, int flush, int cookie); 97 typedef int (*Altera_abort_fn)( int cookie ); 98 typedef int (*Altera_post_fn)( int cookie );
|
| H A D | ACEX1K.h | 67 #define Altera_EP1K100_DESC(iface, fn_table, cookie) \ argument 68 { Altera_ACEX1K, iface, Altera_EP1K100_SIZE, fn_table, cookie }
|
| /rk3399_rockchip-uboot/board/armadeus/apf27/ |
| H A D | fpga.h | 14 extern int fpga_pre_fn(int cookie); 15 extern int fpga_pgm_fn(int assert_pgm, int flush, int cookie); 16 extern int fpga_cs_fn(int assert_cs, int flush, int cookie); 17 extern int fpga_init_fn(int cookie); 18 extern int fpga_done_fn(int cookie); 19 extern int fpga_clk_fn(int assert_clk, int flush, int cookie); 20 extern int fpga_wr_fn(int assert_write, int flush, int cookie); 21 extern int fpga_rdata_fn(unsigned char *data, int cookie); 22 extern int fpga_wdata_fn(unsigned char data, int flush, int cookie); 23 extern int fpga_abort_fn(int cookie); [all …]
|
| H A D | fpga.c | 58 int fpga_pre_fn(int cookie) in fpga_pre_fn() argument 80 return cookie; in fpga_pre_fn() 86 int fpga_pgm_fn(int assert, int flush, int cookie) in fpga_pgm_fn() argument 97 int fpga_clk_fn(int assert_clk, int flush, int cookie) in fpga_clk_fn() argument 109 int fpga_init_fn(int cookie) in fpga_init_fn() argument 125 int fpga_done_fn(int cookie) in fpga_done_fn() argument 135 int fpga_wr_fn(int assert_write, int flush, int cookie) in fpga_wr_fn() argument 143 int fpga_cs_fn(int assert_cs, int flush, int cookie) in fpga_cs_fn() argument 151 int fpga_rdata_fn(unsigned char *data, int cookie) in fpga_rdata_fn() argument 160 int fpga_wdata_fn(unsigned char data, int flush, int cookie) in fpga_wdata_fn() argument [all …]
|
| /rk3399_rockchip-uboot/api/ |
| H A D | api_net.c | 30 static int dev_valid_net(void *cookie) in dev_valid_net() argument 32 return ((void *)eth_get_dev() == cookie) ? 1 : 0; in dev_valid_net() 35 int dev_open_net(void *cookie) in dev_open_net() argument 37 if (!dev_valid_net(cookie)) in dev_open_net() 46 int dev_close_net(void *cookie) in dev_close_net() argument 48 if (!dev_valid_net(cookie)) in dev_close_net() 64 di->cookie = (void *)eth_current; in dev_enum_net() 65 if (di->cookie == NULL) in dev_enum_net() 71 (u_int32_t)di->cookie); in dev_enum_net() 76 int dev_write_net(void *cookie, void *buf, int len) in dev_write_net() argument [all …]
|
| H A D | api_storage.c | 109 if (di->cookie != NULL) { in dev_stor_get() 112 if (di->cookie == in dev_stor_get() 121 di->cookie = (void *)blk_get_dev(specs[type].name, i); in dev_stor_get() 123 if (di->cookie != NULL) { in dev_stor_get() 137 dd = (struct blk_desc *)di->cookie; in dev_stor_get() 146 di->cookie = NULL; in dev_stor_get() 172 return (dev_stor_type(di->cookie) == type) ? 1 : 0; in dev_is_stor() 199 if (di->cookie == NULL) { in dev_enum_stor() 259 (u_int32_t)di->cookie); in dev_enum_stor() 302 int dev_open_stor(void *cookie) in dev_open_stor() argument [all …]
|
| H A D | api.c | 206 if (di->cookie == NULL) { in API_dev_enum() 224 di->cookie = NULL; in API_dev_enum() 244 if (di->cookie == NULL) in API_dev_open() 248 err = dev_open_stor(di->cookie); in API_dev_open() 251 err = dev_open_net(di->cookie); in API_dev_open() 275 if (di->cookie == NULL) in API_dev_close() 279 err = dev_close_stor(di->cookie); in API_dev_close() 282 err = dev_close_net(di->cookie); in API_dev_close() 328 if (di->cookie == NULL) in API_dev_write() 351 err = dev_write_net(di->cookie, buf, *len); in API_dev_write() [all …]
|
| /rk3399_rockchip-uboot/board/theadorable/ |
| H A D | fpga.c | 20 static int fpga_pre_fn(int cookie) in fpga_pre_fn() argument 22 int gpio_config = COOKIE2CONFIG(cookie); in fpga_pre_fn() 23 int gpio_done = COOKIE2DONE(cookie); in fpga_pre_fn() 27 __func__, __LINE__, cookie, gpio_config, gpio_done); in fpga_pre_fn() 47 static int fpga_config_fn(int assert, int flush, int cookie) in fpga_config_fn() argument 49 int gpio_config = COOKIE2CONFIG(cookie); in fpga_config_fn() 52 __func__, __LINE__, cookie, gpio_config); in fpga_config_fn() 62 static int fpga_write_fn(const void *buf, size_t len, int flush, int cookie) in fpga_write_fn() argument 64 int spi_bus = COOKIE2SPI_BUS(cookie); in fpga_write_fn() 65 int spi_dev = COOKIE2SPI_DEV(cookie); in fpga_write_fn() [all …]
|
| /rk3399_rockchip-uboot/board/astro/mcf5373l/ |
| H A D | fpga.c | 30 int altera_pre_fn(int cookie) in altera_pre_fn() argument 68 int altera_config_fn(int assert_config, int flush, int cookie) in altera_config_fn() argument 80 int altera_status_fn(int cookie) in altera_status_fn() argument 90 int altera_done_fn(int cookie) in altera_done_fn() argument 104 int altera_write_fn(const void *buf, size_t len, int flush, int cookie) in altera_write_fn() argument 144 int altera_abort_fn(int cookie) in altera_abort_fn() argument 154 int altera_post_fn(int cookie) in altera_post_fn() argument 156 return altera_abort_fn(cookie); in altera_post_fn() 207 int xilinx_pgm_config_fn(int assert, int flush, int cookie) in xilinx_pgm_config_fn() argument 222 int xilinx_init_config_fn(int cookie) in xilinx_init_config_fn() argument [all …]
|
| /rk3399_rockchip-uboot/board/spear/x600/ |
| H A D | fpga.c | 41 static int fpga_pgm_fn(int assert, int flush, int cookie) in fpga_pgm_fn() argument 54 static int fpga_init_fn(int cookie) in fpga_init_fn() argument 76 static int fpga_done_fn(int cookie) in fpga_done_fn() argument 97 static int fpga_pre_config_fn(int cookie) in fpga_pre_config_fn() argument 109 static int fpga_post_config_fn(int cookie) in fpga_post_config_fn() argument 123 static int fpga_clk_fn(int assert_clk, int flush, int cookie) in fpga_clk_fn() argument 132 static int fpga_wr_fn(int assert_write, int flush, int cookie) in fpga_wr_fn() argument
|
| /rk3399_rockchip-uboot/board/teejet/mt_ventoux/ |
| H A D | mt_ventoux.c | 123 int fpga_pgm_fn(int nassert, int nflush, int cookie) in fpga_pgm_fn() argument 132 int fpga_init_fn(int cookie) in fpga_init_fn() argument 137 int fpga_done_fn(int cookie) in fpga_done_fn() argument 142 int fpga_pre_config_fn(int cookie) in fpga_pre_config_fn() argument 167 int fpga_post_config_fn(int cookie) in fpga_post_config_fn() argument 179 int fpga_wr_fn(int nassert_write, int flush, int cookie) in fpga_wr_fn() argument 186 int fpga_clk_fn(int assert_clk, int flush, int cookie) in fpga_clk_fn() argument
|
| /rk3399_rockchip-uboot/board/beckhoff/mx53cx9020/ |
| H A D | mx53cx9020.c | 287 static int ccat_config_fn(int assert_config, int flush, int cookie) in ccat_config_fn() argument 299 static int ccat_status_fn(int cookie) in ccat_status_fn() argument 304 static int ccat_write_fn(const void *buf, size_t buf_len, int flush, int cookie) in ccat_write_fn() argument 319 static int ccat_done_fn(int cookie) in ccat_done_fn() argument 325 static int ccat_post_fn(int cookie) in ccat_post_fn() argument
|
| /rk3399_rockchip-uboot/examples/api/ |
| H A D | glue.c | 189 while (di->cookie != NULL) { in ub_dev_enum() 198 di->cookie = devices[n - 1].cookie; in ub_dev_enum()
|