From 6116c8c42724dd346ec4b0721668c0864ae9ef05 Mon Sep 17 00:00:00 2001 From: Jie Zhang Date: Wed, 2 Jul 2008 18:54:59 +0000 Subject: [PATCH] [ 2009080 ] Add bus drivers for bf526 ezkit and bf538f ezkit git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1294 b68d4a1b-bc3d-0410-92ed-d4ac073336b7 --- jtag/configure.ac | 4 +++- jtag/data/Makefile.am | 2 ++ jtag/data/analog/PARTS | 1 + jtag/src/bus/Makefile.am | 8 ++++++++ jtag/src/bus/bf537_stamp.c | 20 ++++++++++++++++++++ jtag/src/bus/buses.c | 6 ++++++ jtag/src/bus/buses.h | 2 ++ 7 files changed, 42 insertions(+), 1 deletion(-) diff --git a/jtag/configure.ac b/jtag/configure.ac index 646f4ac6..ab3be0c2 100644 --- a/jtag/configure.ac +++ b/jtag/configure.ac @@ -390,7 +390,7 @@ AC_DEFUN([CHECK_DRIVER], [ # Enable bus drivers AC_DEFUN([DEF_ENABLE_BUSDRIVERS], [\ -au1500 avr32 bcm1250 bf527_ezkit bf533_stamp bf533_ezkit bf537_stamp bf537_ezkit bf548_ezkit bf561_ezkit ejtag \ +au1500 avr32 bcm1250 bf526_ezkit bf527_ezkit bf533_stamp bf533_ezkit bf537_stamp bf537_ezkit bf538f_ezkit bf548_ezkit bf561_ezkit ejtag \ fjmem ixp425 jopcyc h7202 lh7a400 mpc5200 mpc824x ppc405ep ppc440gx_ebc8 prototype pxa2x0 pxa27x \ s3c4510 sa1110 sh7727 sh7750r sh7751r sharc_21065L slsup3 tx4925 zefant_xs3]) AC_ARG_ENABLE(bus, @@ -411,11 +411,13 @@ enabled_bus_drivers='' CHECK_DRIVER([$busdrivers], [enabled_bus_drivers], [au1500], [ENABLE_BUS_AU1500]) CHECK_DRIVER([$busdrivers], [enabled_bus_drivers], [avr32], [ENABLE_BUS_AVR32]) CHECK_DRIVER([$busdrivers], [enabled_bus_drivers], [bcm1250], [ENABLE_BUS_BCM1250]) +CHECK_DRIVER([$busdrivers], [enabled_bus_drivers], [bf526_ezkit], [ENABLE_BUS_BF526_EZKIT]) CHECK_DRIVER([$busdrivers], [enabled_bus_drivers], [bf527_ezkit], [ENABLE_BUS_BF527_EZKIT]) CHECK_DRIVER([$busdrivers], [enabled_bus_drivers], [bf533_stamp], [ENABLE_BUS_BF533_STAMP]) CHECK_DRIVER([$busdrivers], [enabled_bus_drivers], [bf533_ezkit], [ENABLE_BUS_BF533_EZKIT]) CHECK_DRIVER([$busdrivers], [enabled_bus_drivers], [bf537_stamp], [ENABLE_BUS_BF537_STAMP]) CHECK_DRIVER([$busdrivers], [enabled_bus_drivers], [bf537_ezkit], [ENABLE_BUS_BF537_EZKIT]) +CHECK_DRIVER([$busdrivers], [enabled_bus_drivers], [bf538f_ezkit], [ENABLE_BUS_BF538F_EZKIT]) CHECK_DRIVER([$busdrivers], [enabled_bus_drivers], [bf548_ezkit], [ENABLE_BUS_BF548_EZKIT]) CHECK_DRIVER([$busdrivers], [enabled_bus_drivers], [bf561_ezkit], [ENABLE_BUS_BF561_EZKIT]) CHECK_DRIVER([$busdrivers], [enabled_bus_drivers], [ejtag], [ENABLE_BUS_EJTAG]) diff --git a/jtag/data/Makefile.am b/jtag/data/Makefile.am index 5d910eee..7f477944 100644 --- a/jtag/data/Makefile.am +++ b/jtag/data/Makefile.am @@ -65,6 +65,8 @@ nobase_dist_pkgdata_DATA = \ analog/bf533/bf533 \ analog/bf537/STEPPINGS \ analog/bf537/bf537 \ + analog/bf538/STEPPINGS \ + analog/bf538/bf538 \ analog/bf548/STEPPINGS \ analog/bf548/bf548 \ analog/bf561/STEPPINGS \ diff --git a/jtag/data/analog/PARTS b/jtag/data/analog/PARTS index 7d49c5cc..149dd3a8 100644 --- a/jtag/data/analog/PARTS +++ b/jtag/data/analog/PARTS @@ -25,5 +25,6 @@ 0010011111100000 bf527 BF527 0010011110100101 bf533 BF533 0010011111001000 bf537 BF537 +0010011111000100 bf538 BF538 0010011111011110 bf548 BF548 0010011110111011 bf561 BF561 diff --git a/jtag/src/bus/Makefile.am b/jtag/src/bus/Makefile.am index 2b253cc4..4c0d967b 100644 --- a/jtag/src/bus/Makefile.am +++ b/jtag/src/bus/Makefile.am @@ -46,6 +46,10 @@ if ENABLE_BUS_BCM1250 libbus_a_SOURCES += bcm1250.c endif +if ENABLE_BUS_BF526_EZKIT +libbus_a_SOURCES += bf537_stamp.c +endif + if ENABLE_BUS_BF527_EZKIT libbus_a_SOURCES += bf537_stamp.c endif @@ -66,6 +70,10 @@ if ENABLE_BUS_BF537_EZKIT libbus_a_SOURCES += bf537_stamp.c endif +if ENABLE_BUS_BF538F_EZKIT +libbus_a_SOURCES += bf537_stamp.c +endif + if ENABLE_BUS_BF548_EZKIT libbus_a_SOURCES += bf548_ezkit.c endif diff --git a/jtag/src/bus/bf537_stamp.c b/jtag/src/bus/bf537_stamp.c index 6824def5..b54768cc 100644 --- a/jtag/src/bus/bf537_stamp.c +++ b/jtag/src/bus/bf537_stamp.c @@ -359,3 +359,23 @@ const bus_driver_t bf527_ezkit_bus = { }; #endif /* #ifdef ENABLE_BUS_BF527_EZKIT */ + +#ifdef ENABLE_BUS_BF538F_EZKIT + +const bus_driver_t bf538f_ezkit_bus = { + "bf538f_ezkit", + N_("Blackfin BF538F EZ-KIT board bus driver"), + BF537_STAMP_BUS_FUNCTIONS +}; + +#endif /* #ifdef ENABLE_BUS_BF538F_EZKIT */ + +#ifdef ENABLE_BUS_BF526_EZKIT + +const bus_driver_t bf526_ezkit_bus = { + "bf526_ezkit", + N_("Blackfin BF526 EZ-KIT board bus driver"), + BF537_STAMP_BUS_FUNCTIONS +}; + +#endif /* #ifdef ENABLE_BUS_BF526_EZKIT */ diff --git a/jtag/src/bus/buses.c b/jtag/src/bus/buses.c index c52ead9d..6e878649 100644 --- a/jtag/src/bus/buses.c +++ b/jtag/src/bus/buses.c @@ -39,6 +39,9 @@ const bus_driver_t *bus_drivers[] = { #ifdef ENABLE_BUS_BCM1250 &bcm1250_bus, #endif +#ifdef ENABLE_BUS_BF526_EZKIT + &bf526_ezkit_bus, +#endif #ifdef ENABLE_BUS_BF527_EZKIT &bf527_ezkit_bus, #endif @@ -54,6 +57,9 @@ const bus_driver_t *bus_drivers[] = { #ifdef ENABLE_BUS_BF537_EZKIT &bf537_ezkit_bus, #endif +#ifdef ENABLE_BUS_BF538F_EZKIT + &bf538f_ezkit_bus, +#endif #ifdef ENABLE_BUS_BF548_EZKIT &bf548_ezkit_bus, #endif diff --git a/jtag/src/bus/buses.h b/jtag/src/bus/buses.h index 1e333275..976d6748 100644 --- a/jtag/src/bus/buses.h +++ b/jtag/src/bus/buses.h @@ -28,11 +28,13 @@ extern const bus_driver_t au1500_bus; extern const bus_driver_t avr32_bus_driver; extern const bus_driver_t bcm1250_bus; +extern const bus_driver_t bf526_ezkit_bus; extern const bus_driver_t bf527_ezkit_bus; extern const bus_driver_t bf533_stamp_bus; extern const bus_driver_t bf533_ezkit_bus; extern const bus_driver_t bf537_stamp_bus; extern const bus_driver_t bf537_ezkit_bus; +extern const bus_driver_t bf538f_ezkit_bus; extern const bus_driver_t bf548_ezkit_bus; extern const bus_driver_t bf561_ezkit_bus; extern const bus_driver_t ejtag_bus;