OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [orpsocv2/] [sw/] [tests/] [cfi_ctrl/] [sim/] [cfi_ctrl-readid.c] - Blame information for rev 850

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 655 julius
#include "board.h"
2
#include "cpu-utils.h"
3
#include "cfi_ctrl.h"
4
#include "printf.h"
5
 
6
#include "orpsoc-defines.h"
7
 
8
 
9
int main(void)
10
{
11
  printf("\nReading some CFI ID\n");
12
  printf("manufacturer code: %04x\n",cfi_ctrl_read_identifier(0x00)&0xffff);
13
  printf("Device ID: %04x\n",cfi_ctrl_read_identifier(0x01)&0xffff);
14
  printf("RCR: %04x\n",cfi_ctrl_read_identifier(0x05)&0xffff);
15
 
16
  printf("query info: %04x\n",cfi_ctrl_query_info(0x10)&0xffff);
17
  printf("query info: %04x\n",cfi_ctrl_query_info(0x11)&0xffff);
18
  printf("query info: %04x\n",cfi_ctrl_query_info(0x12)&0xffff);
19
  printf("device timing & voltage info: %04x\n",
20
         cfi_ctrl_query_info(0x1b)&0xffff);
21
 
22
  report(0x8000000d);
23
  exit(0);
24
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.