ts-7000
[Top] [All Lists]

[ts-7000] Model Register

To: <>
Subject: [ts-7000] Model Register
From: "Fabio Vaz" <>
Date: Wed, 29 Oct 2008 10:33:43 -0200

Hi all,

 

I’m trying to get the board model accessing the model register. The problem is that I’m getting the same value (zero) for both ts7200 and ts7400 models. Is that correct ? Shouldn’t the values be different. What are the values for ts7300, ts7200, ts7400, ts7800 and ts7260 ?

 

This code is returning 0 (zero) on both ts7200 and ts7400 boards :

 

#include <stdio.h>

#include <sys/mman.h>

#include <sys/types.h>

#include <sys/stat.h>

#include <fcntl.h>

 

#define MODELBASE       0x22000000

 

volatile unsigned int *model_ptr;

 

unsigned int model;

 

 

main()

{

        int fd = open("/dev/mem", O_RDWR|O_SYNC);

 

        model_ptr = (unsigned int *)mmap(0, getpagesize(),

          PROT_READ|PROT_WRITE, MAP_SHARED, fd, MODELBASE);

 

        model = *model_ptr & 0x03;

 

        printf("model = %d\n",model);

}

 

 

 

 

__._,_.___

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: =Email Delivery: Digest | m("yahoogroups.com?subject","ts-7000-fullfeatured");=Change Delivery Format: Fully Featured">Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | =Unsubscribe

__,_._,___
<Prev in Thread] Current Thread [Next in Thread>
  • [ts-7000] Model Register, Fabio Vaz <=
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU