X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Fflash%2Fnand%2Fmx3.c;h=5fdc923056c96ec875208297d4c9ba7f5f0e9553;hb=76ee93a81db72d16cc2e446f6f43411de5d6e8c2;hp=23e6033d08dd2bb5d5c43d559e1a4f5df811e641;hpb=fab0dcd7e6cb8cfbf63cb41f0978902371d30205;p=openocd.git diff --git a/src/flash/nand/mx3.c b/src/flash/nand/mx3.c index 23e6033d08..5fdc923056 100644 --- a/src/flash/nand/mx3.c +++ b/src/flash/nand/mx3.c @@ -15,9 +15,7 @@ * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * - * along with this program; if not, write to the * - * Free Software Foundation, Inc., * - * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + * along with this program. If not, see . * ***************************************************************************/ /* @@ -91,16 +89,7 @@ NAND_DEVICE_COMMAND_HANDLER(imx31_nand_device_command) mx3_nf_info->fin = MX3_NF_FIN_NONE; mx3_nf_info->flags.target_little_endian = (nand->target->endianness == TARGET_LITTLE_ENDIAN); - /* - * testing host endianness - */ - { - int x = 1; - if (*(char *) &x == 1) - mx3_nf_info->flags.host_little_endian = 1; - else - mx3_nf_info->flags.host_little_endian = 0; - } + return ERROR_OK; } @@ -292,6 +281,7 @@ static int imx31_command(struct nand_device *nand, uint8_t command) * offset == one half of page size */ in_sram_address = MX3_NF_MAIN_BUFFER0 + (nand->page_size >> 1); + break; default: in_sram_address = MX3_NF_MAIN_BUFFER0; }