Changeset a416d070 in mainline for uspace/drv/platform/icp/icp.c


Ignore:
Timestamp:
2017-10-16T15:50:37Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
95c675b, b446b02
Parents:
1974f56a
Message:

Let ICP-IC be enumerated by the DDF.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/platform/icp/icp.c

    r1974f56a ra416d070  
    5454        icp_kbd_irq = 3,
    5555        icp_mouse_base = 0x19000000,
    56         icp_mouse_irq = 4
     56        icp_mouse_irq = 4,
     57        icp_ic_base = 0x14000000
    5758};
    5859
     
    108109};
    109110
     111static hw_resource_t icp_ic_res[] = {
     112        {
     113                .type = MEM_RANGE,
     114                .res.mem_range = {
     115                        .address = icp_ic_base,
     116                        .size = 40,
     117                        .relative = false,
     118                        .endianness = LITTLE_ENDIAN
     119                }
     120        }
     121};
     122
    110123static pio_window_t icp_pio_window = {
    111124        .mem = {
     
    126139                sizeof(icp_mouse_res) / sizeof(icp_mouse_res[0]),
    127140                icp_mouse_res
     141        },
     142};
     143
     144static icp_fun_t icp_ic_fun_proto = {
     145        .hw_resources = {
     146                sizeof(icp_ic_res) / sizeof(icp_ic_res[0]),
     147                icp_ic_res
    128148        },
    129149};
     
    267287                return rc;
    268288
     289        rc = icp_add_fun(dev, "intctl", "integratorcp/intctl",
     290            &icp_ic_fun_proto);
     291        if (rc != EOK)
     292                return rc;
     293
    269294        return EOK;
    270295}
Note: See TracChangeset for help on using the changeset viewer.